summaryrefslogtreecommitdiff
path: root/src/lpc/ao_arch.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-12-22 17:27:09 -0800
committerKeith Packard <keithp@keithp.com>2014-12-22 17:27:09 -0800
commit2a053d3d157e00b6a6406f4f78ddb8e298b6c4b7 (patch)
tree4c70f6bb4c5d99509ef1dbf454f65cddb89dfbc9 /src/lpc/ao_arch.h
parent213a6604ec225e843f30244e6f94d0ebb3d27e46 (diff)
altos/lpc: Switch LPC SPI driver to interrupt-drivenbdale-altosdroid
This improves performance for SPI transfers, while allowing other tasks to get work done during longer SPI transfers. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_arch.h')
-rw-r--r--src/lpc/ao_arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lpc/ao_arch.h b/src/lpc/ao_arch.h
index 5fbb8dfa..42faf06f 100644
--- a/src/lpc/ao_arch.h
+++ b/src/lpc/ao_arch.h
@@ -130,12 +130,15 @@ ao_serial_init(void);
/* SPI definitions */
#define AO_SPI_SPEED_12MHz 4
+#define AO_SPI_SPEED_8MHz 6
#define AO_SPI_SPEED_6MHz 8
#define AO_SPI_SPEED_4MHz 12
#define AO_SPI_SPEED_2MHz 24
#define AO_SPI_SPEED_1MHz 48
#define AO_SPI_SPEED_500kHz 96
#define AO_SPI_SPEED_250kHz 192
+#define AO_SPI_SPEED_125kHz 384
+#define AO_SPI_SPEED_62500Hz 768
#define AO_SPI_SPEED_FAST AO_SPI_SPEED_12MHz