2019-05-01 12:26 AM
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;
2019-05-07 3:36 AM
Hi @jfolsom ,
The typedef GPIO_PinState isn't required in stm32l1xx_hal_gpio.c, so there is no need to declare it.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.