Files
@ 779c7da65f38
Branch filter:
Location: FeatherHAB/wsprhab/inc/gpio.h - annotation
779c7da65f38
776 B
text/plain
Fix deinitting things that aren't initted
0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 659774b354b1 659774b354b1 659774b354b1 659774b354b1 659774b354b1 50cc79d449a4 659774b354b1 659774b354b1 0d9900312165 0d9900312165 0d9900312165 0d9900312165 aa624684a65e aa624684a65e aa624684a65e aa624684a65e 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0dd5c923fdea 0dd5c923fdea 0d9900312165 0d9900312165 0d9900312165 | #ifndef __gpio_H
#define __gpio_H
#include "stm32f0xx_hal.h"
enum _blinkrate
{
BLINK_FAST = 50,
BLINK_MED = 250,
BLINK_SLOW = 500
};
#define OSC_EN_Pin GPIO_PIN_1
#define OSC_EN_GPIO_Port GPIOF
#define OSC_NOTEN OSC_EN_GPIO_Port , OSC_EN_Pin
#define GPS_NEN_Pin GPIO_PIN_0
#define GPS_NEN_GPIO_Port GPIOF
#define GPS_NOTEN GPS_NEN_GPIO_Port , GPS_NEN_Pin
#define VBATT_SENSE_Pin GPIO_PIN_6
#define VBATT_SENSE_GPIO_Port GPIOA
#define LED_BLUE_Pin GPIO_PIN_0
#define LED_BLUE_GPIO_Port GPIOB
#define LED_BLUE LED_BLUE_GPIO_Port , LED_BLUE_Pin
#define TCXO_EN_Pin GPIO_PIN_8
#define TCXO_EN_GPIO_Port GPIOA
#define TCXO_EN TCXO_EN_GPIO_Port , TCXO_EN_Pin
void gpio_init(void);
void led_blink(uint8_t n);
#endif
|