- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I need UART and GPIO53, So I configuration is:
io_cfg.useUart = CyTrue;
io_cfg.useI2C = CyTrue;
io_cfg.useI2S = CyFalse;
io_cfg.useSpi = CyFalse;
io_cfg.isDQ32Bit = CyTrue;
io_cfg.lppMode = CY_U3P_IO_MATRIX_LPP_DEFAULT;
io_cfg.gpioSimpleEn[0] = 0;
io_cfg.gpioSimpleEn[1] = 0x023C0000; /* GPIO 50,51,52,53,57 */
io_cfg.gpioComplexEn[0] = 0;
io_cfg.gpioComplexEn[1] = 0;
status = CyU3PDeviceConfigureIOMatrix(&io_cfg);
If I enable the GPIO53 at simple gpio, the CyU3PDeviceConfigureIOMatrix will fail.
How can I set GPIO53 as IO mode? I just use UART RX/TX. UART RTS/CTS work as GPIO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These change cannot be made in the ConfigureIOMatrix . Follow this thread
http://www.cypress.com/forum/usb-30-super-speed/fx3-uart-gpio-pins-4647
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
I override it by CyU3PDeviceGpioOverride(53, CyTrue);