diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-17 17:52:17 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-17 17:52:17 -0700 |
commit | ea86054d7203ab4d2b55d88fb22afeeb421f4f9d (patch) | |
tree | de7522e955cec723415306e04548f88f0236d830 /firmware/microblaze/lib/spi.h | |
parent | 6c8260dcb5c73aaef38b7473acc9a332a93c5fa5 (diff) | |
parent | 864de41af536de1a4e86aa4542e2cfeb21f2d309 (diff) | |
download | uhd-ea86054d7203ab4d2b55d88fb22afeeb421f4f9d.tar.gz uhd-ea86054d7203ab4d2b55d88fb22afeeb421f4f9d.tar.bz2 uhd-ea86054d7203ab4d2b55d88fb22afeeb421f4f9d.zip |
Merge branch 'master' into usrp1
Diffstat (limited to 'firmware/microblaze/lib/spi.h')
-rw-r--r-- | firmware/microblaze/lib/spi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/spi.h b/firmware/microblaze/lib/spi.h index 01e4d26fd..54618cedd 100644 --- a/firmware/microblaze/lib/spi.h +++ b/firmware/microblaze/lib/spi.h @@ -48,6 +48,13 @@ void spi_wait(void); uint32_t spi_transact(bool readback, int slave, uint32_t data, int length, uint32_t flags); +uint32_t spi_get_data(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 // ---------------------------------------------------------------- |