From 170c552ebdc180e3a231231d5851909fd29f6f39 Mon Sep 17 00:00:00 2001 From: schodet Date: Sat, 5 Nov 2005 22:18:39 +0000 Subject: Correction de avrconfig.h. Tests sur host. --- n/avr/modules/proto/test/avrconfig.h | 3 ++- n/avr/modules/proto/test/test_proto.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'n/avr') diff --git a/n/avr/modules/proto/test/avrconfig.h b/n/avr/modules/proto/test/avrconfig.h index 20cdbfb..8a51410 100644 --- a/n/avr/modules/proto/test/avrconfig.h +++ b/n/avr/modules/proto/test/avrconfig.h @@ -59,7 +59,7 @@ /** In HOST compilation: * - STDIO: use stdin/out. * - PTS: use pseudo terminal. */ -#define AC_UART0_HOST_DRIVER PTS +#define AC_UART0_HOST_DRIVER STDIO /** Same thing for secondary port. */ #define AC_UART1_PORT -1 #define AC_UART1_BAUDRATE 115200 @@ -71,6 +71,7 @@ #define AC_UART1_SEND_BUFFER_SIZE 32 #define AC_UART1_RECV_BUFFER_SIZE 32 #define AC_UART1_SEND_BUFFER_FULL WAIT +#define AC_UART1_HOST_DRIVER PTS /* proto - Protocol module. */ /** Maximum argument size. */ diff --git a/n/avr/modules/proto/test/test_proto.c b/n/avr/modules/proto/test/test_proto.c index 3b7e535..0503b6c 100644 --- a/n/avr/modules/proto/test/test_proto.c +++ b/n/avr/modules/proto/test/test_proto.c @@ -72,7 +72,6 @@ main (void) sei (); uart0_init (); /* This command should be generaly sent on reset. */ - printf ("reset\n"); proto_send0 ('z'); /* This is to accept commands. */ while (1) -- cgit v1.2.3