Uart

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Uart

1,182 次查看
netra
Contributor IV

Can anyone provide me sample code to use  cts and rts in internal uart of mcf52259Cag80 controller??

Thanks in advance

1 回复

969 次查看
Martin_
NXP Employee
NXP Employee

The UART module can use RTS and CTS automatically. You just enable the functionality. Example for this is given in MQX:

_bsp_serial_io_init() function in gpio_init.c to enable pin functions.

_mcf52xx_uart_serial_polled_ioctl(), case IO_IOCTL_SERIAL_SET_FLAGS, to enable transmitter CTS checking and receiver RTS assertion/deassertion.