Version 0.8
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
|
||||
#define QUAKEY_ENABLE_MOCKS
|
||||
#endif
|
||||
|
||||
#include <quakey.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "state_machine.h"
|
||||
|
||||
void state_machine_init(StateMachine *sm)
|
||||
{
|
||||
(void)sm;
|
||||
}
|
||||
|
||||
void state_machine_free(StateMachine *sm)
|
||||
{
|
||||
(void)sm;
|
||||
}
|
||||
|
||||
OperationResult state_machine_update(StateMachine *sm, Operation op)
|
||||
{
|
||||
(void)sm;
|
||||
(void)op;
|
||||
return OPERATION_RESULT_X;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#ifndef STATE_MACHINE_INCLUDED
|
||||
#define STATE_MACHINE_INCLUDED
|
||||
|
||||
typedef enum {
|
||||
OPERATION_NOOP,
|
||||
OPERATION_A,
|
||||
OPERATION_B,
|
||||
OPERATION_C,
|
||||
} Operation;
|
||||
|
||||
typedef enum {
|
||||
OPERATION_RESULT_X,
|
||||
OPERATION_RESULT_Y,
|
||||
OPERATION_RESULT_Z,
|
||||
} OperationResult;
|
||||
|
||||
typedef struct {
|
||||
|
||||
} StateMachine;
|
||||
|
||||
void state_machine_init(StateMachine *sm);
|
||||
void state_machine_free(StateMachine *sm);
|
||||
|
||||
OperationResult state_machine_update(StateMachine *sm, Operation op);
|
||||
|
||||
#endif // STATE_MACHINE_INCLUDED
|
||||
Reference in New Issue
Block a user