projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename myself
[bertos.git]
/
app
/
triface
/
boot
/
main.c
diff --git
a/app/triface/boot/main.c
b/app/triface/boot/main.c
index 85b7c9036841161be628ea752c2288ee8dc559f0..97b1cefc4b6621d55090ddf9cd7ce6a9655fb66a 100644
(file)
--- a/
app/triface/boot/main.c
+++ b/
app/triface/boot/main.c
@@
-27,7
+27,7
@@
* the GNU General Public License.
*
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* the GNU General Public License.
*
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
- * Copyright 2000 Bern
ardo
Innocenti <bernie@codewiz.org>
+ * Copyright 2000 Bern
ie
Innocenti <bernie@codewiz.org>
*
* -->
*
*
* -->
*
@@
-63,12
+63,12
@@
int main(void)
{
int main(void)
{
- KFile
fd
;
+ KFile
FlashAvr flash
;
KFileSerial ser;
// Set up flash programming functions.
KFileSerial ser;
// Set up flash programming functions.
- flash_avr_init(&f
d
);
+ flash_avr_init(&f
lash
);
IRQ_ENABLE;
IRQ_ENABLE;
@@
-76,12
+76,15
@@
int main(void)
kdbg_init();
timer_init();
kdbg_init();
timer_init();
+
+
/* Open the main communication port */
/* Open the main communication port */
+
ser_init(&ser, CONFIG_SER_HOSTPORT);
ser_setbaudrate(&ser, CONFIG_SER_HOSTPORTBAUDRATE);
ser_init(&ser, CONFIG_SER_HOSTPORT);
ser_setbaudrate(&ser, CONFIG_SER_HOSTPORTBAUDRATE);
- xmodem_recv(&ser, &fd);
- kfile_close(&fd);
+ xmodem_recv(&ser, &f
lash.f
d);
+ kfile_close(&f
lash.f
d);
kfile_close(&ser.fd);
IRQ_DISABLE;
kfile_close(&ser.fd);
IRQ_DISABLE;
@@
-89,4
+92,6
@@
int main(void)
BOOT_END;
START_APP();
BOOT_END;
START_APP();
+
}
}
+