Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
correct patches file
Browse files Browse the repository at this point in the history
  • Loading branch information
0hotpotman0 committed Jan 17, 2022
1 parent 1be4ff0 commit f60cadd
Showing 1 changed file with 55 additions and 14 deletions.
69 changes: 55 additions & 14 deletions patches/0091-SEEED-XIAO-NRF52840-SENSE.patch
Original file line number Diff line number Diff line change
@@ -1,24 +1,65 @@
From d834776e6f6ca3ec443596710db15679ee1d04f6 Mon Sep 17 00:00:00 2001
From b08c5dd3abadf514671c1c86c8aba9b511af3163 Mon Sep 17 00:00:00 2001
From: 0hotpotman0 <[email protected]>
Date: Tue, 11 Jan 2022 15:40:50 +0800
Subject: [PATCH] SEEED-XIAO-NRF52840-SENSE
Date: Mon, 17 Jan 2022 16:01:00 +0800
Subject: [PATCH 2/2] SEEED-XIAO-NRF52840-SENSE

---
.../TARGET_MCU_NRF52840/TARGET_ARDUINO_NANO33BLE/PinNames.h | 1 +
1 file changed, 1 insertion(+)
.../TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt | 7 +++++++
.../TARGET_SEEED_XIAO_NRF52840_SENSE/PinNames.h | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_ARDUINO_NANO33BLE/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_ARDUINO_NANO33BLE/PinNames.h
index 8d7031f4d1..10397edddb 100644
--- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_ARDUINO_NANO33BLE/PinNames.h
+++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_ARDUINO_NANO33BLE/PinNames.h
@@ -232,6 +232,7 @@ typedef enum {
diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt
index 7193d45848..a7e27edb3f 100644
--- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt
+++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt
@@ -1,11 +1,17 @@
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

} PinName;
+add_library(seeed-xiao-nrf52840-sense INTERFACE)
add_library(mbed-arduino-nano33ble INTERFACE)
add_library(mbed-ep-agora INTERFACE)
add_library(mbed-ep-atlas INTERFACE)
add_library(mbed-nrf52840-dk INTERFACE)

+target_include_directories(seeed-xiao-nrf52840-sense
+ INTERFACE
+ TARGET_SEEED_XIAO_NRF52840_SENSE
+)
+
typedef enum {
PullNone = 0,
PullDown = 1,
target_include_directories(mbed-arduino-nano33ble
INTERFACE
TARGET_ARDUINO_NANO33BLE
@@ -68,6 +74,7 @@ target_sources(mbed-mcu-nrf52840
mbed_set_linker_script(mbed-mcu-nrf52840 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})

target_link_libraries(mbed-mcu-nrf52840 INTERFACE mbed-nrf52 mbed-sdk-15-0)
+target_link_libraries(seeed-xiao-nrf52840-sense INTERFACE mbed-mcu-nrf52840)
target_link_libraries(mbed-arduino-nano33ble INTERFACE mbed-mcu-nrf52840)
target_link_libraries(mbed-ep-agora INTERFACE mbed-mcu-nrf52840)
target_link_libraries(mbed-ep-atlas INTERFACE mbed-mcu-nrf52840)
diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_SEEED_XIAO_NRF52840_SENSE/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_SEEED_XIAO_NRF52840_SENSE/PinNames.h
index 42242758ad..a281ce32ee 100644
--- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_SEEED_XIAO_NRF52840_SENSE/PinNames.h
+++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_SEEED_XIAO_NRF52840_SENSE/PinNames.h
@@ -14,7 +14,7 @@
* limitations under the License.
*/

-/* MBED TARGET LIST: ARDUINO_NANO33BLE */
+/* MBED TARGET LIST: SEEED_XIAO_NRF52840_SENSE */

#ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H
@@ -213,7 +213,7 @@ typedef enum {
AIN6 = p28,
AIN7 = p3,

- // Arduino Nano 33 BLE Sense Pins
+ // Seeed xiao nrf52840 Sense Pins
VDD_ENV = p22,
INT_APDS = p19,

--
2.25.1

0 comments on commit f60cadd

Please sign in to comment.