#ifndef __gpio_H #define __gpio_H #include "stm32f3xx_hal.h" // Define button push #define SW_D_Pin GPIO_PIN_4 #define SW_D_GPIO_Port GPIOA #define SW_B_Pin GPIO_PIN_5 #define SW_B_GPIO_Port GPIOA #define SW_A_Pin GPIO_PIN_6 #define SW_A_GPIO_Port GPIOA #define SW_C_Pin GPIO_PIN_7 #define SW_C_GPIO_Port GPIOA #define SW_BTN_Pin GPIO_PIN_0 #define SW_BTN_GPIO_Port GPIOB #define SW_BTN SW_BTN_GPIO_Port , SW_BTN_Pin #define LED_PIN GPIO_PIN_6 #define LED_GPIO_Port GPIOB #define LED LED_GPIO_Port, LED_PIN void gpio_init(void); void gpio_led_blueblink(uint8_t num_blinks); #endif