adc working

This commit is contained in:
hg
2016-08-31 15:00:25 +02:00
parent 0f586a3cbe
commit 12ef714fbd
13 changed files with 154 additions and 29 deletions

View File

@ -8,12 +8,14 @@
#include <msp430g2553.h>
#include <stdint.h>
#include <intrinsics.h>
#include <stdlib.h>
#include "gpio.h"
#include "time.h"
#include "display.h"
#include "PontCoopScheduler.h"
#include "testTask.h"
// #include "testTask.h"
#include "measure.h"
int main() {
@ -32,13 +34,24 @@ int main() {
// interrupts are required for delay function in displayInit();
__enable_interrupt();
displayInit();
displayInit(NULL);
__disable_interrupt();
testTaskInit();
// tTestTaskHandle testTaskHandle1;
// testTaskInit(&testTaskHandle1, TESTPIN1);
//
// tTestTaskHandle testTaskHandle2;
// testTaskInit(&testTaskHandle2, TESTPIN2);
// schAdd(displayExec, 0, 100);
schAdd(testTaskExec, 0, 100);
measureInit(NULL);
schAdd(displayExec, NULL, 0, 100);
// schAdd(testTaskExec, &testTaskHandle1, 0, 20);
// schAdd(testTaskExec, &testTaskHandle2, 2, 20);
// schAdd(measureStartConversion, NULL, 0, 1000);
__enable_interrupt();
while (1) {
schExec();