Page 1 objs\release\McalLib.s Command Line: C:\ghs\comp_202114\asarm.exe -annotate_call_return -elf -b0 -IGenerated\inc\ -I..\Generated\inc -I..\Src -I..\Generated\inc\ -I..\..\..\MCAL\Platform_ZX_K14xM\Inc -I..\..\..\MCAL\Platform_ZX_K14xM\StartUp\Inc -I..\..\..\MCAL\McalLib_ZX_K14xM\Inc\Devices -I..\..\..\MCAL\McalLib_ZX_K14xM\Inc -I..\..\..\MCAL\Mcu_ZX_K14xM\Inc -I..\..\..\MCAL\Adc_ZX_K14xM\Inc -I..\..\..\MCAL\Dem_ZX_K14xM\Inc -I..\..\..\MCAL\Det_ZX_K14xM\Inc -I..\..\..\MCAL\Dio_ZX_K14xM\Inc -I..\..\..\MCAL\Base_ZX_K14xM\Inc -I..\..\..\MCAL\Wdg_ZX_K14xM\Inc -I..\..\..\MCAL\Port_ZX_K14xM\Inc -I..\..\..\MCAL\Rte_ZX_K14xM\Inc -I..\..\..\MCAL\Base_ZX_K14xM\Inc\MemMap -I..\..\..\MCAL\WdgIf_ZX_K14xM\Inc -I..\..\..\MCAL\Can_ZX_K14xM\Inc -I..\..\..\MCAL\Gpt_ZX_K14xM\Inc -I..\..\..\MCAL\Dma_ZX_K14xM\Inc -I..\..\..\MCAL\Pwm_ZX_K14xM\Inc -I..\..\..\MCAL\EcuM_ZX_K14xM\Inc -I..\..\..\MCAL\CanIf_ZX_K14xM\Inc -I..\..\..\mcal\Icu_ZX_K14xM\Inc -I..\..\..\MCAL\Ecum_ZX_K14xM\Inc -I..\..\..\MCAL\Fls_ZX_K14xM\Inc -I..\..\..\MCAL\MemIf_ZX_K14xM\Inc -I..\..\..\mcal\Spi_ZX_K14xM\Inc -I..\..\..\Package\OS\Task -I..\..\..\Package\OS\Task\cpu_port\Zhixin -I..\..\..\Package\cm_backtrace -I..\..\..\Package\Cdd -I..\..\..\Package\Cdd\CddBuck\Gen -I..\..\..\Package\Cdd\CddSbc\Api -I..\..\..\Package\Cdd\CddSbc\Cfg -I..\..\..\Package\Cdd\CddTle94x1\Cfg -I..\..\..\Package\Cdd\CddTle94x1\Api -I..\..\..\Package\Cdd\CddTle94x1\Gen -I..\..\..\Package\Cdd\CddBoost\Api -IC:\ghs\comp_202114\lib\thumb2 -cpu=cortexm4f -fpu=vfpv3_d16 -fpu=single -hardware_divide -source=McalLib.c -o objs\release\McalLib.o -list=objs\release\McalLib.lst objs\release\McalLib.s Original File: objs\release\McalLib.s Source File: McalLib.c Directory: D:\AUTOMFL\AutoSAR\ZHIXIN\MCAL_Capri(1.2.0)\Project\Capri\MultiProject Host OS: Windows EASE: Copyright (C) 1983-2021 Green Hills Software. All Rights Reserved. Release: Compiler v2021.1.4 Build Directory: [Directory] COMP-VAL-WIN1:C:/autoval2/v2021.1-2021-04-25/win64-comp Revision: [VCInfo] http://toolsvc/branches/release-branch-2021-1-comp/src@696881 (built by auto-compiler) Revision Date: Mon Apr 26 12:33:25 2021 Release Date: Mon Apr 26 08:01:05 2021 1 ;Driver Command: ccarm -c -MD -IGenerated\inc\ -I..\Generated\inc -I..\Src 2 ; -I..\Src -I..\Generated\inc\ -I..\Src 3 ; -I..\..\..\MCAL\Platform_ZX_K14xM\Inc 4 ; -I..\..\..\MCAL\Platform_ZX_K14xM\StartUp\Inc 5 ; -I..\..\..\MCAL\McalLib_ZX_K14xM\Inc\Devices 6 ; -I..\..\..\MCAL\McalLib_ZX_K14xM\Inc 7 ; -I..\..\..\MCAL\Mcu_ZX_K14xM\Inc -I..\..\..\MCAL\Adc_ZX_K14xM\Inc 8 ; -I..\..\..\MCAL\Dem_ZX_K14xM\Inc -I..\..\..\MCAL\Det_ZX_K14xM\Inc 9 ; -I..\..\..\MCAL\Dio_ZX_K14xM\Inc 10 ; -I..\..\..\MCAL\Base_ZX_K14xM\Inc 11 ; -I..\..\..\MCAL\Wdg_ZX_K14xM\Inc 12 ; -I..\..\..\MCAL\Port_ZX_K14xM\Inc 13 ; -I..\..\..\MCAL\Rte_ZX_K14xM\Inc 14 ; -I..\..\..\MCAL\Base_ZX_K14xM\Inc\MemMap 15 ; -I..\..\..\MCAL\WdgIf_ZX_K14xM\Inc 16 ; -I..\..\..\MCAL\Can_ZX_K14xM\Inc -I..\..\..\MCAL\Gpt_ZX_K14xM\Inc 17 ; -I..\..\..\MCAL\Dma_ZX_K14xM\Inc -I..\..\..\MCAL\Pwm_ZX_K14xM\Inc 18 ; -I..\..\..\MCAL\EcuM_ZX_K14xM\Inc 19 ; -I..\..\..\MCAL\Can_ZX_K14xM\Inc 20 ; -I..\..\..\MCAL\CanIf_ZX_K14xM\Inc 21 ; -I..\..\..\mcal\Icu_ZX_K14xM\Inc 22 ; -I..\..\..\MCAL\Ecum_ZX_K14xM\Inc 23 ; -I..\..\..\MCAL\Fls_ZX_K14xM\Inc 24 ; -I..\..\..\MCAL\MemIf_ZX_K14xM\Inc 25 ; -I..\..\..\mcal\Icu_ZX_K14xM\Inc -I..\..\..\mcal\Spi_ZX_K14xM\Inc 26 ; -I..\..\..\Package\OS\Task 27 ; -I..\..\..\Package\OS\Task\cpu_port\Zhixin 28 ; -I..\..\..\Package\cm_backtrace -I..\..\..\Package\Cdd 29 ; -I..\..\..\Package\Cdd\CddBuck\Gen 30 ; -I..\..\..\Package\Cdd\CddBuck\Gen 31 ; -I..\..\..\Package\Cdd\CddSbc\Api 32 ; -I..\..\..\Package\Cdd\CddSbc\Cfg 33 ; -I..\..\..\Package\Cdd\CddTle94x1\Cfg 34 ; -I..\..\..\Package\Cdd\CddTle94x1\Api 35 ; -I..\..\..\Package\Cdd\CddTle94x1\Gen 36 ; -I..\..\..\Package\Cdd\CddBoost\Api -cpu=cortexm4f -Wshadow 37 ; -Wtrigraphs -keeptempfiles -Wundef -Wimplicit-int -dual_debug 38 ; --no_commons --no_exceptions --gnu_asm 39 ; --incorrect_pragma_warnings --prototype_errors -list 40 ; --misra_2004=2.1 -ignore_debug_references 41 ; -preprocess_assembly_files -thumb_lib -thumb --hardware_divide 42 ; -c99 -no_japanese_automotive_c --std --stdl --slash_comment 43 ; -Ospeed --no_debug -object_dir=objs\release -filetype.c 44 ; ..\..\..\MCAL\McalLib_ZX_K14xM\Src\McalLib.c -o 45 ; objs\release\McalLib.o 46 ;Source File: ..\..\..\MCAL\McalLib_ZX_K14xM\Src\McalLib.c 47 ;Directory: 48 ; D:\AUTOMFL\AutoSAR\ZHIXIN\MCAL_Capri(1.2.0)\Project\Capri\MultiProject 49 ;Compile Date: Mon Dec 18 00:01:46 2023 50 ;Host OS: Win64 Page 2 objs\release\McalLib.s 51 ;Version: C-ARM 2021.1.4 RELEASE VERSION 52 ;Release: Compiler v2021.1.4 53 ;Revision Date: Mon Apr 26 12:37:23 2021 54 ;Release Date: Mon Apr 26 08:01:05 2021 55 ; ecom -w -OLM 56 .section ".mcal_code","ax" 57 .align 2 58 ..gh.f.f.1.a.1.e.0: 59 .endo ..gh.f.f.1.a.1.e.0 60 .thumb2 61 McalLib_Init:: 00000000 b500 62 push {lr} 63 .L69: 64 00000002 f000f800* 65 bl McalLib_OsCounter_Init 00000006 2000 66 movs r0,0 00000008 f2400100* 67 movw r1,%lo(McalLib_IntDisabledCounter) 0000000c f2c00100* 68 movt r1,%hi(McalLib_IntDisabledCounter) 00000010 6008 69 str r0,[r1] 70 .L71: 71 00000012 bd00 72 pop {pc} 73 .endf McalLib_Init 74 75 .section ".mcal_bss","awb" 76 .align 4 00000000 00000000 77 McalLib_IntDisabledCounter: .space 4 78 .endo McalLib_IntDisabledCounter 79 .section ".ghcalltbl","" 80 .align 4 00000000 00000000* 81 .L70: .data.w .L69 82 .endo .L70 83 .section ".ghrettbl","" 84 .align 4 00000000 00000000* 85 .L72: .data.w .L71 86 .endo .L72 87 .section ".mcal_code","ax" 88 ..gh.f.f.1.a.1.e.1: 89 .endo ..gh.f.f.1.a.1.e.1 90 McalLib_GetCounterValue:: 00000014 2201 91 movs r2,1 00000016 2801 92 cmp r0,1 00000018 d005* 93 beq .L77 0000001a bf24 94 itt hs 0000001c 4610 95 mov r0,r2 96 .L367: 97 0000001e 4770 98 ret 99 .L76: 00000020 6008 100 str r0,[r1] 00000022 2000 101 movs r0,0 102 .L369: 103 00000024 4770 104 ret 105 .L77: 00000026 4608 106 cpy r0,r1 107 .L371: 108 00000028 f000b800* 109 b McalLib_OsCounter_GetCounterValue 110 .endf McalLib_GetCounterValue 111 ;Ret r2 local Page 3 objs\release\McalLib.s 112 113 ;Counter r0 param 114 ;Value r1 param 115 116 .section ".bss","awb" 117 .L309: 118 .endo .L309 119 .section ".ghrettbl","" 00000004 00000000* 120 .L368: .data.w .L367 121 .endo .L368 00000008 00000000* 122 .L370: .data.w .L369 123 .endo .L370 124 .section ".ghtailcalltbl","" 125 .align 4 00000000 00000000* 126 .L372: .data.w .L371 127 .endo .L372 128 .section ".mcal_code","ax" 129 ..gh.f.f.1.a.1.e.2: 130 .endo ..gh.f.f.1.a.1.e.2 131 McalLib_GetElapsedValue:: 0000002c b510 132 push {r4,lr} 0000002e 460c 133 cpy r4,r1 00000030 2301 134 movs r3,1 00000032 2801 135 cmp r0,1 00000034 d008* 136 beq .L377 00000036 bf24 137 itt hs 00000038 4618 138 mov r0,r3 139 .L519: 140 0000003a bd10 141 pop {r4,pc} 142 .L376: 0000003c 6013 143 str r3,[r2] 0000003e 6808 144 ldr r0,[r1] 00000040 1c40 145 adds r0,r0,1 00000042 6008 146 str r0,[r1] 00000044 2000 147 movs r0,0 148 .L521: 149 00000046 bd10 150 pop {r4,pc} 151 .L377: 00000048 4611 152 cpy r1,r2 0000004a 4620 153 cpy r0,r4 0000004c e8bd4010 154 pop {r4,lr} 155 .L523: 156 00000050 f000b800* 157 b McalLib_OsCounter_GetElapsedValue 158 .endf McalLib_GetElapsedValue 159 ;Ret r3 local 160 161 ;Counter r0 param 162 ;CounterValue r4 param 163 ;ElapsedValue r2 param 164 165 .section ".bss","awb" 166 .L469: 167 .endo .L469 168 .section ".ghrettbl","" 0000000c 00000000* 169 .L520: .data.w .L519 170 .endo .L520 00000010 00000000* 171 .L522: .data.w .L521 172 .endo .L522 Page 4 objs\release\McalLib.s 173 .section ".ghtailcalltbl","" 00000004 00000000* 174 .L524: .data.w .L523 175 .endo .L524 176 .section ".mcal_code","ax" 177 ..gh.f.f.1.a.1.e.3: 178 .endo ..gh.f.f.1.a.1.e.3 179 McalLib_MicroSecToTicks:: 00000054 2200 180 movs r2,0 00000056 2801 181 cmp r0,1 00000058 bf3c 182 itt lo 0000005a 4608 183 mov r0,r1 184 .L679: 185 0000005c 4770 186 ret 0000005e bf1c 187 itt ne 00000060 4610 188 mov r0,r2 189 .L681: 190 00000062 4770 191 ret 192 .L529: 00000064 4608 193 cpy r0,r1 194 .L683: 195 00000066 f000b800* 196 b McalLib_OsCounter_MicroSecToTicks 197 .endf McalLib_MicroSecToTicks 198 ;Value r2 local 199 200 ;Counter r0 param 201 ;MicroSecond r1 param 202 203 .section ".bss","awb" 204 .L623: 205 .endo .L623 206 .section ".ghrettbl","" 00000014 00000000* 207 .L680: .data.w .L679 208 .endo .L680 00000018 00000000* 209 .L682: .data.w .L681 210 .endo .L682 211 .section ".ghtailcalltbl","" 00000008 00000000* 212 .L684: .data.w .L683 213 .endo .L684 214 .section ".mcal_code","ax" 215 ..gh.f.f.1.a.1.e.4: 216 .endo ..gh.f.f.1.a.1.e.4 217 McalLib_SetCounterFreq:: 0000006a 2801 218 cmp r0,1 0000006c bf18 219 it ne 220 .L794: 221 0000006e 4770 222 ret 00000070 4608 223 cpy r0,r1 224 .L796: 225 00000072 f000b800* 226 b McalLib_OsCounter_SetCounterFreq 227 .endf McalLib_SetCounterFreq 228 229 ;Counter r0 param 230 ;Freq r1 param 231 232 .section ".bss","awb" 233 .L759: Page 5 objs\release\McalLib.s 234 .endo .L759 235 .section ".ghrettbl","" 0000001c 00000000* 236 .L795: .data.w .L794 237 .endo .L795 238 .section ".ghtailcalltbl","" 0000000c 00000000* 239 .L797: .data.w .L796 240 .endo .L797 241 .section ".mcal_code","ax" 242 ..gh.f.f.1.a.1.e.5: 243 .endo ..gh.f.f.1.a.1.e.5 244 McalLib_SuspendAllInterrupts:: 00000076 b500 245 push {lr} 00000078 f2400100* 246 movw r1,%lo(McalLib_IntDisabledCounter) 0000007c f2c00100* 247 movt r1,%hi(McalLib_IntDisabledCounter) 00000080 6808 248 ldr r0,[r1] 00000082 2800 249 cmp r0,0 00000084 d100* 250 bne .L800 251 ..gh.beginasm.6: 252 .endo ..gh.beginasm.6 00000086 b672 253 cpsid i 254 255 ..gh.endasm.7: 256 .endo ..gh.endasm.7 257 258 .L800: 00000088 f2400100* 259 movw r1,%lo(McalLib_IntDisabledCounter) 0000008c f2c00100* 260 movt r1,%hi(McalLib_IntDisabledCounter) 00000090 6808 261 ldr r0,[r1] 00000092 1c40 262 adds r0,r0,1 00000094 6008 263 str r0,[r1] 264 .L914: 265 00000096 bd00 266 pop {pc} 267 .endf McalLib_SuspendAllInterrupts 268 269 .section ".ghrettbl","" 00000020 00000000* 270 .L915: .data.w .L914 271 .endo .L915 272 .section ".mcal_code","ax" 273 .assert 0x0 + (McalLib_IntDisabledCounter - McalLib_IntDisabledCounter) +0 == 0 274 ..gh.f.f.1.a.1.e.8: 275 .endo ..gh.f.f.1.a.1.e.8 276 McalLib_ResumeAllInterrupts:: 00000098 b510 277 push {r4,lr} 0000009a f2400400* 278 movw r4,%lo(McalLib_IntDisabledCounter) 0000009e f2c00400* 279 movt r4,%hi(McalLib_IntDisabledCounter) 000000a2 6820 280 ldr r0,[r4] 000000a4 2800 281 cmp r0,0 000000a6 d902* 282 bls .L918 000000a8 6820 283 ldr r0,[r4] 000000aa 1e40 284 subs r0,r0,1 000000ac 6020 285 str r0,[r4] 286 .L918: 000000ae 6820 287 ldr r0,[r4] 000000b0 2800 288 cmp r0,0 000000b2 bf18 289 it ne 290 .L1055: 291 000000b4 bd10 292 pop {r4,pc} 293 ..gh.beginasm.9: 294 .endo ..gh.beginasm.9 Page 6 objs\release\McalLib.s 000000b6 b662 295 cpsie i 296 297 ..gh.endasm.10: 298 .endo ..gh.endasm.10 299 300 .L1057: 301 000000b8 bd10 302 pop {r4,pc} 303 .endf McalLib_ResumeAllInterrupts 304 305 .section ".ghrettbl","" 00000024 00000000* 306 .L1056: .data.w .L1055 307 .endo .L1056 00000028 00000000* 308 .L1058: .data.w .L1057 309 .endo .L1058 310 .section ".mcal_code","ax" 311 ;McalLib_IntDisabledCounter McalLib_IntDisabledCounter static 312 313 .ghsnote info, 27, 8195, 640