Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CMSIS_STM32L4xx CMSIS_DSP_401 STM32L4xx_HAL_Driver
Exported Functions
[STM32L476G-DISCOVERY Common]
Functions | |
| uint32_t | BSP_GetVersion (void) |
| This method returns the STM32L476 DISCOVERY BSP Driver revision. | |
| SupplyMode_TypeDef | BSP_SupplyModeDetection (void) |
| This method returns the STM32L476 DISCOVERY supply mode. | |
| void | BSP_LED_Init (Led_TypeDef Led) |
| Configures LED GPIOs. | |
| void | BSP_LED_DeInit (Led_TypeDef Led) |
| Unconfigures LED GPIOs. | |
| void | BSP_LED_On (Led_TypeDef Led) |
| Turns selected LED On. | |
| void | BSP_LED_Off (Led_TypeDef Led) |
| Turns selected LED Off. | |
| void | BSP_LED_Toggle (Led_TypeDef Led) |
| Toggles the selected LED. | |
| uint8_t | BSP_JOY_Init (JOYMode_TypeDef Joy_Mode) |
| Configures all buttons of the joystick in GPIO or EXTI modes. | |
| void | BSP_JOY_DeInit (void) |
| Unonfigures all GPIOs used as buttons of the joystick. | |
| JOYState_TypeDef | BSP_JOY_GetState (void) |
| Returns the current joystick status. | |
Function Documentation
| uint32_t BSP_GetVersion | ( | void | ) |
This method returns the STM32L476 DISCOVERY BSP Driver revision.
- Return values:
-
version : 0xXYZR (8bits for each decimal, R for RC)
Definition at line 286 of file stm32l476g_discovery.c.
| void BSP_JOY_DeInit | ( | void | ) |
Unonfigures all GPIOs used as buttons of the joystick.
- Return values:
-
None.
Definition at line 512 of file stm32l476g_discovery.c.
| JOYState_TypeDef BSP_JOY_GetState | ( | void | ) |
Returns the current joystick status.
- Return values:
-
Code of the joystick key pressed This code can be one of the following values: - JOY_NONE
- JOY_SEL
- JOY_DOWN
- JOY_LEFT
- JOY_RIGHT
- JOY_UP
Definition at line 537 of file stm32l476g_discovery.c.
| uint8_t BSP_JOY_Init | ( | JOYMode_TypeDef | Joy_Mode ) |
Configures all buttons of the joystick in GPIO or EXTI modes.
- Parameters:
-
Joy_Mode,: Joystick mode. This parameter can be one of the following values: - JOY_MODE_GPIO: Joystick pins will be used as simple IOs
- JOY_MODE_EXTI: Joystick pins will be connected to EXTI line with interrupt generation capability
- Return values:
-
HAL_OK,: if all initializations are OK. Other value if error.
Definition at line 472 of file stm32l476g_discovery.c.
| void BSP_LED_DeInit | ( | Led_TypeDef | Led ) |
Unconfigures LED GPIOs.
- Parameters:
-
Led,: Specifies the Led to be unconfigured. This parameter can be one of following parameters: - LED4
- LED5
- Return values:
-
None Unconfigures LED GPIOs.
- Parameters:
-
Led,: Specifies the Led to be unconfigured. This parameter can be one of following parameters: - LED3
- LED4
- Return values:
-
None
Definition at line 383 of file stm32l476g_discovery.c.
| void BSP_LED_Init | ( | Led_TypeDef | Led ) |
Configures LED GPIOs.
- Parameters:
-
Led,: Specifies the Led to be configured. This parameter can be one of following parameters: - LED4
- LED5
- Return values:
-
None Configures LED GPIOs.
- Parameters:
-
Led,: Specifies the Led to be configured. This parameter can be one of following parameters: - LED3
- LED4
- Return values:
-
None
Definition at line 346 of file stm32l476g_discovery.c.
| void BSP_LED_Off | ( | Led_TypeDef | Led ) |
Turns selected LED Off.
- Parameters:
-
Led,: Specifies the Led to be set off. This parameter can be one of following parameters: - LED4
- LED5
- Return values:
-
None Turns selected LED Off.
- Parameters:
-
Led,: Specifies the Led to be set off. This parameter can be one of following parameters: - LED3
- LED4
- Return values:
-
None
Definition at line 434 of file stm32l476g_discovery.c.
| void BSP_LED_On | ( | Led_TypeDef | Led ) |
Turns selected LED On.
- Parameters:
-
Led,: Specifies the Led to be set on. This parameter can be one of following parameters: - LED4
- LED5
- Return values:
-
None Turns selected LED On.
- Parameters:
-
Led,: Specifies the Led to be set on. This parameter can be one of following parameters: - LED3
- LED4
- Return values:
-
None
Definition at line 410 of file stm32l476g_discovery.c.
| void BSP_LED_Toggle | ( | Led_TypeDef | Led ) |
Toggles the selected LED.
- Parameters:
-
Led,: Specifies the Led to be toggled. This parameter can be one of following parameters: - LED4
- LED5
- Return values:
-
None Toggles the selected LED.
- Parameters:
-
Led,: Specifies the Led to be toggled. This parameter can be one of following parameters: - LED3
- LED4
- Return values:
-
None
Definition at line 458 of file stm32l476g_discovery.c.
| SupplyMode_TypeDef BSP_SupplyModeDetection | ( | void | ) |
This method returns the STM32L476 DISCOVERY supply mode.
- Return values:
-
Code of current supply mode This code can be one of following: - SUPPLY_MODE_EXTERNAL
- SUPPLY_MODE_BATTERY
Definition at line 298 of file stm32l476g_discovery.c.
Generated on Wed Jul 13 2022 02:20:53 by
1.7.2