git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5805 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
52cac10dbc
commit
4534a30db6
|
@ -437,16 +437,16 @@ typedef void (*spicallback_t)(SPIDriver *spip);
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/**
|
/**
|
||||||
* @brief Operation complete callback.
|
* @brief Operation complete callback.
|
||||||
*/
|
*/
|
||||||
spicallback_t end_cb;
|
spicallback_t end_cb;
|
||||||
/* End of the mandatory fields.*/
|
/* End of the mandatory fields.*/
|
||||||
/**
|
/**
|
||||||
* @brief The chip select line port.
|
* @brief The chip select line port.
|
||||||
*/
|
*/
|
||||||
ioportid_t ssport;
|
ioportid_t ssport;
|
||||||
/**
|
/**
|
||||||
* @brief The chip select line pad number.
|
* @brief The chip select line pad number.
|
||||||
*/
|
*/
|
||||||
uint16_t sspad;
|
uint16_t sspad;
|
||||||
/**
|
/**
|
||||||
|
@ -468,23 +468,23 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
struct SPIDriver {
|
struct SPIDriver {
|
||||||
/**
|
/**
|
||||||
* @brief Driver state.
|
* @brief Driver state.
|
||||||
*/
|
*/
|
||||||
spistate_t state;
|
spistate_t state;
|
||||||
/**
|
/**
|
||||||
* @brief Current configuration data.
|
* @brief Current configuration data.
|
||||||
*/
|
*/
|
||||||
const SPIConfig *config;
|
const SPIConfig *config;
|
||||||
#if SPI_USE_WAIT || defined(__DOXYGEN__)
|
#if SPI_USE_WAIT || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief Waiting thread.
|
* @brief Waiting thread.
|
||||||
*/
|
*/
|
||||||
Thread *thread;
|
Thread *thread;
|
||||||
#endif /* SPI_USE_WAIT */
|
#endif /* SPI_USE_WAIT */
|
||||||
#if SPI_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
|
#if SPI_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
|
||||||
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
|
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief Mutex protecting the bus.
|
* @brief Mutex protecting the bus.
|
||||||
*/
|
*/
|
||||||
Mutex mutex;
|
Mutex mutex;
|
||||||
#elif CH_USE_SEMAPHORES
|
#elif CH_USE_SEMAPHORES
|
||||||
|
|
Loading…
Reference in New Issue