CARME-M4 BSP  V1.5
ssd1963_lld.c
Go to the documentation of this file.
1 
73 #ifdef __cplusplus
74 extern "C" {
75 #endif /* __cplusplus */
76 
77 /*----- Header-Files -------------------------------------------------------*/
78 #include <stdint.h> /* Standard integer formats */
79 #include <carme.h>
80 
81 /*----- Macros -------------------------------------------------------------*/
85 #define GUI_GPIO_BACKLIGHT GPIOH, GPIO_Pin_10
86 
87 /*----- Data types ---------------------------------------------------------*/
94 };
95 
96 /*----- Function prototypes ------------------------------------------------*/
97 
98 /*----- Data ---------------------------------------------------------------*/
99 
100 /*----- Implementation -----------------------------------------------------*/
109 void SSD1963_LLD_Init(void) {
110 
111  GPIO_InitTypeDef GPIO_InitStruct;
112 
113  GPIO_InitStruct.GPIO_Speed = GPIO_Fast_Speed;
114  GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF;
115  GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_NOPULL;
116  GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
117 
118  CARME_GPIO_Init(LCD_Port_Pin, &GPIO_InitStruct,
119  sizeof(LCD_Port_Pin) / sizeof(CARME_Port_Pin_t));
120 
122 }
123 
124 #ifdef __cplusplus
125 }
126 #endif /* __cplusplus */
127 
GPIOOType_TypeDef GPIO_OType
void SSD1963_LLD_Init(void)
Initialize the communication interface to the SSD1963 LCD- Controller.
Definition: ssd1963_lld.c:109
GPIOSpeed_TypeDef GPIO_Speed
GPIOPuPd_TypeDef GPIO_PuPd
void CARME_GPIO_Init(CARME_Port_Pin_t *pPortPinAssociation, GPIO_InitTypeDef *pGPIO_InitStruct, uint8_t size)
Initialize GPIO ports with a CARME_Port_Pin_t table.
Definition: carme.c:540
static CARME_Port_Pin_t LCD_Port_Pin[]
LCD Port and Pin association.
Definition: ssd1963_lld.c:91
CARME port and pin association structure.
Definition: carme.h:245
void GPIO_WriteBit(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal)
Sets or clears the selected data port bit.
GPIOMode_TypeDef GPIO_Mode
GPIO Init structure definition.
#define GUI_GPIO_BACKLIGHT
LCD Background light GPIO.
Definition: ssd1963_lld.c:85
#define CARME_AGPIO_9
Definition: carme.h:91