#define Bank1_LCD_D ((u32)0x60040000) //disp Data ADDR
#define Bank1_LCD_C ((u32)0x60000000) //disp Reg ADDR
#definewrite_command(LCD_DATA) *(vu16 *) (Bank1_LCD_C)= (u16)LCD_DATA;
#definewrite_data(LCD_COMM) *(vu16 *) (Bank1_LCD_D)= (u16)LCD_COMM;
#definewrite_com(LCD_DATA,LCD_COMM) write_command(LCD_DATA);write_data(LCD_COMM)
地址单元存放数据。可如下等效:
__IO uint16_t *addr;
addr = (__IO uint16_t *) Bank1_LCD_C;
*addr = index;
建议你下载一个驱动人生,自动扫描,看能不能解决
标签:stm32,fsmc,SSD1289