1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

i2c: rename FSM faulted state

Differentiate the _FSM_ faulted from the (soon to
exist _BUS_ faulted state.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1621 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
stac 2010-09-15 14:20:52 +00:00 committed by stac
parent 139da048f6
commit 85c60479c1
2 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ enum i2c_adapter_event {
I2C_EVENT_NUM_EVENTS /* Must be last */
};
static void go_faulted (struct pios_i2c_adapter * i2c_adapter);
static void go_fsm_fault (struct pios_i2c_adapter * i2c_adapter);
static void go_stopping (struct pios_i2c_adapter * i2c_adapter);
static void go_stopped (struct pios_i2c_adapter * i2c_adapter);
static void go_starting (struct pios_i2c_adapter * i2c_adapter);
@ -97,8 +97,8 @@ static void i2c_adapter_inject_event(struct pios_i2c_adapter * i2c_adapter, enum
static void i2c_adapter_fsm_init(struct pios_i2c_adapter * i2c_adapter);
const static struct i2c_adapter_transition i2c_adapter_transitions[I2C_STATE_NUM_STATES] = {
[I2C_STATE_FAULTED] = {
.entry_fn = go_faulted,
[I2C_STATE_FSM_FAULT] = {
.entry_fn = go_fsm_fault,
},
[I2C_STATE_STOPPED] = {
@ -285,7 +285,7 @@ const static struct i2c_adapter_transition i2c_adapter_transitions[I2C_STATE_NUM
},
};
static void go_faulted (struct pios_i2c_adapter * i2c_adapter)
static void go_fsm_fault (struct pios_i2c_adapter * i2c_adapter)
{
PIOS_DEBUG_Assert(0);
}

View File

@ -43,7 +43,7 @@ struct pios_i2c_adapter_cfg {
};
enum i2c_adapter_state {
I2C_STATE_FAULTED = 0, /* Must be zero so undefined transitions land here */
I2C_STATE_FSM_FAULT = 0, /* Must be zero so undefined transitions land here */
I2C_STATE_STOPPED,
I2C_STATE_STOPPING,