blinky1/main.c
Wolfgang Hottgenroth 969f198084
* add readme with comments on debugging
* add optional CFLAGS in Makefile for debugging
* fix _patternChangeColor function in pattern.c
* add debug variant for measure exec function
2019-02-09 17:54:18 +01:00

42 lines
662 B
C

#include <msp430g2553.h>
#include <stdint.h>
#include <intrinsics.h>
#include <stdlib.h>
#include <stdbool.h>
#include "time.h"
#include "PontCoopScheduler.h"
#include "led.h"
#include "pattern.h"
#include "measure.h"
int main() {
WDTCTL = WDTPW | WDTHOLD;
__disable_interrupt();
// highest possible system clock
DCOCTL = DCO0 | DCO1 | DCO2;
BCSCTL1 = XT2OFF | RSEL0 | RSEL1 | RSEL2 | RSEL3;
BCSCTL2 = 0;
BCSCTL3 = 0;
timeInit();
schInit();
ledInit();
patternInit();
measureInit();
// ledSetMatrix(0, 0, BLUE);
__enable_interrupt();
while (1) {
schExec();
ledExec();
}
}