📄 main.h
字号:
#ifndef __MAIN_DEFINED
#define __MAIN_DEFINED
#include "..\system.h"
/********************************************************************************/
/***** Current Global variables and types *****/
/********************************************************************************/
// 250 pixel for each line, 16 lines. Results in 33 letters in a single row.
// The definition can be found in the file "L2_SRAM.c"
extern volatile unsigned int uiTextOverlay[16][125];
// Pointer that points to the array dedicated to hold the text
#define pMem ((volatile unsigned short *) (uiTextOverlay))
#define S1D_DISPLAY_WIDTH 250 // length of the Text field to be displayed
/********************************************************************************/
/***** Prototypes functions *****/
/********************************************************************************/
void TextOverlay(void);
void clear_vmem(unsigned short color);
void plot_xy(unsigned short x,unsigned short y,unsigned short color);
void register_font(unsigned char *rfont,unsigned char *rfont_w);
unsigned short put_char (unsigned char c, unsigned short posx, unsigned short posy, unsigned short color);
unsigned short put_string(unsigned char *string, unsigned short x,unsigned short y,unsigned short color );
/********************************************************************************/
/***** Prototypes interrupts *****/
/********************************************************************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -