PIC32MZ SPI: Implement exchange() method; update SPI_REGDEBUG configuration and clean up implementation

This commit is contained in:
Gregory Nutt
2015-03-03 12:23:27 -06:00
parent 74ab89d6fb
commit 30e369dc65
3 changed files with 425 additions and 181 deletions
+1 -1
View File
@@ -549,7 +549,7 @@ static void pic32mx_checkreg(uint32_t addr, uint32_t val, bool iswrite)
count = 0; count = 0;
prevwrite = iswrite; prevwrite = iswrite;
/* Show the new regisgter access */ /* Show the new register access */
pic32mx_printreg(addr, val, iswrite); pic32mx_printreg(addr, val, iswrite);
} }
+11 -1
View File
@@ -317,15 +317,25 @@ config PIC32MZ_GPIOIRQ_PORTK
endif # PIC32MZ_GPIOIRQ endif # PIC32MZ_GPIOIRQ
menu "SPI Driver Configuration" menu "SPI Driver Configuration"
depends on PIC32MZ_SPI && EXPERIMENTAL depends on PIC32MZ_SPI
config PIC32MZ_SPI_INTERRUPTS config PIC32MZ_SPI_INTERRUPTS
bool "SPI Interrupt Driven" bool "SPI Interrupt Driven"
default n default n
depends on EXPERIMENTAL
config PIC32MZ_SPI_ENHBUF config PIC32MZ_SPI_ENHBUF
bool "SPI Enhanced Buffer Mode" bool "SPI Enhanced Buffer Mode"
default n default n
depends on EXPERIMENTAL
config PIC32MZ_SPI_REGDEBUG
bool "SPI Register level debug"
depends on DEBUG
default n
---help---
Output detailed register-level SPI device debug information.
Requires also DEBUG.
endmenu # SPI Driver Configuration endmenu # SPI Driver Configuration
File diff suppressed because it is too large Load Diff