GPIO_ACTIVE_HIGH in M4 MCU

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

GPIO_ACTIVE_HIGH in M4 MCU

跳至解决方案
2,642 次查看
vinothkumars
Senior Contributor IV

Hi All,

 

I have to configure gpio as high. I am doing like that but, It is not working.

 err = sc_pad_set_all(ipc, SC_P_GPT0_CAPTURE, 3U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x60 , SC_PAD_WAKEUP_OFF);
if (SC_ERR_NONE != err)
{
PRINTF(" Make SC_P_GPT0_CAPTURE gpio failed\r\n");
assert(false);
}

 

 

Regards,
Vinothkumar Sekar
0 项奖励
回复
1 解答
2,635 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vinothkumar

 

if codes are running from M4 side one can look at SDK_MEK-MIMX8QM examples

https://mcuxpresso.nxp.com/en/welcome

For configuring gpio as high one can look at below link, pay attention to MUX_MODE and GPIO

selection :

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Pad-confi...

 

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,636 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vinothkumar

 

if codes are running from M4 side one can look at SDK_MEK-MIMX8QM examples

https://mcuxpresso.nxp.com/en/welcome

For configuring gpio as high one can look at below link, pay attention to MUX_MODE and GPIO

selection :

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Pad-confi...

 

Best regards
igor

0 项奖励
回复
2,631 次查看
vinothkumars
Senior Contributor IV

Thank you Igor for the quick reply.

 

Yes, I am using same pin mux functionality only.

Will you please provide example for GPIO_ACTIVE_HIGH using sc_pad_set_all .

Regards,
Vinothkumar Sekar
0 项奖励
回复
2,619 次查看
vinothkumars
Senior Contributor IV

Thank you @igorpadykov  please close this ticket. I make it this functionality and it is working

Regards,
Vinothkumar Sekar
0 项奖励
回复