mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Add 460800 baud rate support to Z1
This commit is contained in:
parent
983a618a36
commit
39e8435141
@ -104,7 +104,12 @@ static uint8_t is_gateway;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void init_platform(void);
|
void init_platform(void);
|
||||||
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#ifdef UART0_CONF_BAUD_RATE
|
||||||
|
#define UART0_BAUD_RATE UART0_CONF_BAUD_RATE
|
||||||
|
#else
|
||||||
|
#define UART0_BAUD_RATE 115200
|
||||||
|
#endif
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if 0
|
#if 0
|
||||||
int
|
int
|
||||||
@ -202,9 +207,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
clock_wait(100);
|
clock_wait(100);
|
||||||
|
|
||||||
uart0_init(BAUD2UBR(115200)); /* Must come before first printf */
|
uart0_init(BAUD2UBR(UART0_BAUD_RATE)); /* Must come before first printf */
|
||||||
#if NETSTACK_CONF_WITH_IPV4
|
#if NETSTACK_CONF_WITH_IPV4
|
||||||
slip_arch_init(BAUD2UBR(115200));
|
slip_arch_init(BAUD2UBR(UART0_BAUD_RATE));
|
||||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
||||||
|
|
||||||
xmem_init();
|
xmem_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user