Skip to content

Commit a01d6d8

Browse files
committed
tested other ports with featherwing max3421, change cs, intr pin to D10, D9
1 parent 804f671 commit a01d6d8

File tree

5 files changed

+17
-9
lines changed
  • hw/bsp
    • espressif/boards
    • nrf/boards/feather_nrf52840_express
    • samd21/boards/feather_m0_express
    • samd51/boards/feather_m4_express

5 files changed

+17
-9
lines changed

hw/bsp/espressif/boards/adafruit_feather_esp32s2/board.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
#define BUTTON_PIN 0
3939
#define BUTTON_STATE_ACTIVE 0
4040

41+
// SPI for USB host shield
42+
#define MAX3421_SPI_HOST SPI2_HOST
43+
#define MAX3421_SCK_PIN 36
44+
#define MAX3421_MOSI_PIN 35
45+
#define MAX3421_MISO_PIN 37
46+
#define MAX3421_CS_PIN 10
47+
#define MAX3421_INTR_PIN 9
48+
4149
#ifdef __cplusplus
4250
}
4351
#endif

hw/bsp/espressif/boards/adafruit_metro_esp32s2/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define BUTTON_STATE_ACTIVE 0
3838

3939
// SPI for USB host shield
40-
#define MAX3421_SPI_HOST SPI2_HOST
40+
#define MAX3421_SPI_HOST SPI2_HOST
4141
#define MAX3421_SCK_PIN 36
4242
#define MAX3421_MOSI_PIN 35
4343
#define MAX3421_MISO_PIN 37

hw/bsp/nrf/boards/feather_nrf52840_express/board.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
#define MAX3421_SCK_PIN 14
5050
#define MAX3421_MOSI_PIN 13
5151
#define MAX3421_MISO_PIN 15
52-
#define MAX3421_CS_PIN 6 // D11
53-
#define MAX3421_INTR_PIN 27 // D10
52+
#define MAX3421_CS_PIN 27 // D10
53+
#define MAX3421_INTR_PIN 26 // D9
5454

5555
#ifdef __cplusplus
5656
}

hw/bsp/samd21/boards/feather_m0_express/board.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
#define MAX3421_TX_PAD 1 // MOSI = PAD_2, SCK = PAD_3
5454
#define MAX3421_RX_PAD 0 // MISO = PAD_2
5555

56-
#define MAX3421_CS_PIN 16 // D11
56+
#define MAX3421_CS_PIN 18 // D10
5757

58-
#define MAX3421_INTR_PIN 18 // D10
59-
#define MAX3421_INTR_EIC_ID 2 // EIC2
58+
#define MAX3421_INTR_PIN 7 // D10
59+
#define MAX3421_INTR_EIC_ID 7 // EIC7
6060

6161
#ifdef __cplusplus
6262
}

hw/bsp/samd51/boards/feather_m4_express/board.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
#define MAX3421_TX_PAD 2 // MOSI = PAD_3, SCK = PAD_1
5656
#define MAX3421_RX_PAD 2 // MISO = PAD_2
5757

58-
#define MAX3421_CS_PIN 21 // D11
58+
#define MAX3421_CS_PIN 20 // D10
5959

60-
#define MAX3421_INTR_PIN 20 // D10
61-
#define MAX3421_INTR_EIC_ID 4 // EIC4
60+
#define MAX3421_INTR_PIN 19 // D9
61+
#define MAX3421_INTR_EIC_ID 3 // EIC3
6262

6363
#ifdef __cplusplus
6464
}

0 commit comments

Comments
 (0)