From e48e822aa8ec66fc9daac05e387ffb77d8f5c452 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 10 Nov 2009 22:00:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1280 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/io/spi.c | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) (limited to 'os/io/spi.c') diff --git a/os/io/spi.c b/os/io/spi.c index 7480029e7..226751ddb 100644 --- a/os/io/spi.c +++ b/os/io/spi.c @@ -136,19 +136,15 @@ void spiUnselect(SPIDriver *spip) { * * @param[in] spip pointer to the @p SPIDriver object * @param[in] n number of words to be ignored - * - * @return The operation status is returned. - * @retval RDY_OK operation complete. - * @retval RDY_RESET hardware failure. */ -msg_t spiIgnore(SPIDriver *spip, size_t n) { +void spiIgnore(SPIDriver *spip, size_t n) { chDbgCheck((spip != NULL) && (n > 0), "spiIgnore"); chDbgAssert((spip->spd_state == SPI_READY) || (spip->spd_state == SPI_ACTIVE), "spiIgnore(), #1", "not active"); - return spi_lld_ignore(spip, n); + spi_lld_ignore(spip, n); } /** @@ -160,14 +156,10 @@ msg_t spiIgnore(SPIDriver *spip, size_t n) { * @param[in] txbuf the pointer to the transmit buffer * @param[out] rxbuf the pointer to the receive buffer * - * @return The operation status is returned. - * @retval RDY_OK operation complete. - * @retval RDY_RESET hardware failure. - * * @note The buffers are organized as uint8_t arrays for data sizes below or * equal to 8 bits else it is organized as uint16_t arrays. */ -msg_t spiExchange(SPIDriver *spip, size_t n, void *txbuf, void *rxbuf) { +void spiExchange(SPIDriver *spip, size_t n, void *txbuf, void *rxbuf) { chDbgCheck((spip != NULL) && (n > 0) && (rxbuf != NULL) && (txbuf != NULL), "spiExchange"); @@ -175,7 +167,7 @@ msg_t spiExchange(SPIDriver *spip, size_t n, void *txbuf, void *rxbuf) { "spiExchange(), #1", "not active"); - return spi_lld_exchange(spip, n, txbuf, rxbuf); + spi_lld_exchange(spip, n, txbuf, rxbuf); } /** @@ -185,14 +177,10 @@ msg_t spiExchange(SPIDriver *spip, size_t n, void *txbuf, void *rxbuf) { * @param[in] n number of words to send * @param[in] txbuf the pointer to the transmit buffer * - * @return The operation status is returned. - * @retval RDY_OK operation complete. - * @retval RDY_RESET hardware failure. - * * @note The buffers are organized as uint8_t arrays for data sizes below or * equal to 8 bits else it is organized as uint16_t arrays. */ -msg_t spiSend(SPIDriver *spip, size_t n, void *txbuf) { +void spiSend(SPIDriver *spip, size_t n, void *txbuf) { chDbgCheck((spip != NULL) && (n > 0) && (txbuf != NULL), "spiSend"); @@ -200,7 +188,7 @@ msg_t spiSend(SPIDriver *spip, size_t n, void *txbuf) { "spiSend(), #1", "not active"); - return spi_lld_send(spip, n, txbuf); + spi_lld_send(spip, n, txbuf); } /** @@ -210,14 +198,10 @@ msg_t spiSend(SPIDriver *spip, size_t n, void *txbuf) { * @param[in] n number of words to receive * @param[out] rxbuf the pointer to the receive buffer * - * @return The operation status is returned. - * @retval RDY_OK operation complete. - * @retval RDY_RESET hardware failure. - * * @note The buffers are organized as uint8_t arrays for data sizes below or * equal to 8 bits else it is organized as uint16_t arrays. */ -msg_t spiReceive(SPIDriver *spip, size_t n, void *rxbuf) { +void spiReceive(SPIDriver *spip, size_t n, void *rxbuf) { chDbgCheck((spip != NULL) && (n > 0) && (rxbuf != NULL), "spiReceive"); @@ -225,7 +209,7 @@ msg_t spiReceive(SPIDriver *spip, size_t n, void *rxbuf) { "spiReceive(), #1", "not active"); - return spi_lld_receive(spip, n, rxbuf); + spi_lld_receive(spip, n, rxbuf); } #if SPI_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__) -- cgit v1.2.3