SPI: Split common SPI stuff out of master driver; add slave driver; add workaround for DMA issue.

This commit is contained in:
Jeroen Domburg
2017-03-31 15:05:25 +08:00
parent 8131c77860
commit e9c372bc2d
19 changed files with 1942 additions and 288 deletions

View File

@@ -72,6 +72,7 @@
#define MCU_SEL_M (MCU_SEL_V << MCU_SEL_S)
#define MCU_SEL_V 0x7
#define MCU_SEL_S 12
#define MCU_SEL_V 0x7
#define PIN_INPUT_ENABLE(PIN_NAME) SET_PERI_REG_MASK(PIN_NAME,FUN_IE)
#define PIN_INPUT_DISABLE(PIN_NAME) CLEAR_PERI_REG_MASK(PIN_NAME,FUN_IE)