diff options
author | Keith Packard <keithp@keithp.com> | 2011-09-21 11:36:11 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-09-21 11:45:04 -0700 |
commit | abf17522c206b465375b73a004a6d67bfa714ba3 (patch) | |
tree | cc6fed16722b2dbe296c3f141662747bc9a56edc /src/avr/ao_pins.h | |
parent | b2d4e49bfe88aa61ca36fb1af8f3088c5754304c (diff) |
altos: SPI slave code is now per-product
We can't write general purpose SPI slave code as we must eliminate
any latency because the SPI ports have no buffering.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/avr/ao_pins.h')
-rw-r--r-- | src/avr/ao_pins.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/avr/ao_pins.h b/src/avr/ao_pins.h index 56435f18..88f03829 100644 --- a/src/avr/ao_pins.h +++ b/src/avr/ao_pins.h @@ -52,6 +52,13 @@ #define SPI_CS_DIR DDRE #define M25_CS_MASK (1 << PORTE6) #define M25_MAX_CHIPS 1 + + #define SPI_SLAVE_CS_PORT PORTB + #define SPI_SLAVE_CS_PIN PINB + #define SPI_SLAVE_CS_PIN_NO PINB0 + + #define SPI_SLAVE_PIN_0_3 1 + #define SPI_SLAVE_PIN_2_5 0 #endif #endif /* _AO_PINS_H_ */ |