I know the default button 1 __interrupt is on p0_1
AND it works because of blow function.
HAL_ISR_FUNCTION( halKeyPort0Isr, P0INT_VECTOR )
{
if (HAL_KEY_SW_6_PXIFG & HAL_KEY_SW_6_BIT)
{
halProcessKeyInterrupt();
}
/*
Clear the CPU interrupt flag for Port_0
PxIFG has to be cleared before PxIF
*/
HAL_KEY_SW_6_PXIFG = 0;
HAL_KEY_CPU_PORT_0_IF = 0;
}
Now I wonder Can I suddenly disable the p0_1's button function and change it to other stuff in my program,
Then Get it back to work as a button again?
Such as I send a string command over air to my zigbee router ,which is from the coordinator, it will disable p0_1 to other functions
Then I can send a string command again to my zigbee to get p0_1 back to work as the button 1 as before?
Thanks
btw:
Can I also change the ADC default pin ? which is on p0.