BX lr #endif
void delay(void; void delay( { vu8 i=0x8; while(i--
#ifdef __CC_ARM wait(; #else asm(\#endif }
#ifndef NO_LCD
void reset_delay(void; void reset_delay( { vu32 i=0xff; while(i--
#ifdef __CC_ARM wait(;
#else asm(\#endif }
void power_delay(void; void power_delay( { vu32 i=0x4ffff; while(i--
#ifdef __CC_ARM wait(; #else asm(\#endif } #endif
/******************************************************************** *************************************************/
/******************************************************************** ***********
* Function Name : LCD_Draw_ST_Logo
* Description : draw a ST logo * Input : None * Output : None * Return : 0 -- failure 1 -- success
********************************************************************* **********/
void LCD_Draw_ST_Logo( {
#ifndef NO_LCD u8 i,j;
u8 *p=DispSTLoGoTable;
LCD_Command = COM_Scan_Dir_Reverse; LCD_Command = Set_Start_Line_X|0x0; delay(;
for (i=0; i<8; i++ {
// for each page
LCD_Command = Set_Page_Addr_X|i; // page no.
delay(;
LCD_Command = Set_ColH_Addr_X|0x0; // fixed col first addr delay(; LCD_Command = Set_ColL_Addr_X|0x0; delay(; j=128; while (j-- {
LCD_Data=*p++; delay(; } } #endif }
/******************************************************************** *************************************************/
ST 的 LOGO
u8 DispSTLoGoTable[] = { /*page 0*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xE0,0xF0,0xF8,0xF8,0xFC,0xFC ,0xFC,0
相关推荐: