📄 main.lst
字号:
##############################################################################
# #
# IAR MSP430 C/C++ Compiler V3.21A/W32 [Kickstart] 19/Sep/2005 17:10:35 #
# Copyright 1996-2004 IAR Systems. All rights reserved. #
# #
# __rt_version = 2 #
# __double_size = 64 #
# __reg_r4 = free #
# __reg_r5 = free #
# __pic = no #
# __core = 64kb #
# Source file = D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_200 #
# 50906\main.c #
# Command line = -I "D:\Program Files\IAR Systems\Embedded Workbench #
# 4.0\430\INC\" -I "D:\Program Files\IAR #
# Systems\Embedded Workbench 4.0\430\INC\DLIB\" -lC #
# D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_200 #
# 50906\Debug\List\ -la D:\WILLFARwork\CT项目\CT开短路MS #
# P430\程序\1A_Check_20050906\Debug\List\ -o #
# D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_200 #
# 50906\Debug\Obj\ -z3 --no_cse --no_unroll --no_inline #
# --no_code_motion --no_tbaa --library_module #
# --module_name= --debug -e --double=64 --dlib_config #
# "D:\Program Files\IAR Systems\Embedded Workbench #
# 4.0\430\LIB\DLIB\dl430dn.h" #
# D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_200 #
# 50906\main.c #
# List file = D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_200 #
# 50906\Debug\List\main.lst #
# Object file = D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_200 #
# 50906\Debug\Obj\main.r43 #
# #
# #
##############################################################################
D:\WILLFARwork\CT项目\CT开短路MSP430\程序\1A_Check_20050906\main.c
1 #include "mai_define.h"
2
3
4 void main_init(void);
5 void out_led(void);
6 void clk_chang(void);
7
8
9 int main( void )
10 {
11 main_init();
12 while(1)
13 { receive_n_check();
14 clr_wdt();
15 if(start_CT_check==0x01)
16 {
17 CT_all_check(); //启动一次CT检测
18 start_CT_check=0;
19 out_led();
20 }
21 }
22 }
23
24 void main_init(void)
25 {
26 start_wdt();
27 clk_chang();
28 //P4DIR |= 0x70;
29 //delay_ns(200); //起动延时,消除2410启动时的SPI总线不确定状态!!
30 delay_ns(200);
31 delay_ns(200);
32 delay_ns(200);
33 P4DIR |= 0x70;
34 JDQ(1,0);
35 JDQ(2,0);
36 JDQ(3,0);
37 spi_init();
38 P6DIR|=0x38;
39 out_led();
40 }
41
42 void out_led(void)
43 { unsigned char a;
44 a=two_CT_state;
45 if((a&0x01)==0x01||(a&0x02)==0x02||(a&0x04)==0x04)
46 P6OUT&=0xef;
47 else P6OUT|=0x10;
48 if((a&0x08)==0x08||(a&0x10)==0x10||(a&0x20)==0x20)
49 P6OUT&=0xf7;
50 else P6OUT|=0x08;
51 }
52
53 void clk_chang(void)
54 {
55 BCSCTL1 &=~XT2OFF;
56 BCSCTL2 |=0x40;
57 }
^
Warning[Pe001]: last line of file ends without a newline
Errors: 1
Warnings: 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -