Skip to content

Commit 9b45e27

Browse files
committed
move static declaration for switch_antenna to the header
1 parent a2434cc commit 9b45e27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

variants/particle_xenon/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void initVariant()
6363
led_pwm_init(LED_RGB_GREEN_IDX, LED_RGB_GREEN_PIN);
6464
}
6565

66-
static void switch_antenna(bool useExternal) {
66+
void switch_antenna(bool useExternal) {
6767
if (useExternal) {
6868
digitalWrite(ANTENNA_SWITCH_1, LOW);
6969
digitalWrite(ANTENNA_SWITCH_2, HIGH);

variants/particle_xenon/variant.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
186186
#define USB_MSC_BLOCK_SIZE 512
187187
#define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE)
188188

189-
void switch_antenna(bool useExternal);
189+
#define EXTERNAL_FLASH_USE_QSPI
190+
191+
static void switch_antenna(bool useExternal);
190192

191193
// led pwm
192194
void led_pwm_init(uint32_t led_index, uint32_t led_pin);
@@ -196,7 +198,7 @@ void pwm_teardown(NRF_PWM_Type* pwm);
196198
void ledWrite(uint32_t led_pin, uint8_t value);
197199
void rgbLedWrite(uint8_t red, uint8_t green, uint8_t blue);
198200
static uint16_t led_duty_cycles[PWM0_CH_NUM] = { 0 };
199-
#define EXTERNAL_FLASH_USE_QSPI
201+
200202

201203
#ifdef __cplusplus
202204
}

0 commit comments

Comments
 (0)