Page 1 objs\release\Gpt.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=Gpt.c -o objs\release\Gpt.o -list=objs\release\Gpt.lst objs\release\Gpt.s Original File: objs\release\Gpt.s Source File: Gpt.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\Gpt_ZX_K14xM\Src\Gpt.c -o objs\release\Gpt.o 45 ;Source File: ..\..\..\MCAL\Gpt_ZX_K14xM\Src\Gpt.c 46 ;Directory: 47 ; D:\AUTOMFL\AutoSAR\ZHIXIN\MCAL_Capri(1.2.0)\Project\Capri\MultiProject 48 ;Compile Date: Mon Dec 18 00:01:44 2023 49 ;Host OS: Win64 50 ;Version: C-ARM 2021.1.4 RELEASE VERSION Page 2 objs\release\Gpt.s 51 ;Release: Compiler v2021.1.4 52 ;Revision Date: Mon Apr 26 12:37:23 2021 53 ;Release Date: Mon Apr 26 08:01:05 2021 54 ; ecom -w -OLM 55 .section ".mcal_code","ax" 56 .align 2 57 ..gh.f.f.1.a.1.e.0: 58 .endo ..gh.f.f.1.a.1.e.0 59 .thumb2 60 Gpt_GetVersionInfo:: 00000000 0002 61 movs r2,r0 00000002 d104* 62 bne .L865 00000004 2316 63 movs r3,22 00000006 4601 64 cpy r1,r0 00000008 2064 65 movs r0,100 66 .L974: 67 0000000a f000b800* 68 b Det_ReportError 69 .L865: 0000000e 21b3 70 movs r1,179 00000010 8001 71 strh r1,[r0] 00000012 2164 72 movs r1,100 00000014 8041 73 strh r1,[r0,2] 00000016 2101 74 movs r1,1 00000018 7101 75 strb r1,[r0,4] 0000001a 2102 76 movs r1,2 0000001c 7141 77 strb r1,[r0,5] 0000001e 2100 78 movs r1,0 00000020 7181 79 strb r1,[r0,6] 80 .L976: 81 00000022 4770 82 ret 83 .endf Gpt_GetVersionInfo 84 85 ;VersionInfoPtr r0 param 86 87 .section ".bss","awb" 88 .L932: 89 .endo .L932 90 .section ".ghtailcalltbl","" 91 .align 4 00000000 00000000* 92 .L975: .data.w .L974 93 .endo .L975 94 .section ".ghrettbl","" 95 .align 4 00000000 00000000* 96 .L977: .data.w .L976 97 .endo .L977 98 .section ".mcal_code","ax" 99 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 100 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 101 .assert 0x0 + (Gpt_StopTime - Gpt_ConfigPtr) +0 == 4 102 ..gh.f.f.1.a.1.e.1: 103 .endo ..gh.f.f.1.a.1.e.1 104 Gpt_Init:: 00000024 e92d44f0 105 push {r4-r7,r10,lr} 00000028 f2400500* 106 movw r5,%lo(Gpt_ConfigPtr) 0000002c f2c00500* 107 movt r5,%hi(Gpt_ConfigPtr) 00000030 6829 108 ldr r1,[r5] 00000032 b139* 109 cbz r1,.L995 00000034 2201 110 movs r2,1 00000036 230d 111 movs r3,13 Page 3 objs\release\Gpt.s 00000038 2100 112 movs r1,0 0000003a 2064 113 movs r0,100 0000003c e8bd44f0 114 pop {r4-r7,r10,lr} 115 .L3459: 116 00000040 f000b800* 117 b Det_ReportError 118 .L995: 00000044 4606 119 cpy r6,r0 00000046 000c 120 movs r4,r1 00000048 bf18 121 it ne 122 .L3461: 123 0000004a e8bd84f0 124 pop {r4-r7,r10,pc} 0000004e b130* 125 cbz r0,.L1000 00000050 230e 126 movs r3,14 00000052 2201 127 movs r2,1 00000054 2064 128 movs r0,100 00000056 e8bd44f0 129 pop {r4-r7,r10,lr} 130 .L3463: 131 0000005a f000b800* 132 b Det_ReportError 133 .L1000: 0000005e f2400200* 134 movw r2,%lo(Gpt_PreDefinedConfigPtr) 00000062 f2c00200* 135 movt r2,%hi(Gpt_PreDefinedConfigPtr) 00000066 6811 136 ldr r1,[r2] 00000068 7a08 137 ldrb r0,[r1,8] 0000006a 6029 138 str r1,[r5] 0000006c 4284 139 cmp r4,r0 0000006e d20c* 140 bhs .L1001 141 .L1004: 00000070 68cb 142 ldr r3,[r1,12] 00000072 ebc40284 143 rsb r2,r4,r4 lsl 2 00000076 eb030082 144 add r0,r3,r2 lsl 2 145 .L3465: 146 0000007a f000f800* 147 bl Gpt_Drvw_InitInstances 0000007e 6829 148 ldr r1,[r5] 00000080 7a0a 149 ldrb r2,[r1,8] 00000082 1c64 150 adds r4,r4,1 00000084 b2e4 151 uxtb r4,r4 00000086 4294 152 cmp r4,r2 00000088 d3f2* 153 blo .L1004 154 .L1001: 0000008a 6808 155 ldr r0,[r1] 0000008c 4634 156 cpy r4,r6 0000008e 4286 157 cmp r6,r0 00000090 d22f* 158 bhs .L1033 00000092 46b2 159 mov r10,r6 00000094 f1050714 160 add r7,r5,20 00000098 1d2e 161 adds r6,r5,4 162 .L1774: 0000009a 694b 163 ldr r3,[r1,20] 0000009c f893c000 164 ldrb r12,[r3] 000000a0 4652 165 mov r2,r10 000000a2 4564 166 cmp r4,r12 000000a4 d00e* 167 beq .L1008 000000a6 f813cf01 168 ldrb r12,[r3,1]! 000000aa 2201 169 movs r2,1 000000ac 4564 170 cmp r4,r12 000000ae d009* 171 beq .L1008 000000b0 f813cf01 172 ldrb r12,[r3,1]! Page 4 objs\release\Gpt.s 000000b4 2202 173 movs r2,2 000000b6 4564 174 cmp r4,r12 000000b8 d004* 175 beq .L1008 000000ba 785b 176 ldrb r3,[r3,1] 000000bc 2203 177 movs r2,3 000000be 429c 178 cmp r4,r3 000000c0 bf18 179 it ne 000000c2 2204 180 mov r2,4 181 .L1008: 000000c4 f04f0c01 182 mov r12,1 000000c8 f847c032 183 str r12,[r7,r2 lsl 3] 000000cc eb0703c2 184 add r3,r7,r2 lsl 3 000000d0 f8a3a004 185 strh r10,[r3,4] 000000d4 f883a006 186 strb r10,[r3,6] 000000d8 6849 187 ldr r1,[r1,4] 000000da f846a022 188 str r10,[r6,r2 lsl 2] 000000de eb011344 189 add r3,r1,r4 lsl 5 000000e2 69d8 190 ldr r0,[r3,28] 191 .L3467: 192 000000e4 f000f800* 193 bl Gpt_Drvw_Init 000000e8 6829 194 ldr r1,[r5] 000000ea 680a 195 ldr r2,[r1] 000000ec 1c64 196 adds r4,r4,1 000000ee 4294 197 cmp r4,r2 000000f0 d3d3* 198 blo .L1774 199 .L1033: 000000f2 6908 200 ldr r0,[r1,16] 000000f4 2100 201 movs r1,0 000000f6 6800 202 ldr r0,[r0] 203 .L3469: 204 000000f8 f000f800* 205 bl Gpt_Drvw_StartPredefTimer 000000fc 6828 206 ldr r0,[r5] 000000fe 6900 207 ldr r0,[r0,16] 00000100 2101 208 movs r1,1 00000102 6840 209 ldr r0,[r0,4] 210 .L3471: 211 00000104 f000f800* 212 bl Gpt_Drvw_StartPredefTimer 00000108 6828 213 ldr r0,[r5] 0000010a 6900 214 ldr r0,[r0,16] 0000010c 2102 215 movs r1,2 0000010e 6880 216 ldr r0,[r0,8] 217 .L3473: 218 00000110 f000f800* 219 bl Gpt_Drvw_StartPredefTimer 00000114 6828 220 ldr r0,[r5] 00000116 6900 221 ldr r0,[r0,16] 00000118 2103 222 movs r1,3 0000011a 68c0 223 ldr r0,[r0,12] 224 .L3475: 225 0000011c f000f800* 226 bl Gpt_Drvw_StartPredefTimer 00000120 2000 227 movs r0,0 00000122 f2400100* 228 movw r1,%lo(Gpt_Mode) 00000126 f2c00100* 229 movt r1,%hi(Gpt_Mode) 0000012a 6008 230 str r0,[r1] 231 .L3477: 232 0000012c e8bd84f0 233 pop {r4-r7,r10,pc} Page 5 objs\release\Gpt.s 234 .endf Gpt_Init 235 ;InstanceIndex r4 local 236 ;ChannelIndex r4 local 237 ;Channel r2 local 238 ;ReturnValue r4 local 239 240 ;ConfigPtr r6 param 241 242 .section ".bss","awb" 243 .align 4 00000000 00000000 244 Gpt_Mode: .space 4 245 .endo Gpt_Mode 246 .section ".mcal_bss","awb" 247 .align 4 00000000 00000000 248 Gpt_ConfigPtr: .space 4 249 .endo Gpt_ConfigPtr 00000004 00000000 250 Gpt_StopTime: .space 16 00000008 00000000 0000000c 00000000 00000010 00000000 251 .endo Gpt_StopTime 00000014 00000000 252 Gpt_ChannelInfo: .space 32 00000018 00000000 0000001c 00000000 00000020 00000000 00000024 00000000 00000028 00000000 0000002c 00000000 00000030 00000000 253 .endo Gpt_ChannelInfo 254 .section ".ghtailcalltbl","" 00000004 00000000* 255 .L3460: .data.w .L3459 256 .endo .L3460 257 .section ".ghrettbl","" 00000004 00000000* 258 .L3462: .data.w .L3461 259 .endo .L3462 260 .section ".ghtailcalltbl","" 00000008 00000000* 261 .L3464: .data.w .L3463 262 .endo .L3464 263 .section ".ghcalltbl","" 264 .align 4 00000000 00000000* 265 .L3466: .data.w .L3465 266 .endo .L3466 00000004 00000000* 267 .L3468: .data.w .L3467 268 .endo .L3468 00000008 00000000* 269 .L3470: .data.w .L3469 270 .endo .L3470 0000000c 00000000* 271 .L3472: .data.w .L3471 272 .endo .L3472 00000010 00000000* 273 .L3474: .data.w .L3473 274 .endo .L3474 00000014 00000000* 275 .L3476: .data.w .L3475 276 .endo .L3476 277 .section ".ghrettbl","" 00000008 00000000* 278 .L3478: .data.w .L3477 279 .endo .L3478 280 .section ".mcal_code","ax" 281 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 282 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 283 .assert 0x0 + (Gpt_StopTime - Gpt_ConfigPtr) +0 == 4 284 ..gh.f.f.1.a.1.e.2: Page 6 objs\release\Gpt.s 285 .endo ..gh.f.f.1.a.1.e.2 286 Gpt_DeInit:: 00000130 e92d44f0 287 push {r4-r7,r10,lr} 00000134 f2400500* 288 movw r5,%lo(Gpt_ConfigPtr) 00000138 f2c00500* 289 movt r5,%hi(Gpt_ConfigPtr) 0000013c 6829 290 ldr r1,[r5] 0000013e b931* 291 cbnz r1,.L3493 00000140 230a 292 movs r3,10 00000142 2202 293 movs r2,2 00000144 2064 294 movs r0,100 00000146 e8bd44f0 295 pop {r4-r7,r10,lr} 296 .L6372: 297 0000014a f000b800* 298 b Det_ReportError 299 .L3493: 0000014e 6808 300 ldr r0,[r1] 00000150 2400 301 movs r4,0 00000152 4284 302 cmp r4,r0 00000154 d22b* 303 bhs .L3522 00000156 f1050614 304 add r6,r5,20 305 .L4384: 0000015a 6949 306 ldr r1,[r1,20] 0000015c 780a 307 ldrb r2,[r1] 0000015e 2000 308 movs r0,0 00000160 4294 309 cmp r4,r2 00000162 d00e* 310 beq .L3512 00000164 f8112f01 311 ldrb r2,[r1,1]! 00000168 2001 312 movs r0,1 0000016a 4294 313 cmp r4,r2 0000016c d009* 314 beq .L3512 0000016e f8112f01 315 ldrb r2,[r1,1]! 00000172 2002 316 movs r0,2 00000174 4294 317 cmp r4,r2 00000176 d004* 318 beq .L3512 00000178 7849 319 ldrb r1,[r1,1] 0000017a 2003 320 movs r0,3 0000017c 428c 321 cmp r4,r1 0000017e bf18 322 it ne 00000180 2004 323 mov r0,4 324 .L3512: 00000182 f8560030 325 ldr.w r0,[r6,r0 lsl 3] 00000186 f2400200* 326 movw r2,%lo(Gpt_Mode) 0000018a f2c00200* 327 movt r2,%hi(Gpt_Mode) 0000018e 2804 328 cmp r0,4 00000190 6811 329 ldr r1,[r2] 00000192 d107* 330 bne .L3497 00000194 230b 331 movs r3,11 00000196 2202 332 movs r2,2 00000198 2100 333 movs r1,0 0000019a 2064 334 movs r0,100 0000019c e8bd44f0 335 pop {r4-r7,r10,lr} 336 .L6374: 337 000001a0 f000b800* 338 b Det_ReportRuntimeError 339 .L3497: 000001a4 6829 340 ldr r1,[r5] 000001a6 6808 341 ldr r0,[r1] 000001a8 1c64 342 adds r4,r4,1 000001aa 4284 343 cmp r4,r0 000001ac d3d5* 344 blo .L4384 345 .L3522: Page 7 objs\release\Gpt.s 000001ae 2400 346 movs r4,0 000001b0 4284 347 cmp r4,r0 000001b2 d22c* 348 bhs .L3551 000001b4 46a2 349 mov r10,r4 000001b6 f1050614 350 add r6,r5,20 000001ba 1d2f 351 adds r7,r5,4 352 .L4396: 000001bc 694a 353 ldr r2,[r1,20] 000001be 7813 354 ldrb r3,[r2] 000001c0 4650 355 mov r0,r10 000001c2 429c 356 cmp r4,r3 000001c4 d00e* 357 beq .L3526 000001c6 f8123f01 358 ldrb r3,[r2,1]! 000001ca 2001 359 movs r0,1 000001cc 429c 360 cmp r4,r3 000001ce d009* 361 beq .L3526 000001d0 f8123f01 362 ldrb r3,[r2,1]! 000001d4 2002 363 movs r0,2 000001d6 429c 364 cmp r4,r3 000001d8 d004* 365 beq .L3526 000001da 7852 366 ldrb r2,[r2,1] 000001dc 2003 367 movs r0,3 000001de 4294 368 cmp r4,r2 000001e0 bf18 369 it ne 000001e2 2004 370 mov r0,4 371 .L3526: 000001e4 eb0602c0 372 add r2,r6,r0 lsl 3 000001e8 f8a2a004 373 strh r10,[r2,4] 000001ec f847a020 374 str r10,[r7,r0 lsl 2] 000001f0 f882a006 375 strb r10,[r2,6] 000001f4 6849 376 ldr r1,[r1,4] 000001f6 f8c2a000 377 str r10,[r2] 000001fa eb011044 378 add r0,r1,r4 lsl 5 000001fe 69c0 379 ldr r0,[r0,28] 380 .L6376: 381 00000200 f000f800* 382 bl Gpt_Drvw_DeInit 00000204 6829 383 ldr r1,[r5] 00000206 680a 384 ldr r2,[r1] 00000208 1c64 385 adds r4,r4,1 0000020a 4294 386 cmp r4,r2 0000020c d3d6* 387 blo .L4396 388 .L3551: 0000020e 6908 389 ldr r0,[r1,16] 00000210 6800 390 ldr r0,[r0] 391 .L6378: 392 00000212 f000f800* 393 bl Gpt_Drvw_StopPredefTimer 00000216 6828 394 ldr r0,[r5] 00000218 6900 395 ldr r0,[r0,16] 0000021a 6840 396 ldr r0,[r0,4] 397 .L6380: 398 0000021c f000f800* 399 bl Gpt_Drvw_StopPredefTimer 00000220 6828 400 ldr r0,[r5] 00000222 6900 401 ldr r0,[r0,16] 00000224 6880 402 ldr r0,[r0,8] 403 .L6382: 404 00000226 f000f800* 405 bl Gpt_Drvw_StopPredefTimer 0000022a 6828 406 ldr r0,[r5] Page 8 objs\release\Gpt.s 0000022c 6900 407 ldr r0,[r0,16] 0000022e 68c0 408 ldr r0,[r0,12] 409 .L6384: 410 00000230 f000f800* 411 bl Gpt_Drvw_StopPredefTimer 00000234 2000 412 movs r0,0 00000236 6028 413 str r0,[r5] 414 .L6386: 415 00000238 e8bd84f0 416 pop {r4-r7,r10,pc} 417 .endf Gpt_DeInit 418 ;Channel r0 local 419 ;ChannelIndex r4 local 420 421 .section ".ghtailcalltbl","" 0000000c 00000000* 422 .L6373: .data.w .L6372 423 .endo .L6373 00000010 00000000* 424 .L6375: .data.w .L6374 425 .endo .L6375 426 .section ".ghcalltbl","" 00000018 00000000* 427 .L6377: .data.w .L6376 428 .endo .L6377 0000001c 00000000* 429 .L6379: .data.w .L6378 430 .endo .L6379 00000020 00000000* 431 .L6381: .data.w .L6380 432 .endo .L6381 00000024 00000000* 433 .L6383: .data.w .L6382 434 .endo .L6383 00000028 00000000* 435 .L6385: .data.w .L6384 436 .endo .L6385 437 .section ".ghrettbl","" 0000000c 00000000* 438 .L6387: .data.w .L6386 439 .endo .L6387 440 .section ".mcal_code","ax" 441 .assert 0x0 + (Gpt_StopTime - Gpt_ConfigPtr) +0 == 4 442 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 443 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 444 .assert 0x0 + (ReturnHwChannelInfo - Gpt_ConfigPtr) +0 == 52 445 ..gh.f.f.1.a.1.e.3: 446 .endo ..gh.f.f.1.a.1.e.3 447 Gpt_GetTimeElapsed:: 0000023c e92d44f0 448 push {r4-r7,r10,lr} 00000240 4682 449 mov r10,r0 00000242 f2400700* 450 movw r7,%lo(Gpt_ConfigPtr) 00000246 f2c00700* 451 movt r7,%hi(Gpt_ConfigPtr) 0000024a 2400 452 movs r4,0 0000024c f8874034 453 strb r4,[r7,52] 00000250 6838 454 ldr r0,[r7] 00000252 63bc 455 str r4,[r7,56] 00000254 b1d8* 456 cbz r0,.L6398 00000256 f1070634 457 add r6,r7,52 0000025a f1ba0f04 458 cmp r10,4 0000025e d20d* 459 bhs .L6397 00000260 6941 460 ldr r1,[r0,20] 00000262 f811500a 461 ldrb r5,[r1,r10] 00000266 2dff 462 cmp r5,255 00000268 d122* 463 bne .L6402 0000026a 2318 464 movs r3,24 0000026c 2203 465 movs r2,3 0000026e 4621 466 cpy r1,r4 00000270 2064 467 movs r0,100 Page 9 objs\release\Gpt.s 468 .L6916: 469 00000272 f000f800* 470 bl Det_ReportError 00000276 4620 471 cpy r0,r4 472 .L6918: 473 00000278 e8bd84f0 474 pop {r4-r7,r10,pc} 475 .L6397: 0000027c 2314 476 movs r3,20 0000027e 2203 477 movs r2,3 00000280 4621 478 cpy r1,r4 00000282 2064 479 movs r0,100 480 .L6920: 481 00000284 f000f800* 482 bl Det_ReportError 00000288 4620 483 cpy r0,r4 484 .L6922: 485 0000028a e8bd84f0 486 pop {r4-r7,r10,pc} 487 .L6398: 0000028e 230a 488 movs r3,10 00000290 2203 489 movs r2,3 00000292 4621 490 cpy r1,r4 00000294 2064 491 movs r0,100 492 .L6924: 493 00000296 f000f800* 494 bl Det_ReportError 0000029a 4620 495 cpy r0,r4 496 .L6926: 497 0000029c e8bd84f0 498 pop {r4-r7,r10,pc} 499 .L6410: 000002a0 2000 500 movs r0,0 501 .L6928: 502 000002a2 e8bd84f0 503 pop {r4-r7,r10,pc} 504 .L6413: 000002a6 1d39 505 adds r1,r7,4 000002a8 f851002a 506 ldr.w r0,[r1,r10 lsl 2] 507 .L6930: 508 000002ac e8bd84f0 509 pop {r4-r7,r10,pc} 510 .L6402: 000002b0 6840 511 ldr r0,[r0,4] 000002b2 4631 512 cpy r1,r6 000002b4 eb001045 513 add r0,r0,r5 lsl 5 000002b8 69c0 514 ldr r0,[r0,28] 515 .L6932: 516 000002ba f000f800* 517 bl Gpt_Drvw_GetTimeElapsed 000002be 4604 518 cpy r4,r0 000002c0 f1070114 519 add r1,r7,20 000002c4 f851003a 520 ldr.w r0,[r1,r10 lsl 3] 000002c8 1e40 521 subs r0,r0,1 000002ca d313* 522 blo .L6401 000002cc d0e8* 523 beq .L6410 000002ce 1e80 524 subs r0,r0,2 000002d0 d3e9* 525 blo .L6413 000002d2 d00d* 526 beq .L6416 000002d4 2801 527 cmp r0,1 000002d6 bf1c 528 itt ne Page 10 objs\release\Gpt.s 000002d8 4620 529 mov r0,r4 530 .L6934: 531 000002da e8bd84f0 532 pop {r4-r7,r10,pc} 000002de 7830 533 ldrb r0,[r6] 000002e0 2801 534 cmp r0,1 000002e2 d107* 535 bne .L6401 000002e4 6838 536 ldr r0,[r7] 000002e6 6840 537 ldr r0,[r0,4] 000002e8 eb001045 538 add r0,r0,r5 lsl 5 000002ec 6980 539 ldr r0,[r0,24] 000002ee 2801 540 cmp r0,1 541 .L6416: 000002f0 bf08 542 it eq 000002f2 6874 543 ldr r4,[r6,4] 544 .L6401: 000002f4 4620 545 cpy r0,r4 546 .L6936: 547 000002f6 e8bd84f0 548 pop {r4-r7,r10,pc} 549 .endf Gpt_GetTimeElapsed 550 ;ChannelIndex r5 local 551 ;ReturnValue r4 local 552 553 ;Channel r10 param 554 555 .section ".mcal_bss","awb" 00000034 00000000 556 ReturnHwChannelInfo: .space 8 00000038 00000000 557 .endo ReturnHwChannelInfo 558 .section ".ghcalltbl","" 0000002c 00000000* 559 .L6917: .data.w .L6916 560 .endo .L6917 561 .section ".ghrettbl","" 00000010 00000000* 562 .L6919: .data.w .L6918 563 .endo .L6919 564 .section ".ghcalltbl","" 00000030 00000000* 565 .L6921: .data.w .L6920 566 .endo .L6921 567 .section ".ghrettbl","" 00000014 00000000* 568 .L6923: .data.w .L6922 569 .endo .L6923 570 .section ".ghcalltbl","" 00000034 00000000* 571 .L6925: .data.w .L6924 572 .endo .L6925 573 .section ".ghrettbl","" 00000018 00000000* 574 .L6927: .data.w .L6926 575 .endo .L6927 0000001c 00000000* 576 .L6929: .data.w .L6928 577 .endo .L6929 00000020 00000000* 578 .L6931: .data.w .L6930 579 .endo .L6931 580 .section ".ghcalltbl","" 00000038 00000000* 581 .L6933: .data.w .L6932 582 .endo .L6933 583 .section ".ghrettbl","" 00000024 00000000* 584 .L6935: .data.w .L6934 585 .endo .L6935 00000028 00000000* 586 .L6937: .data.w .L6936 587 .endo .L6937 588 .section ".mcal_code","ax" Page 11 objs\release\Gpt.s 589 .assert 0x0 + (Gpt_StopTime - Gpt_ConfigPtr) +0 == 4 590 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 591 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 592 .assert 0x0 + (ReturnHwChannelInfo - Gpt_ConfigPtr) +0 == 52 593 ..gh.f.f.1.a.1.e.4: 594 .endo ..gh.f.f.1.a.1.e.4 595 Gpt_GetTimeRemaining:: 000002fa e92d44f0 596 push {r4-r7,r10,lr} 000002fe 4682 597 mov r10,r0 00000300 f2400700* 598 movw r7,%lo(Gpt_ConfigPtr) 00000304 f2c00700* 599 movt r7,%hi(Gpt_ConfigPtr) 00000308 2400 600 movs r4,0 0000030a f8874034 601 strb r4,[r7,52] 0000030e 6838 602 ldr r0,[r7] 00000310 63bc 603 str r4,[r7,56] 00000312 b1d8* 604 cbz r0,.L6948 00000314 f1070634 605 add r6,r7,52 00000318 f1ba0f04 606 cmp r10,4 0000031c d20d* 607 bhs .L6947 0000031e 6941 608 ldr r1,[r0,20] 00000320 f811500a 609 ldrb r5,[r1,r10] 00000324 2dff 610 cmp r5,255 00000326 d11a* 611 bne .L6952 00000328 2318 612 movs r3,24 0000032a 2204 613 movs r2,4 0000032c 4621 614 cpy r1,r4 0000032e 2064 615 movs r0,100 616 .L7463: 617 00000330 f000f800* 618 bl Det_ReportError 00000334 4620 619 cpy r0,r4 620 .L7465: 621 00000336 e8bd84f0 622 pop {r4-r7,r10,pc} 623 .L6947: 0000033a 2314 624 movs r3,20 0000033c 2204 625 movs r2,4 0000033e 4621 626 cpy r1,r4 00000340 2064 627 movs r0,100 628 .L7467: 629 00000342 f000f800* 630 bl Det_ReportError 00000346 4620 631 cpy r0,r4 632 .L7469: 633 00000348 e8bd84f0 634 pop {r4-r7,r10,pc} 635 .L6948: 0000034c 230a 636 movs r3,10 0000034e 2204 637 movs r2,4 00000350 4621 638 cpy r1,r4 00000352 2064 639 movs r0,100 640 .L7471: 641 00000354 f000f800* 642 bl Det_ReportError 00000358 4620 643 cpy r0,r4 644 .L7473: 645 0000035a e8bd84f0 646 pop {r4-r7,r10,pc} 647 .L6952: 0000035e 6840 648 ldr r0,[r0,4] 00000360 4631 649 cpy r1,r6 Page 12 objs\release\Gpt.s 00000362 eb001045 650 add r0,r0,r5 lsl 5 00000366 69c0 651 ldr r0,[r0,28] 652 .L7475: 653 00000368 f000f800* 654 bl Gpt_Drvw_GetTimeElapsed 0000036c 4604 655 cpy r4,r0 0000036e f1070114 656 add r1,r7,20 00000372 f851003a 657 ldr.w r0,[r1,r10 lsl 3] 00000376 1e40 658 subs r0,r0,1 00000378 d31e* 659 blo .L6951 0000037a d01c* 660 beq .L6967 0000037c 1e80 661 subs r0,r0,2 0000037e d313* 662 blo .L6964 00000380 d019* 663 beq .L6967 00000382 2801 664 cmp r0,1 00000384 bf1c 665 itt ne 00000386 4620 666 mov r0,r4 667 .L7477: 668 00000388 e8bd84f0 669 pop {r4-r7,r10,pc} 0000038c 7830 670 ldrb r0,[r6] 0000038e 2801 671 cmp r0,1 00000390 d106* 672 bne .L6955 00000392 6838 673 ldr r0,[r7] 00000394 6840 674 ldr r0,[r0,4] 00000396 eb001045 675 add r0,r0,r5 lsl 5 0000039a 6980 676 ldr r0,[r0,24] 0000039c 2801 677 cmp r0,1 0000039e d00a* 678 beq .L6967 679 .L6955: 000003a0 6870 680 ldr r0,[r6,4] 000003a2 1b00 681 subs r0,r0,r4 682 .L7479: 683 000003a4 e8bd84f0 684 pop {r4-r7,r10,pc} 685 .L6964: 000003a8 1d39 686 adds r1,r7,4 000003aa 6872 687 ldr r2,[r6,4] 000003ac f851002a 688 ldr.w r0,[r1,r10 lsl 2] 000003b0 1a10 689 subs r0,r2,r0 690 .L7481: 691 000003b2 e8bd84f0 692 pop {r4-r7,r10,pc} 693 .L6967: 000003b6 2400 694 movs r4,0 695 .L6951: 000003b8 4620 696 cpy r0,r4 697 .L7483: 698 000003ba e8bd84f0 699 pop {r4-r7,r10,pc} 700 .endf Gpt_GetTimeRemaining 701 ;ChannelIndex r5 local 702 ;ReturnValue r4 local 703 704 ;Channel r10 param 705 706 .section ".ghcalltbl","" 0000003c 00000000* 707 .L7464: .data.w .L7463 708 .endo .L7464 709 .section ".ghrettbl","" 0000002c 00000000* 710 .L7466: .data.w .L7465 Page 13 objs\release\Gpt.s 711 .endo .L7466 712 .section ".ghcalltbl","" 00000040 00000000* 713 .L7468: .data.w .L7467 714 .endo .L7468 715 .section ".ghrettbl","" 00000030 00000000* 716 .L7470: .data.w .L7469 717 .endo .L7470 718 .section ".ghcalltbl","" 00000044 00000000* 719 .L7472: .data.w .L7471 720 .endo .L7472 721 .section ".ghrettbl","" 00000034 00000000* 722 .L7474: .data.w .L7473 723 .endo .L7474 724 .section ".ghcalltbl","" 00000048 00000000* 725 .L7476: .data.w .L7475 726 .endo .L7476 727 .section ".ghrettbl","" 00000038 00000000* 728 .L7478: .data.w .L7477 729 .endo .L7478 0000003c 00000000* 730 .L7480: .data.w .L7479 731 .endo .L7480 00000040 00000000* 732 .L7482: .data.w .L7481 733 .endo .L7482 00000044 00000000* 734 .L7484: .data.w .L7483 735 .endo .L7484 736 .section ".mcal_code","ax" 737 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 738 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 739 ..gh.f.f.1.a.1.e.5: 740 .endo ..gh.f.f.1.a.1.e.5 741 Gpt_StartTimer:: 000003be e92d44f0 742 push {r4-r7,r10,lr} 000003c2 4607 743 cpy r7,r0 000003c4 f2400600* 744 movw r6,%lo(Gpt_ConfigPtr) 000003c8 f2c00600* 745 movt r6,%hi(Gpt_ConfigPtr) 000003cc 6830 746 ldr r0,[r6] 000003ce 468a 747 mov r10,r1 000003d0 f1060414 748 add r4,r6,20 000003d4 0001 749 movs r1,r0 000003d6 d049* 750 beq .L7495 000003d8 2f04 751 cmp r7,4 000003da d23f* 752 bhs .L7494 000003dc 6940 753 ldr r0,[r0,20] 000003de 5dc0 754 ldrb r0,[r0,r7] 000003e0 28ff 755 cmp r0,255 000003e2 d107* 756 bne .L7493 000003e4 2318 757 movs r3,24 000003e6 2205 758 movs r2,5 000003e8 2100 759 movs r1,0 000003ea 2064 760 movs r0,100 761 .L8377: 762 000003ec f000f800* 763 bl Det_ReportError 764 .L8379: 765 000003f0 e8bd84f0 766 pop {r4-r7,r10,pc} 767 .L7493: 000003f4 f2400100* 768 movw r1,%lo(Gpt_Mode) 000003f8 f2c00100* 769 movt r1,%hi(Gpt_Mode) 000003fc 6808 770 ldr r0,[r1] 000003fe 2500 771 movs r5,0 Page 14 objs\release\Gpt.s 00000400 4622 772 cpy r2,r4 00000402 2801 773 cmp r0,1 00000404 d10a* 774 bne .L7501 00000406 eb0400c7 775 add r0,r4,r7 lsl 3 0000040a 7941 776 ldrb r1,[r0,5] 0000040c b931* 777 cbnz r1,.L7501 0000040e 23a0 778 movs r3,160 00000410 2205 779 movs r2,5 00000412 2064 780 movs r0,100 00000414 e8bd44f0 781 pop {r4-r7,r10,lr} 782 .L8381: 783 00000418 f000b800* 784 b Det_ReportError 785 .L7501: 0000041c f8520037 786 ldr.w r0,[r2,r7 lsl 3] 00000420 2804 787 cmp r0,4 00000422 d107* 788 bne .L7505 00000424 230b 789 movs r3,11 00000426 2205 790 movs r2,5 00000428 4629 791 cpy r1,r5 0000042a 2064 792 movs r0,100 0000042c e8bd44f0 793 pop {r4-r7,r10,lr} 794 .L8383: 795 00000430 f000b800* 796 b Det_ReportRuntimeError 797 .L7505: 00000434 6830 798 ldr r0,[r6] 00000436 6941 799 ldr r1,[r0,20] 00000438 5dc9 800 ldrb r1,[r1,r7] 0000043a 6840 801 ldr r0,[r0,4] 0000043c eb001041 802 add r0,r0,r1 lsl 5 00000440 6940 803 ldr r0,[r0,20] 00000442 4582 804 cmp r10,r0 00000444 d802* 805 bhi .L7507 00000446 f1ba0f00 806 cmp r10,0 0000044a d116* 807 bne .L7508 808 .L7507: 0000044c 2315 809 movs r3,21 0000044e 2205 810 movs r2,5 00000450 2100 811 movs r1,0 00000452 2064 812 movs r0,100 813 .L8385: 814 00000454 f000f800* 815 bl Det_ReportError 816 .L8387: 817 00000458 e8bd84f0 818 pop {r4-r7,r10,pc} 819 .L7494: 0000045c 2314 820 movs r3,20 0000045e 2205 821 movs r2,5 00000460 2100 822 movs r1,0 00000462 2064 823 movs r0,100 824 .L8389: 825 00000464 f000f800* 826 bl Det_ReportError 827 .L8391: 828 00000468 e8bd84f0 829 pop {r4-r7,r10,pc} 830 .L7495: 0000046c 230a 831 movs r3,10 0000046e 2205 832 movs r2,5 Page 15 objs\release\Gpt.s 00000470 2064 833 movs r0,100 834 .L8393: 835 00000472 f000f800* 836 bl Det_ReportError 837 .L8395: 838 00000476 e8bd84f0 839 pop {r4-r7,r10,pc} 840 .L7508: 0000047a 6830 841 ldr r0,[r6] 0000047c 6941 842 ldr r1,[r0,20] 0000047e 5dcd 843 ldrb r5,[r1,r7] 00000480 6840 844 ldr r0,[r0,4] 00000482 eb001045 845 add r0,r0,r5 lsl 5 00000486 6981 846 ldr r1,[r0,24] 00000488 2901 847 cmp r1,1 0000048a d106* 848 bne .L7521 0000048c 69c0 849 ldr r0,[r0,28] 850 .L8397: 851 0000048e f000f800* 852 bl Gpt_Drvw_EnableInterrupt 00000492 6830 853 ldr r0,[r6] 00000494 6840 854 ldr r0,[r0,4] 00000496 eb001045 855 add r0,r0,r5 lsl 5 856 .L7521: 0000049a 2204 857 movs r2,4 0000049c f8442037 858 str r2,[r4,r7 lsl 3] 000004a0 4651 859 mov r1,r10 000004a2 69c0 860 ldr r0,[r0,28] 861 .L8399: 862 000004a4 f000f800* 863 bl Gpt_Drvw_StartTimer 000004a8 2800 864 cmp r0,0 000004aa bf08 865 it eq 866 .L8401: 867 000004ac e8bd84f0 868 pop {r4-r7,r10,pc} 000004b0 232b 869 movs r3,43 000004b2 2205 870 movs r2,5 000004b4 2100 871 movs r1,0 000004b6 2064 872 movs r0,100 000004b8 e8bd44f0 873 pop {r4-r7,r10,lr} 874 .L8403: 875 000004bc f000b800* 876 b Det_ReportRuntimeError 877 .endf Gpt_StartTimer 878 ;ChannelIndex r5 local 879 ;ReturnValue r5 local 880 ;ReturnValue r5 local 881 ;ReturnValue r5 local 882 883 ;Channel r7 param 884 ;Value r10 param 885 886 .section ".ghcalltbl","" 0000004c 00000000* 887 .L8378: .data.w .L8377 888 .endo .L8378 889 .section ".ghrettbl","" 00000048 00000000* 890 .L8380: .data.w .L8379 891 .endo .L8380 892 .section ".ghtailcalltbl","" 00000014 00000000* 893 .L8382: .data.w .L8381 Page 16 objs\release\Gpt.s 894 .endo .L8382 00000018 00000000* 895 .L8384: .data.w .L8383 896 .endo .L8384 897 .section ".ghcalltbl","" 00000050 00000000* 898 .L8386: .data.w .L8385 899 .endo .L8386 900 .section ".ghrettbl","" 0000004c 00000000* 901 .L8388: .data.w .L8387 902 .endo .L8388 903 .section ".ghcalltbl","" 00000054 00000000* 904 .L8390: .data.w .L8389 905 .endo .L8390 906 .section ".ghrettbl","" 00000050 00000000* 907 .L8392: .data.w .L8391 908 .endo .L8392 909 .section ".ghcalltbl","" 00000058 00000000* 910 .L8394: .data.w .L8393 911 .endo .L8394 912 .section ".ghrettbl","" 00000054 00000000* 913 .L8396: .data.w .L8395 914 .endo .L8396 915 .section ".ghcalltbl","" 0000005c 00000000* 916 .L8398: .data.w .L8397 917 .endo .L8398 00000060 00000000* 918 .L8400: .data.w .L8399 919 .endo .L8400 920 .section ".ghrettbl","" 00000058 00000000* 921 .L8402: .data.w .L8401 922 .endo .L8402 923 .section ".ghtailcalltbl","" 0000001c 00000000* 924 .L8404: .data.w .L8403 925 .endo .L8404 926 .section ".mcal_code","ax" 927 .assert 0x0 + (Gpt_StopTime - Gpt_ConfigPtr) +0 == 4 928 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 929 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 930 .assert 0x0 + (ReturnHwChannelInfo - Gpt_ConfigPtr) +0 == 52 931 ..gh.f.f.1.a.1.e.6: 932 .endo ..gh.f.f.1.a.1.e.6 933 Gpt_StopTimer:: 000004c0 e92d4cf0 934 push {r4-r7,r10-fp,lr} 000004c4 4606 935 cpy r6,r0 000004c6 f2400500* 936 movw r5,%lo(Gpt_ConfigPtr) 000004ca f2c00500* 937 movt r5,%hi(Gpt_ConfigPtr) 000004ce 2000 938 movs r0,0 000004d0 f8850034 939 strb r0,[r5,52] 000004d4 63a8 940 str r0,[r5,56] 000004d6 6828 941 ldr r0,[r5] 000004d8 0001 942 movs r1,r0 000004da d017* 943 beq .L8415 000004dc f1050b34 944 add fp,r5,52 000004e0 2e04 945 cmp r6,4 000004e2 d20b* 946 bhs .L8414 000004e4 6941 947 ldr r1,[r0,20] 000004e6 5d8c 948 ldrb r4,[r1,r6] 000004e8 2cff 949 cmp r4,255 000004ea d116* 950 bne .L8419 000004ec 2318 951 movs r3,24 000004ee 2206 952 movs r2,6 000004f0 2100 953 movs r1,0 000004f2 2064 954 movs r0,100 Page 17 objs\release\Gpt.s 000004f4 e8bd4cf0 955 pop {r4-r7,r10-fp,lr} 956 .L8798: 957 000004f8 f000b800* 958 b Det_ReportError 959 .L8414: 000004fc 2314 960 movs r3,20 000004fe 2206 961 movs r2,6 00000500 2100 962 movs r1,0 00000502 2064 963 movs r0,100 00000504 e8bd4cf0 964 pop {r4-r7,r10-fp,lr} 965 .L8800: 966 00000508 f000b800* 967 b Det_ReportError 968 .L8415: 0000050c 230a 969 movs r3,10 0000050e 2206 970 movs r2,6 00000510 2064 971 movs r0,100 00000512 e8bd4cf0 972 pop {r4-r7,r10-fp,lr} 973 .L8802: 974 00000516 f000b800* 975 b Det_ReportError 976 .L8419: 0000051a 6840 977 ldr r0,[r0,4] 0000051c 4659 978 mov r1,fp 0000051e eb001044 979 add r0,r0,r4 lsl 5 00000522 69c0 980 ldr r0,[r0,28] 981 .L8804: 982 00000524 f000f800* 983 bl Gpt_Drvw_GetTimeElapsed 00000528 4682 984 mov r10,r0 0000052a f1050714 985 add r7,r5,20 0000052e f8570036 986 ldr.w r0,[r7,r6 lsl 3] 00000532 2804 987 cmp r0,4 00000534 bf18 988 it ne 989 .L8806: 990 00000536 e8bd8cf0 991 pop {r4-r7,r10-fp,pc} 0000053a 6829 992 ldr r1,[r5] 0000053c 6849 993 ldr r1,[r1,4] 0000053e eb011044 994 add r0,r1,r4 lsl 5 00000542 69c0 995 ldr r0,[r0,28] 996 .L8808: 997 00000544 f000f800* 998 bl Gpt_Drvw_StopTimer 00000548 f89b0000 999 ldrb r0,[fp] 0000054c 2801 1000 cmp r0,1 0000054e d10b* 1001 bne .L8432 00000550 6828 1002 ldr r0,[r5] 00000552 6840 1003 ldr r0,[r0,4] 00000554 eb001044 1004 add r0,r0,r4 lsl 5 00000558 6980 1005 ldr r0,[r0,24] 0000055a 2801 1006 cmp r0,1 0000055c d104* 1007 bne .L8432 0000055e 2103 1008 movs r1,3 00000560 f8471036 1009 str r1,[r7,r6 lsl 3] 1010 .L8810: 1011 00000564 e8bd8cf0 1012 pop {r4-r7,r10-fp,pc} 1013 .L8432: 00000568 2102 1014 movs r1,2 0000056a f8471036 1015 str r1,[r7,r6 lsl 3] Page 18 objs\release\Gpt.s 0000056e 1d29 1016 adds r1,r5,4 00000570 f841a026 1017 str r10,[r1,r6 lsl 2] 1018 .L8812: 1019 00000574 e8bd8cf0 1020 pop {r4-r7,r10-fp,pc} 1021 .endf Gpt_StopTimer 1022 ;ChannelIndex r4 local 1023 ;ElapsedTime r10 local 1024 1025 ;Channel r6 param 1026 1027 .section ".ghtailcalltbl","" 00000020 00000000* 1028 .L8799: .data.w .L8798 1029 .endo .L8799 00000024 00000000* 1030 .L8801: .data.w .L8800 1031 .endo .L8801 00000028 00000000* 1032 .L8803: .data.w .L8802 1033 .endo .L8803 1034 .section ".ghcalltbl","" 00000064 00000000* 1035 .L8805: .data.w .L8804 1036 .endo .L8805 1037 .section ".ghrettbl","" 0000005c 00000000* 1038 .L8807: .data.w .L8806 1039 .endo .L8807 1040 .section ".ghcalltbl","" 00000068 00000000* 1041 .L8809: .data.w .L8808 1042 .endo .L8809 1043 .section ".ghrettbl","" 00000060 00000000* 1044 .L8811: .data.w .L8810 1045 .endo .L8811 00000064 00000000* 1046 .L8813: .data.w .L8812 1047 .endo .L8813 1048 .section ".mcal_code","ax" 1049 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 1050 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 1051 ..gh.f.f.1.a.1.e.7: 1052 .endo ..gh.f.f.1.a.1.e.7 1053 Gpt_EnableNotification:: 00000578 b570 1054 push {r4-r6,lr} 0000057a 4606 1055 cpy r6,r0 0000057c f2400500* 1056 movw r5,%lo(Gpt_ConfigPtr) 00000580 f2c00500* 1057 movt r5,%hi(Gpt_ConfigPtr) 00000584 6828 1058 ldr r0,[r5] 00000586 0001 1059 movs r1,r0 00000588 d024* 1060 beq .L8824 0000058a 2e04 1061 cmp r6,4 0000058c d21b* 1062 bhs .L8823 0000058e 6940 1063 ldr r0,[r0,20] 00000590 5d80 1064 ldrb r0,[r0,r6] 00000592 28ff 1065 cmp r0,255 00000594 d106* 1066 bne .L8822 00000596 2318 1067 movs r3,24 00000598 2207 1068 movs r2,7 0000059a 2100 1069 movs r1,0 0000059c 2064 1070 movs r0,100 1071 .L9230: 1072 0000059e f000f800* 1073 bl Det_ReportError 1074 .L9232: 1075 000005a2 bd70 1076 pop {r4-r6,pc} Page 19 objs\release\Gpt.s 1077 .L8822: 000005a4 6828 1078 ldr r0,[r5] 000005a6 6941 1079 ldr r1,[r0,20] 000005a8 5d89 1080 ldrb r1,[r1,r6] 000005aa 6843 1081 ldr r3,[r0,4] 000005ac eb031241 1082 add r2,r3,r1 lsl 5 000005b0 6852 1083 ldr r2,[r2,4] 000005b2 2400 1084 movs r4,0 000005b4 b9a2* 1085 cbnz r2,.L8832 000005b6 2314 1086 movs r3,20 000005b8 2207 1087 movs r2,7 000005ba 4621 1088 cpy r1,r4 000005bc 2064 1089 movs r0,100 000005be e8bd4070 1090 pop {r4-r6,lr} 1091 .L9234: 1092 000005c2 f000b800* 1093 b Det_ReportError 1094 .L8823: 000005c6 2314 1095 movs r3,20 000005c8 2207 1096 movs r2,7 000005ca 2100 1097 movs r1,0 000005cc 2064 1098 movs r0,100 1099 .L9236: 1100 000005ce f000f800* 1101 bl Det_ReportError 1102 .L9238: 1103 000005d2 bd70 1104 pop {r4-r6,pc} 1105 .L8824: 000005d4 230a 1106 movs r3,10 000005d6 2207 1107 movs r2,7 000005d8 2064 1108 movs r0,100 1109 .L9240: 1110 000005da f000f800* 1111 bl Det_ReportError 1112 .L9242: 1113 000005de bd70 1114 pop {r4-r6,pc} 1115 .L8832: 000005e0 eb0502c6 1116 add r2,r5,r6 lsl 3 000005e4 2301 1117 movs r3,1 000005e6 7613 1118 strb r3,[r2,24] 000005e8 f2400300* 1119 movw r3,%lo(Gpt_Mode) 000005ec f2c00300* 1120 movt r3,%hi(Gpt_Mode) 000005f0 681a 1121 ldr r2,[r3] 000005f2 2a00 1122 cmp r2,0 000005f4 bf18 1123 it ne 1124 .L9244: 1125 000005f6 bd70 1126 pop {r4-r6,pc} 000005f8 6840 1127 ldr r0,[r0,4] 000005fa eb001041 1128 add r0,r0,r1 lsl 5 000005fe 69c0 1129 ldr r0,[r0,28] 00000600 e8bd4070 1130 pop {r4-r6,lr} 1131 .L9246: 1132 00000604 f000b800* 1133 b Gpt_Drvw_EnableInterrupt 1134 .endf Gpt_EnableNotification 1135 ;ChannelIndex r1 local 1136 ;ReturnValue r4 local 1137 ;ReturnValue r4 local Page 20 objs\release\Gpt.s 1138 1139 ;Channel r6 param 1140 1141 .section ".ghcalltbl","" 0000006c 00000000* 1142 .L9231: .data.w .L9230 1143 .endo .L9231 1144 .section ".ghrettbl","" 00000068 00000000* 1145 .L9233: .data.w .L9232 1146 .endo .L9233 1147 .section ".ghtailcalltbl","" 0000002c 00000000* 1148 .L9235: .data.w .L9234 1149 .endo .L9235 1150 .section ".ghcalltbl","" 00000070 00000000* 1151 .L9237: .data.w .L9236 1152 .endo .L9237 1153 .section ".ghrettbl","" 0000006c 00000000* 1154 .L9239: .data.w .L9238 1155 .endo .L9239 1156 .section ".ghcalltbl","" 00000074 00000000* 1157 .L9241: .data.w .L9240 1158 .endo .L9241 1159 .section ".ghrettbl","" 00000070 00000000* 1160 .L9243: .data.w .L9242 1161 .endo .L9243 00000074 00000000* 1162 .L9245: .data.w .L9244 1163 .endo .L9245 1164 .section ".ghtailcalltbl","" 00000030 00000000* 1165 .L9247: .data.w .L9246 1166 .endo .L9247 1167 .section ".mcal_code","ax" 1168 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 1169 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 1170 ..gh.f.f.1.a.1.e.8: 1171 .endo ..gh.f.f.1.a.1.e.8 1172 Gpt_DisableNotification:: 00000608 b570 1173 push {r4-r6,lr} 0000060a 4605 1174 cpy r5,r0 0000060c f2400600* 1175 movw r6,%lo(Gpt_ConfigPtr) 00000610 f2c00600* 1176 movt r6,%hi(Gpt_ConfigPtr) 00000614 6830 1177 ldr r0,[r6] 00000616 0001 1178 movs r1,r0 00000618 d024* 1179 beq .L9258 0000061a 2d04 1180 cmp r5,4 0000061c d21b* 1181 bhs .L9257 0000061e 6940 1182 ldr r0,[r0,20] 00000620 5d40 1183 ldrb r0,[r0,r5] 00000622 28ff 1184 cmp r0,255 00000624 d106* 1185 bne .L9256 00000626 2318 1186 movs r3,24 00000628 2208 1187 movs r2,8 0000062a 2100 1188 movs r1,0 0000062c 2064 1189 movs r0,100 1190 .L9740: 1191 0000062e f000f800* 1192 bl Det_ReportError 1193 .L9742: 1194 00000632 bd70 1195 pop {r4-r6,pc} 1196 .L9256: 00000634 6830 1197 ldr r0,[r6] 00000636 6941 1198 ldr r1,[r0,20] Page 21 objs\release\Gpt.s 00000638 5d49 1199 ldrb r1,[r1,r5] 0000063a 6843 1200 ldr r3,[r0,4] 0000063c eb031241 1201 add r2,r3,r1 lsl 5 00000640 6852 1202 ldr r2,[r2,4] 00000642 2400 1203 movs r4,0 00000644 b9a2* 1204 cbnz r2,.L9266 00000646 2314 1205 movs r3,20 00000648 2208 1206 movs r2,8 0000064a 4621 1207 cpy r1,r4 0000064c 2064 1208 movs r0,100 0000064e e8bd4070 1209 pop {r4-r6,lr} 1210 .L9744: 1211 00000652 f000b800* 1212 b Det_ReportError 1213 .L9257: 00000656 2314 1214 movs r3,20 00000658 2208 1215 movs r2,8 0000065a 2100 1216 movs r1,0 0000065c 2064 1217 movs r0,100 1218 .L9746: 1219 0000065e f000f800* 1220 bl Det_ReportError 1221 .L9748: 1222 00000662 bd70 1223 pop {r4-r6,pc} 1224 .L9258: 00000664 230a 1225 movs r3,10 00000666 2208 1226 movs r2,8 00000668 2064 1227 movs r0,100 1228 .L9750: 1229 0000066a f000f800* 1230 bl Det_ReportError 1231 .L9752: 1232 0000066e bd70 1233 pop {r4-r6,pc} 1234 .L9266: 00000670 eb0603c5 1235 add r3,r6,r5 lsl 3 00000674 f2400c00* 1236 movw r12,%lo(Gpt_Mode) 00000678 f2c00c00* 1237 movt r12,%hi(Gpt_Mode) 0000067c 761c 1238 strb r4,[r3,24] 0000067e f8dc3000 1239 ldr.w r3,[r12] 00000682 f1060214 1240 add r2,r6,20 00000686 2b00 1241 cmp r3,0 00000688 bf18 1242 it ne 1243 .L9754: 1244 0000068a bd70 1245 pop {r4-r6,pc} 0000068c 6840 1246 ldr r0,[r0,4] 0000068e eb001041 1247 add r0,r0,r1 lsl 5 00000692 6981 1248 ldr r1,[r0,24] 00000694 2900 1249 cmp r1,0 00000696 d004* 1250 beq .L9272 00000698 f8521035 1251 ldr.w r1,[r2,r5 lsl 3] 0000069c 2904 1252 cmp r1,4 0000069e bf08 1253 it eq 1254 .L9756: 1255 000006a0 bd70 1256 pop {r4-r6,pc} 1257 .L9272: 000006a2 69c0 1258 ldr r0,[r0,28] 000006a4 e8bd4070 1259 pop {r4-r6,lr} Page 22 objs\release\Gpt.s 1260 .L9758: 1261 000006a8 f000b800* 1262 b Gpt_Drvw_DisableInterrupt 1263 .endf Gpt_DisableNotification 1264 ;ChannelIndex r1 local 1265 ;ReturnValue r4 local 1266 ;ReturnValue r4 local 1267 1268 ;Channel r5 param 1269 1270 .section ".ghcalltbl","" 00000078 00000000* 1271 .L9741: .data.w .L9740 1272 .endo .L9741 1273 .section ".ghrettbl","" 00000078 00000000* 1274 .L9743: .data.w .L9742 1275 .endo .L9743 1276 .section ".ghtailcalltbl","" 00000034 00000000* 1277 .L9745: .data.w .L9744 1278 .endo .L9745 1279 .section ".ghcalltbl","" 0000007c 00000000* 1280 .L9747: .data.w .L9746 1281 .endo .L9747 1282 .section ".ghrettbl","" 0000007c 00000000* 1283 .L9749: .data.w .L9748 1284 .endo .L9749 1285 .section ".ghcalltbl","" 00000080 00000000* 1286 .L9751: .data.w .L9750 1287 .endo .L9751 1288 .section ".ghrettbl","" 00000080 00000000* 1289 .L9753: .data.w .L9752 1290 .endo .L9753 00000084 00000000* 1291 .L9755: .data.w .L9754 1292 .endo .L9755 00000088 00000000* 1293 .L9757: .data.w .L9756 1294 .endo .L9757 1295 .section ".ghtailcalltbl","" 00000038 00000000* 1296 .L9759: .data.w .L9758 1297 .endo .L9759 1298 .section ".mcal_code","ax" 1299 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 1300 .assert 0x0 + (Gpt_StopTime - Gpt_ConfigPtr) +0 == 4 1301 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 1302 .assert 0x0 + (ReturnHwChannelInfo - Gpt_ConfigPtr) +0 == 52 1303 ..gh.f.f.1.a.1.e.9: 1304 .endo ..gh.f.f.1.a.1.e.9 1305 Gpt_SetMode:: 000006ac e92d4cf0 1306 push {r4-r7,r10-fp,lr} 000006b0 f2400600* 1307 movw r6,%lo(Gpt_ConfigPtr) 000006b4 f2c00600* 1308 movt r6,%hi(Gpt_ConfigPtr) 000006b8 6831 1309 ldr r1,[r6] 000006ba 2900 1310 cmp r1,0 000006bc d004* 1311 beq .L9770 000006be 4605 1312 cpy r5,r0 000006c0 2400 1313 movs r4,0 000006c2 2801 1314 cmp r0,1 000006c4 d012* 1315 beq .L9784 000006c6 e006* 1316 b .L9773 1317 .L9770: 000006c8 230a 1318 movs r3,10 000006ca 2209 1319 movs r2,9 000006cc 2064 1320 movs r0,100 Page 23 objs\release\Gpt.s 000006ce e8bd4cf0 1321 pop {r4-r7,r10-fp,lr} 1322 .L13950: 1323 000006d2 f000b800* 1324 b Det_ReportError 1325 .L9773: 000006d6 2800 1326 cmp r0,0 000006d8 f000808e* 1327 beq .L9806 000006dc 231f 1328 movs r3,31 000006de 2209 1329 movs r2,9 000006e0 4621 1330 cpy r1,r4 000006e2 2064 1331 movs r0,100 000006e4 e8bd4cf0 1332 pop {r4-r7,r10-fp,lr} 1333 .L13952: 1334 000006e8 f000b800* 1335 b Det_ReportError 1336 .L9784: 000006ec f2400200* 1337 movw r2,%lo(ReturnHwChannelInfo) 000006f0 f2c00200* 1338 movt r2,%hi(ReturnHwChannelInfo) 000006f4 7014 1339 strb r4,[r2] 000006f6 6054 1340 str r4,[r2,4] 000006f8 6831 1341 ldr r1,[r6] 000006fa 6808 1342 ldr r0,[r1] 000006fc 4625 1343 cpy r5,r4 000006fe 4284 1344 cmp r4,r0 00000700 d265* 1345 bhs .L9800 00000702 46a2 1346 mov r10,r4 00000704 f1060714 1347 add r7,r6,20 1348 .L12236: 00000708 694a 1349 ldr r2,[r1,20] 0000070a 7813 1350 ldrb r3,[r2] 0000070c 2400 1351 movs r4,0 0000070e 429d 1352 cmp r5,r3 00000710 d00e* 1353 beq .L9789 00000712 f8123f01 1354 ldrb r3,[r2,1]! 00000716 2401 1355 movs r4,1 00000718 429d 1356 cmp r5,r3 0000071a d009* 1357 beq .L9789 0000071c f8123f01 1358 ldrb r3,[r2,1]! 00000720 2402 1359 movs r4,2 00000722 429d 1360 cmp r5,r3 00000724 d004* 1361 beq .L9789 00000726 7852 1362 ldrb r2,[r2,1] 00000728 2403 1363 movs r4,3 0000072a 4295 1364 cmp r5,r2 0000072c bf18 1365 it ne 0000072e 2404 1366 mov r4,4 1367 .L9789: 00000730 6849 1368 ldr r1,[r1,4] 00000732 ea4f0bc4 1369 lsl fp,r4,3 00000736 eb07020b 1370 add r2,r7,fp 0000073a eb0a0301 1371 add r3,r10,r1 0000073e 7951 1372 ldrb r1,[r2,5] 00000740 69d8 1373 ldr r0,[r3,28] 00000742 bbd9* 1374 cbnz r1,.L9796 1375 .L13954: 1376 00000744 f000f800* 1377 bl Gpt_Drvw_DisableInterrupt 00000748 6832 1378 ldr r2,[r6] 0000074a 6852 1379 ldr r2,[r2,4] 0000074c f2400100* 1380 movw r1,%lo(ReturnHwChannelInfo) 00000750 f2c00100* 1381 movt r1,%hi(ReturnHwChannelInfo) Page 24 objs\release\Gpt.s 00000754 4452 1382 add r2,r2,r10 00000756 69d0 1383 ldr r0,[r2,28] 1384 .L13956: 1385 00000758 f000f800* 1386 bl Gpt_Drvw_GetTimeElapsed 0000075c f857100b 1387 ldr.w r1,[r7,fp] 00000760 2904 1388 cmp r1,4 00000762 d12d* 1389 bne .L9798 00000764 6831 1390 ldr r1,[r6] 00000766 f2400300* 1391 movw r3,%lo(ReturnHwChannelInfo) 0000076a f2c00300* 1392 movt r3,%hi(ReturnHwChannelInfo) 0000076e 781a 1393 ldrb r2,[r3] 00000770 6849 1394 ldr r1,[r1,4] 00000772 2a01 1395 cmp r2,1 00000774 4451 1396 add r1,r1,r10 00000776 bf04 1397 itt eq 00000778 698a 1398 ldr r2,[r1,24] 0000077a 2a01 1399 cmp r2,1 0000077c d10d* 1400 bne .L9794 0000077e 2203 1401 movs r2,3 00000780 69c8 1402 ldr r0,[r1,28] 00000782 f8472034 1403 str r2,[r7,r4 lsl 3] 1404 .L13958: 1405 00000786 f000f800* 1406 bl Gpt_Drvw_StopTimer 0000078a 6831 1407 ldr r1,[r6] 0000078c 680a 1408 ldr r2,[r1] 0000078e f10a0a20 1409 add r10,r10,32 00000792 1c6d 1410 adds r5,r5,1 00000794 4295 1411 cmp r5,r2 00000796 d3b7* 1412 blo .L12236 00000798 e019* 1413 b .L9800 1414 .L9794: 0000079a 1d33 1415 adds r3,r6,4 0000079c 2202 1416 movs r2,2 0000079e f8472034 1417 str r2,[r7,r4 lsl 3] 000007a2 f8430024 1418 str r0,[r3,r4 lsl 2] 000007a6 69c8 1419 ldr r0,[r1,28] 1420 .L13960: 1421 000007a8 f000f800* 1422 bl Gpt_Drvw_StopTimer 000007ac 6831 1423 ldr r1,[r6] 000007ae 680a 1424 ldr r2,[r1] 000007b0 f10a0a20 1425 add r10,r10,32 000007b4 1c6d 1426 adds r5,r5,1 000007b6 4295 1427 cmp r5,r2 000007b8 d3a6* 1428 blo .L12236 000007ba e008* 1429 b .L9800 1430 .L9796: 1431 .L13962: 1432 000007bc f000f800* 1433 bl Gpt_Drvw_EnableInterrupt 1434 .L9798: 000007c0 6831 1435 ldr r1,[r6] 000007c2 680a 1436 ldr r2,[r1] 000007c4 f10a0a20 1437 add r10,r10,32 000007c8 1c6d 1438 adds r5,r5,1 000007ca 4295 1439 cmp r5,r2 000007cc d39c* 1440 blo .L12236 1441 .L9800: 000007ce 6908 1442 ldr r0,[r1,16] Page 25 objs\release\Gpt.s 000007d0 6800 1443 ldr r0,[r0] 1444 .L13964: 1445 000007d2 f000f800* 1446 bl Gpt_Drvw_StopPredefTimer 000007d6 6830 1447 ldr r0,[r6] 000007d8 6900 1448 ldr r0,[r0,16] 000007da 6840 1449 ldr r0,[r0,4] 1450 .L13966: 1451 000007dc f000f800* 1452 bl Gpt_Drvw_StopPredefTimer 000007e0 6830 1453 ldr r0,[r6] 000007e2 6900 1454 ldr r0,[r0,16] 000007e4 6880 1455 ldr r0,[r0,8] 1456 .L13968: 1457 000007e6 f000f800* 1458 bl Gpt_Drvw_StopPredefTimer 000007ea 6830 1459 ldr r0,[r6] 000007ec 6900 1460 ldr r0,[r0,16] 000007ee 68c0 1461 ldr r0,[r0,12] 1462 .L13970: 1463 000007f0 f000f800* 1464 bl Gpt_Drvw_StopPredefTimer 000007f4 2001 1465 movs r0,1 000007f6 e067* 1466 b .L9760 1467 .L9806: 000007f8 f2400100* 1468 movw r1,%lo(Gpt_Mode) 000007fc f2c00100* 1469 movt r1,%hi(Gpt_Mode) 00000800 6808 1470 ldr r0,[r1] 00000802 2801 1471 cmp r0,1 00000804 d117* 1472 bne .L9825 00000806 6830 1473 ldr r0,[r6] 00000808 6900 1474 ldr r0,[r0,16] 0000080a 4621 1475 cpy r1,r4 0000080c 6800 1476 ldr r0,[r0] 1477 .L13972: 1478 0000080e f000f800* 1479 bl Gpt_Drvw_StartPredefTimer 00000812 6830 1480 ldr r0,[r6] 00000814 6900 1481 ldr r0,[r0,16] 00000816 2101 1482 movs r1,1 00000818 6840 1483 ldr r0,[r0,4] 1484 .L13974: 1485 0000081a f000f800* 1486 bl Gpt_Drvw_StartPredefTimer 0000081e 6830 1487 ldr r0,[r6] 00000820 6900 1488 ldr r0,[r0,16] 00000822 2102 1489 movs r1,2 00000824 6880 1490 ldr r0,[r0,8] 1491 .L13976: 1492 00000826 f000f800* 1493 bl Gpt_Drvw_StartPredefTimer 0000082a 6830 1494 ldr r0,[r6] 0000082c 6900 1495 ldr r0,[r0,16] 0000082e 2103 1496 movs r1,3 00000830 68c0 1497 ldr r0,[r0,12] 1498 .L13978: 1499 00000832 f000f800* 1500 bl Gpt_Drvw_StartPredefTimer 1501 .L9825: 00000836 6831 1502 ldr r1,[r6] 00000838 680a 1503 ldr r2,[r1] Page 26 objs\release\Gpt.s 0000083a 4294 1504 cmp r4,r2 0000083c d243* 1505 bhs .L9823 0000083e f1060714 1506 add r7,r6,20 1507 .L12248: 00000842 694b 1508 ldr r3,[r1,20] 00000844 7818 1509 ldrb r0,[r3] 00000846 f04f0c00 1510 mov r12,0 0000084a 4284 1511 cmp r4,r0 0000084c d012* 1512 beq .L9830 0000084e f8130f01 1513 ldrb r0,[r3,1]! 00000852 f04f0c01 1514 mov r12,1 00000856 4284 1515 cmp r4,r0 00000858 d00c* 1516 beq .L9830 0000085a f8130f01 1517 ldrb r0,[r3,1]! 0000085e f04f0c02 1518 mov r12,2 00000862 4284 1519 cmp r4,r0 00000864 d006* 1520 beq .L9830 00000866 785b 1521 ldrb r3,[r3,1] 00000868 f04f0c03 1522 mov r12,3 0000086c 429c 1523 cmp r4,r3 0000086e bf18 1524 it ne 00000870 f04f0c04 1525 mov r12,4 1526 .L9830: 00000874 ea4f03cc 1527 lsl r3,r12,3 00000878 eb070c03 1528 add r12,r7,r3 0000087c 6848 1529 ldr r0,[r1,4] 0000087e f89ca004 1530 ldrb r10,[r12,4] 00000882 f1ba0f01 1531 cmp r10,1 00000886 eb050c00 1532 add r12,r5,r0 0000088a d10a* 1533 bne .L9832 0000088c f8dc001c 1534 ldr.w r0,[r12,28] 1535 .L13980: 1536 00000890 f000f800* 1537 bl Gpt_Drvw_EnableInterrupt 00000894 6831 1538 ldr r1,[r6] 00000896 680a 1539 ldr r2,[r1] 00000898 3520 1540 adds r5,r5,32 0000089a 1c64 1541 adds r4,r4,1 0000089c 4294 1542 cmp r4,r2 0000089e d3d0* 1543 blo .L12248 000008a0 e011* 1544 b .L9823 1545 .L9832: 000008a2 58f8 1546 ldr r0,[r7,r3] 000008a4 4663 1547 mov r3,r12 000008a6 2804 1548 cmp r0,4 000008a8 d104* 1549 bne .L9834 000008aa f8dcc018 1550 ldr.w r12,[r12,24] 000008ae f1bc0f00 1551 cmp r12,0 000008b2 d104* 1552 bne .L9836 1553 .L9834: 000008b4 69d8 1554 ldr r0,[r3,28] 1555 .L13982: 1556 000008b6 f000f800* 1557 bl Gpt_Drvw_DisableInterrupt 000008ba 6831 1558 ldr r1,[r6] 000008bc 680a 1559 ldr r2,[r1] 1560 .L9836: 000008be 3520 1561 adds r5,r5,32 000008c0 1c64 1562 adds r4,r4,1 000008c2 4294 1563 cmp r4,r2 000008c4 d3bd* 1564 blo .L12248 Page 27 objs\release\Gpt.s 1565 .L9823: 000008c6 2000 1566 movs r0,0 1567 .L9760: 000008c8 f2400100* 1568 movw r1,%lo(Gpt_Mode) 000008cc f2c00100* 1569 movt r1,%hi(Gpt_Mode) 000008d0 6008 1570 str r0,[r1] 1571 .L13984: 1572 000008d2 e8bd8cf0 1573 pop {r4-r7,r10-fp,pc} 1574 .endf Gpt_SetMode 1575 ;ReturnValue r4 local 1576 ;ElapsedTime r0 local 1577 ;ChannelIndex r5 local 1578 ;Channel r4 local 1579 ;ChannelIndex r4 local 1580 ;Channel r12 local 1581 1582 ;Mode r5 param 1583 1584 .section ".ghtailcalltbl","" 0000003c 00000000* 1585 .L13951: .data.w .L13950 1586 .endo .L13951 00000040 00000000* 1587 .L13953: .data.w .L13952 1588 .endo .L13953 1589 .section ".ghcalltbl","" 00000084 00000000* 1590 .L13955: .data.w .L13954 1591 .endo .L13955 00000088 00000000* 1592 .L13957: .data.w .L13956 1593 .endo .L13957 0000008c 00000000* 1594 .L13959: .data.w .L13958 1595 .endo .L13959 00000090 00000000* 1596 .L13961: .data.w .L13960 1597 .endo .L13961 00000094 00000000* 1598 .L13963: .data.w .L13962 1599 .endo .L13963 00000098 00000000* 1600 .L13965: .data.w .L13964 1601 .endo .L13965 0000009c 00000000* 1602 .L13967: .data.w .L13966 1603 .endo .L13967 000000a0 00000000* 1604 .L13969: .data.w .L13968 1605 .endo .L13969 000000a4 00000000* 1606 .L13971: .data.w .L13970 1607 .endo .L13971 000000a8 00000000* 1608 .L13973: .data.w .L13972 1609 .endo .L13973 000000ac 00000000* 1610 .L13975: .data.w .L13974 1611 .endo .L13975 000000b0 00000000* 1612 .L13977: .data.w .L13976 1613 .endo .L13977 000000b4 00000000* 1614 .L13979: .data.w .L13978 1615 .endo .L13979 000000b8 00000000* 1616 .L13981: .data.w .L13980 1617 .endo .L13981 000000bc 00000000* 1618 .L13983: .data.w .L13982 1619 .endo .L13983 1620 .section ".ghrettbl","" 0000008c 00000000* 1621 .L13985: .data.w .L13984 1622 .endo .L13985 1623 .section ".mcal_code","ax" 1624 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 1625 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 Page 28 objs\release\Gpt.s 1626 ..gh.f.f.1.a.1.e.10: 1627 .endo ..gh.f.f.1.a.1.e.10 1628 Gpt_DisableWakeup:: 000008d6 b570 1629 push {r4-r6,lr} 000008d8 4605 1630 cpy r5,r0 000008da f2400600* 1631 movw r6,%lo(Gpt_ConfigPtr) 000008de f2c00600* 1632 movt r6,%hi(Gpt_ConfigPtr) 000008e2 6830 1633 ldr r0,[r6] 000008e4 0001 1634 movs r1,r0 000008e6 d024* 1635 beq .L13996 000008e8 2d04 1636 cmp r5,4 000008ea d21b* 1637 bhs .L13995 000008ec 6940 1638 ldr r0,[r0,20] 000008ee 5d40 1639 ldrb r0,[r0,r5] 000008f0 28ff 1640 cmp r0,255 000008f2 d106* 1641 bne .L13994 000008f4 2318 1642 movs r3,24 000008f6 220a 1643 movs r2,10 000008f8 2100 1644 movs r1,0 000008fa 2064 1645 movs r0,100 1646 .L14476: 1647 000008fc f000f800* 1648 bl Det_ReportError 1649 .L14478: 1650 00000900 bd70 1651 pop {r4-r6,pc} 1652 .L13994: 00000902 6830 1653 ldr r0,[r6] 00000904 6941 1654 ldr r1,[r0,20] 00000906 6843 1655 ldr r3,[r0,4] 00000908 5d49 1656 ldrb r1,[r1,r5] 0000090a 2400 1657 movs r4,0 0000090c 014a 1658 lsls r2,r1,5 0000090e 5cd2 1659 ldrb r2,[r2,r3] 00000910 2a01 1660 cmp r2,1 00000912 d014* 1661 beq .L14004 00000914 2314 1662 movs r3,20 00000916 220a 1663 movs r2,10 00000918 4621 1664 cpy r1,r4 0000091a 2064 1665 movs r0,100 0000091c e8bd4070 1666 pop {r4-r6,lr} 1667 .L14480: 1668 00000920 f000b800* 1669 b Det_ReportError 1670 .L13995: 00000924 2314 1671 movs r3,20 00000926 220a 1672 movs r2,10 00000928 2100 1673 movs r1,0 0000092a 2064 1674 movs r0,100 1675 .L14482: 1676 0000092c f000f800* 1677 bl Det_ReportError 1678 .L14484: 1679 00000930 bd70 1680 pop {r4-r6,pc} 1681 .L13996: 00000932 230a 1682 movs r3,10 00000934 461a 1683 cpy r2,r3 00000936 2064 1684 movs r0,100 1685 .L14486: 1686 Page 29 objs\release\Gpt.s 00000938 f000f800* 1687 bl Det_ReportError 1688 .L14488: 1689 0000093c bd70 1690 pop {r4-r6,pc} 1691 .L14004: 0000093e eb0603c5 1692 add r3,r6,r5 lsl 3 00000942 f2400c00* 1693 movw r12,%lo(Gpt_Mode) 00000946 f2c00c00* 1694 movt r12,%hi(Gpt_Mode) 0000094a 765c 1695 strb r4,[r3,25] 0000094c f8dc3000 1696 ldr.w r3,[r12] 00000950 f1060214 1697 add r2,r6,20 00000954 2b01 1698 cmp r3,1 00000956 bf18 1699 it ne 1700 .L14490: 1701 00000958 bd70 1702 pop {r4-r6,pc} 0000095a 6840 1703 ldr r0,[r0,4] 0000095c eb001041 1704 add r0,r0,r1 lsl 5 00000960 6981 1705 ldr r1,[r0,24] 00000962 2900 1706 cmp r1,0 00000964 d004* 1707 beq .L14010 00000966 f8521035 1708 ldr.w r1,[r2,r5 lsl 3] 0000096a 2904 1709 cmp r1,4 0000096c bf08 1710 it eq 1711 .L14492: 1712 0000096e bd70 1713 pop {r4-r6,pc} 1714 .L14010: 00000970 69c0 1715 ldr r0,[r0,28] 00000972 e8bd4070 1716 pop {r4-r6,lr} 1717 .L14494: 1718 00000976 f000b800* 1719 b Gpt_Drvw_DisableInterrupt 1720 .endf Gpt_DisableWakeup 1721 ;ChannelIndex r1 local 1722 ;ReturnValue r4 local 1723 ;ReturnValue r4 local 1724 1725 ;Channel r5 param 1726 1727 .section ".ghcalltbl","" 000000c0 00000000* 1728 .L14477: .data.w .L14476 1729 .endo .L14477 1730 .section ".ghrettbl","" 00000090 00000000* 1731 .L14479: .data.w .L14478 1732 .endo .L14479 1733 .section ".ghtailcalltbl","" 00000044 00000000* 1734 .L14481: .data.w .L14480 1735 .endo .L14481 1736 .section ".ghcalltbl","" 000000c4 00000000* 1737 .L14483: .data.w .L14482 1738 .endo .L14483 1739 .section ".ghrettbl","" 00000094 00000000* 1740 .L14485: .data.w .L14484 1741 .endo .L14485 1742 .section ".ghcalltbl","" 000000c8 00000000* 1743 .L14487: .data.w .L14486 1744 .endo .L14487 1745 .section ".ghrettbl","" 00000098 00000000* 1746 .L14489: .data.w .L14488 1747 .endo .L14489 Page 30 objs\release\Gpt.s 0000009c 00000000* 1748 .L14491: .data.w .L14490 1749 .endo .L14491 000000a0 00000000* 1750 .L14493: .data.w .L14492 1751 .endo .L14493 1752 .section ".ghtailcalltbl","" 00000048 00000000* 1753 .L14495: .data.w .L14494 1754 .endo .L14495 1755 .section ".mcal_code","ax" 1756 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 1757 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 1758 ..gh.f.f.1.a.1.e.11: 1759 .endo ..gh.f.f.1.a.1.e.11 1760 Gpt_EnableWakeup:: 0000097a b570 1761 push {r4-r6,lr} 0000097c 4606 1762 cpy r6,r0 0000097e f2400500* 1763 movw r5,%lo(Gpt_ConfigPtr) 00000982 f2c00500* 1764 movt r5,%hi(Gpt_ConfigPtr) 00000986 6828 1765 ldr r0,[r5] 00000988 0001 1766 movs r1,r0 0000098a d024* 1767 beq .L14506 0000098c 2e04 1768 cmp r6,4 0000098e d21b* 1769 bhs .L14505 00000990 6940 1770 ldr r0,[r0,20] 00000992 5d80 1771 ldrb r0,[r0,r6] 00000994 28ff 1772 cmp r0,255 00000996 d106* 1773 bne .L14504 00000998 2318 1774 movs r3,24 0000099a 220b 1775 movs r2,11 0000099c 2100 1776 movs r1,0 0000099e 2064 1777 movs r0,100 1778 .L14926: 1779 000009a0 f000f800* 1780 bl Det_ReportError 1781 .L14928: 1782 000009a4 bd70 1783 pop {r4-r6,pc} 1784 .L14504: 000009a6 6828 1785 ldr r0,[r5] 000009a8 6941 1786 ldr r1,[r0,20] 000009aa 6843 1787 ldr r3,[r0,4] 000009ac 5d89 1788 ldrb r1,[r1,r6] 000009ae 2400 1789 movs r4,0 000009b0 014a 1790 lsls r2,r1,5 000009b2 5cd2 1791 ldrb r2,[r2,r3] 000009b4 2a01 1792 cmp r2,1 000009b6 d014* 1793 beq .L14514 000009b8 2314 1794 movs r3,20 000009ba 220b 1795 movs r2,11 000009bc 4621 1796 cpy r1,r4 000009be 2064 1797 movs r0,100 000009c0 e8bd4070 1798 pop {r4-r6,lr} 1799 .L14930: 1800 000009c4 f000b800* 1801 b Det_ReportError 1802 .L14505: 000009c8 2314 1803 movs r3,20 000009ca 220b 1804 movs r2,11 000009cc 2100 1805 movs r1,0 000009ce 2064 1806 movs r0,100 1807 .L14932: 1808 Page 31 objs\release\Gpt.s 000009d0 f000f800* 1809 bl Det_ReportError 1810 .L14934: 1811 000009d4 bd70 1812 pop {r4-r6,pc} 1813 .L14506: 000009d6 230a 1814 movs r3,10 000009d8 220b 1815 movs r2,11 000009da 2064 1816 movs r0,100 1817 .L14936: 1818 000009dc f000f800* 1819 bl Det_ReportError 1820 .L14938: 1821 000009e0 bd70 1822 pop {r4-r6,pc} 1823 .L14514: 000009e2 eb0502c6 1824 add r2,r5,r6 lsl 3 000009e6 2301 1825 movs r3,1 000009e8 7653 1826 strb r3,[r2,25] 000009ea f2400300* 1827 movw r3,%lo(Gpt_Mode) 000009ee f2c00300* 1828 movt r3,%hi(Gpt_Mode) 000009f2 681a 1829 ldr r2,[r3] 000009f4 2a01 1830 cmp r2,1 000009f6 bf18 1831 it ne 1832 .L14940: 1833 000009f8 bd70 1834 pop {r4-r6,pc} 000009fa 6840 1835 ldr r0,[r0,4] 000009fc eb001041 1836 add r0,r0,r1 lsl 5 00000a00 69c0 1837 ldr r0,[r0,28] 00000a02 e8bd4070 1838 pop {r4-r6,lr} 1839 .L14942: 1840 00000a06 f000b800* 1841 b Gpt_Drvw_EnableInterrupt 1842 .endf Gpt_EnableWakeup 1843 ;ChannelIndex r1 local 1844 ;ReturnValue r4 local 1845 ;ReturnValue r4 local 1846 1847 ;Channel r6 param 1848 1849 .section ".ghcalltbl","" 000000cc 00000000* 1850 .L14927: .data.w .L14926 1851 .endo .L14927 1852 .section ".ghrettbl","" 000000a4 00000000* 1853 .L14929: .data.w .L14928 1854 .endo .L14929 1855 .section ".ghtailcalltbl","" 0000004c 00000000* 1856 .L14931: .data.w .L14930 1857 .endo .L14931 1858 .section ".ghcalltbl","" 000000d0 00000000* 1859 .L14933: .data.w .L14932 1860 .endo .L14933 1861 .section ".ghrettbl","" 000000a8 00000000* 1862 .L14935: .data.w .L14934 1863 .endo .L14935 1864 .section ".ghcalltbl","" 000000d4 00000000* 1865 .L14937: .data.w .L14936 1866 .endo .L14937 1867 .section ".ghrettbl","" 000000ac 00000000* 1868 .L14939: .data.w .L14938 1869 .endo .L14939 Page 32 objs\release\Gpt.s 000000b0 00000000* 1870 .L14941: .data.w .L14940 1871 .endo .L14941 1872 .section ".ghtailcalltbl","" 00000050 00000000* 1873 .L14943: .data.w .L14942 1874 .endo .L14943 1875 .section ".mcal_code","ax" 1876 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 1877 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 1878 ..gh.f.f.1.a.1.e.12: 1879 .endo ..gh.f.f.1.a.1.e.12 1880 Gpt_CheckWakeup:: 00000a0a e92d44f0 1881 push {r4-r7,r10,lr} 00000a0e f2400400* 1882 movw r4,%lo(Gpt_ConfigPtr) 00000a12 f2c00400* 1883 movt r4,%hi(Gpt_ConfigPtr) 00000a16 6822 1884 ldr r2,[r4] 00000a18 2100 1885 movs r1,0 00000a1a b932* 1886 cbnz r2,.L14958 00000a1c 230a 1887 movs r3,10 00000a1e 220c 1888 movs r2,12 00000a20 2064 1889 movs r0,100 00000a22 e8bd44f0 1890 pop {r4-r7,r10,lr} 1891 .L16165: 1892 00000a26 f000b800* 1893 b Det_ReportError 1894 .L14958: 00000a2a 6815 1895 ldr r5,[r2] 00000a2c 42a9 1896 cmp r1,r5 00000a2e bf28 1897 it hs 1898 .L16167: 1899 00000a30 e8bd84f0 1900 pop {r4-r7,r10,pc} 00000a34 460b 1901 cpy r3,r1 00000a36 6857 1902 ldr r7,[r2,4] 00000a38 6956 1903 ldr r6,[r2,20] 1904 .L15135: 00000a3a f896c000 1905 ldrb r12,[r6] 00000a3e 2200 1906 movs r2,0 00000a40 4561 1907 cmp r1,r12 00000a42 d013* 1908 beq .L14963 00000a44 f896a001 1909 ldrb r10,[r6,1] 00000a48 2201 1910 movs r2,1 00000a4a f1060c01 1911 add r12,r6,1 00000a4e 4551 1912 cmp r1,r10 00000a50 d00c* 1913 beq .L14963 00000a52 f896a002 1914 ldrb r10,[r6,2] 00000a56 2202 1915 movs r2,2 00000a58 f10c0c01 1916 add r12,r12,1 00000a5c 4551 1917 cmp r1,r10 00000a5e d005* 1918 beq .L14963 00000a60 f89cc001 1919 ldrb r12,[r12,1] 00000a64 2203 1920 movs r2,3 00000a66 4561 1921 cmp r1,r12 00000a68 bf18 1922 it ne 00000a6a 2204 1923 mov r2,4 1924 .L14963: 00000a6c eb030c07 1925 add r12,r3,r7 00000a70 f8dcc008 1926 ldr.w r12,[r12,8] 00000a74 4584 1927 cmp r12,r0 00000a76 d10d* 1928 bne .L14962 00000a78 eb0402c2 1929 add r2,r4,r2 lsl 3 00000a7c f892c01a 1930 ldrb r12,[r2,26] Page 33 objs\release\Gpt.s 00000a80 3214 1931 adds r2,r2,20 00000a82 f1bc0f01 1932 cmp r12,1 00000a86 d105* 1933 bne .L14962 00000a88 2100 1934 movs r1,0 00000a8a 7191 1935 strb r1,[r2,6] 00000a8c e8bd44f0 1936 pop {r4-r7,r10,lr} 1937 .L16169: 1938 00000a90 f000b800* 1939 b EcuM_SetWakeupEvent 1940 .L14962: 00000a94 3320 1941 adds r3,r3,32 00000a96 1c49 1942 adds r1,r1,1 00000a98 42a9 1943 cmp r1,r5 00000a9a d3ce* 1944 blo .L15135 1945 .L16171: 1946 00000a9c e8bd84f0 1947 pop {r4-r7,r10,pc} 1948 .endf Gpt_CheckWakeup 1949 ;Channel r2 local 1950 ;ChannelIndex r1 local 1951 1952 ;WakeupSource r0 param 1953 1954 .section ".ghtailcalltbl","" 00000054 00000000* 1955 .L16166: .data.w .L16165 1956 .endo .L16166 1957 .section ".ghrettbl","" 000000b4 00000000* 1958 .L16168: .data.w .L16167 1959 .endo .L16168 1960 .section ".ghtailcalltbl","" 00000058 00000000* 1961 .L16170: .data.w .L16169 1962 .endo .L16170 1963 .section ".ghrettbl","" 000000b8 00000000* 1964 .L16172: .data.w .L16171 1965 .endo .L16172 1966 .section ".mcal_code","ax" 1967 ..gh.f.f.1.a.1.e.13: 1968 .endo ..gh.f.f.1.a.1.e.13 1969 Gpt_GetPredefTimerValue:: 00000aa0 b5f0 1970 push {r4-r7,lr} 00000aa2 4604 1971 cpy r4,r0 00000aa4 f2400600* 1972 movw r6,%lo(Gpt_ConfigPtr) 00000aa8 f2c00600* 1973 movt r6,%hi(Gpt_ConfigPtr) 00000aac 6830 1974 ldr r0,[r6] 00000aae 2501 1975 movs r5,1 00000ab0 b930* 1976 cbnz r0,.L16185 00000ab2 230a 1977 movs r3,10 00000ab4 220d 1978 movs r2,13 00000ab6 4601 1979 cpy r1,r0 00000ab8 2064 1980 movs r0,100 1981 .L16982: 1982 00000aba f000f800* 1983 bl Det_ReportError 00000abe e03d* 1984 b .L16173 1985 .L16185: 00000ac0 1e0f 1986 subs r7,r1,0 00000ac2 d108* 1987 bne .L16187 00000ac4 2316 1988 movs r3,22 00000ac6 220d 1989 movs r2,13 00000ac8 2064 1990 movs r0,100 1991 .L16984: Page 34 objs\release\Gpt.s 1992 00000aca f000f800* 1993 bl Det_ReportError 00000ace 1e2d 1994 subs r5,r5,0 00000ad0 bf18 1995 it ne 00000ad2 2501 1996 mov r5,1 00000ad4 e032* 1997 b .L16173 1998 .L16187: 00000ad6 2501 1999 movs r5,1 00000ad8 2c00 2000 cmp r4,0 00000ada bf1e 2001 ittt ne 00000adc 2c01 2002 cmp r4,1 00000ade 2c02 2003 cmp r4,2 00000ae0 2c03 2004 cmp r4,3 00000ae2 d115* 2005 bne .L16204 00000ae4 6830 2006 ldr r0,[r6] 00000ae6 6901 2007 ldr r1,[r0,16] 00000ae8 f8510024 2008 ldr.w r0,[r1,r4 lsl 2] 00000aec b180* 2009 cbz r0,.L16204 00000aee f2400100* 2010 movw r1,%lo(Gpt_Mode) 00000af2 f2c00100* 2011 movt r1,%hi(Gpt_Mode) 00000af6 6808 2012 ldr r0,[r1] 00000af8 2501 2013 movs r5,1 00000afa 2801 2014 cmp r0,1 00000afc d111* 2015 bne .L16213 00000afe 230c 2016 movs r3,12 00000b00 220d 2017 movs r2,13 00000b02 2100 2018 movs r1,0 00000b04 2064 2019 movs r0,100 2020 .L16986: 2021 00000b06 f000f800* 2022 bl Det_ReportRuntimeError 00000b0a 2000 2023 movs r0,0 00000b0c 6038 2024 str r0,[r7] 00000b0e e015* 2025 b .L16173 2026 .L16204: 00000b10 2317 2027 movs r3,23 00000b12 220d 2028 movs r2,13 00000b14 2100 2029 movs r1,0 00000b16 2064 2030 movs r0,100 2031 .L16988: 2032 00000b18 f000f800* 2033 bl Det_ReportError 00000b1c 2000 2034 movs r0,0 00000b1e 6038 2035 str r0,[r7] 00000b20 e00c* 2036 b .L16173 2037 .L16213: 00000b22 6833 2038 ldr r3,[r6] 00000b24 691b 2039 ldr r3,[r3,16] 00000b26 2500 2040 movs r5,0 00000b28 1e61 2041 subs r1,r4,1 00000b2a 463a 2042 cpy r2,r7 00000b2c f8530024 2043 ldr.w r0,[r3,r4 lsl 2] 00000b30 2902 2044 cmp r1,2 00000b32 bf8c 2045 ite hi 00000b34 4629 2046 mov r1,r5 00000b36 4621 2047 mov r1,r4 2048 .L16990: 2049 00000b38 f000f800* 2050 bl Gpt_Drvw_GetPredefTimerValue 2051 .L16173: 00000b3c 4628 2052 cpy r0,r5 Page 35 objs\release\Gpt.s 2053 .L16992: 2054 00000b3e bdf0 2055 pop {r4-r7,pc} 2056 .endf Gpt_GetPredefTimerValue 2057 ;ReturnValue r5 local 2058 ;Channel r0 local 2059 ;ReturnValue r5 local 2060 ;ReturnValue r5 local 2061 ;ReturnValue r5 local 2062 ;ReturnValue r5 local 2063 2064 ;PredefTimer r4 param 2065 ;TimeValuePtr r7 param 2066 2067 .section ".ghcalltbl","" 000000d8 00000000* 2068 .L16983: .data.w .L16982 2069 .endo .L16983 000000dc 00000000* 2070 .L16985: .data.w .L16984 2071 .endo .L16985 000000e0 00000000* 2072 .L16987: .data.w .L16986 2073 .endo .L16987 000000e4 00000000* 2074 .L16989: .data.w .L16988 2075 .endo .L16989 000000e8 00000000* 2076 .L16991: .data.w .L16990 2077 .endo .L16991 2078 .section ".ghrettbl","" 000000bc 00000000* 2079 .L16993: .data.w .L16992 2080 .endo .L16993 2081 .section ".mcal_code","ax" 2082 .assert 0x0 + (Gpt_ConfigPtr - Gpt_ConfigPtr) +0 == 0 2083 .assert 0x0 + (Gpt_ChannelInfo - Gpt_ConfigPtr) +0 == 20 2084 ..gh.f.f.1.a.1.e.14: 2085 .endo ..gh.f.f.1.a.1.e.14 2086 Gpt_TimeMatchCallback:: 00000b40 b5f0 2087 push {r4-r7,lr} 00000b42 4604 2088 cpy r4,r0 00000b44 f2400700* 2089 movw r7,%lo(Gpt_ConfigPtr) 00000b48 f2c00700* 2090 movt r7,%hi(Gpt_ConfigPtr) 00000b4c 6838 2091 ldr r0,[r7] 00000b4e 2800 2092 cmp r0,0 00000b50 bf08 2093 it eq 2094 .L17314: 2095 00000b52 bdf0 2096 pop {r4-r7,pc} 00000b54 6941 2097 ldr r1,[r0,20] 00000b56 5d0d 2098 ldrb r5,[r1,r4] 00000b58 6840 2099 ldr r0,[r0,4] 00000b5a eb001045 2100 add r0,r0,r5 lsl 5 00000b5e 6981 2101 ldr r1,[r0,24] 00000b60 f1070614 2102 add r6,r7,20 00000b64 2901 2103 cmp r1,1 00000b66 d105* 2104 bne .L16998 00000b68 69c0 2105 ldr r0,[r0,28] 2106 .L17316: 2107 00000b6a f000f800* 2108 bl Gpt_Drvw_StopTimer 00000b6e 2103 2109 movs r1,3 00000b70 f8461034 2110 str r1,[r6,r4 lsl 3] 2111 .L16998: 00000b74 f2400100* 2112 movw r1,%lo(Gpt_Mode) 00000b78 f2c00100* 2113 movt r1,%hi(Gpt_Mode) Page 36 objs\release\Gpt.s 00000b7c 6808 2114 ldr r0,[r1] 00000b7e b960* 2115 cbnz r0,.L17004 00000b80 eb0600c4 2116 add r0,r6,r4 lsl 3 00000b84 7900 2117 ldrb r0,[r0,4] 00000b86 2801 2118 cmp r0,1 00000b88 d107* 2119 bne .L17004 00000b8a 6838 2120 ldr r0,[r7] 00000b8c 6840 2121 ldr r0,[r0,4] 00000b8e eb001045 2122 add r0,r0,r5 lsl 5 00000b92 6840 2123 ldr r0,[r0,4] 00000b94 2800 2124 cmp r0,0 00000b96 bf18 2125 it ne 2126 .L17318: 2127 00000b98 4780 2128 blx r0 2129 .L17004: 00000b9a f2400100* 2130 movw r1,%lo(Gpt_Mode) 00000b9e f2c00100* 2131 movt r1,%hi(Gpt_Mode) 00000ba2 6808 2132 ldr r0,[r1] 00000ba4 2801 2133 cmp r0,1 00000ba6 bf18 2134 it ne 2135 .L17320: 2136 00000ba8 bdf0 2137 pop {r4-r7,pc} 00000baa eb0600c4 2138 add r0,r6,r4 lsl 3 00000bae 7940 2139 ldrb r0,[r0,5] 00000bb0 2801 2140 cmp r0,1 00000bb2 bf18 2141 it ne 2142 .L17322: 2143 00000bb4 bdf0 2144 pop {r4-r7,pc} 00000bb6 eb0601c4 2145 add r1,r6,r4 lsl 3 00000bba 7188 2146 strb r0,[r1,6] 00000bbc 6838 2147 ldr r0,[r7] 00000bbe 6840 2148 ldr r0,[r0,4] 00000bc0 eb001045 2149 add r0,r0,r5 lsl 5 00000bc4 6880 2150 ldr r0,[r0,8] 00000bc6 e8bd40f0 2151 pop {r4-r7,lr} 2152 .L17324: 2153 00000bca f000b800* 2154 b EcuM_CheckWakeup 2155 .endf Gpt_TimeMatchCallback 2156 ;ChannelIndex r5 local 2157 2158 ;Channel r4 param 2159 2160 .section ".ghrettbl","" 000000c0 00000000* 2161 .L17315: .data.w .L17314 2162 .endo .L17315 2163 .section ".ghcalltbl","" 000000ec 00000000* 2164 .L17317: .data.w .L17316 2165 .endo .L17317 000000f0 00000000* 2166 .L17319: .data.w .L17318 2167 .endo .L17319 2168 .section ".ghrettbl","" 000000c4 00000000* 2169 .L17321: .data.w .L17320 2170 .endo .L17321 000000c8 00000000* 2171 .L17323: .data.w .L17322 2172 .endo .L17323 2173 .section ".ghtailcalltbl","" 0000005c 00000000* 2174 .L17325: .data.w .L17324 Page 37 objs\release\Gpt.s 2175 .endo .L17325 2176 .section ".mcal_code","ax" 2177 ;Gpt_PreDefinedConfigPtr Gpt_PreDefinedConfigPtr import 2178 ;Gpt_ConfigPtr Gpt_ConfigPtr static 2179 ;Gpt_Mode Gpt_Mode static 2180 ;Gpt_StopTime Gpt_StopTime static 2181 ;Gpt_ChannelInfo Gpt_ChannelInfo static 2182 ;ReturnHwChannelInfo ReturnHwChannelInfo static 2183 2184 .global Gpt_PreDefinedConfigPtr 2185 2186 .ghsnote info, 27, 3, 640