From e028b462ae78a400a3df396077d0abc16fb429a2 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 17 Apr 2009 00:25:00 +0200 Subject: * digital/avr/modules/spi: - some cleanup. --- digital/avr/modules/spi/spi.h | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) (limited to 'digital/avr/modules/spi/spi.h') diff --git a/digital/avr/modules/spi/spi.h b/digital/avr/modules/spi/spi.h index 9d43eec0..635debd6 100644 --- a/digital/avr/modules/spi/spi.h +++ b/digital/avr/modules/spi/spi.h @@ -1,7 +1,7 @@ #ifndef spi_h #define spi_h /* spi.h */ -/* {{{ +/* avr.spi - SPI AVR module. {{{ * * Copyright (C) 2008 NĂ©lio Laranjeiro * @@ -67,38 +67,23 @@ enum spi_fosc_t SPI_FOSC_DIV32 }; -struct spi_t -{ - /** interruption status. */ - int8_t interruption; -}; -typedef struct spi_t spi_t; - /** Initialise the SPI Control Register. - * \param sprc the sprc register data to be store in the register. - * \param cb the function call back to call the user which receive the data. - * \param user_data the user data to be provieded in the function call back. + * \param spcr the spcr register data to be store in the register. */ void -spi_init(uint8_t sprc); - -/** Uninitialise the SPI module. - * Unused on the target - */ -void -spi_uninit (void); +spi_init (uint8_t spcr); /** Send a data to the Slave. * \param data the data to send */ void -spi_send(uint8_t data); +spi_send (uint8_t data); /** Receive a data from the SPI bus. * \return the data received from the bus. */ uint8_t -spi_recv(void); +spi_recv (void); /** Send and receive data. * \param data the data to send. @@ -107,10 +92,4 @@ spi_recv(void); uint8_t spi_send_and_recv (uint8_t data); -/** Return the status register from the SPI driver. - * \return the status register value - */ -uint8_t -spi_status(void); - #endif /* spi_h */ -- cgit v1.2.3