bsp_iwdg.txt
3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o.\flash\obj\bsp_iwdg.o --asm_dir=.\Flash\List\ --list_dir=.\Flash\List\ --depend=.\flash\obj\bsp_iwdg.d --cpu=Cortex-M4.fp --apcs=interwork -O1 --diag_suppress=9931,870 -I..\..\Libraries\CMSIS\Include -I..\..\Libraries\CMSIS\Device\ST\STM32F4xx\Include -I..\..\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\uCOS-III\uC-CPU -I..\..\uCOS-III\uC-LIB -I..\..\uCOS-III\uCOS-III\Ports -I..\..\uCOS-III\uCOS-III\Source -I..\..\uCOS-III\uC-CPU\ARM-Cortex-M4\RealView -I..\..\uCOS-III\uC-LIB\Ports\ARM-Cortex-M4\RealView -I..\..\uCOS-III\uCOS-III\Ports\ARM-Cortex-M4\Generic\RealView -I..\..\User -I..\..\User\bsp -I..\..\User\bsp\inc -I..\..\User\libapp -I..\..\RL-ARM\Config -I..\..\RL-ARM\Driver -I..\..\RL-ARM\RL-RTX\inc -I..\..\User\bsp\BSP -I..\..\RL-ARM\RL-CAN -I..\..\Libraries\DSP_LIB\Include -I..\..\MODBUS\modbus\rtu -I..\..\MODBUS\BARE\port -I..\..\MODBUS\modbus\include -I..\..\User\bsp\BSP -I..\..\PLC -I..\..\Avoid -I..\..\User\parameter -I..\..\User\LaserMotionCtr -I..\..\User\W5100S -I..\..\User\bsp -I..\..\User\CHASSIS -I..\..\User\CONTROLFUNCTION -I..\..\User\DATAUPDATE -I..\..\User\HARAWARE -I..\..\User\MOTORDRIVER -I..\..\User\NAVAGATION -I..\..\User\PLATFORM -I..\..\User\SENSOR -I.\RTE\_Flash -IC:\Users\YDJ\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\YDJ\AppData\Local\Arm\Packs\Keil\STM32F4xx_DFP\2.13.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -D__UVISION_VERSION=527 -D_RTE_ -DSTM32F407xx -DUSE_STDPERIPH_DRIVER -DSTM32F40_41xxx -D__RTX -D__FPU_USED=1 --omf_browse=.\flash\obj\bsp_iwdg.crf ..\..\User\bsp\BSP\bsp_iwdg.c]
THUMB
AREA ||i.IWDG_Feed||, CODE, READONLY, ALIGN=1
IWDG_Feed PROC
;;;35 //喂独立看门狗
;;;36 void IWDG_Feed(void)
000000 f7ffbffe B.W IWDG_ReloadCounter
;;;37 {
;;;38 IWDG_ReloadCounter();//reload
;;;39 }
ENDP
AREA ||i.IWDG_Init||, CODE, READONLY, ALIGN=1
IWDG_Init PROC
;;;21 //时间计算(大概):Tout=((4*2^prer)*rlr)/32 (ms).
;;;22 void IWDG_Init(u8 prer,u16 rlr)
000000 b570 PUSH {r4-r6,lr}
;;;23 {
000002 4605 MOV r5,r0
000004 460c MOV r4,r1
;;;24 IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable); //使能对IWDG->PR IWDG->RLR的写
000006 f2455055 MOV r0,#0x5555
00000a f7fffffe BL IWDG_WriteAccessCmd
;;;25
;;;26 IWDG_SetPrescaler(prer); //设置IWDG分频系数
00000e 4628 MOV r0,r5
000010 f7fffffe BL IWDG_SetPrescaler
;;;27
;;;28 IWDG_SetReload(rlr); //设置IWDG装载值
000014 4620 MOV r0,r4
000016 f7fffffe BL IWDG_SetReload
;;;29
;;;30 IWDG_ReloadCounter(); //reload
00001a f7fffffe BL IWDG_ReloadCounter
;;;31
;;;32 IWDG_Enable(); //使能看门狗
00001e e8bd4070 POP {r4-r6,lr}
000022 f7ffbffe B.W IWDG_Enable
;;;33 }
;;;34
ENDP
;*** Start embedded assembler ***
#line 1 "..\\..\\User\\bsp\\BSP\\bsp_iwdg.c"
AREA ||.rev16_text||, CODE
THUMB
EXPORT |__asm___10_bsp_iwdg_c_9483fcdf____REV16|
#line 129 "..\\..\\Libraries\\CMSIS\\Include\\core_cmInstr.h"
|__asm___10_bsp_iwdg_c_9483fcdf____REV16| PROC
#line 130
rev16 r0, r0
bx lr
ENDP
AREA ||.revsh_text||, CODE
THUMB
EXPORT |__asm___10_bsp_iwdg_c_9483fcdf____REVSH|
#line 144
|__asm___10_bsp_iwdg_c_9483fcdf____REVSH| PROC
#line 145
revsh r0, r0
bx lr
ENDP
AREA ||.rrx_text||, CODE
THUMB
EXPORT |__asm___10_bsp_iwdg_c_9483fcdf____RRX|
#line 300
|__asm___10_bsp_iwdg_c_9483fcdf____RRX| PROC
#line 301
rrx r0, r0
bx lr
ENDP
;*** End embedded assembler ***