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