diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-05 21:21:28 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-05 21:21:28 +0200 |
| commit | 310c2837836d24e1335eafed4fda2701570c1760 (patch) | |
| tree | 5dec2822850656080ff0dcf89d2772a057e56c8c /src/common | |
| parent | 8618657695b2530f463d1e7e0fca11304d2b897e (diff) | |
| download | glutte-o-matic-310c2837836d24e1335eafed4fda2701570c1760.tar.gz glutte-o-matic-310c2837836d24e1335eafed4fda2701570c1760.tar.bz2 glutte-o-matic-310c2837836d24e1335eafed4fda2701570c1760.zip | |
Create objects for common/ fsm main minmea
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/includes/Core/fsm.h | 3 | ||||
| -rw-r--r-- | src/common/sourcelist.txt | 3 | ||||
| -rw-r--r-- | src/common/src/Core/fsm.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/common/includes/Core/fsm.h b/src/common/includes/Core/fsm.h index 41f0503..c061597 100644 --- a/src/common/includes/Core/fsm.h +++ b/src/common/includes/Core/fsm.h @@ -99,5 +99,8 @@ void fsm_update_inputs(struct fsm_input_signals_t* inputs); // Getter for outputs void fsm_get_outputs(struct fsm_output_signals_t* out); +// Announce a state change +void fsm_state_switched(const char *new_state); + #endif // _FSM_H_ diff --git a/src/common/sourcelist.txt b/src/common/sourcelist.txt index 4c85b65..350c037 100644 --- a/src/common/sourcelist.txt +++ b/src/common/sourcelist.txt @@ -1,5 +1,8 @@ src/GPIO/usart.c src/GPS/gps.c +src/GPS/minmea.c src/Core/common.c +src/Core/fsm.c +src/Core/main.c src/Audio/cw.c src/Audio/audio.c diff --git a/src/common/src/Core/fsm.c b/src/common/src/Core/fsm.c index e5d7ca7..d2c95f6 100644 --- a/src/common/src/Core/fsm.c +++ b/src/common/src/Core/fsm.c @@ -36,9 +36,6 @@ static fsm_state_t current_state; // in ms using the timestamp_now() function static uint64_t timestamp_state[_NUM_FSM_STATES]; - -void fsm_state_switched(char * new_state); - void fsm_init() { memset(&fsm_in, 0, sizeof(fsm_in)); memset(&fsm_out, 0, sizeof(fsm_out)); |
