cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

New Contributor II

初始化如下代码返回0x44的错误是怎么回事?

CyU3PDeviceGpioOverride(17, CyFalse);  

gpioConf.outValue = CyFalse;

    gpioConf.driveLowEn = CyFalse;

    gpioConf.driveHighEn = CyFalse;

    gpioConf.inputEn = CyTrue;

    gpioConf.intrMode = CY_U3P_GPIO_INTR_POS_EDGE;

    status = CyU3PGpioSetSimpleConfig(17, &gpioConf);

0 Likes
Reply
1 Solution
New Contributor II

哎  解决了,不知道为啥这个参数变为CyFalse了,CyU3PDeviceGpioOverride(17, CyFalse);  改为CyTrue就好了

View solution in original post

0 Likes
Reply
3 Replies
Moderator
Moderator

您好,

从这段代码中看不出什么问题,请问您这个问题还是之前的帖子Re: 怎么控制某一个GPIO管脚开关中断​ 中的问题吗?


Regards,
Eddie

0 Likes
Reply
New Contributor II

对,是那个管脚,但不是同一个问题。这个很奇怪,之前是没问题的,忽然就不行了,报这个错误。请问返回这个错误能是啥原因?

0 Likes
Reply
New Contributor II

哎  解决了,不知道为啥这个参数变为CyFalse了,CyU3PDeviceGpioOverride(17, CyFalse);  改为CyTrue就好了

View solution in original post

0 Likes
Reply