fix bug, add button to main

This commit is contained in:
Wolfgang Hottgenroth
2016-09-08 14:13:41 +02:00
parent 8e08c2045e
commit 737eb6595a
3 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,7 @@
#include <stdint.h>
extern uint32_t BUTTON_CYCLE;
extern const uint32_t BUTTON_CYCLE;
typedef enum {
BUTTONS_FIRST,

View File

@ -11,6 +11,9 @@
#include <stdint.h>
extern const uint32_t EGG_TIMER_CYCLE;
void eggTimerInit(void *handleArg);
void eggTimerExec(void *handleArg);

View File

@ -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();