From f1f5575ce130b129c6ec3d777d0cf066d3c43f00 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 5 Oct 2017 14:41:27 +0700 Subject: [PATCH] support multiple softdevice --- cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_err.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gap.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gatt.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gattc.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gatts.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_hci.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_l2cap.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_ranges.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_types.h | 0 .../nRF5/softdevice/{s132 => s132_v201}/headers/nrf52/nrf_mbr.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_error.h | 0 .../nRF5/softdevice/{s132 => s132_v201}/headers/nrf_error_sdm.h | 0 .../nRF5/softdevice/{s132 => s132_v201}/headers/nrf_error_soc.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_nvic.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_sdm.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_soc.h | 0 cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_svc.h | 0 platform.txt | 2 +- 19 files changed, 1 insertion(+), 1 deletion(-) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_err.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gap.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gatt.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gattc.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_gatts.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_hci.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_l2cap.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_ranges.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/ble_types.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf52/nrf_mbr.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_error.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_error_sdm.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_error_soc.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_nvic.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_sdm.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_soc.h (100%) rename cores/nRF5/softdevice/{s132 => s132_v201}/headers/nrf_svc.h (100%) diff --git a/cores/nRF5/softdevice/s132/headers/ble.h b/cores/nRF5/softdevice/s132_v201/headers/ble.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble.h rename to cores/nRF5/softdevice/s132_v201/headers/ble.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_err.h b/cores/nRF5/softdevice/s132_v201/headers/ble_err.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_err.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_err.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_gap.h b/cores/nRF5/softdevice/s132_v201/headers/ble_gap.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_gap.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_gap.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_gatt.h b/cores/nRF5/softdevice/s132_v201/headers/ble_gatt.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_gatt.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_gatt.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_gattc.h b/cores/nRF5/softdevice/s132_v201/headers/ble_gattc.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_gattc.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_gattc.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_gatts.h b/cores/nRF5/softdevice/s132_v201/headers/ble_gatts.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_gatts.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_gatts.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_hci.h b/cores/nRF5/softdevice/s132_v201/headers/ble_hci.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_hci.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_hci.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_l2cap.h b/cores/nRF5/softdevice/s132_v201/headers/ble_l2cap.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_l2cap.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_l2cap.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_ranges.h b/cores/nRF5/softdevice/s132_v201/headers/ble_ranges.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_ranges.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_ranges.h diff --git a/cores/nRF5/softdevice/s132/headers/ble_types.h b/cores/nRF5/softdevice/s132_v201/headers/ble_types.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/ble_types.h rename to cores/nRF5/softdevice/s132_v201/headers/ble_types.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf52/nrf_mbr.h b/cores/nRF5/softdevice/s132_v201/headers/nrf52/nrf_mbr.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf52/nrf_mbr.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf52/nrf_mbr.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_error.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_error.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_error.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_error.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_error_sdm.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_error_sdm.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_error_sdm.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_error_sdm.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_error_soc.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_error_soc.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_error_soc.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_error_soc.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_nvic.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_nvic.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_nvic.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_nvic.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_sdm.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_sdm.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_sdm.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_sdm.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_soc.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_soc.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_soc.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_soc.h diff --git a/cores/nRF5/softdevice/s132/headers/nrf_svc.h b/cores/nRF5/softdevice/s132_v201/headers/nrf_svc.h similarity index 100% rename from cores/nRF5/softdevice/s132/headers/nrf_svc.h rename to cores/nRF5/softdevice/s132_v201/headers/nrf_svc.h diff --git a/platform.txt b/platform.txt index 9dd7b222..cf20a1a0 100644 --- a/platform.txt +++ b/platform.txt @@ -67,7 +67,7 @@ nffs.path={runtime.platform.path}/libraries/nffs/src 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} +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/{build.sd_name}/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=