The following function doesn't properly disable control of the bypass from the stack so that I can measure the battery level. Is there a bug with this function?
HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_NONE, HCI_EXT_PM_IO_PORT_PIN2); //Disable Stack Control
I disable and wait 20msec before sampling the battery. Then I reenable Stack Control of the bypass with:
HCI_EXT_MapPmIoPortCmd( HCI_EXT_PM_IO_PORT_P1, HCI_EXT_PM_IO_PORT_PIN2 );
Is there something wrong with this procedure? Thanks for the help guys