SWRA578B October 2017 – April 2020 CC1312PSIP , CC1312R , CC1314R10 , CC1352P , CC1352P7 , CC1352R , CC2620 , CC2630 , CC2640 , CC2640R2F-Q1 , CC2642R , CC2642R-Q1 , CC2650MODA , CC2652P , CC2652R , CC2652R7 , CC2652RB , CC2652RSIP
The wake up and sleep example is created in the following way:
/* Driver Header files */
#include <ti/drivers/GPIO.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Clock.h>
/* Driver configuration */
#include "ti_drivers_config.h"
#define WAKEUPFREQUENCY 10 //10 Hz Wake up frequency
/* ======== mainThread ======== */
void *mainThread(void *arg0)
{
while (1) {
Task_sleep((1000000/WAKEUPFREQUENCY) / Clock_tickPeriod);
}
}