STM324xG_EVAL BSP User Manual
|
Functions | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM324xG EVAL BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configures LED GPIO. | |
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. | |
void | BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef Button_Mode) |
Configures button GPIO and EXTI Line. | |
uint32_t | BSP_PB_GetState (Button_TypeDef Button) |
Returns the selected button state. | |
void | BSP_COM_Init (COM_TypeDef COM, UART_HandleTypeDef *huart) |
Configures COM port. | |
uint8_t | BSP_JOY_Init (JOYMode_TypeDef Joy_Mode) |
Configures joystick GPIO and EXTI modes. | |
JOYState_TypeDef | BSP_JOY_GetState (void) |
Returns the current joystick status. |
Function Documentation
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
- COM2
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
Definition at line 377 of file stm324xg_eval.c.
References COM_RX_AF, COM_RX_PIN, COM_RX_PORT, COM_TX_AF, COM_TX_PIN, COM_TX_PORT, COM_USART, EVAL_COMx_CLK_ENABLE, EVAL_COMx_RX_GPIO_CLK_ENABLE, and EVAL_COMx_TX_GPIO_CLK_ENABLE.
uint32_t BSP_GetVersion | ( | void | ) |
This method returns the STM324xG EVAL BSP Driver revision.
- Return values:
-
version,: 0xXYZR (8bits for each decimal, R for RC)
Definition at line 217 of file stm324xg_eval.c.
References __STM324xG_EVAL_BSP_VERSION.
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 444 of file stm324xg_eval.c.
References BSP_IO_ReadPin(), JOY_ALL_PINS, JOY_DOWN, JOY_DOWN_PIN, JOY_LEFT, JOY_LEFT_PIN, JOY_NONE, JOY_NONE_PIN, JOY_RIGHT, JOY_RIGHT_PIN, JOY_SEL, JOY_SEL_PIN, JOY_UP, and JOY_UP_PIN.
uint8_t BSP_JOY_Init | ( | JOYMode_TypeDef | Joy_Mode | ) |
Configures joystick GPIO and EXTI modes.
- Parameters:
-
Joy_Mode,: Button 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:
-
IO_OK,: if all initializations are OK. Other value if error.
Definition at line 416 of file stm324xg_eval.c.
References BSP_IO_ConfigPin(), BSP_IO_Init(), JOY_ALL_PINS, and JOY_MODE_EXTI.
void BSP_LED_Init | ( | Led_TypeDef | Led | ) |
Configures LED GPIO.
- Parameters:
-
Led,: LED to be configured. This parameter can be one of the following values: - LED1
- LED2
- LED3
- LED4
Definition at line 231 of file stm324xg_eval.c.
References GPIO_PIN, GPIO_PORT, and LEDx_GPIO_CLK_ENABLE.
void BSP_LED_Off | ( | Led_TypeDef | Led | ) |
Turns selected LED Off.
- Parameters:
-
Led,: LED to be set off This parameter can be one of the following values: - LED1
- LED2
- LED3
- LED4
Definition at line 270 of file stm324xg_eval.c.
void BSP_LED_On | ( | Led_TypeDef | Led | ) |
Turns selected LED On.
- Parameters:
-
Led,: LED to be set on This parameter can be one of the following values: - LED1
- LED2
- LED3
- LED4
Definition at line 256 of file stm324xg_eval.c.
void BSP_LED_Toggle | ( | Led_TypeDef | Led | ) |
Toggles the selected LED.
- Parameters:
-
Led,: LED to be toggled This parameter can be one of the following values: - LED1
- LED2
- LED3
- LED4
Definition at line 284 of file stm324xg_eval.c.
uint32_t BSP_PB_GetState | ( | Button_TypeDef | Button | ) |
Returns the selected button state.
- Parameters:
-
Button,: Button to be checked This parameter can be one of the following values: - BUTTON_WAKEUP: Wakeup Push Button
- BUTTON_TAMPER: Tamper Push Button
- BUTTON_KEY: Key Push Button
- BUTTON_RIGHT: Joystick Right Push Button
- BUTTON_LEFT: Joystick Left Push Button
- BUTTON_UP: Joystick Up Push Button
- BUTTON_DOWN: Joystick Down Push Button
- BUTTON_SEL: Joystick Sel Push Button
- Return values:
-
The Button GPIO pin value
Definition at line 363 of file stm324xg_eval.c.
References BUTTON_PIN, and BUTTON_PORT.
void BSP_PB_Init | ( | Button_TypeDef | Button, |
ButtonMode_TypeDef | Button_Mode | ||
) |
Configures button GPIO and EXTI Line.
- Parameters:
-
Button,: Button to be configured This parameter can be one of the following values: - BUTTON_WAKEUP: Wakeup Push Button
- BUTTON_TAMPER: Tamper Push Button
- BUTTON_KEY: Key Push Button
- BUTTON_RIGHT: Joystick Right Push Button
- BUTTON_LEFT: Joystick Left Push Button
- BUTTON_UP: Joystick Up Push Button
- BUTTON_DOWN: Joystick Down Push Button
- BUTTON_SEL: Joystick Sel Push Button
Button_Mode,: Button mode This parameter can be one of the following values: - BUTTON_MODE_GPIO: Button will be used as simple IO
- BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
Definition at line 307 of file stm324xg_eval.c.
References BUTTON_IRQn, BUTTON_MODE_EXTI, BUTTON_MODE_GPIO, BUTTON_PIN, BUTTON_PORT, BUTTON_WAKEUP, and BUTTONx_GPIO_CLK_ENABLE.
Generated on Fri Jan 15 2016 14:22:30 for STM324xG_EVAL BSP User Manual by
