Platform/ECM3532/M3/hw/power/common/src/dvfs_mon.c
/**
 *
 * This function performs initializations that are required before tasks run.
 *
 * @return int 0 success; error otherwise.
 */
This function performs initializations that are required before tasks run.
@return int 0 success; error otherwise.
This function performs initializations that are required before tasks run . @return int 0 success ; error otherwise .
__attribute__((section(".initSection")))
int init_mon_tasks(void)
{
    mon_eventq = xQueueCreate( MONQ_LENGTH, sizeof(mev));
	xTaskCreate(mt_handler, "mon", configMINIMAL_STACK_SIZE,
                        NULL, tskIDLE_PRIORITY + 2, NULL);
#ifdef CONFIG_CLI
	FreeRTOS_CLIRegisterCommand( &dvfs_mon);
#endif
    return 0;
}
__attribute__ ( ( section ( " " ) ) ) int init_mon_tasks ( void ) { mon_eventq = xQueueCreate ( MONQ_LENGTH , sizeof ( mev ) ) ; xTaskCreate ( mt_handler , " " , configMINIMAL_STACK_SIZE , NULL , tskIDLE_PRIORITY + 2 , NULL ) ; #ifdef CONFIG_CLI FreeRTOS_CLIRegisterCommand ( & dvfs_mon ) ; #endif return 0 ; }
This function performs initializations that are required before tasks run.
This function performs initializations that are required before tasks run .
/*
     * initializing the tasks with the OS.
     */