Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Dear All.
I'm trying to control GPIO using N2HET1 Port.
static void vSetHetGioOutputPort(uint32 pinNum, boolean lowHigh)
{
uint32 currentPortValue = gioGetPort(hetPORT1);
if(lowHigh) {
gioSetPort(hetPORT1, currentPortValue | (1U << pinNum));
}
else {
gioSetPort(hetPORT1, currentPortValue & (~(1U << pinNum)));
}
}
I wrote the control function as above. The pinNum will have the value 31 and lowHigh will control the gpio to High/Low.
Is the function written correctly? Please check.


