comparison tests/cptest.c @ 3:e410832c3280

Issue of avr-ld. - For some unknown reason, avr-ld can not handle multiple objects well. - Fixed by compile all source at once.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 22 Feb 2009 01:40:36 +0800
parents f7c60e525801
children
comparison
equal deleted inserted replaced
2:abf221bf3ce4 3:e410832c3280
28 int i; 28 int i;
29 29
30 flash_init(); 30 flash_init();
31 31
32 uart_init(BAUD_RATE); 32 uart_init(BAUD_RATE);
33 33
34 cp = cmd_proto_new(); 34 cp = cmd_proto_new();
35 35
36 while(1) { 36 while(1) {
37 uart_getc(c); 37 uart_getc(c);
38 cmd = cmd_proto_rcv(cp, c); 38 cmd = cmd_proto_rcv(cp, c);
39 if(cmd == NULL) 39 if(cmd == NULL)
40 continue; 40 continue;