Contiki 2.5
uart1.h
1 /*
2  Copied from mc1322x/dev/cpu.
3 
4  This file exists as a work-around for the hardware dependant calls
5  to slip_arch_init.
6 
7  Current the prototype for slip_arch_init is slip_arch_init(urb)
8 
9  and a typical call is something like
10  slip_arch_init(BAUD2URB(115200))
11 
12  BAUD2UBR is hardware specific, however. Furthermore, for the sky
13  platform it's typically defined with #include "dev/uart1.h" (see
14  rpl-boarder-router/slip-bridge.c), a sky specific file. dev/uart1.h
15  includes msp430.h which includes the sky contiki-conf.h which
16  defines BAUD2UBR.
17 
18  To me, the correct think to pass is simply the baudrate and have the
19  hardware specific conversion happen inside slip_arch_init.
20 
21  Notably, most implementations just ignore the passed parameter
22  anyway. (except AVR)
23 
24  */
25 
26 #ifndef DEV_UART1_H
27 #define DEV_UART1_H
28 
29 #define BAUD2UBR(x) x
30 
31 #endif