Added support for (simulated) serial data input. Data written to netsim's standard input are now sent as serial data to the main node.

This commit is contained in:
adamdunkels 2008-01-14 09:38:16 +00:00
parent 7fcb1f3b2a
commit 7a356d0fb5
9 changed files with 120 additions and 35 deletions

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: ethernode.c,v 1.13 2007/11/28 12:54:42 adamdunkels Exp $
* $Id: ethernode.c,v 1.14 2008/01/14 09:38:16 adamdunkels Exp $
*/
/**
* \file
@ -247,8 +247,7 @@ PROCESS_THREAD(ethernode_process, ev, data)
PROCESS_BEGIN();
while(1) {
process_poll(&ethernode_process);
PROCESS_WAIT_EVENT();
PROCESS_PAUSE();
if(ethernode_poll()) {
if(receiver_callback) {