Files
@ cc569dddb24e
Branch filter:
Location: FeatherHAB/wsprhab/inc/gpio.h - annotation
cc569dddb24e
777 B
text/plain
Thinks kinda work if we clear the wakeup flags and enable debugging in STOP mode... power usage went up a lot with debug in stop though.
0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 659774b354b1 659774b354b1 659774b354b1 659774b354b1 dda4d4df3034 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 = 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
|