Question
Missing 'LL_GPIO_PinState' typedef in STM32CubeL1 (v1.8.1) low-level drivers
There are two typedefs in the 'stm32l1xx_hal_gpio.h' file: 'GPIO_InitTypeDef' and 'GPIO_PinState'. The first has a corresponding entry in the low-level drivers (stm32l1xx_ll_gpio.h), but the other one is missing.
It looks like this in the HAL file:
/**
* @brief GPIO Bit SET and Bit RESET enumeration
*/
typedef enum
{
GPIO_PIN_RESET = 0,
GPIO_PIN_SET
} GPIO_PinState;To remain consistent with the other code modules, you may wish to add the following block to 'stm32l1xx_ll_gpio.h':
/**
* @brief LL GPIO Bit SET and Bit RESET enumeration
*/
typedef enum
{
LL_GPIO_PIN_RESET = 0,
LL_GPIO_PIN_SET
} LL_GPIO_PinState;