81
81
// Baudrate to byte-time in microseconds with a little extra margin.
82
82
//
83
83
//*****************************************************************************
84
- #define ONE_BYTE_US (baudrate ) (12000000/(baudrate))
84
+ #define ONE_BYTE_US (baudrate ) (12000000/(baudrate))
85
85
#define ONE_BYTE_DELAY (handle ) \
86
86
am_hal_flash_delay(FLASH_CYCLES_US(ONE_BYTE_US((handle)->ui32BaudRate)))
87
87
@@ -299,9 +299,9 @@ am_hal_uart_power_control(void *pHandle,
299
299
UARTn (ui32Module )-> IBRD = pState -> sRegState .regIBRD ;
300
300
UARTn (ui32Module )-> FBRD = pState -> sRegState .regFBRD ;
301
301
UARTn (ui32Module )-> LCRH = pState -> sRegState .regLCRH ;
302
- UARTn (ui32Module )-> CR = pState -> sRegState .regCR ;
302
+ UARTn (ui32Module )-> CR = pState -> sRegState .regCR ;
303
303
UARTn (ui32Module )-> IFLS = pState -> sRegState .regIFLS ;
304
- UARTn (ui32Module )-> IER = pState -> sRegState .regIER ;
304
+ UARTn (ui32Module )-> IER = pState -> sRegState .regIER ;
305
305
306
306
pState -> sRegState .bValid = false;
307
307
@@ -322,9 +322,9 @@ am_hal_uart_power_control(void *pHandle,
322
322
pState -> sRegState .regIBRD = UARTn (ui32Module )-> IBRD ;
323
323
pState -> sRegState .regFBRD = UARTn (ui32Module )-> FBRD ;
324
324
pState -> sRegState .regLCRH = UARTn (ui32Module )-> LCRH ;
325
- pState -> sRegState .regCR = UARTn (ui32Module )-> CR ;
325
+ pState -> sRegState .regCR = UARTn (ui32Module )-> CR ;
326
326
pState -> sRegState .regIFLS = UARTn (ui32Module )-> IFLS ;
327
- pState -> sRegState .regIER = UARTn (ui32Module )-> IER ;
327
+ pState -> sRegState .regIER = UARTn (ui32Module )-> IER ;
328
328
pState -> sRegState .bValid = true;
329
329
330
330
AM_CRITICAL_END
0 commit comments