📄 mc_stm8s_port.ls
字号:
1 ; C Compiler for STM8 (COSMIC Software)
2 ; Parser V4.9.10 - 10 Feb 2011
3 ; Generator (Limited) V4.3.6 - 15 Feb 2011
4 ; Optimizer V4.3.5 - 15 Feb 2011
48 ; 34 void Init_MC_Port(void)
48 ; 35 {
50 switch .text
51 0000 _Init_MC_Port:
55 ; 44 GPIO_Init(MCO1_PORT, MCO1_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
57 0000 4bc0 push #192
58 0002 4b02 push #2
59 0004 ae500a ldw x,#20490
60 0007 cd0000 call _GPIO_Init
62 000a 85 popw x
63 ; 56 GPIO_Init(MCO3_PORT, MCO3_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
65 000b 4bc0 push #192
66 000d 4b04 push #4
67 000f ae500a ldw x,#20490
68 0012 cd0000 call _GPIO_Init
70 0015 85 popw x
71 ; 68 GPIO_Init(MCO5_PORT, MCO5_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
73 0016 4bc0 push #192
74 0018 4b08 push #8
75 001a ae500a ldw x,#20490
76 001d cd0000 call _GPIO_Init
78 0020 85 popw x
79 ; 72 GPIO_Init(MCO6_PORT, MCO6_PIN,GPIO_MODE_IN_FL_NO_IT);
81 0021 4b00 push #0
82 0023 4b08 push #8
83 0025 ae5014 ldw x,#20500
84 0028 cd0000 call _GPIO_Init
86 002b 85 popw x
87 ; 73 }
90 002c 81 ret
114 ; 75 void Init_DEBUG_Port(void)
114 ; 76 {
115 switch .text
116 002d _Init_DEBUG_Port:
120 ; 77 GPIO_Init(DEBUG0_PORT, DEBUG0_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
122 002d 4bc0 push #192
123 002f 4b01 push #1
124 0031 ae5023 ldw x,#20515
125 0034 cd0000 call _GPIO_Init
127 0037 85 popw x
128 ; 78 GPIO_Init(DEBUG1_PORT, DEBUG1_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
130 0038 4bc0 push #192
131 003a 4b02 push #2
132 003c ae5023 ldw x,#20515
133 003f cd0000 call _GPIO_Init
135 0042 85 popw x
136 ; 79 GPIO_Init(DEBUG2_PORT, DEBUG2_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
138 0043 4bc0 push #192
139 0045 4b04 push #4
140 0047 ae5023 ldw x,#20515
141 004a cd0000 call _GPIO_Init
143 004d 85 popw x
144 ; 80 GPIO_Init(DEBUG3_PORT, DEBUG3_PIN,GPIO_MODE_OUT_PP_LOW_FAST);
146 004e 4bc0 push #192
147 0050 4b08 push #8
148 0052 ae5023 ldw x,#20515
149 0055 cd0000 call _GPIO_Init
151 0058 85 popw x
152 ; 81 }
155 0059 81 ret
180 ; 94 void dev_portInit(void)
180 ; 95 {
181 switch .text
182 005a _dev_portInit:
186 ; 96 Init_MC_Port();
188 005a ada4 call _Init_MC_Port
190 ; 97 Init_DEBUG_Port();
193 ; 101 }
196 005c 20cf jp _Init_DEBUG_Port
209 xdef _Init_DEBUG_Port
210 xdef _Init_MC_Port
211 xdef _dev_portInit
212 xref _GPIO_Init
231 end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -