本帖最后由 Morton 于 2020-8-4 17:11 编辑
已經自己找到答案了:
#define LCD_CMD_O (*((volatile uint32_t *) (PD_BASE + 0x08)))
#define LCD_CMD_I (*((volatile uint32_t *) (PD_BASE + 0x10)))
volatile uint32_t LCD_CMD;
...
LCD_CMD = LCD_CMD_I & 0x0FFFFFF00;
LCD_CMD_O = LCD_CMD | 0x38; // 5*8 dot ,2 line and 8 bit mode
|