C51 COMPILER V9.54 MAIN 09/06/2024 11:24:44 PAGE 1 C51 COMPILER V9.54, COMPILATION OF MODULE MAIN OBJECT MODULE PLACED IN ..\out\main.obj COMPILER INVOKED BY: E:\KeilC51\C51\BIN\C51.EXE ..\source\app\main.c LARGE OMF2 OPTIMIZE(0,SIZE) BROWSE ORDER NOINTPROMO -TE INCDIR(..\source\bsp;..\source\msp;..\source\app;..\source\clib;..\source\cpu;..\source\ctask;..\source\tpc;..\source -\asp;..\source\debug;..\source\msp\uart;..\source\msp\simiic;..\source\bsp\oled;..\source\bsp\TTSSbsp) DEBUG PRINT(..\ou -t\main.lst) TABS(2) OBJECT(..\out\main.obj) line level source 1 ////////////////////////////////////////////////////////////////////////// 2 /// COPYRIGHT NOTICE 3 /// Copyright (c) 2023 CCSENS 4 /// All rights reserved. 5 /// 6 /// @file main.c 7 /// @brief main app 8 /// 9 10 /// 下面是一个含有两个参数的函数的注释说明(简述) 11 /// 12 /// 这里写该函数的详述信息 13 /// @param a 被测试的变量(param描述参数) 14 /// @param s 指向描述测试信息的字符串 15 /// @return 测试结果(return描述返回值) 16 /// @see Test() (本函数参考其它的相关的函数,这里作一个链接) 17 /// @note (note描述需要注意的问题) 18 19 //=============================================== 20 //寄存器头文件 21 //=============================================== 22 23 /// 20221023_175541 CCmodify 24 25 #include "main.h" *** WARNING C320 IN LINE 51 OF ..\source\bsp\TTSSbsp\bsp_config.h: "MainFre_22M" 26 #include "asp_lowpower.h" 27 28 29 void L0_RTC_init(void) 30 { 31 1 P_SW2 = 0x80; 32 1 // XOSCCR =0; 33 1 ///HIRCCR = 0; 34 1 IRC32KCR = 0x80; //启动内部32K IRC 35 1 while (!(IRC32KCR & 1)); //等待时钟稳定 36 1 CLKDIV = 0x00; //时钟不分频 37 1 /// CLKSEL = 0x03; //选择内部32K 38 1 39 1 RTCCFG = 3; 40 1 ///RTCCFG |= 0x02; //选择内部 32K 作为 RTC 时钟源 RTCCFG | = 0x02; / / Select internal 32K as RT -C, clock source 41 1 RTCCR = 1; 42 1 printf3("\r\n %X %X:%X",(int)(DAY), (int)(MIN), (int)(SEC)); 43 1 44 1 D_stdIO_P2(BITN4);D_P24_REV(); 45 1 Lc_delay_ms(500); 46 1 47 1 printf3("\r\n %X %X:%X",(int)(DAY), (int)(MIN), (int)(SEC)); 48 1 Lc_delay_ms(200);D_stdIO_P2(BITN4);D_P24_REV(); 49 1 Lc_delay_ms(500); 50 1 printf3("\r\n %X %X:%X",(int)(DAY), (int)(MIN), (int)(SEC)); C51 COMPILER V9.54 MAIN 09/06/2024 11:24:44 PAGE 2 51 1 Lc_delay_ms(200);D_stdIO_P2(BITN4);D_P24_REV(); 52 1 Lc_delay_ms(500); 53 1 printf3("\r\n %X %X:%X",(int)(DAY), (int)(MIN), (int)(SEC)); 54 1 Lc_delay_ms(200); 55 1 } 56 57 void L0_main_initled(void) 58 { 59 1 D_LED1_OFF(); 60 1 61 1 TTSS_run_times(6) 62 1 { 63 2 D_LED1_REV(); 64 2 Lc_delay_ms(300); 65 2 } 66 1 } 67 68 void L0_main_init(void) 69 { 70 1 int r = 0; 71 1 Lc_delay_ms(200); 72 1 L0_main_initled(); 73 1 CLKDIV = 0;////不分频,使用focs 74 1 75 1 L0_uart1_open(); 76 1 L0_uart2_open(); 77 1 78 1 L3_debug_drv_init(); 79 1 L1_task_tick_init(); 80 1 L0_timer0_Init(); 81 1 ET0 = 1; 82 1 83 1 printf1("\r\nD_sys_MainFre %ld",D_sys_MainFre); 84 1 85 1 r = L3_S_init(); 86 1 printf1("\r\nL3_S_init %d",r); 87 1 } 88 89 //=============================================== 90 //主函数 91 //=============================================== 92 void main(void) 93 { 94 1 u16 a= 0; 95 1 char d[9]={0xab}; 96 1 97 1 L0_main_init(); 98 1 L3_task_weight_init(); 99 1 100 1 TTSS_run_every_init(s_nos_tick.stamp,10); 101 1 102 1 printfs("\r\3 main while13\r\n"); 103 1 104 1 while(1) 105 1 { 106 2 if(1 == s_nos_tick.t1s_heartbeat)/// 107 2 { 108 3 s_nos_tick.t1s_heartbeat = 0; 109 3 L1_uartD_uc('.'); 110 3 // L0_uart2_uc('Q'); 111 3 // L0_uart2_us(0x1234); 112 3 D_LED1_REV(); C51 COMPILER V9.54 MAIN 09/06/2024 11:24:44 PAGE 3 113 3 } 114 2 115 2 // TTSS_run_every(s_nos_tick.stamp,40) 116 2 // D_LED1_REV(); 117 2 // L4_weight_out(); 118 2 // ///55 0D 0C 90 F5 77 FF 52 80 00 00 00 33 119 2 // TTSS_run_every_end 120 2 121 2 if(L2_debug_ONcomand()) 122 2 { 123 3 L3_weight_ONdebug(D_cmd_filter_weight);///fe xx xx/// 124 3 } 125 2 L3_task_weight_handler(&tst_weight); 126 2 } 127 1 } 128 129 130 MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 657 ---- CONSTANT SIZE = 74 ---- XDATA SIZE = 13 ---- PDATA SIZE = ---- ---- DATA SIZE = ---- ---- IDATA SIZE = ---- ---- BIT SIZE = ---- ---- EDATA SIZE = ---- ---- HDATA SIZE = ---- ---- XDATA CONST SIZE = ---- ---- FAR CONST SIZE = ---- ---- END OF MODULE INFORMATION. C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S)