diff options
author | Josh Blum <josh@joshknows.com> | 2010-12-14 13:13:25 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-14 13:13:25 -0800 |
commit | 546e877ea461404550f01a1066242c2f2610ad9d (patch) | |
tree | 839e6f3904342af8f6f35e71fd8b8604409e4dbc /firmware/microblaze/lib/spi.c | |
parent | 3ed60b62eaf2d907ec7797f61ca60420bfd2ee5b (diff) | |
parent | 4d9b9ae7e9fe36bf7c1e2e60a37845e9cc4ecee3 (diff) | |
download | uhd-546e877ea461404550f01a1066242c2f2610ad9d.tar.gz uhd-546e877ea461404550f01a1066242c2f2610ad9d.tar.bz2 uhd-546e877ea461404550f01a1066242c2f2610ad9d.zip |
Merge branch 'packet_router' into next
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; } +*/ |