39 #include <avr/pgmspace.h>
40 #include "contiki-conf.h"
42 #if defined (__AVR_ATmega128__)
44 #elif defined (__AVR_ATmega1281__)
46 #elif defined (__AVR_ATmega1284P__)
48 #elif defined (__AVR_AT90USB1287__)
50 #elif defined (__AVR_ATmega128RFA1__)
52 #elif defined (__AVR_ATmega128RFR2__)
54 #elif defined (__AVR_ATmega256RFR2__)
56 #elif defined (__AVR_ATmega644__) || defined (__AVR_ATmega328P__)
58 #elif defined (__AVR_ATmega8__) || defined (__AVR_ATmega8515__) \
59 || defined (__AVR_ATmega16__) || defined (__AVR_ATmega32__)
62 #error "Please implement a rs232 header for your MCU (or set the MCU type \
69 #define BAUD_RATE(x) (F_CPU/16/x-1)
82 rs232_init (uint8_t port, uint8_t bd, uint8_t ffmt);
134 rs232_printf(uint8_t port,
const char *fmt, ...);
160 rs232_redirect_stdout (uint8_t port);
AVR specific definitions for the rs232 port.
void rs232_send(char c)
Print a character on RS232.
void rs232_print(char *text)
Print a text string on RS232.
AVR specific definitions for the rs232 port.
AVR specific definitions for the rs232 port.
AVR specific definitions for the rs232 port.
void rs232_init(void)
Initialize the RS232 module.
AVR specific definitions for the rs232 port.
AVR specific definitions for the rs232 port.
void rs232_set_input(int(*f)(unsigned char))
Set an input handler for incoming RS232 data.
AVR specific definitions for the rs232 port.