Example #1
0
/**@brief Function for changing the state of the SPI state machine.
 *
 * @param[in] new_state State where the state machine transits to.
 */
static void sm_state_change(spi_state_t new_state)
{
    m_spi_state = new_state;
    state_entry_action_execute();
}
Example #2
0
/**@brief Function for changing the state of the state machine.
 *
 * @param[in] new_state  State to which the state machine transitions.
 */
static void state_machine_state_change(state_t new_state)
{
    m_state = new_state;
    state_entry_action_execute();
}