Just add this to the GPIOinit() function :
Make sure you DONOT add anything in the main matrix mapping for the GPIOs else the USB fails to re-enumerate!
apiRetStatus = CyU3PDeviceGpioOverride(18, CyTrue);
apiRetStatus = CyU3PGpioSetSimpleConfig(18, &gpioConfig);
Make sure you DONOT add anything in the main matrix mapping for the GPIOs else the USB fails to re-enumerate!
io_cfg.gpioSimpleEn[0] = 0x00000000; << KEEP THIS ZERO io_cfg.gpioSimpleEn[1] = DAC_PORTS | 0x00002000 ;
io_cfg.gpioComplexEn[0] = 0;
io_cfg.gpioComplexEn[1] = 0;
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.