Files
@ c204b66d229e
Branch filter:
Location: therm-ng/inc/system/gpio.h - annotation
c204b66d229e
877 B
text/plain
Disable LTO, was preventing successful run
667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f 667b32311f8f | #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_RIGHT SW_D_GPIO_Port, SW_D_Pin
#define SW_B_Pin GPIO_PIN_5
#define SW_B_GPIO_Port GPIOA
#define SW_UP SW_B_GPIO_Port, SW_B_Pin
#define SW_A_Pin GPIO_PIN_6
#define SW_A_GPIO_Port GPIOA
#define SW_LEFT SW_A_GPIO_Port, SW_A_Pin
#define SW_C_Pin GPIO_PIN_7
#define SW_C_GPIO_Port GPIOA
#define SW_DOWN SW_C_GPIO_Port, SW_C_Pin
#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 user_input(uint16_t* to_modify);
void user_input_signed(int32_t* to_modify);
void gpio_init(void);
void gpio_led_blueblink(uint8_t num_blinks);
#endif
|