STM32F10x library
lcd_io_pindef.h
1 // example lcd_io_pindef.h
2 
3 #define LCD_RW_PORT GPIOC
4 #define LCD_RS_PORT GPIOC
5 #define LCD_EN_PORT GPIOC
6 #define LCD_D0_PORT GPIOC
7 #define LCD_D1_PORT GPIOC
8 #define LCD_D2_PORT GPIOC
9 #define LCD_D3_PORT GPIOC
10 #define LCD_D4_PORT GPIOC
11 #define LCD_D5_PORT GPIOC
12 #define LCD_D6_PORT GPIOC
13 #define LCD_D7_PORT GPIOC
14 #define LCD_BL_PORT GPIOC
15 
16 #define LCD_RW_BIT GPIO_Pin_0
17 #define LCD_RS_BIT GPIO_Pin_1
18 #define LCD_EN_BIT GPIO_Pin_2
19 #define LCD_D0_BIT GPIO_Pin_3
20 #define LCD_D1_BIT GPIO_Pin_4
21 #define LCD_D2_BIT GPIO_Pin_5
22 #define LCD_D3_BIT GPIO_Pin_6
23 #define LCD_D4_BIT GPIO_Pin_7
24 #define LCD_D5_BIT GPIO_Pin_8
25 #define LCD_D6_BIT GPIO_Pin_9
26 #define LCD_D7_BIT GPIO_Pin_10
27 #define LCD_BL_BIT GPIO_Pin_11