mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-15 12:39:50 +00:00
tested other ports with featherwing max3421, change cs, intr pin to D10, D9
This commit is contained in:
parent
804f6718ed
commit
a01d6d8b31
@ -38,6 +38,14 @@
|
||||
#define BUTTON_PIN 0
|
||||
#define BUTTON_STATE_ACTIVE 0
|
||||
|
||||
// SPI for USB host shield
|
||||
#define MAX3421_SPI_HOST SPI2_HOST
|
||||
#define MAX3421_SCK_PIN 36
|
||||
#define MAX3421_MOSI_PIN 35
|
||||
#define MAX3421_MISO_PIN 37
|
||||
#define MAX3421_CS_PIN 10
|
||||
#define MAX3421_INTR_PIN 9
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -49,8 +49,8 @@
|
||||
#define MAX3421_SCK_PIN 14
|
||||
#define MAX3421_MOSI_PIN 13
|
||||
#define MAX3421_MISO_PIN 15
|
||||
#define MAX3421_CS_PIN 6 // D11
|
||||
#define MAX3421_INTR_PIN 27 // D10
|
||||
#define MAX3421_CS_PIN 27 // D10
|
||||
#define MAX3421_INTR_PIN 26 // D9
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -53,10 +53,10 @@
|
||||
#define MAX3421_TX_PAD 1 // MOSI = PAD_2, SCK = PAD_3
|
||||
#define MAX3421_RX_PAD 0 // MISO = PAD_2
|
||||
|
||||
#define MAX3421_CS_PIN 16 // D11
|
||||
#define MAX3421_CS_PIN 18 // D10
|
||||
|
||||
#define MAX3421_INTR_PIN 18 // D10
|
||||
#define MAX3421_INTR_EIC_ID 2 // EIC2
|
||||
#define MAX3421_INTR_PIN 7 // D10
|
||||
#define MAX3421_INTR_EIC_ID 7 // EIC7
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -55,10 +55,10 @@
|
||||
#define MAX3421_TX_PAD 2 // MOSI = PAD_3, SCK = PAD_1
|
||||
#define MAX3421_RX_PAD 2 // MISO = PAD_2
|
||||
|
||||
#define MAX3421_CS_PIN 21 // D11
|
||||
#define MAX3421_CS_PIN 20 // D10
|
||||
|
||||
#define MAX3421_INTR_PIN 20 // D10
|
||||
#define MAX3421_INTR_EIC_ID 4 // EIC4
|
||||
#define MAX3421_INTR_PIN 19 // D9
|
||||
#define MAX3421_INTR_EIC_ID 3 // EIC3
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user