#ifndef _TIMESLICE_C_ #define _TIMESLICE_C_ /*********************************************************************************************************************/ #include "timeslice.h" #include "stdint.h" #include "uart.h" #include "xc_drv_uart.h" #include "rgblight.h" #include "timer.h" #include "mode.h" #include "RF433.h" #include "rf433_decoder.h" #include "ota_flash_interface.h" #include "ota_protocol.h" #include "pwm.h" #include "light_transition.h" #include "usr_server.h" /*********************************************************************************************************************/ void rwip_schedule(void); TASK_COMPONENTS TaskComps[] = { {0, 1, 1, rwip_schedule}, //协议栈调度任务 {0, 100, 30, ble_message_process}, //蓝牙处理任务 {0, 0, 0, app_op_flash_on}, {0,1,1,choice_mode}, {0,5,5,set_mode}, {0,1,1,Set_timing}, {0,100,100,scan_433}, {0, 100,3, Encoder_key}, {0,1,1,My_ADC_Get_Value}, {0,50,50,ble_state_sync_poll}, {0, 311, 1, app_op_flash}, //用户数据持久化 fmc_spi_read9 {0, 311, 1, xc_ota_schedule}, //保存flash数据任务 8 //最后调用的 {0, 1, 1, rf433_decoder_process}, }; /************************************************************************************** * FunctionName : TaskRemarks() * Description : 任务标志处理 * EntryParameter : None * ReturnValue : None **************************************************************************************/ void TaskRemarks(void) { unsigned char i; for (i=0; i