Skip to content

Commit b199a1d

Browse files
bogdanovsjpanisbl
authored andcommitted
simplelink_lpf3: ti: devices: cc23x0r5: Add UARTEnable
Extension is needed to make zephyr driver consistent. Signed-off-by: Stoyan Bogdanov <[email protected]>
1 parent a4f658b commit b199a1d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

simplelink_lpf3/source/ti/devices/cc23x0r5/driverlib/uart.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ void UARTDisable(uint32_t base)
7878
HWREG(base + UART_O_CTL) &= ~(UART_CTL_UARTEN | UART_CTL_TXE | UART_CTL_RXE);
7979
}
8080

81+
//*****************************************************************************
82+
//
83+
// Enable UART
84+
//
85+
//*****************************************************************************
86+
void UARTEnable(uint32_t base)
87+
{
88+
// Enable the UART.
89+
HWREG(base + UART_O_CTL) |= (UART_CTL_UARTEN | UART_CTL_TXE | UART_CTL_RXE);
90+
}
91+
8192
//*****************************************************************************
8293
//
8394
// Blocks until a character is available, and returns it

simplelink_lpf3/source/ti/devices/cc23x0r5/driverlib/uart.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,19 @@ extern void UARTConfigSetExpClk(uint32_t base, uint32_t UARTClkFreq, uint32_t ba
225225
//*****************************************************************************
226226
extern void UARTDisable(uint32_t base);
227227

228+
//*****************************************************************************
229+
//
230+
//! \brief Enable transmitting and receiving.
231+
//!
232+
//! This function enable UARTEN, TXE and RXE.
233+
//!
234+
//! \param base is the base address of the UART port.
235+
//!
236+
//! \return None
237+
//
238+
//*****************************************************************************
239+
extern void UARTEnable(uint32_t base);
240+
228241
//*****************************************************************************
229242
//
230243
//! \brief Enables the transmit and receive FIFOs.

0 commit comments

Comments
 (0)