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.
Dependents: DISCO_L4R9I-LCD-demo
Exported Functions
[STM32L4R9I_DISCOVERY Common]
Functions | |
__weak void | BSP_ErrorHandler (void) |
Error Handler. | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32L4R9I DISCOVERY BSP Driver revision. | |
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. | |
void | BSP_COM_Init (COM_TypeDef COM, UART_HandleTypeDef *huart) |
Configures COM port. | |
void | BSP_COM_DeInit (COM_TypeDef COM, UART_HandleTypeDef *huart) |
DeInit COM port. |
Function Documentation
void BSP_COM_DeInit | ( | COM_TypeDef | COM, |
UART_HandleTypeDef * | huart | ||
) |
DeInit COM port.
- Parameters:
-
COM,: COM port to be configured. This parameter can be one of the following values: - COM1
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
Definition at line 478 of file stm32l4r9i_discovery.c.
void BSP_COM_Init | ( | COM_TypeDef | COM, |
UART_HandleTypeDef * | huart | ||
) |
Configures COM port.
- Parameters:
-
COM,: COM port to be configured. This parameter can be one of the following values: - COM1
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
Definition at line 440 of file stm32l4r9i_discovery.c.
__weak void BSP_ErrorHandler | ( | void | ) |
Error Handler.
- Note:
- Defined as a weak function to be overwritten by the application.
- Return values:
-
None
Definition at line 184 of file stm32l4r9i_discovery.c.
uint32_t BSP_GetVersion | ( | void | ) |
This method returns the STM32L4R9I DISCOVERY BSP Driver revision.
- Return values:
-
version : 0xXYZR (8bits for each decimal, R for RC)
Definition at line 193 of file stm32l4r9i_discovery.c.
void BSP_JOY_DeInit | ( | void | ) |
Unonfigures all GPIOs used as buttons of the joystick.
- Return values:
-
None.
Definition at line 378 of file stm32l4r9i_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 398 of file stm32l4r9i_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 331 of file stm32l4r9i_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: - DISCO_LED1
- DISCO_LED2
- Return values:
-
None
Definition at line 250 of file stm32l4r9i_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: - DISCO_LED1
- DISCO_LED2
- Return values:
-
None
Definition at line 206 of file stm32l4r9i_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: - DISCO_LED1
- DISCO_LED2
- Return values:
-
None
Definition at line 290 of file stm32l4r9i_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: - DISCO_LED1
- DISCO_LED2
- Return values:
-
None
Definition at line 270 of file stm32l4r9i_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: - DISCO_LED1
- DISCO_LED2
- Return values:
-
None
Definition at line 310 of file stm32l4r9i_discovery.c.
Generated on Wed Jul 13 2022 19:15:17 by
