blinky1/led.c

25 lines
297 B
C

/*
* 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, 100);
}