projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trying to get 2618 going.
[goodfet]
/
firmware
/
tests
/
echo
/
echo.c
diff --git
a/firmware/tests/echo/echo.c
b/firmware/tests/echo/echo.c
index
fabe89c
..
5938488
100644
(file)
--- a/
firmware/tests/echo/echo.c
+++ b/
firmware/tests/echo/echo.c
@@
-7,16
+7,21
@@
#include <io.h>
\r
#include <iomacros.h>
\r
\r
#include <io.h>
\r
#include <iomacros.h>
\r
\r
+
\r
//LED on P1.0
\r
//IO on P5
\r
\r
//! Initialize registers and all that jazz.
\r
void init(){
\r
//LED on P1.0
\r
//IO on P5
\r
\r
//! Initialize registers and all that jazz.
\r
void init(){
\r
+ volatile unsigned int i;
\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
\r
//LED and TX OUT
\r
PLEDDIR |= PLEDPIN;
\r
\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
\r
//LED and TX OUT
\r
PLEDDIR |= PLEDPIN;
\r
\r
+ msp430_init_dco();
\r
+ msp430_init_uart();
\r
+
\r
//Enable Interrupts.
\r
//eint();
\r
}
\r
//Enable Interrupts.
\r
//eint();
\r
}
\r
@@
-27,6
+32,12
@@
int main(void)
volatile unsigned int i;
\r
init();
\r
\r
volatile unsigned int i;
\r
init();
\r
\r
+
\r
+ PLEDOUT^=PLEDPIN; // Blink
\r
+
\r
+ //while(1) serial_tx(serial_rx());
\r
+ while(1) serial_tx('G');
\r
+
\r
while(1){
\r
i = 10000;
\r
while(i--);
\r
while(1){
\r
i = 10000;
\r
while(i--);
\r