From feb2952cb293d760e6ecbb12410d19980992b2d0 Mon Sep 17 00:00:00 2001 From: Pawel Zarembski Date: Mon, 3 Feb 2020 11:01:14 +0100 Subject: [PATCH] hani_iot: add spif storage config --- components/storage/blockdevice/COMPONENT_SPIF/mbed_lib.json | 6 ++++++ features/storage/kvstore/conf/global/mbed_lib.json | 3 +++ targets/targets.json | 1 + 3 files changed, 10 insertions(+) diff --git a/components/storage/blockdevice/COMPONENT_SPIF/mbed_lib.json b/components/storage/blockdevice/COMPONENT_SPIF/mbed_lib.json index 1d0fddaeb9..104d899851 100644 --- a/components/storage/blockdevice/COMPONENT_SPIF/mbed_lib.json +++ b/components/storage/blockdevice/COMPONENT_SPIF/mbed_lib.json @@ -13,6 +13,12 @@ } }, "target_overrides": { + "HANI_IOT": { + "SPI_MOSI": "P0_26", + "SPI_MISO": "P1_3", + "SPI_CLK": "P1_2", + "SPI_CS": "P0_20" + }, "LPC54114": { "SPI_MOSI": "P0_20", "SPI_MISO": "P0_18", diff --git a/features/storage/kvstore/conf/global/mbed_lib.json b/features/storage/kvstore/conf/global/mbed_lib.json index 8987d5142b..4197f8ad02 100644 --- a/features/storage/kvstore/conf/global/mbed_lib.json +++ b/features/storage/kvstore/conf/global/mbed_lib.json @@ -11,6 +11,9 @@ } }, "target_overrides": { + "HANI_IOT": { + "storage_type": "TDB_INTERNAL" + }, "K66F": { "storage_type": "TDB_INTERNAL" }, diff --git a/targets/targets.json b/targets/targets.json index 6032753b03..10415d3a51 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -2164,6 +2164,7 @@ "HANI_IOT": { "inherits": ["LPC55S69_NS"], "detect_code": ["0360"], + "components_add": ["SPIF"], "extra_labels_remove": ["LPCXpresso"] }, "NUCLEO_F030R8": {