Add temporary LCD code

This commit is contained in:
2020-02-23 21:22:38 +01:00
parent c35c80ce24
commit 6965882435
2 changed files with 228 additions and 0 deletions

View File

@@ -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__ */