BSP_DISCO_L4R9I
Dependents: DISCO_L4R9I-LCD-demo
Diff: Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c
- Revision:
- 1:2105b8894450
- Parent:
- 0:31ddfafdd3da
diff -r 31ddfafdd3da -r 2105b8894450 Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c --- a/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c Fri Nov 22 16:43:39 2019 +0100 +++ b/Drivers/BSP/STM32L4R9I-Discovery/stm32l4r9i_discovery.c Tue Nov 26 14:35:07 2019 +0100 @@ -199,15 +199,15 @@ * @brief Configures LED GPIOs. * @param Led: Specifies the Led to be configured. * This parameter can be one of following parameters: - * @arg LED1 - * @arg LED2 + * @arg DISCO_LED1 + * @arg DISCO_LED2 * @retval None */ void BSP_LED_Init(Led_TypeDef Led) { GPIO_InitTypeDef GPIO_InitStructure; - if (Led == LED2) + if (Led == DISCO_LED2) { /* Enable the GPIO_LED clock */ LED2_GPIO_CLK_ENABLE(); @@ -243,13 +243,13 @@ * @brief Unconfigures LED GPIOs. * @param Led: Specifies the Led to be unconfigured. * This parameter can be one of following parameters: - * @arg LED1 - * @arg LED2 + * @arg DISCO_LED1 + * @arg DISCO_LED2 * @retval None */ void BSP_LED_DeInit(Led_TypeDef Led) { - if (Led == LED2) + if (Led == DISCO_LED2) { /* Enable the GPIO_LED clock */ LED2_GPIO_CLK_ENABLE(); @@ -263,13 +263,13 @@ * @brief Turns selected LED On. * @param Led: Specifies the Led to be set on. * This parameter can be one of following parameters: - * @arg LED1 - * @arg LED2 + * @arg DISCO_LED1 + * @arg DISCO_LED2 * @retval None */ void BSP_LED_On(Led_TypeDef Led) { - if (Led == LED2) + if (Led == DISCO_LED2) { HAL_GPIO_WritePin(LED2_GPIO_PORT, LED_PIN[Led], GPIO_PIN_RESET); } @@ -283,13 +283,13 @@ * @brief Turns selected LED Off. * @param Led: Specifies the Led to be set off. * This parameter can be one of following parameters: - * @arg LED1 - * @arg LED2 + * @arg DISCO_LED1 + * @arg DISCO_LED2 * @retval None */ void BSP_LED_Off(Led_TypeDef Led) { - if (Led == LED2) + if (Led == DISCO_LED2) { HAL_GPIO_WritePin(LED2_GPIO_PORT, LED_PIN[Led], GPIO_PIN_SET); } @@ -303,13 +303,13 @@ * @brief Toggles the selected LED. * @param Led: Specifies the Led to be toggled. * This parameter can be one of following parameters: - * @arg LED1 - * @arg LED2 + * @arg DISCO_LED1 + * @arg DISCO_LED2 * @retval None */ void BSP_LED_Toggle(Led_TypeDef Led) { - if (Led == LED2) + if (Led == DISCO_LED2) { HAL_GPIO_TogglePin(LED2_GPIO_PORT, LED_PIN[Led]); }