#ifdef My_Sensor_Thread
void *ptr2 = NULL;
ptr2 = CyU3PMemAlloc (UVC_APP_THREAD_STACK);
retThrdCreate = CyU3PThreadCreate (&mpuThread,
"MPU_Thread",
MPU_Thread_Entry,
0,
ptr2,
UVC_APP_THREAD_STACK,
UVC_APP_THREAD_PRIORITY,
UVC_APP_THREAD_PRIORITY,
CYU3P_NO_TIME_SLICE,
CYU3P_AUTO_START
);
if (retThrdCreate !=
0)
{
while(
1);
}
#endif
CyU3PThread mpuThread;
void
MPU_Thread_Entry (
uint32_t input)
{
CyU3PThreadSleep (
3000);
for (;;){
CyU3PThreadRelinquish ();
}
}
转载请注明原文地址: https://ju.6miu.com/read-963750.html