|
HRI board firmware
v2.1
Microcontroller firmware of the board used during the HRI labs.
|
Macros | |
| #define | BOARD_BUTTON_PORT GPIOE |
| #define | BOARD_BUTTON_PIN GPIO_Pin_2 |
| #define | USER_BUTTON_IRQ_CHANNEL EXTI2_IRQn |
| #define | USER_BUTTON_IRQ_LINE EXTI_Line2 |
| #define | USER_BUTTON_IRQ_PINSOURCE EXTI_PinSource2 |
| #define | USER_BUTTON_IRQ_SOURCE EXTI_PortSourceGPIOE |
Functions | |
| void | but_Init (void(*stateChangedCallback)(bool)) |
| Initializes the button module. More... | |
| bool | but_GetState (void) |
| Gets the current state of the user button. More... | |
| void | EXTI2_IRQHandler (void) |
| Calls the user button callback function. More... | |
Variables | |
| void(* | userButtonStateChangedCallback )(bool) |
| Function called when the button state changes. The bool parameter is true if the button was released. More... | |
| #define BOARD_BUTTON_PIN GPIO_Pin_2 |
| #define BOARD_BUTTON_PORT GPIOE |
| #define USER_BUTTON_IRQ_CHANNEL EXTI2_IRQn |
| #define USER_BUTTON_IRQ_LINE EXTI_Line2 |
| #define USER_BUTTON_IRQ_PINSOURCE EXTI_PinSource2 |
| #define USER_BUTTON_IRQ_SOURCE EXTI_PortSourceGPIOE |
| void EXTI2_IRQHandler | ( | void | ) |
Calls the user button callback function.
| void(* userButtonStateChangedCallback) (bool) |
Function called when the button state changes. The bool parameter is true if the button was released.
1.8.13