Add temporary LCD code
This commit is contained in:
@@ -21,4 +21,14 @@
|
||||
#ifndef __LCD_H__
|
||||
#define __LCD_H__
|
||||
|
||||
#define LCD_DPORT (GPIOD)
|
||||
#define LCD_RCC_MASK RCC_AHB1ENR_GPIODEN
|
||||
#define LCD_DATA_BIT_OFFSET (8)
|
||||
#define LCD_RS (6)
|
||||
#define LCD_E (7)
|
||||
|
||||
#define LCD_DATA_MASK (0xFU << LCD_DATA_BIT_OFFSET)
|
||||
#define LCD_RS_MASK (1U << LCD_RS)
|
||||
#define LCD_E_MASK (1U << LCD_E)
|
||||
|
||||
#endif /* __LCD_H__ */
|
||||
|
Reference in New Issue
Block a user