projects
/
goodfet
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fabe89c9bfa60b1c596fc8960ddf800cf35b9457
[goodfet]
/
firmware
/
tests
/
blink
/
blink.c
1
//GOODFET Echo test.
\r
2
\r
3
\r
4
#include "platform.h"
\r
5
\r
6
#include <signal.h>
\r
7
#include <io.h>
\r
8
#include <iomacros.h>
\r
9
\r
10
//LED on P1.0
\r
11
//IO on P5
\r
12
\r
13
//! Initialize registers and all that jazz.
\r
14
void init(){
\r
15
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
16
\r
17
//LED and TX OUT
\r
18
PLEDDIR |= PLEDPIN;
\r
19
\r
20
//Enable Interrupts.
\r
21
//eint();
\r
22
}
\r
23
\r
24
//! Main loop.
\r
25
int main(void)
\r
26
{
\r
27
volatile unsigned int i;
\r
28
init();
\r
29
\r
30
while(1){
\r
31
i = 10000;
\r
32
while(i--);
\r
33
\r
34
PLEDOUT^=PLEDPIN; // Blink
\r
35
}
\r
36
}
\r
37
\r