Mirtoo update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4860 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
22b8a95b2b
commit
c3316872c5
@ -189,7 +189,7 @@ static void pic32mx_uartsetbaud(uintptr_t uart_base, uint32_t baudrate)
|
||||
|
||||
if (brg > 65536)
|
||||
{
|
||||
/* Nope, too big.. try BRGH=1 */
|
||||
/* Nope, too big.. try BRGH=0 */
|
||||
|
||||
brg = (tmp + 8) >> 4;
|
||||
mode = PIC32MX_UART_MODECLR_OFFSET;
|
||||
|
@ -194,7 +194,11 @@
|
||||
#define UART_MODE_RTSMD (1 << 11) /* Bit 11: Mode selection for ~UxRTS pin */
|
||||
#define UART_MODE_IREN (1 << 12) /* Bit 12: IrDA encoder and decoder enable */
|
||||
#define UART_MODE_SIDL (1 << 13) /* Bit 13: Stop in idle mode */
|
||||
#define UART_MODE_FRZ (1 << 14) /* Bit 14: Freeze in debug exception mode */
|
||||
|
||||
#if !defined(CHIP_PIC32MX1) && !defined(CHIP_PIC32MX2)
|
||||
# define UART_MODE_FRZ (1 << 14) /* Bit 14: Freeze in debug exception mode */
|
||||
#endif
|
||||
|
||||
#define UART_MODE_ON (1 << 15) /* Bit 15: UARTx enable */
|
||||
|
||||
/* UARTx status and control register */
|
||||
|
Loading…
Reference in New Issue
Block a user