diff --git a/boards.txt b/boards.txt index 223828a2..fcd15eb0 100644 --- a/boards.txt +++ b/boards.txt @@ -39,10 +39,13 @@ feather52.upload.maximum_data_size=51072 # Build feather52.build.mcu=cortex-m4 feather52.build.f_cpu=64000000 -feather52.build.board=FEATHER52 +feather52.build.board=NRF52_FEATHER feather52.build.core=nRF5 feather52.build.variant=feather52 +# compatiable with other lib only, would remove in the future +feather52.build.extra_flags=-DARDUINO_FEATHER52 + # Debug Menu feather52.menu.debug.l0=Level 0 (Release) feather52.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 @@ -66,10 +69,13 @@ feather52.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 # Build #metro52.build.mcu=cortex-m4 #metro52.build.f_cpu=64000000 -#metro52.build.board=METRO52 +#metro52.build.board=NRF52_METRO #metro52.build.core=nRF5 #metro52.build.variant=metro52 +# compatiable with other lib only, would remove in the future +#metro52.build.extra_flags=-DARDUINO_FEATHER52 + # Debug Menu #metro52.menu.debug.l0=Level 0 (Release) #metro52.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 diff --git a/platform.txt b/platform.txt index 585bdb04..ae63bbad 100644 --- a/platform.txt +++ b/platform.txt @@ -59,7 +59,7 @@ nrf.sdk.path={build.core.path}/SDK rtos.path={build.core.path}/freertos nffs.path={runtime.platform.path}/libraries/nffs/src -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" +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" 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"