Urbanite: Parking aid system
stm32f4_button.h File Reference

Header for stm32f4_button.c file. More...

#include <stdint.h>
#include "stm32f4xx.h"

Macros

#define STM32F4_PARKING_BUTTON_GPIO
 
#define STM32F4_PARKING_BUTTON_PIN
 

Functions

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...
 

Detailed Description

Header for stm32f4_button.c file.

Author
Sistemas Digitales II
Date
2025-01-01

Macro Definition Documentation

◆ STM32F4_PARKING_BUTTON_GPIO

#define STM32F4_PARKING_BUTTON_GPIO

Button GPIO port

◆ STM32F4_PARKING_BUTTON_PIN

#define STM32F4_PARKING_BUTTON_PIN

Button GPIO pin

Function Documentation

◆ 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_idID of the button to change.
p_portNew GPIO port for the button.
pinNew GPIO pin for the button.