projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c182ab
)
samd21: PA20 maps to SERCOM3.2 not SERCOM3.3
author
Keith Packard
<keithp@keithp.com>
Sun, 13 Nov 2022 03:36:10 +0000
(19:36 -0800)
committer
Keith Packard
<keithp@keithp.com>
Sun, 13 Nov 2022 03:36:10 +0000
(19:36 -0800)
Flip the DIPO config around for AO_SPI_3_PA22_PA23_PA20
Signed-off-by: Keith Packard <keithp@keithp.com>
src/samd21/ao_arch_funcs.h
patch
|
blob
|
history
diff --git
a/src/samd21/ao_arch_funcs.h
b/src/samd21/ao_arch_funcs.h
index 141a9a205b7b32a144902d3912e76b6af9a85ed0..beb8d1262c796b47346a58999d03c85a788eca56 100644
(file)
--- a/
src/samd21/ao_arch_funcs.h
+++ b/
src/samd21/ao_arch_funcs.h
@@
-190,11
+190,11
@@
ao_enable_cs(struct samd21_port *port, uint8_t pin)
/*
* PA22 SERCOM3.0 -> MOSI (DOPO 0)
* PA23 SERCOM3.1 -> SCLK (DOPO 0)
- * PA20 SERCOM3.
3 -> MISO (DIPO 3
)
+ * PA20 SERCOM3.
2 -> MISO (DIPO 2
)
*/
#define AO_SPI_3_PA22_PA23_PA20 (3 | AO_SPI_CONFIG_0 | \
AO_SPI_DOPO_MOSI_0_SCLK_1 | \
- AO_SPI_DIPO_MISO_
3
)
+ AO_SPI_DIPO_MISO_
2
)
#endif /* HAS_SPI_3 */
#if HAS_SPI_4