FX3 UART接口对应寄存器:
相关API接口已经对其操作进行了封装,可以直接调用,主要就是Init、Config、Transimit、Recieve这4个功能。
/* Default baud rate used by the UART driver. */
#define CY_U3P_UART_DEFAULT_BAUD_RATE (9600)
/* Default timeout value in waiting for a response from the UART registers. */
#define CY_U3P_UART_TIMEOUT (0xFFFFF)
static CyBool_t glIsUartActive = CyFalse; /* Whether UART module is enabled. */
static CyBool_t glIsUartDma = CyFalse; /* Whether UART is in DMA mode. */
static CyBool_t glIsUartConfigured = CyFalse; /* Whether the UART has been configured. */
static CyU3PUartIntrCb_t glUartIntrCb = NULL; /* Callback for UART event notifications. */
static CyU3PMutex glUartLock;