Skip to content

Commit a91529f

Browse files
committed
change board macro for nrf52 board
- ARDUINO_NRF52_FEATHER for feather52 (previously ARDUINO_FEATHER52). - ARDUINO_NRF52_METRO for metro52 - ARDUINO_NRF52_ADAFRUIT for both feather52, metro52 and other nrf52 board made by Adafruit. ARDUINO_FEATHER52 is still defined to be backward compatible with other libraries.
1 parent a5c59c6 commit a91529f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

boards.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ feather52.upload.maximum_data_size=51072
3939
# Build
4040
feather52.build.mcu=cortex-m4
4141
feather52.build.f_cpu=64000000
42-
feather52.build.board=FEATHER52
42+
feather52.build.board=NRF52_FEATHER
4343
feather52.build.core=nRF5
4444
feather52.build.variant=feather52
4545

46+
# compatiable with other lib only, would remove in the future
47+
feather52.build.extra_flags=-DARDUINO_FEATHER52
48+
4649
# Debug Menu
4750
feather52.menu.debug.l0=Level 0 (Release)
4851
feather52.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0
@@ -66,10 +69,13 @@ feather52.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2
6669
# Build
6770
#metro52.build.mcu=cortex-m4
6871
#metro52.build.f_cpu=64000000
69-
#metro52.build.board=METRO52
72+
#metro52.build.board=NRF52_METRO
7073
#metro52.build.core=nRF5
7174
#metro52.build.variant=metro52
7275

76+
# compatiable with other lib only, would remove in the future
77+
#metro52.build.extra_flags=-DARDUINO_FEATHER52
78+
7379
# Debug Menu
7480
#metro52.menu.debug.l0=Level 0 (Release)
7581
#metro52.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ nrf.sdk.path={build.core.path}/SDK
5959
rtos.path={build.core.path}/freertos
6060
nffs.path={runtime.platform.path}/libraries/nffs/src
6161

62-
compiler.nrf.flags=-DNRF5 -DNRF52 -DS132 "-I{nrf.sdk.path}/components/toolchain/" "-I{nrf.sdk.path}/components/toolchain/CMSIS/Include" "-I{nrf.sdk.path}/components/toolchain/gcc/" "-I{nrf.sdk.path}/components/device/" "-I{nrf.sdk.path}/components/drivers_nrf/delay/" "-I{nrf.sdk.path}/components/softdevice/s132/headers/" "-I{rtos.path}/source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52"
62+
compiler.nrf.flags=-DNRF5 -DNRF52 -DS132 -DARDUINO_NRF52_ADAFRUIT "-I{nrf.sdk.path}/components/toolchain/" "-I{nrf.sdk.path}/components/toolchain/CMSIS/Include" "-I{nrf.sdk.path}/components/toolchain/gcc/" "-I{nrf.sdk.path}/components/device/" "-I{nrf.sdk.path}/components/drivers_nrf/delay/" "-I{nrf.sdk.path}/components/softdevice/s132/headers/" "-I{rtos.path}/source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52"
6363

6464
nffs.includes="-I{nffs.path}/fs/nffs/include" "-I{nffs.path}/fs/fs/include" "-I{nffs.path}/util/crc/include" "-I{nffs.path}/kernel/os/include" "-I{nffs.path}/kernel/os/include/os/arch/cortex_m4" "-I{nffs.path}/hw/hal/include" "-I{nffs.path}/sys/flash_map/include"
6565

0 commit comments

Comments
 (0)