![ST AN3311 Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/st/an3311/an3311_instruction_1355862029.webp)
AN3311
In-home display firmware
Doc ID 18209 Rev 1
29/58
CursorReadJoystick(POLLING_MODE);
#endif
vTaskDelay(2);
}
}
6.2.3 prvApplicationTask
describes the prvApplicationTask task:
This function starts the smartplug coordinator application routine.
Example:
void prvApplicationTask( void * pvParameters )
{
/* The parameters are not used in this task. */
( void ) pvParameters;
for( ;; )
{
applicationTick();
/* Wait until it is time to move onto the next string. */
vTaskDelay(4);
}
}
6.2.4 prvSetupHardware
describes the prvSetupHardware function:
Table 13.
prvApplicationTask task
Function name
prvApplicationTask
Function prototype
void prvApplicationTask (void *pvParameters)
Behavior description
Start the Smartplug Coordinator Application routine
Input parameter {x}
None
Output parameter {x}
None
Return value
None
Required preconditions None
Called functions
No API/HAL layer functions;
Table 14.
prvSetupHardware function
Function name
prvSetupHardware
Function prototype
void prvSetupHardware (void)
Behavior description
Initialize the hardware peripheral of the STM32 MCU, and ZigBee
hardware configuration
Input parameter {x}
None
Output parameter {x}
None
Return value
None