minor serial test application update

This commit is contained in:
fros4943 2009-03-21 15:47:40 +00:00
parent 9088341a17
commit c76f34ff98

View File

@ -26,12 +26,11 @@
* 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: testserial.c,v 1.4 2009/03/17 20:32:22 adamdunkels Exp $ * $Id: testserial.c,v 1.5 2009/03/21 15:47:40 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
#include "dev/serial-line.h" #include "dev/serial-line.h"
#include "dev/rs232.h"
#include <stdio.h> #include <stdio.h>
@ -49,14 +48,11 @@ PROCESS_THREAD(test_serial_process, ev, data)
/* Start serial process */ /* Start serial process */
serial_line_init(); serial_line_init();
printf("Starting serial test process\n");
while(1) { while(1) {
PROCESS_WAIT_EVENT(); PROCESS_WAIT_EVENT();
if (etimer_expired(&et)) { if (etimer_expired(&et)) {
printf("Sending serial data now\n"); printf("Waiting for serial data\n");
rs232_print("GNU's not Unix\n");
etimer_restart(&et); etimer_restart(&et);
} }