[2.0.x] Add support for LPC1769 at 120 MHz (#9423)
This commit is contained in:
committed by
Scott Lahteine
parent
6ace57e1b0
commit
e1fd9c08b3
@ -41,6 +41,8 @@ void HardwareSerial::begin(uint32_t baudrate) {
|
||||
PINSEL_CFG_Type PinCfg;
|
||||
UART_FIFO_CFG_Type FIFOConfig;
|
||||
|
||||
if (Baudrate == baudrate) return; // No need to re-initialize
|
||||
|
||||
if (UARTx == LPC_UART0) {
|
||||
// Initialize UART0 pin connect
|
||||
PinCfg.Funcnum = 1;
|
||||
@ -117,6 +119,9 @@ void HardwareSerial::begin(uint32_t baudrate) {
|
||||
#if TX_BUFFER_SIZE > 0
|
||||
TxQueueWritePos = TxQueueReadPos = 0;
|
||||
#endif
|
||||
|
||||
// Save the configured baudrate
|
||||
Baudrate = baudrate;
|
||||
}
|
||||
|
||||
int HardwareSerial::peek() {
|
||||
|
Reference in New Issue
Block a user