projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use cfg_ser.h to sets serial port. Use appropriate name to boot serial port. Reformat.
[bertos.git]
/
examples
/
triface
/
boot
/
main.c
diff --git
a/examples/triface/boot/main.c
b/examples/triface/boot/main.c
index dc105baf0374a10c02de0ee5ce608012b89edc5b..f4f05c436ad82ad49d6302502b8cb74d13753828 100644
(file)
--- a/
examples/triface/boot/main.c
+++ b/
examples/triface/boot/main.c
@@
-46,19
+46,19
@@
* \author Daniele Basile <asterix@develer.com>
*/
* \author Daniele Basile <asterix@develer.com>
*/
+#include "hw/hw_boot.h"
+#include "cfg/cfg_ser.h"
+
#include <net/xmodem.h>
#include <net/xmodem.h>
+
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/macros.h> /* BV() */
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/macros.h> /* BV() */
-#include <drv/wdt.h>
#include <drv/ser.h>
#include <drv/timer.h>
#include <drv/flash_avr.h>
#include <drv/ser.h>
#include <drv/timer.h>
#include <drv/flash_avr.h>
-#include "hw/hw_boot.h"
-#include "cfg/cfg_boot.h"
-
#include <string.h>
int main(void)
#include <string.h>
int main(void)
@@
-77,11
+77,10
@@
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_HOST
PORT);
- ser_setbaudrate(&ser, CONFIG_
SER_HOSTPORT
BAUDRATE);
+ ser_init(&ser, CONFIG_
BOOT_
PORT);
+ ser_setbaudrate(&ser, CONFIG_
BOOT_
BAUDRATE);
xmodem_recv(&ser, &flash.fd);
kfile_close(&flash.fd);
xmodem_recv(&ser, &flash.fd);
kfile_close(&flash.fd);