diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble.h b/cores/nRF5/softdevice/s132/headers/ble.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble.h rename to cores/nRF5/softdevice/s132/headers/ble.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_err.h b/cores/nRF5/softdevice/s132/headers/ble_err.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_err.h rename to cores/nRF5/softdevice/s132/headers/ble_err.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_gap.h b/cores/nRF5/softdevice/s132/headers/ble_gap.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_gap.h rename to cores/nRF5/softdevice/s132/headers/ble_gap.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_gatt.h b/cores/nRF5/softdevice/s132/headers/ble_gatt.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_gatt.h rename to cores/nRF5/softdevice/s132/headers/ble_gatt.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_gattc.h b/cores/nRF5/softdevice/s132/headers/ble_gattc.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_gattc.h rename to cores/nRF5/softdevice/s132/headers/ble_gattc.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_gatts.h b/cores/nRF5/softdevice/s132/headers/ble_gatts.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_gatts.h rename to cores/nRF5/softdevice/s132/headers/ble_gatts.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_hci.h b/cores/nRF5/softdevice/s132/headers/ble_hci.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_hci.h rename to cores/nRF5/softdevice/s132/headers/ble_hci.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_l2cap.h b/cores/nRF5/softdevice/s132/headers/ble_l2cap.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_l2cap.h rename to cores/nRF5/softdevice/s132/headers/ble_l2cap.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_ranges.h b/cores/nRF5/softdevice/s132/headers/ble_ranges.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_ranges.h rename to cores/nRF5/softdevice/s132/headers/ble_ranges.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/ble_types.h b/cores/nRF5/softdevice/s132/headers/ble_types.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/ble_types.h rename to cores/nRF5/softdevice/s132/headers/ble_types.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf52/nrf_mbr.h b/cores/nRF5/softdevice/s132/headers/nrf52/nrf_mbr.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf52/nrf_mbr.h rename to cores/nRF5/softdevice/s132/headers/nrf52/nrf_mbr.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_error.h b/cores/nRF5/softdevice/s132/headers/nrf_error.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_error.h rename to cores/nRF5/softdevice/s132/headers/nrf_error.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_error_sdm.h b/cores/nRF5/softdevice/s132/headers/nrf_error_sdm.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_error_sdm.h rename to cores/nRF5/softdevice/s132/headers/nrf_error_sdm.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_error_soc.h b/cores/nRF5/softdevice/s132/headers/nrf_error_soc.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_error_soc.h rename to cores/nRF5/softdevice/s132/headers/nrf_error_soc.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_nvic.h b/cores/nRF5/softdevice/s132/headers/nrf_nvic.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_nvic.h rename to cores/nRF5/softdevice/s132/headers/nrf_nvic.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_sdm.h b/cores/nRF5/softdevice/s132/headers/nrf_sdm.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_sdm.h rename to cores/nRF5/softdevice/s132/headers/nrf_sdm.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_soc.h b/cores/nRF5/softdevice/s132/headers/nrf_soc.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_soc.h rename to cores/nRF5/softdevice/s132/headers/nrf_soc.h diff --git a/cores/nRF5/SDK/components/softdevice/s132/headers/nrf_svc.h b/cores/nRF5/softdevice/s132/headers/nrf_svc.h similarity index 100% rename from cores/nRF5/SDK/components/softdevice/s132/headers/nrf_svc.h rename to cores/nRF5/softdevice/s132/headers/nrf_svc.h diff --git a/platform.txt b/platform.txt index 26c5f773..9dd7b222 100644 --- a/platform.txt +++ b/platform.txt @@ -65,10 +65,10 @@ nrf.sdk.path={build.core.path}/SDK rtos.path={build.core.path}/freertos nffs.path={runtime.platform.path}/libraries/nffs/src -compiler.nrf.flags=-DARDUINO_NRF52_ADAFRUIT -DNRF5 -DNRF52 -DNRF52832_XXAA -DUSE_LFXO {build.sd_flags} {build.debug_flags} "-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/drivers_nrf/hal/" "-I{nrf.sdk.path}/components/libraries/util/" "-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" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" - nffs.includes="-I{nffs.path}/fs/nffs/include" "-I{nffs.path}/fs/fs/include" "-I{nffs.path}/fs/disk/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" "-I{nffs.path}/sys/defs/include" +compiler.nrf.flags=-DARDUINO_NRF52_ADAFRUIT -DNRF5 -DNRF52 -DNRF52832_XXAA -DUSE_LFXO {build.sd_flags} {build.debug_flags} "-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/drivers_nrf/hal/" "-I{nrf.sdk.path}/components/libraries/util/" "-I{build.core.path}/softdevice/s132/headers/" "-I{rtos.path}/source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" {nffs.includes} + # These can be overridden in platform.local.txt compiler.c.extra_flags= compiler.c.elf.extra_flags= @@ -83,13 +83,13 @@ compiler.elf2hex.extra_flags= # ---------------- ## Compile c files -recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} {nffs.includes} "{source_file}" -o "{object_file}" +recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} "{source_file}" -o "{object_file}" ## Compile c++ files -recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BSP_VERSION="{version}" {compiler.cpp.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} {nffs.includes} "{source_file}" -o "{object_file}" +recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BSP_VERSION="{version}" {compiler.cpp.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} "{source_file}" -o "{object_file}" ## Compile S files -recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} {nffs.includes} "{source_file}" -o "{object_file}" +recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} "{source_file}" -o "{object_file}" ## Create archives recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"