git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2313 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e5d3bdcf76
commit
4f1b492119
|
@ -82,11 +82,11 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
CAN_UNINIT = 0, /**< @brief Not initialized. */
|
||||
CAN_STOP = 1, /**< @brief Stopped. */
|
||||
CAN_STARTING = 2, /**< @brief Starting. */
|
||||
CAN_READY = 3, /**< @brief Ready. */
|
||||
CAN_SLEEP = 4 /**< @brief Sleep state. */
|
||||
CAN_UNINIT = 0, /**< Not initialized. */
|
||||
CAN_STOP = 1, /**< Stopped. */
|
||||
CAN_STARTING = 2, /**< Starting. */
|
||||
CAN_READY = 3, /**< Ready. */
|
||||
CAN_SLEEP = 4 /**< Sleep state. */
|
||||
} canstate_t;
|
||||
|
||||
#include "can_lld.h"
|
||||
|
|
|
@ -57,13 +57,13 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
I2C_UNINIT = 0, /**< @brief Not initialized. */
|
||||
I2C_STOP = 1, /**< @brief Stopped. */
|
||||
I2C_READY = 2, /**< @brief Ready. */
|
||||
I2C_MREADY = 3, /**< @brief START and address sent. */
|
||||
I2C_MTRANSMIT = 4, /**< @brief Master transmitting. */
|
||||
I2C_MRECEIVE = 5, /**< @brief Master receiving. */
|
||||
I2C_MERROR = 6 /**< @brief Error condition. */
|
||||
I2C_UNINIT = 0, /**< Not initialized. */
|
||||
I2C_STOP = 1, /**< Stopped. */
|
||||
I2C_READY = 2, /**< Ready. */
|
||||
I2C_MREADY = 3, /**< START and address sent. */
|
||||
I2C_MTRANSMIT = 4, /**< Master transmitting. */
|
||||
I2C_MRECEIVE = 5, /**< Master receiving. */
|
||||
I2C_MERROR = 6 /**< Error condition. */
|
||||
} i2cstate_t;
|
||||
|
||||
#include "i2c_lld.h"
|
||||
|
|
|
@ -102,13 +102,13 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
MMC_UNINIT = 0, /**< @brief Not initialized. */
|
||||
MMC_STOP = 1, /**< @brief Stopped. */
|
||||
MMC_WAIT = 2, /**< @brief Waiting card. */
|
||||
MMC_INSERTED = 3, /**< @brief Card inserted. */
|
||||
MMC_READY = 4, /**< @brief Card ready. */
|
||||
MMC_READING = 5, /**< @brief Reading. */
|
||||
MMC_WRITING = 6 /**< @brief Writing. */
|
||||
MMC_UNINIT = 0, /**< Not initialized. */
|
||||
MMC_STOP = 1, /**< Stopped. */
|
||||
MMC_WAIT = 2, /**< Waiting card. */
|
||||
MMC_INSERTED = 3, /**< Card inserted. */
|
||||
MMC_READY = 4, /**< Card ready. */
|
||||
MMC_READING = 5, /**< Reading. */
|
||||
MMC_WRITING = 6 /**< Writing. */
|
||||
} mmcstate_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -50,19 +50,18 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
PWM_UNINIT = 0, /**< @brief Not initialized. */
|
||||
PWM_STOP = 1, /**< @brief Stopped. */
|
||||
PWM_READY = 2, /**< @brief Ready. */
|
||||
PWM_UNINIT = 0, /**< Not initialized. */
|
||||
PWM_STOP = 1, /**< Stopped. */
|
||||
PWM_READY = 2, /**< Ready. */
|
||||
} pwmstate_t;
|
||||
|
||||
/**
|
||||
* @brief PWM logic mode.
|
||||
*/
|
||||
typedef enum {
|
||||
PWM_OUTPUT_DISABLED = 0, /**< @brief Output not driven, callback
|
||||
only. */
|
||||
PWM_OUTPUT_ACTIVE_HIGH = 1, /**< @brief Idle is logic level 0. */
|
||||
PWM_OUTPUT_ACTIVE_LOW = 2 /**< @brief Idle is logic level 1. */
|
||||
PWM_OUTPUT_DISABLED = 0, /**< Output not driven, callback only. */
|
||||
PWM_OUTPUT_ACTIVE_HIGH = 1, /**< Idle is logic level 0. */
|
||||
PWM_OUTPUT_ACTIVE_LOW = 2 /**< Idle is logic level 1. */
|
||||
} pwmmode_t;
|
||||
|
||||
#include "pwm_lld.h"
|
||||
|
|
|
@ -91,9 +91,9 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
SD_UNINIT = 0, /**< @brief Not initialized. */
|
||||
SD_STOP = 1, /**< @brief Stopped. */
|
||||
SD_READY = 2 /**< @brief Ready. */
|
||||
SD_UNINIT = 0, /**< Not initialized. */
|
||||
SD_STOP = 1, /**< Stopped. */
|
||||
SD_READY = 2 /**< Ready. */
|
||||
} sdstate_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -63,27 +63,27 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
UART_UNINIT = 0, /**< @brief Not initialized. */
|
||||
UART_STOP = 1, /**< @brief Stopped. */
|
||||
UART_READY = 2 /**< @brief Ready. */
|
||||
UART_UNINIT = 0, /**< Not initialized. */
|
||||
UART_STOP = 1, /**< Stopped. */
|
||||
UART_READY = 2 /**< Ready. */
|
||||
} uartstate_t;
|
||||
|
||||
/**
|
||||
* @brief Transmitter state machine states.
|
||||
*/
|
||||
typedef enum {
|
||||
UART_TX_IDLE = 0, /**< @brief Not transmitting. */
|
||||
UART_TX_ACTIVE = 1, /**< @brief Transmitting. */
|
||||
UART_TX_COMPLETE = 2 /**< @brief Buffer complete. */
|
||||
UART_TX_IDLE = 0, /**< Not transmitting. */
|
||||
UART_TX_ACTIVE = 1, /**< Transmitting. */
|
||||
UART_TX_COMPLETE = 2 /**< Buffer complete. */
|
||||
} uarttxstate_t;
|
||||
|
||||
/**
|
||||
* @brief Receiver state machine states.
|
||||
*/
|
||||
typedef enum {
|
||||
UART_RX_IDLE = 0, /**< @brief Not receiving. */
|
||||
UART_RX_ACTIVE = 1, /**< @brief Receiving. */
|
||||
UART_RX_COMPLETE = 2 /**< @brief Buffer complete. */
|
||||
UART_RX_IDLE = 0, /**< Not receiving. */
|
||||
UART_RX_ACTIVE = 1, /**< Receiving. */
|
||||
UART_RX_COMPLETE = 2 /**< Buffer complete. */
|
||||
} uartrxstate_t;
|
||||
|
||||
#include "uart_lld.h"
|
||||
|
|
|
@ -50,9 +50,9 @@
|
|||
* @brief Driver state machine possible states.
|
||||
*/
|
||||
typedef enum {
|
||||
XXX_UNINIT = 0, /**< @brief Not initialized. */
|
||||
XXX_STOP = 1, /**< @brief Stopped. */
|
||||
XXX_READY = 2, /**< @brief Ready. */
|
||||
XXX_UNINIT = 0, /**< Not initialized. */
|
||||
XXX_STOP = 1, /**< Stopped. */
|
||||
XXX_READY = 2, /**< Ready. */
|
||||
} xxxstate_t;
|
||||
|
||||
#include "xxx_lld.h"
|
||||
|
|
Loading…
Reference in New Issue