diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-16 19:51:20 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-16 19:51:20 -0700 |
commit | 0541029e4ecd06e840966b4005af316b92eeb9e5 (patch) | |
tree | 8d78c73a451634c7db7c04c861ff3654dc8797f4 /firmware/microblaze/lib/spi.h | |
parent | ef6953024f1075a729e85f2511c75de337879888 (diff) | |
parent | 230368da5c55c0eb587960db50f68e1b618f271c (diff) | |
download | uhd-0541029e4ecd06e840966b4005af316b92eeb9e5.tar.gz uhd-0541029e4ecd06e840966b4005af316b92eeb9e5.tar.bz2 uhd-0541029e4ecd06e840966b4005af316b92eeb9e5.zip |
Merge branch 'premerge'
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 // ---------------------------------------------------------------- |