Merge pull request #947 from zwpaper/enableFlowControl
Fix the uart0 flow control register P0SEL setting in cpu cc253x
This commit is contained in:
commit
2f5db64b2b
@ -39,7 +39,7 @@ uart0_init()
|
|||||||
#else
|
#else
|
||||||
PERCFG &= ~PERCFG_U0CFG; /* alternative port 1 = P0.5-2 */
|
PERCFG &= ~PERCFG_U0CFG; /* alternative port 1 = P0.5-2 */
|
||||||
#ifdef UART0_RTSCTS
|
#ifdef UART0_RTSCTS
|
||||||
P0SEL |= 0x20 | 0x10; /* peripheral select for TX and RX */
|
P0SEL |= 0x3C; /* peripheral select for RTS and CTS, TX, RX */
|
||||||
#else
|
#else
|
||||||
P0SEL |= 0x0C; /* peripheral select for TX and RX */
|
P0SEL |= 0x0C; /* peripheral select for TX and RX */
|
||||||
P0 &= ~0x20; /* RTS down */
|
P0 &= ~0x20; /* RTS down */
|
||||||
|
Loading…
Reference in New Issue
Block a user