Skip to content

Commit c44a185

Browse files
committed
[RADIOLIB] build infra for most recent Semtech LR2021 radio
1 parent 87b9e4a commit c44a185

File tree

16 files changed

+1055
-12
lines changed

16 files changed

+1055
-12
lines changed

software/firmware/source/SoftRF/src/driver/GNSS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,7 @@ byte GNSS_setup() {
13521352
hw_info.model == SOFTRF_MODEL_DECENT ||
13531353
hw_info.model == SOFTRF_MODEL_NEO ||
13541354
hw_info.model == SOFTRF_MODEL_SOLARIS ||
1355+
hw_info.model == SOFTRF_MODEL_POCKET ||
13551356
hw_info.model == SOFTRF_MODEL_AIRVENTURE)
13561357
{
13571358
// power on by wakeup call

software/firmware/source/SoftRF/src/driver/RF.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ byte RF_setup(void)
111111
} else if (lr1121_ops.probe()) {
112112
rf_chip = &lr1121_ops;
113113
#endif /* EXCLUDE_LR11XX */
114+
#if 0 // !defined(EXCLUDE_LR20XX)
115+
} else if (lr2021_ops.probe()) {
116+
rf_chip = &lr2021_ops;
117+
#endif /* EXCLUDE_LR20XX */
114118
#if !defined(EXCLUDE_SX1280)
115119
} else if (sx1280_ops.probe()) {
116120
rf_chip = &sx1280_ops;

software/firmware/source/SoftRF/src/driver/RF.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ enum
8989
RF_IC_SX1280,
9090
RF_IC_SI4432,
9191
RF_IC_SI4463,
92+
RF_IC_LR2021,
9293
};
9394

9495
enum
@@ -186,6 +187,7 @@ extern const rfchip_ops_t cc1101_ops;
186187
extern const rfchip_ops_t sx1280_ops;
187188
extern const rfchip_ops_t sx1231_ops;
188189
extern const rfchip_ops_t si4432_ops;
190+
extern const rfchip_ops_t lr2021_ops;
189191
#endif /* USE_RADIOLIB */
190192

191193
#if defined(USE_RADIOHEAD)

0 commit comments

Comments
 (0)