move static declaration for switch_antenna to the header
This commit is contained in:
parent
a2434cc698
commit
9b45e276cc
2 changed files with 5 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ void initVariant()
|
|||
led_pwm_init(LED_RGB_GREEN_IDX, LED_RGB_GREEN_PIN);
|
||||
}
|
||||
|
||||
static void switch_antenna(bool useExternal) {
|
||||
void switch_antenna(bool useExternal) {
|
||||
if (useExternal) {
|
||||
digitalWrite(ANTENNA_SWITCH_1, LOW);
|
||||
digitalWrite(ANTENNA_SWITCH_2, HIGH);
|
||||
|
|
|
|||
|
|
@ -186,7 +186,9 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
|
|||
#define USB_MSC_BLOCK_SIZE 512
|
||||
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
|
||||
|
||||
void switch_antenna(bool useExternal);
|
||||
#define EXTERNAL_FLASH_USE_QSPI
|
||||
|
||||
static void switch_antenna(bool useExternal);
|
||||
|
||||
// led pwm
|
||||
void led_pwm_init(uint32_t led_index, uint32_t led_pin);
|
||||
|
|
@ -196,7 +198,7 @@ void pwm_teardown(NRF_PWM_Type* pwm);
|
|||
void ledWrite(uint32_t led_pin, uint8_t value);
|
||||
void rgbLedWrite(uint8_t red, uint8_t green, uint8_t blue);
|
||||
static uint16_t led_duty_cycles[PWM0_CH_NUM] = { 0 };
|
||||
#define EXTERNAL_FLASH_USE_QSPI
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue