STM32L476G-Discovery BSP User Manual
|
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.
References __STM32L476G_DISCOVERY_BSP_VERSION.
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.
References JOY_PIN, JOY_PORT, JOY_SEL, JOYn, and JOYx_GPIO_CLK_ENABLE.
JOYState_TypeDef BSP_JOY_GetState | ( | void | ) |
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.
References JOY_IRQn, JOY_MODE_EXTI, JOY_MODE_GPIO, JOY_PIN, JOY_PORT, JOY_SEL, JOYn, and JOYx_GPIO_CLK_ENABLE.
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
Definition at line 383 of file stm32l476g_discovery.c.
References LED_PIN, LED_PORT, and LEDx_GPIO_CLK_ENABLE.
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
Definition at line 346 of file stm32l476g_discovery.c.
References LED_PIN, LED_PORT, and LEDx_GPIO_CLK_ENABLE.
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
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
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
Definition at line 458 of file stm32l476g_discovery.c.
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.
References BATTERY_DETECTION_GPIO_CLK_ENABLE, BATTERY_DETECTION_GPIO_PORT, BATTERY_DETECTION_PIN, SUPPLY_MODE_BATTERY, SUPPLY_MODE_ERROR, and SUPPLY_MODE_EXTERNAL.
Generated on Tue Jun 23 2015 17:15:45 for STM32L476G-Discovery BSP User Manual by 1.7.6.1