GPIO_ACTIVE_HIGH in M4 MCU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO_ACTIVE_HIGH in M4 MCU

Jump to solution
781 Views
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 Kudos
1 Solution
774 Views
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

View solution in original post

0 Kudos
3 Replies
775 Views
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 Kudos
770 Views
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 Kudos
758 Views
vinothkumars
Senior Contributor IV

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

Regards,
Vinothkumar Sekar
0 Kudos