added serial line init

This commit is contained in:
fros4943 2009-04-01 13:38:14 +00:00
parent 04101aae36
commit 1536c83f2f

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: contiki_template.c,v 1.12 2009/03/17 10:34:02 fros4943 Exp $ * $Id: contiki_template.c,v 1.13 2009/04/01 13:38:14 fros4943 Exp $
*/ */
/** /**
@ -65,14 +65,13 @@
#include "contiki-lib.h" #include "contiki-lib.h"
#include "contiki-conf.h" #include "contiki-conf.h"
#include "sys/clock.h" #include "sys/clock.h"
#include "lib/simEnvChange.h"
#include "lib/sensors.h"
#include "dev/cooja-radio.h"
#include "sys/etimer.h" #include "sys/etimer.h"
#include "sys/cooja_mt.h" #include "sys/cooja_mt.h"
#include "dev/serial-line.h"
#include "dev/cooja-radio.h"
#include "lib/simEnvChange.h"
#include "lib/sensors.h"
#include "net/init-net.h" #include "net/init-net.h"
#include "node-id.h" #include "node-id.h"
PROCINIT(&etimer_process,&sensors_process); PROCINIT(&etimer_process,&sensors_process);
@ -118,8 +117,6 @@ print_processes(struct process * const processes[])
static void static void
start_process_run_loop(void *data) start_process_run_loop(void *data)
{ {
int i;
/* Initialize random generator */ /* Initialize random generator */
random_init(0); random_init(0);
@ -139,11 +136,9 @@ start_process_run_loop(void *data)
/* Initialize communication stack */ /* Initialize communication stack */
init_net(); init_net();
printf("Rime started with address ");
for(i = 0; i < sizeof(rimeaddr_node_addr.u8) - 1; i++) { /* Start serial process */
printf("%d.", rimeaddr_node_addr.u8[i]); serial_line_init();
}
printf("%d\n", rimeaddr_node_addr.u8[i]);
/* Start autostart processes (defined in Contiki application) */ /* Start autostart processes (defined in Contiki application) */
print_processes(autostart_processes); print_processes(autostart_processes);