diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-17 16:12:00 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:09 -0800 |
commit | b621dea91eeebe05c4823bc2da8780fa12997169 (patch) | |
tree | 3545fc910b17b4c5401a76dd30188944934b7dc1 /firmware/microblaze/lib/spi.c | |
parent | 57fcedbba7cbedda714aefa6653bf00e30e5981a (diff) | |
download | uhd-b621dea91eeebe05c4823bc2da8780fa12997169.tar.gz uhd-b621dea91eeebe05c4823bc2da8780fa12997169.tar.bz2 uhd-b621dea91eeebe05c4823bc2da8780fa12997169.zip |
usrp2: replaced spi and i2c async stuff with sync (since were out of the fast-path)
Diffstat (limited to 'firmware/microblaze/lib/spi.c')
-rw-r--r-- | firmware/microblaze/lib/spi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/microblaze/lib/spi.c b/firmware/microblaze/lib/spi.c index 2a41a1bfa..af0d8a68f 100644 --- a/firmware/microblaze/lib/spi.c +++ b/firmware/microblaze/lib/spi.c @@ -20,9 +20,9 @@ #include "pic.h" #include "nonstdio.h" -void (*volatile spi_callback)(void); //SPI callback when xfer complete. +//void (*volatile spi_callback)(void); //SPI callback when xfer complete. -static void spi_irq_handler(unsigned irq); +//static void spi_irq_handler(unsigned irq); void spi_init(void) @@ -66,6 +66,7 @@ spi_transact(bool readback, int slave, uint32_t data, int length, uint32_t flags return 0; } +/* void spi_register_callback(void (*volatile callback)(void)) { spi_callback = callback; } @@ -106,3 +107,4 @@ spi_async_transact(int slave, uint32_t data, int length, uint32_t flags, void (* return true; } +*/ |