Hello everyone,
In my project, I want to save power for ZED, so set all unused pin to 0 as below. I'm using mesh z-stack and called them in GenericApp_init function
//Disable unused I/O pin
// Port 2
P2SEL &=~ (BV(0) + BV(1) + BV(2) );
P2DIR |= (BV(0) + BV(1) + BV(2 ));
P2_0 = 0;
P2_1 = 0;
P2_2 = 0;
// Port 1
P1SEL &=~ 0xFF;
P1DIR |= 0xFF;
P1 &= ~0xFF;;
// Port 0
P0SEL &=~ (BV(0) + BV(4) + BV(5) );
P0DIR |= (BV(0) + BV(4) + BV(5 ));
P0_0 = 0;
P0_4 = 0;
P0_5 = 0;
I'm not sure, Could you give me any suggestion?
Thank you very much