Tool/software: TI-RTOS
Hi
I am using Power_registerNotify() function with PowerMSP432_ENTERING_SLEEP event type. Like below:
#########
Power_registerNotify(¬ifyObj,PowerMSP432_ENTERING_SLEEP,(Power_NotifyFxn) notifyFxn, 0x1);
unsigned int notifyFxn(unsigned int eventType, unsigned int eventArg, unsigned int clientArg)
{
GPIO_toggle(Board_GPIO_LED3);
return (Power_NOTIFYDONE);
}
#########
I found it strange that mcu always enter the notifyFxn(), although I do nothing about pcm. And I think mcu is in active mode.
Then I try to call PCM_getPowerMode() and PCM_getPowerState() to check the current state. I step into the function and get message below:
Can't find a source file at "/vagrant/build/driverlib/pcm.c"
Locate the file or edit the source lookup path to include its location.
I am quite sure that I have included the lib file, but the pcm.c is located in "simplelink_msp432_sdk_1_30_00_40\source\ti\devices\msp432p4xx\driverlib\pcm.c" not "/vagrant/build/driverlib/pcm.c" .
So my question is:
1、How can I trace into the api function “PCM_getPowerMode()” ?
2、Why does notifyFxn() always be called?
For the second question, I doubt if the sleep() api , which call Task_sleep() will do something to pcm.
So the third question is
3、What will the Task_sleep() do to mcu?
My question maybe quite easy. It is more grateful if you can suggest any detail specs about pcm on msp432 especially under rtos environment.
By the way I am using msp432p401r with ccs7.
Best regards.