Header for stm32f4_button.c file.
More...
#include <stdint.h>
#include "stm32f4xx.h"
|
void | stm32f4_button_set_new_gpio (uint32_t button_id, GPIO_TypeDef *p_port, uint8_t pin) |
| Auxiliary function to change the GPIO and pin of a button. This function is used for testing purposes mainly although it can be used in the final implementation if needed. More...
|
|
Header for stm32f4_button.c file.
- Author
- Sistemas Digitales II
- Date
- 2025-01-01
◆ STM32F4_PARKING_BUTTON_GPIO
#define STM32F4_PARKING_BUTTON_GPIO |
◆ STM32F4_PARKING_BUTTON_PIN
#define STM32F4_PARKING_BUTTON_PIN |
◆ stm32f4_button_set_new_gpio()
void stm32f4_button_set_new_gpio |
( |
uint32_t |
button_id, |
|
|
GPIO_TypeDef * |
p_port, |
|
|
uint8_t |
pin |
|
) |
| |
Auxiliary function to change the GPIO and pin of a button. This function is used for testing purposes mainly although it can be used in the final implementation if needed.
- Parameters
-
button_id | ID of the button to change. |
p_port | New GPIO port for the button. |
pin | New GPIO pin for the button. |