diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-26 16:02:29 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-26 16:02:29 +0000 |
commit | a1db002da5d4bd3fdc0c7fcc0f2aa466de803d4f (patch) | |
tree | e9ff84603a24140f7afc46b6735ed120b75fb2e1 /os/io/templates/spi_lld.h | |
parent | 34f29ab36c7d465d397304811945a226234b9db6 (diff) | |
download | ChibiOS-a1db002da5d4bd3fdc0c7fcc0f2aa466de803d4f.tar.gz ChibiOS-a1db002da5d4bd3fdc0c7fcc0f2aa466de803d4f.tar.bz2 ChibiOS-a1db002da5d4bd3fdc0c7fcc0f2aa466de803d4f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1256 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/templates/spi_lld.h')
-rw-r--r-- | os/io/templates/spi_lld.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/io/templates/spi_lld.h b/os/io/templates/spi_lld.h index 37f14781e..a8479c008 100644 --- a/os/io/templates/spi_lld.h +++ b/os/io/templates/spi_lld.h @@ -62,7 +62,7 @@ typedef struct { /**
* @brief Clock pulses to be generated after initialization.
*/
- cnt_t spc_clkpulses;
+ cnt_t spc_initcnt;
/* End of the mandatory fields.*/
} SPIConfig;
@@ -102,7 +102,9 @@ extern "C" { void spi_lld_setup(SPIDriver *spip);
void spi_lld_select(SPIDriver *spip);
void spi_lld_unselect(SPIDriver *spip);
- void spi_lld_exchange(SPIDriver *spip, size_t n, void *rxbuf, void *txbuf);
+ msg_t spi_lld_exchange(SPIDriver *spip, size_t n, void *rxbuf, void *txbuf);
+ msg_t spi_lld_send(SPIDriver *spip, size_t n, void *txbuf);
+ msg_t spi_lld_receive(SPIDriver *spip, size_t n, void *rxbuf);
#ifdef __cplusplus
}
#endif
|