Skip to content

Commit e77aa3a

Browse files
authoredJan 26, 2021
Merge pull request #305 from danJTDC/master
Added LoRa Thing Plus Variant
2 parents 9ee61de + a8c6403 commit e77aa3a

21 files changed

+864
-0
lines changed
 

‎.github/workflows/generate-variants.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
with:
2323
jobs: |
2424
[
25+
{"name": "lora-thing-plus-explorable-lib", "config": {"base": "compile --library --source=mbed-os", "tgt": "LoRa_THING_PLUS_expLoRaBLE", "tool": "GCC_ARM"}, "user": {"variant": {"name": "LoRa_THING_PLUS_expLoRaBLE", "loc": "variants/LoRa_THING_PLUS_expLoRaBLE"}}},
2526
{"name": "artemis-redboard-lib", "config": {"base": "compile --library --source=mbed-os", "tgt": "SFE_ARTEMIS", "tool": "GCC_ARM"}, "user": {"variant": {"name": "ARTEMIS", "loc": "variants/SFE_ARTEMIS"}}},
2627
{"name": "artemis-redboard-atp-lib", "config": {"base": "compile --library --source=mbed-os", "tgt": "SFE_ARTEMIS_ATP", "tool": "GCC_ARM"}, "user": {"variant": {"name": "ARTEMIS_ATP", "loc": "variants/SFE_ARTEMIS_ATP"}}},
2728
{"name": "artemis-dev-kit-lib", "config": {"base": "compile --library --source=mbed-os", "tgt": "SFE_ARTEMIS_DK", "tool": "GCC_ARM"}, "user": {"variant": {"name": "ARTEMIS_DEV_KIT", "loc": "variants/SFE_ARTEMIS_DK"}}},

‎boards.txt

+44
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,47 @@ sfe_artemis_module.menu.loader.option_asb.build.ldscript={runtime.platform.path}
315315

316316
sfe_artemis_module.menu.loader.option_svl.upload.tool=svl
317317
sfe_artemis_module.menu.loader.option_svl.build.ldscript={runtime.platform.path}/tools/uploaders/svl/0x10000.ld
318+
319+
320+
###############################################################
321+
322+
lora_thing_plus.name=LoRa Thing Plus expLoRaBLE
323+
lora_thing_plus.build.core=arduino
324+
lora_thing_plus.build.variant=LoRa_THING_PLUS_expLoRaBLE
325+
lora_thing_plus.build.board=LoRa_THING_PLUS_expLoRaBLE
326+
lora_thing_plus.upload.maximum_size=983040
327+
lora_thing_plus.upload.maximum_data_size=393216
328+
lora_thing_plus.build.export_format=bin
329+
lora_thing_plus.upload.sbl_baud=115200
330+
lora_thing_plus.build.arch=APOLLO3
331+
lora_thing_plus.build.mcu=cortex-m4
332+
lora_thing_plus.build.f_cpu=48000000L
333+
lora_thing_plus.build.includes=
334+
lora_thing_plus.build.defines=
335+
lora_thing_plus.build.preferred_export_format=bin
336+
lora_thing_plus.build.defs=
337+
lora_thing_plus.build.libs=
338+
339+
340+
lora_thing_plus.menu.svl_baud.921600=921600
341+
lora_thing_plus.menu.svl_baud.460800=460800
342+
lora_thing_plus.menu.svl_baud.230400=230400
343+
lora_thing_plus.menu.svl_baud.115200=115200
344+
lora_thing_plus.menu.svl_baud.57600=57600
345+
lora_thing_plus.menu.loader.option_svl=SparkFun Variable Loader (Recommended)
346+
lora_thing_plus.menu.loader.option_asb=Ambiq Secure Bootloader (Advanced)
347+
348+
lora_thing_plus.menu.svl_baud.57600.upload.svl_baud=57600
349+
lora_thing_plus.menu.svl_baud.115200.upload.svl_baud=115200
350+
lora_thing_plus.menu.svl_baud.230400.upload.svl_baud=230400
351+
lora_thing_plus.menu.svl_baud.460800.upload.svl_baud=460800
352+
lora_thing_plus.menu.svl_baud.921600.upload.svl_baud=921600
353+
354+
lora_thing_plus.upload.asb_baud=115200
355+
356+
357+
lora_thing_plus.menu.loader.option_asb.upload.tool=asb
358+
lora_thing_plus.menu.loader.option_asb.build.ldscript={runtime.platform.path}/tools/uploaders/asb/0xC000.ld
359+
360+
lora_thing_plus.menu.loader.option_svl.upload.tool=svl
361+
lora_thing_plus.menu.loader.option_svl.build.ldscript={runtime.platform.path}/tools/uploaders/svl/0x10000.ld
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#include "bridge/pins.h"
7+
8+
const pin_size_t variantPinCount = 33;
9+
10+
PinState variantPinStates[variantPinCount] = {
11+
{D0, 0, NULL, /*NULL, NULL, NULL,*/ NULL},
12+
{D1, 1, NULL, /*NULL, NULL, NULL,*/ NULL},
13+
{D2, 2, NULL, /*NULL, NULL, NULL,*/ NULL},
14+
{D3, 3, NULL, /*NULL, NULL, NULL,*/ NULL},
15+
{D4, 4, NULL, /*NULL, NULL, NULL,*/ NULL},
16+
{D5, 5, NULL, /*NULL, NULL, NULL,*/ NULL},
17+
{D6, 6, NULL, /*NULL, NULL, NULL,*/ NULL},
18+
{D7, 7, NULL, /*NULL, NULL, NULL,*/ NULL},
19+
{D8, 8, NULL, /*NULL, NULL, NULL,*/ NULL},
20+
{D9, 9, NULL, /*NULL, NULL, NULL,*/ NULL},
21+
{D10, 10, NULL, /*NULL, NULL, NULL,*/ NULL},
22+
{D11, 11, NULL, /*NULL, NULL, NULL,*/ NULL},
23+
{D12, 12, NULL, /*NULL, NULL, NULL,*/ NULL},
24+
{D13, 13, NULL, /*NULL, NULL, NULL,*/ NULL},
25+
{D14, 14, NULL, /*NULL, NULL, NULL,*/ NULL},
26+
{D15, 15, NULL, /*NULL, NULL, NULL,*/ NULL},
27+
{D16, 16, NULL, /*NULL, NULL, NULL,*/ NULL},
28+
{D17, 17, NULL, /*NULL, NULL, NULL,*/ NULL},
29+
{D18, 18, NULL, /*NULL, NULL, NULL,*/ NULL},
30+
{D19, 19, NULL, /*NULL, NULL, NULL,*/ NULL},
31+
{D20, 20, NULL, /*NULL, NULL, NULL,*/ NULL},
32+
{D21, 21, NULL, /*NULL, NULL, NULL,*/ NULL},
33+
{D22, 22, NULL, /*NULL, NULL, NULL,*/ NULL},
34+
{D23, 23, NULL, /*NULL, NULL, NULL,*/ NULL},
35+
{D24, 24, NULL, /*NULL, NULL, NULL,*/ NULL},
36+
37+
{D36, 36, NULL, /*NULL, NULL, NULL,*/ NULL},
38+
{D38, 38, NULL, /*NULL, NULL, NULL,*/ NULL},
39+
{D39, 39, NULL, /*NULL, NULL, NULL,*/ NULL},
40+
{D40, 40, NULL, /*NULL, NULL, NULL,*/ NULL},
41+
{D42, 42, NULL, /*NULL, NULL, NULL,*/ NULL},
42+
{D43, 43, NULL, /*NULL, NULL, NULL,*/ NULL},
43+
{D44, 44, NULL, /*NULL, NULL, NULL,*/ NULL},
44+
{D47, 47, NULL, /*NULL, NULL, NULL,*/ NULL},
45+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
// This file is subject to the terms and conditions defined in
3+
// file 'LICENSE.md', which is part of this source code package.
4+
*/
5+
6+
#ifndef _VARIANT_PINS_H_
7+
#define _VARIANT_PINS_H_
8+
9+
#define LED_BUILTIN pinNumberByName(LED1)
10+
11+
#endif // _VARIANT_PINS_H_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -x assembler-with-cpp

‎variants/LoRa_THING_PLUS_expLoRaBLE/mbed/.asm-macros

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -DCORDIO_ZERO_COPY_HCI -DUSE_AMBIQ_DRIVER -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-c -std=gnu11 -DMBED_MINIMAL_PRINTF -DMBED_TRAP_ERRORS_ENABLED=1 -MMD -Os -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -fdata-sections -ffunction-sections -fmessage-length=0 -fno-exceptions -fomit-frame-pointer -funsigned-char -g -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -mthumb

‎variants/LoRa_THING_PLUS_expLoRaBLE/mbed/.c-macros

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -DCOMPONENT_FLASHIAP=1 -DCORDIO_ZERO_COPY_HCI -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_SERIAL=1 -DDEVICE_SPI=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DFEATURE_BLE=1 -DTARGET_AMA3B1KK -DTARGET_Ambiq_Micro -DTARGET_Apollo3 -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_Apollo3 -DTARGET_LIKE_CORTEX_M4 -DTARGET_LIKE_MBED -DTARGET_LoRa_THING_PLUS_expLoRaBLE -DTARGET_M4 -DTARGET_NAME=LoRa_THING_PLUS_expLoRaBLE -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DUSE_AMBIQ_DRIVER -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Wvla -c -fno-rtti -std=gnu++14 -DMBED_MINIMAL_PRINTF -DMBED_TRAP_ERRORS_ENABLED=1 -Os -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -fdata-sections -ffunction-sections -fmessage-length=0 -fno-exceptions -fomit-frame-pointer -funsigned-char -g -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -mthumb

‎variants/LoRa_THING_PLUS_expLoRaBLE/mbed/.cxx-macros

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DAM_PACKAGE_BGA -DARM_MATH_CM4 -DCOMPONENT_FLASHIAP=1 -DCORDIO_ZERO_COPY_HCI -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_SERIAL=1 -DDEVICE_SPI=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_USTICKER=1 -DFEATURE_BLE=1 -DTARGET_AMA3B1KK -DTARGET_Ambiq_Micro -DTARGET_Apollo3 -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_FAMILY_Apollo3 -DTARGET_LIKE_CORTEX_M4 -DTARGET_LIKE_MBED -DTARGET_LoRa_THING_PLUS_expLoRaBLE -DTARGET_M4 -DTARGET_NAME=LoRa_THING_PLUS_expLoRaBLE -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DUSE_AMBIQ_DRIVER -D__CMSIS_RTOS -D__CORTEX_M4 -D__FPU_PRESENT=1 -D__MBED_CMSIS_RTOS_CM -D__MBED__=1

0 commit comments

Comments
 (0)