summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/spi.h
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-11 13:42:03 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-16 17:29:40 -0700
commitecc971c613d4a7dfe31bc142f99bfdba898d91eb (patch)
tree9eb42726e99b8885e5a1fcb82c1731439db48439 /firmware/microblaze/lib/spi.h
parent20d1f96f9594e299f8aef78cc70a587d1d87e289 (diff)
downloaduhd-ecc971c613d4a7dfe31bc142f99bfdba898d91eb.tar.gz
uhd-ecc971c613d4a7dfe31bc142f99bfdba898d91eb.tar.bz2
uhd-ecc971c613d4a7dfe31bc142f99bfdba898d91eb.zip
IRQ-based SPI works. Don't try to do multiple transactions without waiting for results first. In fact, don't try to do
an I2C transaction while an SPI transaction is pending.
Diffstat (limited to 'firmware/microblaze/lib/spi.h')
-rw-r--r--firmware/microblaze/lib/spi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/microblaze/lib/spi.h b/firmware/microblaze/lib/spi.h
index 18699f21a..54618cedd 100644
--- a/firmware/microblaze/lib/spi.h
+++ b/firmware/microblaze/lib/spi.h
@@ -48,13 +48,13 @@ void spi_wait(void);
uint32_t
spi_transact(bool readback, int slave, uint32_t data, int length, uint32_t flags);
-bool
-spi_async_transact(int slave, uint32_t data, int length, uint32_t flags, void (*volatile callback)(void));
-
uint32_t spi_get_data(void);
-void spi_irq_handler(void);
+//static void spi_irq_handler(unsigned irq);
void spi_register_callback(void (*volatile callback)(void));
+bool
+spi_async_transact(int slave, uint32_t data, int length, uint32_t flags, void (*volatile callback)(void));
+
// ----------------------------------------------------------------
// Routines that manipulate the FLASH SPI BUS
// ----------------------------------------------------------------