main.h
来自「ADI的ADSP-BF561下实现视频叠加的demo。」· C头文件 代码 · 共 36 行
H
36 行
#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 + =
减小字号Ctrl + -
显示快捷键?