fix bug, add button to main
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern uint32_t BUTTON_CYCLE;
|
||||
extern const uint32_t BUTTON_CYCLE;
|
||||
|
||||
typedef enum {
|
||||
BUTTONS_FIRST,
|
||||
|
@ -11,6 +11,9 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern const uint32_t EGG_TIMER_CYCLE;
|
||||
|
||||
|
||||
|
||||
void eggTimerInit(void *handleArg);
|
||||
void eggTimerExec(void *handleArg);
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "PontCoopScheduler.h"
|
||||
#include "measure.h"
|
||||
#include "eggTimer.h"
|
||||
#include "button.h"
|
||||
|
||||
|
||||
|
||||
@ -42,11 +43,13 @@ int main() {
|
||||
measureInit(NULL);
|
||||
displayMuxerInit(NULL);
|
||||
eggTimerInit(NULL);
|
||||
buttonInit(NULL);
|
||||
|
||||
// schAdd(displayExec, NULL, 0, DISPLAY_CYCLE);
|
||||
schAdd(measureStartConversion, NULL, 0, MEASURE_CYCLE);
|
||||
schAdd(displayMuxerExec, NULL, 0, DISPLAY_MUXER_CYCLE);
|
||||
schAdd(eggTimerExec, NULL, 0, EGG_TIMER_CYCLE);
|
||||
schAdd(buttonExec, NULL, 0, BUTTON_CYCLE);
|
||||
|
||||
__enable_interrupt();
|
||||
|
||||
|
Reference in New Issue
Block a user