altos-avr: Completely replace the spi slave code
authorKeith Packard <keithp@keithp.com>
Fri, 12 Aug 2011 11:41:19 +0000 (04:41 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 12 Aug 2011 11:41:19 +0000 (04:41 -0700)
commitb3ba69f3eda0d07d7f2fc0922556a011c95d7951
treeb648004575edcf3a0a4cf6c600f47bd06d45d8b5
parentb6083ce00867051d4d513b91519cad6e4a91f07b
altos-avr: Completely replace the spi slave code

Turns out the AVR we're using sucks at doing SPI slave. To get it
running at a reasonable data rate, I had to completely gut the
'sensible' code and run everything from the ISR with interrupts
disabled.

Even with this, the maximum SPI clock rate is somewhere around
200kHz. That's due to the singled buffered nature of the transmit
queue, the amount of time available between finishing one byte and
starting the next is very very small.

Signed-off-by: Keith Packard <keithp@keithp.com>
src-avr/ao.h
src-avr/ao_log_telescience.c
src-avr/ao_pins.h
src-avr/ao_spi_slave.c
src-avr/ao_telescience.c
src-avr/telescience/Makefile