summaryrefslogtreecommitdiff
path: root/hw/bsp/nrf
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-11-20 22:09:38 +0700
committerhathach <[email protected]>2023-11-20 22:09:38 +0700
commit86f6588c3f5d682ca6d94064b5817a8a463fd23b (patch)
tree22908b0028ec9b13bf19c00f62885b32579c3ca2 /hw/bsp/nrf
parent1f71625a32a77d5fe243f71f9e8be03c9bbc41d1 (diff)
update example to work with featherwing max3421, set max3421 GPIO0 for vbus
tested with feather nrf52840, m0, m4
Diffstat (limited to 'hw/bsp/nrf')
-rw-r--r--hw/bsp/nrf/boards/feather_nrf52840_express/board.h4
-rw-r--r--hw/bsp/nrf/family.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/hw/bsp/nrf/boards/feather_nrf52840_express/board.h b/hw/bsp/nrf/boards/feather_nrf52840_express/board.h
index 3d59516d8..22946422b 100644
--- a/hw/bsp/nrf/boards/feather_nrf52840_express/board.h
+++ b/hw/bsp/nrf/boards/feather_nrf52840_express/board.h
@@ -49,8 +49,8 @@
#define MAX3421_SCK_PIN 14
#define MAX3421_MOSI_PIN 13
#define MAX3421_MISO_PIN 15
-#define MAX3421_CS_PIN 27 // D10
-#define MAX3421_INTR_PIN 26 // D9
+#define MAX3421_CS_PIN 6 // D11
+#define MAX3421_INTR_PIN 27 // D10
#ifdef __cplusplus
}
diff --git a/hw/bsp/nrf/family.c b/hw/bsp/nrf/family.c
index c431389f3..6e0cd85c3 100644
--- a/hw/bsp/nrf/family.c
+++ b/hw/bsp/nrf/family.c
@@ -95,9 +95,7 @@ TU_ATTR_UNUSED static void power_event_handler(nrfx_power_usb_evt_t event) {
//------------- Host using MAX2341E -------------//
#if CFG_TUH_ENABLED && defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421
-
static void max3421_init(void);
-
static nrfx_spim_t _spi = NRFX_SPIM_INSTANCE(1);
#endif