40 #include <avr/pgmspace.h>
41 #include "contiki-conf.h"
43 #if defined (__AVR_ATmega128__)
45 #elif defined (__AVR_ATmega1281__)
47 #elif defined (__AVR_ATmega1284P__)
49 #elif defined (__AVR_AT90USB1287__)
51 #elif defined (__AVR_ATmega128RFA1__)
53 #elif defined (__AVR_ATmega644__) || defined (__AVR_ATmega328P__)
55 #elif defined (__AVR_ATmega8__) || defined (__AVR_ATmega8515__) \
56 || defined (__AVR_ATmega16__) || defined (__AVR_ATmega32__)
59 #error "Please implement a rs232 header for your MCU (or set the MCU type \
66 #define BAUD_RATE(x) (F_CPU/16/x-1)
79 rs232_init (uint8_t port, uint8_t bd, uint8_t ffmt);
114 rs232_print_p(uint8_t port,
char *buf);
144 rs232_printf(uint8_t port,
const char *fmt, ...);
170 rs232_redirect_stdout (uint8_t port);