Skip to content

Commit e6ac0d1

Browse files
committed
Import bk4819 changes
1 parent eda199d commit e6ac0d1

File tree

7 files changed

+238
-167
lines changed

7 files changed

+238
-167
lines changed

app/aircopy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void AIRCOPY_SendMessage(void)
5757

5858
BK4819_SendFSKData(g_FSK_Buffer);
5959
BK4819_SetupPowerAmplifier(0, 0);
60-
BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29, false);
60+
BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29_PA_ENABLE, false);
6161

6262
gAircopySendCountdown = 30;
6363
}

app/app.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ void APP_Update(void)
10901090

10911091
BK4819_DisableVox();
10921092
BK4819_Sleep();
1093-
BK4819_ToggleGpioOut(BK4819_GPIO0_PIN28, false);
1093+
BK4819_ToggleGpioOut(BK4819_GPIO0_PIN28_RX_ENABLE, false);
10941094

10951095
// Authentic device checked removed
10961096

@@ -1338,7 +1338,7 @@ void APP_TimeSlice10ms(void)
13381338

13391339
RADIO_EnableCxCSS();
13401340
BK4819_SetupPowerAmplifier(0, 0);
1341-
BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29, false);
1341+
BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29_PA_ENABLE, false);
13421342
BK4819_Enable_AfDac_DiscMode_TxDsp();
13431343
BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, false);
13441344

driver/bk4819-regs.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ enum BK4819_REGISTER_t {
9595
typedef enum BK4819_REGISTER_t BK4819_REGISTER_t;
9696

9797
enum BK4819_GPIO_PIN_t {
98-
BK4819_GPIO0_PIN28 = 0,
99-
BK4819_GPIO1_PIN29 = 1,
100-
BK4819_GPIO3_PIN31 = 3,
101-
BK4819_GPIO4_PIN32 = 4,
102-
BK4819_GPIO5_PIN1_RED = 5,
98+
BK4819_GPIO0_PIN28_RX_ENABLE = 0,
99+
BK4819_GPIO1_PIN29_PA_ENABLE = 1,
100+
BK4819_GPIO3_PIN31_UHF_LNA = 3,
101+
BK4819_GPIO4_PIN32_VHF_LNA = 4,
102+
BK4819_GPIO5_PIN1_RED = 5,
103103
BK4819_GPIO6_PIN2_GREEN = 6,
104104
};
105105

0 commit comments

Comments
 (0)