TI中文支持网
TI专业的中文技术问题搜集分享网站

tm4c123gh6pm的Uart例程中UARTLoopbackEnable请问在哪里呢?

xyz549040622:

1.在.lib库中有的

2.C:\ti\TivaWare_C_Series-2.1.4.178\driverlib下的uart.c中也是有原型的,原型函数如下所示:

//*****************************************************************************
//
//! Enables internal loopback mode for a UART port
//!
//! \param ui32Base is the base address of the UART port.
//!
//! This function configures a UART port in internal loopback mode to help with
//! diagnostics and debug.In this mode, the transmit and receive terminals of
//! the same UART port are internally connected.Hence, the data transmitted
//! on the UnTx output is received on the UxRx input, without having to go
//! through I/O's.UARTCharPut(), UARTCharGet() functions can be used along//! with this function.
//!
//! \return None.
//
//*****************************************************************************
void UARTLoopbackEnable(uint32_t ui32Base)
{//// Check the arguments.//ASSERT(_UARTBaseValid(ui32Base));//// Write the Loopback Enable bit to register.//HWREG(ui32Base + UART_O_CTL) |= UART_CTL_LBE;
}

3.楼主你的图片挂了,图片需要以附件方式上传,不能直接粘贴的。

Susan Yang:

谢谢楼上的回答

另外您也可以在 TI Resource Explorer 内查看

http://dev.ti.com/tirex/explore/node?node=AG7Ca9JTFbbddKCFBzVSOQ__mic1X5.__LATEST

赞(0)
未经允许不得转载:TI中文支持网 » tm4c123gh6pm的Uart例程中UARTLoopbackEnable请问在哪里呢?
分享到: 更多 (0)