Skip to content

Commit 1e28f60

Browse files
nmaas87fpistm
andcommitted
chore(variant): added RAK3172T module
Same as RAK3172 except TCXO is enabled. Signed-off-by: Nico Maas <[email protected]> Co-Authored-by: Frederic Pillon <[email protected]>
1 parent 2d54735 commit 1e28f60

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
827827
| :green_heart: | STM32F072C8<br>STM32F072CB | [Elektor LoRa Node](https://github.com/ElektorLabs/180516-Elektor_LoRa_Node) | *1.8.0* | [More info](https://www.elektormagazine.com/labs/lorawan-node-experimental-platform) |
828828
| :green_heart: | STM32WLE5JC | [LoRa-E5 mini](https://wiki.seeedstudio.com/LoRa_E5_mini/) | *2.6.0* | |
829829
| :green_heart: | STM32WLE5CC | [RAK3172 Module](https://github.com/RAKWireless/rakwireless-docs/tree/master/docs/Product-Categories/WisDuo/RAK3172-Module) | *2.6.0* | |
830+
| :yellow_heart: | STM32WLE5CC | [RAK3172T Module](https://github.com/RAKWireless/rakwireless-docs/tree/master/docs/Product-Categories/WisDuo/RAK3172-Module) | **2.8.1** | RAK3172 Module with TCXO |
830831
| :green_heart: | STM32L151CB | [RAK811 LoRa Tracker](https://www.rakwireless.com/en/) | *1.4.0* | [Wiki](https://github.com/stm32duino/Arduino_Core_STM32/wiki/Connectivities#lora) |
831832
| :green_heart: | STM32L051C8 | [RHF76-052](https://lora-alliance.org/lora_products/rhf76-052/) | *1.7.0* | Basic support |
832833

Diff for: boards.txt

+13
Original file line numberDiff line numberDiff line change
@@ -12749,6 +12749,19 @@ LoRa.menu.pnum.RAK3172_MODULE.build.variant_h=variant_RAK3172_MODULE.h
1274912749
LoRa.menu.pnum.RAK3172_MODULE.debug.server.openocd.scripts.2=target/stm32wlx.cfg
1275012750
LoRa.menu.pnum.RAK3172_MODULE.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32WLxx/STM32WLE5_CM4.svd
1275112751

12752+
# RAK3172T module
12753+
LoRa.menu.pnum.RAK3172T_MODULE=RAK3172T Module
12754+
LoRa.menu.pnum.RAK3172T_MODULE.upload.maximum_size=262144
12755+
LoRa.menu.pnum.RAK3172T_MODULE.upload.maximum_data_size=65536
12756+
LoRa.menu.pnum.RAK3172T_MODULE.build.mcu=cortex-m4
12757+
LoRa.menu.pnum.RAK3172T_MODULE.build.board=RAK3172T_MODULE
12758+
LoRa.menu.pnum.RAK3172T_MODULE.build.series=STM32WLxx
12759+
LoRa.menu.pnum.RAK3172T_MODULE.build.product_line=STM32WLE5xx
12760+
LoRa.menu.pnum.RAK3172T_MODULE.build.variant=STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U
12761+
LoRa.menu.pnum.RAK3172T_MODULE.build.variant_h=variant_RAK3172_MODULE.h
12762+
LoRa.menu.pnum.RAK3172T_MODULE.debug.server.openocd.scripts.2=target/stm32wlx.cfg
12763+
LoRa.menu.pnum.RAK3172T_MODULE.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32WLxx/STM32WLE5_CM4.svd
12764+
1275212765
# RAK811_TRACKER board
1275312766
LoRa.menu.pnum.RAK811_TRACKER=RAK811 LoRa Tracker (16kb RAM)
1275412767
LoRa.menu.pnum.RAK811_TRACKER.upload.maximum_size=131072

Diff for: variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_RAK3172_MODULE.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*******************************************************************************
1212
*/
13-
#if defined(ARDUINO_RAK3172_MODULE)
13+
#if defined(ARDUINO_RAK3172_MODULE) || defined(ARDUINO_RAK3172T_MODULE)
1414
#include "pins_arduino.h"
1515

1616
// Digital PinName array
@@ -104,4 +104,4 @@ WEAK void SystemClock_Config(void)
104104
}
105105
#endif
106106

107-
#endif /* ARDUINO_RAK3172_MODULE */
107+
#endif /* ARDUINO_RAK3172_MODULE || ARDUINO_RAK3172T_MODULE */

Diff for: variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_RAK3172_MODULE.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@
144144
#endif
145145

146146
// LoRaWAN definitions
147-
#define LORAWAN_BOARD_HAS_TCXO 0U
147+
148+
#if defined(ARDUINO_RAK3172T_MODULE)
149+
#define LORAWAN_BOARD_HAS_TCXO 1U
150+
#else
151+
#define LORAWAN_BOARD_HAS_TCXO 0U
152+
#endif
148153
#define LORAWAN_BOARD_HAS_DCDC 1U
149154
#define LORAWAN_TX_CONFIG RBI_CONF_RFO_HP
150155

0 commit comments

Comments
 (0)