YALI
Yet Another LCD Interface
stm32-libopencm3-conf.h
Go to the documentation of this file.
1 
30 #ifndef __UNI_LCD_LIB_STM32_LIBOCM3_HEADER__
31 #define __UNI_LCD_LIB_STM32_LIBOCM3_HEADER__
32 
33 #include <libopencm3/stm32/rcc.h>
34 #include <libopencm3/stm32/gpio.h>
35 
36 #include "stm32_delay.h"
37 
41 #define STM32_LIBOPENCM3 1
42 
46 #define SHIFTREG_PORT GPIOA
50 #define SHIFTREG_AHB RCC_GPIOA
51 
55 #define SHIFTREG_CLK_PIN GPIO0
59 #define SHIFTREG_DATA_PIN GPIO1
63 #define SHIFTREG_LATCH_PIN GPIO2
64 
65 // Data type and constant mappings.
69 #define UCHAR unsigned char
73 #define CHAR char
77 #define VOID void
78 
82 #define MAX_STR_LEN 16
83 
84 // Delay function mappings.
88 #define DELAY_LONG() delayMiliSec(10)
92 #define DELAY_SHORT() delayMicroSec(50)
93 
94 #endif /* __UNI_LCD_LIB_STM32_LIBOCM3_HEADER__ */