C51 COMPILER V9.59.0.0 TASK 06/10/2021 18:07:14 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE TASK OBJECT MODULE PLACED IN .\list\Task.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\User\Task.c LARGE OMF2 OPTIMIZE(8,SPEED) BROWSE INCDIR(..\Driver\inc; -..\User;..\App\inc) DEBUG PRINT(.\list\Task.lst) TABS(2) OBJECT(.\list\Task.obj) line level source 1 /*---------------------------------------------------------------------*/ 2 /* --- STC MCU Limited ------------------------------------------------*/ 3 /* --- STC 1T Series MCU Demo Programme -------------------------------*/ 4 /* --- Mobile: (86)13922805190 ----------------------------------------*/ 5 /* --- Fax: 86-0513-55012956,55012947,55012969 ------------------------*/ 6 /* --- Tel: 86-0513-55012928,55012929,55012966 ------------------------*/ 7 /* --- Web: www.STCMCU.com --------------------------------------------*/ 8 /* --- Web: www.STCMCUDATA.com ---------------------------------------*/ 9 /* --- QQ: 800003751 -------------------------------------------------*/ 10 /* 如果要在程序中使用此代码,请在程序中注明使用了STC的资料及程序 */ 11 /*---------------------------------------------------------------------*/ 12 13 #include "Task.h" 14 #include "app.h" 15 16 //======================================================================== 17 // 本地变量声明 18 //======================================================================== 19 20 static TASK_COMPONENTS Task_Comps[]= 21 { 22 //状态 计数 周期 函数 23 // {0, 250, 250, Sample_Lamp}, /* task 1 Period: 250ms */ 24 // {0, 200, 200, Sample_ADtoUART}, /* task 2 Period: 200ms */ 25 // {0, 20, 20, Sample_INTtoUART}, /* task 3 Period: 20ms */ 26 // {0, 1, 1, Sample_RTC}, /* task 4 Period: 1ms */ 27 // {0, 1, 1, Sample_I2C_PS}, /* task 5 Period: 1ms */ 28 // {0, 1, 1, Sample_SPI_PS}, /* task 6 Period: 1ms */ 29 // {0, 1, 1, Sample_EEPROM}, /* task 7 Period: 1ms */ 30 // {0, 100, 100, Sample_WDT}, /* task 8 Period: 100ms */ 31 // {0, 10, 10, Sample_PCA_PWM}, /* task 9 Period: 10ms */ 32 // {0, 1, 1, Sample_PCA_Capture}, /* task 10 Period: 1ms */ 33 // {0, 1, 1, Sample_PWM15bit}, /* task 11 Period: 1ms */ 34 // {0, 500, 500, Sample_BMM_AD}, /* task 12 Period: 500ms */ 35 // {0, 500, 500, Sample_BMM_M2M}, /* task 13 Period: 100ms */ 36 // {0, 1, 1, Sample_BMM_UART}, /* task 14 Period: 1ms */ 37 // {0, 1, 1, Sample_BMM_SPI_PS}, /* task 15 Period: 1ms */ 38 {0, 1, 1, Sample_BMM_LCM}, /* task 16 Period: 1ms */ 39 /* Add new task here */ 40 }; 41 42 u8 Tasks_Max = sizeof(Task_Comps)/sizeof(Task_Comps[0]); 43 44 //======================================================================== 45 // 函数: Task_Handler_Callback 46 // 描述: 任务标记回调函数. 47 // 参数: None. 48 // 返回: None. 49 // 版本: V1.0, 2012-10-22 50 //======================================================================== 51 void Task_Marks_Handler_Callback(void) 52 { 53 1 u8 i; 54 1 for(i=0; i