Files @ 2a60a19d0303
Branch filter:

Location: FeatherHAB/wsprhab/inc/gpio.h - annotation

Ethan Zonca
Fix encoding, add some dummy values, code compiles and might work now
#ifndef __gpio_H
#define __gpio_H

#include "stm32f0xx_hal.h"


enum _blinkrate
{
    BLINK_FAST = 50,
    BLINK_MED = 250, 
    BLINK_SLOW = 2000
};


#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