From 99e387e488e94ab78f50529fdc58b3fad7ec9cae Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sat, 1 Mar 2008 18:13:13 +0100 Subject: * TWI: modify to have a working test on cards: - work with one byte of data exchanged (master send a byte to slave then read it back); - does not manage when slave is not here (no timeout); - use more proto_ functions rather than uart_ ones; - support reset and unknown functions on both test programs; - update configurations to be compatible with the cards used for the test; - add comments. --- digital/avr/modules/twi/test/avrconfig_master.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/avr/modules/twi/test/avrconfig_master.h') diff --git a/digital/avr/modules/twi/test/avrconfig_master.h b/digital/avr/modules/twi/test/avrconfig_master.h index 6496886d..bc070738 100644 --- a/digital/avr/modules/twi/test/avrconfig_master.h +++ b/digital/avr/modules/twi/test/avrconfig_master.h @@ -47,10 +47,10 @@ /* uart - UART module. */ /** Select hardware uart for primary uart: 0, 1 or -1 to disable. */ -#define AC_UART0_PORT 0 +#define AC_UART0_PORT 1 /** Baudrate: 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 76800, * 115200, 230400, 250000, 500000, 1000000. */ -#define AC_UART0_BAUDRATE 9600 +#define AC_UART0_BAUDRATE 38400 /** Send mode: * - POLLING: no interrupts. * - RING: interrupts, ring buffer. */ -- cgit v1.2.3