This commit is contained in:
2019-01-24 08:51:21 +01:00
commit 783e8a357e
8 changed files with 138 additions and 0 deletions

24
led.c Normal file
View File

@ -0,0 +1,24 @@
/*
* led.c
*
* Created on: Jan 24, 2019
* Author: wn
*/
#include "led.h"
#include "PontCoopScheduler.h"
#include <msp430g2553.h>
#include <stdlib.h>
void ledExec() {
P1OUT ^= BIT0;
}
void ledInit() {
P1DIR |= BIT0;
P1OUT &= ~BIT0;
schAdd(ledExec, NULL, 0, 1000);
}