CC3200使用idle_profile时进入lpds,用GPIO唤醒后立马再次进入lpds,怎样可以让他退出lpds后不再进入呢,或者说让任务 存活时间更长一些
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
进S1肯定是不对的,你看一下那个尝试进S3的函数为什么返回的不是0,再跟进去看看,那个hw module_id是哪个外设硬件的ID导致了不能进低功耗。
似乎lp3p0_setup_power_policy(POWER_POLICY_SLEEP);无法进入其中 我添加了一个任务:
while(1)
{
i++;
UART_PRINT("my test_task\n\r");
vTaskDelay(100 / portTICK_PERIOD_MS );
if(i==10)
{
i=0;
wake_flag=0;
}
}
在钩子函数中使用
void vApplicationIdleHook( void )
{
// cc_idle_task_pm();
if(wake_flag==0)
{
// UART_PRINT("sleep\r\n");
cc_idle_task_pm();
}
}
就会一直显示以下log:
my test_task
my test_task
my test_task
my test_task
my test_task
my test_task
my test_task
my test_task
my test_task
my test_task
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO
GPIO