projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Led the LED turn on
[fw/altos]
/
target
/
ee
/
ee.c
diff --git
a/target/ee/ee.c
b/target/ee/ee.c
index 68b6e4cc2f65a107ca8efe822775f11ce310b4a0..6cf276a0cc5f9740b0ae95926bad45a7e6b1475c 100644
(file)
--- a/
target/ee/ee.c
+++ b/
target/ee/ee.c
@@
-375,6
+375,7
@@
main ()
uint8_t buf[LENGTH];
int i;
uint8_t buf[LENGTH];
int i;
+ P1DIR |= 2;
CLKCON = 0;
spi_init();
CLKCON = 0;
spi_init();
@@
-389,10
+390,10
@@
main ()
*/
status &= ~(1 << 7);
wrsr(status);
*/
status &= ~(1 << 7);
wrsr(status);
-
//
write(0x0, STRING, LENGTH);
+
write(0x0, STRING, LENGTH);
for (;;) {
read(0x0, buf, LENGTH);
for (i = 0; i < LENGTH; i++)
for (;;) {
read(0x0, buf, LENGTH);
for (i = 0; i < LENGTH; i++)
- debug_byte(
STRING
[i]);
+ debug_byte(
buf
[i]);
}
}
}
}