Files
@ c5bc128e44a6
Branch filter:
Location: FeatherHAB/wsprhab/inc/gpio.h - annotation
c5bc128e44a6
681 B
text/plain
WSPR and gps now coexist, don't call jtencode_init because it inits the reed-solomon encoder that wspr doesn't even use
0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 0d9900312165 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"
#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
|