initial
This commit is contained in:
24
led.c
Normal file
24
led.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user