modtrezorui: extract fsmc constants

This commit is contained in:
Pavol Rusnak 2017-03-17 17:43:22 +01:00
parent 4b301cd288
commit 7edc688180
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 6 additions and 2 deletions

View File

@ -10,8 +10,12 @@
#define DISPLAY_ILI9341V 0
#define DISPLAY_ST7789V 1
#define CMD(X) (*((__IO uint8_t *)((uint32_t)(0x60000000))) = (X))
#define DATA(X) (*((__IO uint8_t *)((uint32_t)(0x60000000 | 0x10000))) = (X))
// FSMC Bank 1 - NOR/PSRAM 1
#define DISPLAY_FSMC_BASE 0x60000000
#define DISPLAY_FSMC_DC_PIN 0x10000
#define CMD(X) (*((__IO uint8_t *)((uint32_t)(DISPLAY_FSMC_BASE))) = (X))
#define DATA(X) (*((__IO uint8_t *)((uint32_t)(DISPLAY_FSMC_BASE | DISPLAY_FSMC_DC_PIN))) = (X))
static TIM_HandleTypeDef TIM1_Handle;