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_ATmega644__) || defined (__AVR_ATmega328P__)
54 #elif defined (__AVR_ATmega8__) || defined (__AVR_ATmega8515__) \
55 || defined (__AVR_ATmega16__) || defined (__AVR_ATmega32__)
58 #error "Please implement a rs232 header for your MCU (or set the MCU type \
65 #define BAUD_RATE(x) (F_CPU/16/x-1)
78 rs232_init (uint8_t port, uint8_t bd, uint8_t ffmt);
130 rs232_printf(uint8_t port,
const char *fmt, ...);
156 rs232_redirect_stdout (uint8_t 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.
AVR specific definitions for the rs232 port.
AVR specific definitions for the rs232 port.
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.
void rs232_send(uint8_t port, unsigned char c)
Print a character on RS232.