Idx Name Size VMA LMA File off Algn
0 .isr_vector 000001f8 08000000 08000000 00010000 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
- 1 .text 00005060 080001f8 080001f8 000101f8 2**2
+ 1 .text 00004cbc 080001f8 080001f8 000101f8 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
- 2 .rodata 00000020 08005258 08005258 00015258 2**2
+ 2 .rodata 00000018 08004eb4 08004eb4 00014eb4 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
- 3 .ARM.extab 00000000 08005278 08005278 0002000c 2**0
+ 3 .ARM.extab 00000000 08004ecc 08004ecc 00020010 2**0
CONTENTS
- 4 .ARM 00000008 08005278 08005278 00015278 2**2
+ 4 .ARM 00000008 08004ecc 08004ecc 00014ecc 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
- 5 .preinit_array 00000000 08005280 08005280 0002000c 2**0
+ 5 .preinit_array 00000000 08004ed4 08004ed4 00020010 2**0
CONTENTS, ALLOC, LOAD, DATA
- 6 .init_array 00000008 08005280 08005280 00015280 2**2
+ 6 .init_array 00000008 08004ed4 08004ed4 00014ed4 2**2
CONTENTS, ALLOC, LOAD, DATA
- 7 .fini_array 00000004 08005288 08005288 00015288 2**2
+ 7 .fini_array 00000004 08004edc 08004edc 00014edc 2**2
CONTENTS, ALLOC, LOAD, DATA
- 8 .data 0000000c 20000000 0800528c 00020000 2**2
+ 8 .data 00000010 20000000 08004ee0 00020000 2**2
CONTENTS, ALLOC, LOAD, DATA
- 9 .bss 000003d8 2000000c 08005298 0002000c 2**2
+ 9 .bss 00000320 20000010 08004ef0 00020010 2**2
ALLOC
- 10 ._user_heap_stack 00000604 200003e4 08005298 000203e4 2**0
+ 10 ._user_heap_stack 00000600 20000330 08004ef0 00020330 2**0
ALLOC
- 11 .ARM.attributes 0000002e 00000000 00000000 0002000c 2**0
+ 11 .ARM.attributes 0000002e 00000000 00000000 00020010 2**0
CONTENTS, READONLY
- 12 .debug_info 0000db48 00000000 00000000 0002003a 2**0
+ 12 .debug_info 0000da96 00000000 00000000 0002003e 2**0
CONTENTS, READONLY, DEBUGGING
- 13 .debug_abbrev 00001e34 00000000 00000000 0002db82 2**0
+ 13 .debug_abbrev 00001e4a 00000000 00000000 0002dad4 2**0
CONTENTS, READONLY, DEBUGGING
- 14 .debug_aranges 00000d48 00000000 00000000 0002f9b8 2**3
+ 14 .debug_aranges 00000d38 00000000 00000000 0002f920 2**3
CONTENTS, READONLY, DEBUGGING
- 15 .debug_ranges 00000c60 00000000 00000000 00030700 2**3
+ 15 .debug_ranges 00000c50 00000000 00000000 00030658 2**3
CONTENTS, READONLY, DEBUGGING
- 16 .debug_macro 000281eb 00000000 00000000 00031360 2**0
+ 16 .debug_macro 000281eb 00000000 00000000 000312a8 2**0
CONTENTS, READONLY, DEBUGGING
- 17 .debug_line 000099db 00000000 00000000 0005954b 2**0
+ 17 .debug_line 00009989 00000000 00000000 00059493 2**0
CONTENTS, READONLY, DEBUGGING
- 18 .debug_str 000f1c73 00000000 00000000 00062f26 2**0
+ 18 .debug_str 000f1c2f 00000000 00000000 00062e1c 2**0
CONTENTS, READONLY, DEBUGGING
- 19 .comment 0000007b 00000000 00000000 00154b99 2**0
+ 19 .comment 0000007b 00000000 00000000 00154a4b 2**0
CONTENTS, READONLY
- 20 .debug_frame 000037c8 00000000 00000000 00154c14 2**2
+ 20 .debug_frame 0000378c 00000000 00000000 00154ac8 2**2
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
800020a: 2301 movs r3, #1
800020c: 7023 strb r3, [r4, #0]
800020e: bd10 pop {r4, pc}
- 8000210: 2000000c .word 0x2000000c
+ 8000210: 20000010 .word 0x20000010
8000214: 00000000 .word 0x00000000
- 8000218: 08005240 .word 0x08005240
+ 8000218: 08004e9c .word 0x08004e9c
0800021c <frame_dummy>:
800021c: b508 push {r3, lr}
8000226: f3af 8000 nop.w
800022a: bd08 pop {r3, pc}
800022c: 00000000 .word 0x00000000
- 8000230: 20000010 .word 0x20000010
- 8000234: 08005240 .word 0x08005240
+ 8000230: 20000014 .word 0x20000014
+ 8000234: 08004e9c .word 0x08004e9c
08000238 <__aeabi_uldivmod>:
8000238: b953 cbnz r3, 8000250 <__aeabi_uldivmod+0x18>
08000538 <_ZN7Encoder8GetCountEv>:
- Encoder(TIM_HandleTypeDef* timer);
+ Encoder(TIM_HandleTypeDef *timer);
void Setup();
800053a: b085 sub sp, #20
800053c: af00 add r7, sp, #0
800053e: 6078 str r0, [r7, #4]
- int count = ((int)__HAL_TIM_GET_COUNTER(this->timer_) -
+ int count = ((int) __HAL_TIM_GET_COUNTER(this->timer_)
8000540: 687b ldr r3, [r7, #4]
8000542: 681b ldr r3, [r3, #0]
8000544: 681b ldr r3, [r3, #0]
8000546: 6a5a ldr r2, [r3, #36] ; 0x24
- ((this->timer_->Init.Period)/2));
+ - ((this->timer_->Init.Period) / 2));
8000548: 687b ldr r3, [r7, #4]
800054a: 681b ldr r3, [r3, #0]
800054c: 68db ldr r3, [r3, #12]
800054e: 085b lsrs r3, r3, #1
- int count = ((int)__HAL_TIM_GET_COUNTER(this->timer_) -
8000550: 1ad3 subs r3, r2, r3
- ((this->timer_->Init.Period)/2));
8000552: 60fb str r3, [r7, #12]
return count;
8000554: 68fb ldr r3, [r7, #12]
8000566: af00 add r7, sp, #0
8000568: 6078 str r0, [r7, #4]
//set counter to half its maximum value
- __HAL_TIM_SET_COUNTER(timer_, (timer_->Init.Period)/2);
+ __HAL_TIM_SET_COUNTER(timer_, (timer_->Init.Period) / 2);
800056a: 687b ldr r3, [r7, #4]
800056c: 681b ldr r3, [r3, #0]
800056e: 68da ldr r2, [r3, #12]
08000588 <_ZN7EncoderC1EP17TIM_HandleTypeDef>:
#include "encoder.h"
-Encoder::Encoder(TIM_HandleTypeDef* timer) {
+Encoder::Encoder(TIM_HandleTypeDef *timer) {
8000588: b480 push {r7}
800058a: b083 sub sp, #12
800058c: af00 add r7, sp, #0
80005ce: 681b ldr r3, [r3, #0]
80005d0: 213c movs r1, #60 ; 0x3c
80005d2: 4618 mov r0, r3
- 80005d4: f003 f8f6 bl 80037c4 <HAL_TIM_Encoder_Start>
+ 80005d4: f002 fddc bl 8003190 <HAL_TIM_Encoder_Start>
this->ResetCount();
80005d8: 6878 ldr r0, [r7, #4]
80005da: f7ff ffc2 bl 8000562 <_ZN7Encoder10ResetCountEv>
80005e0: 2200 movs r2, #0
80005e2: 605a str r2, [r3, #4]
this->current_millis_ = HAL_GetTick();
- 80005e4: f001 f97e bl 80018e4 <HAL_GetTick>
+ 80005e4: f001 f94c bl 8001880 <HAL_GetTick>
80005e8: 4602 mov r2, r0
80005ea: 687b ldr r3, [r7, #4]
80005ec: 609a str r2, [r3, #8]
8000602: 687b ldr r3, [r7, #4]
8000604: 605a str r2, [r3, #4]
this->current_millis_ = HAL_GetTick();
- 8000606: f001 f96d bl 80018e4 <HAL_GetTick>
+ 8000606: f001 f93b bl 8001880 <HAL_GetTick>
800060a: 4602 mov r2, r0
800060c: 687b ldr r3, [r7, #4]
800060e: 609a str r2, [r3, #8]
80006a4: 447a0000 .word 0x447a0000
080006a8 <_ZN7EncoderC1Ev>:
- Encoder(){
+ Encoder() {
80006a8: b480 push {r7}
80006aa: b083 sub sp, #12
80006ac: af00 add r7, sp, #0
80006e0: 3f40ff97 .word 0x3f40ff97
080006e4 <_ZN8OdometryC1E7EncoderS0_>:
- left_encoder_ = NULL;
- right_encoder_ = NULL;
- kBaseline = 0.35; //in meters
- }
+ left_encoder_ = NULL;
+ right_encoder_ = NULL;
+ kBaseline = 0.35; //in meters
+ }
- Odometry(Encoder left, Encoder right) {
+ Odometry(Encoder left, Encoder right) {
80006e4: b084 sub sp, #16
80006e6: b5b0 push {r4, r5, r7, lr}
80006e8: b082 sub sp, #8
8000702: 4618 mov r0, r3
8000704: f7ff ffd0 bl 80006a8 <_ZN7EncoderC1Ev>
- left_encoder_ = left;
+ left_encoder_ = left;
8000708: 687b ldr r3, [r7, #4]
800070a: 461d mov r5, r3
800070c: f107 041c add.w r4, r7, #28
8000712: c50f stmia r5!, {r0, r1, r2, r3}
8000714: e894 0007 ldmia.w r4, {r0, r1, r2}
8000718: e885 0007 stmia.w r5, {r0, r1, r2}
- right_encoder_ = right;
+ right_encoder_ = right;
800071c: 687b ldr r3, [r7, #4]
800071e: f103 041c add.w r4, r3, #28
8000722: f107 0538 add.w r5, r7, #56 ; 0x38
8000728: c40f stmia r4!, {r0, r1, r2, r3}
800072a: e895 0007 ldmia.w r5, {r0, r1, r2}
800072e: e884 0007 stmia.w r4, {r0, r1, r2}
- kBaseline = 0.35; //in meters
+ kBaseline = 0.35; //in meters
8000732: 687b ldr r3, [r7, #4]
8000734: 4a04 ldr r2, [pc, #16] ; (8000748 <_ZN8OdometryC1E7EncoderS0_+0x64>)
8000736: 639a str r2, [r3, #56] ; 0x38
- }
+ }
8000738: 687b ldr r3, [r7, #4]
800073a: 4618 mov r0, r3
800073c: 3708 adds r7, #8
8000748: 3eb33333 .word 0x3eb33333
0800074c <_ZN15MotorControllerC1EP12GPIO_TypeDeftS1_tP17TIM_HandleTypeDefm>:
- GPIO_TypeDef *dir_gpio_port_;
- uint16_t dir_pin_;
- TIM_HandleTypeDef *pwm_timer_;
- uint32_t pwm_channel_;
+ GPIO_TypeDef *dir_gpio_port_;
+ uint16_t dir_pin_;
+ TIM_HandleTypeDef *pwm_timer_;
+ uint32_t pwm_channel_;
- MotorController(GPIO_TypeDef *sleep_gpio_port, uint16_t sleep_pin,
+ MotorController(GPIO_TypeDef *sleep_gpio_port, uint16_t sleep_pin,
800074c: b480 push {r7}
800074e: b085 sub sp, #20
8000750: af00 add r7, sp, #0
8000756: 603b str r3, [r7, #0]
8000758: 4613 mov r3, r2
800075a: 80fb strh r3, [r7, #6]
- GPIO_TypeDef *dir_gpio_port, uint16_t dir_pin,
- TIM_HandleTypeDef *pwm_timer, uint32_t pwm_channel) {
- this->sleep_gpio_port_ = sleep_gpio_port;
+ GPIO_TypeDef *dir_gpio_port, uint16_t dir_pin,
+ TIM_HandleTypeDef *pwm_timer, uint32_t pwm_channel) {
+ this->sleep_gpio_port_ = sleep_gpio_port;
800075c: 68fb ldr r3, [r7, #12]
800075e: 68ba ldr r2, [r7, #8]
8000760: 601a str r2, [r3, #0]
- this->sleep_pin_ = sleep_pin;
+ this->sleep_pin_ = sleep_pin;
8000762: 68fb ldr r3, [r7, #12]
8000764: 88fa ldrh r2, [r7, #6]
8000766: 809a strh r2, [r3, #4]
- this->dir_gpio_port_ = dir_gpio_port;
+ this->dir_gpio_port_ = dir_gpio_port;
8000768: 68fb ldr r3, [r7, #12]
800076a: 683a ldr r2, [r7, #0]
800076c: 609a str r2, [r3, #8]
- this->dir_pin_ = dir_pin;
+ this->dir_pin_ = dir_pin;
800076e: 68fb ldr r3, [r7, #12]
8000770: 8b3a ldrh r2, [r7, #24]
8000772: 819a strh r2, [r3, #12]
- this->pwm_timer_ = pwm_timer;
+ this->pwm_timer_ = pwm_timer;
8000774: 68fb ldr r3, [r7, #12]
8000776: 69fa ldr r2, [r7, #28]
8000778: 611a str r2, [r3, #16]
- this->pwm_channel_ = pwm_channel;
+ this->pwm_channel_ = pwm_channel;
800077a: 68fb ldr r3, [r7, #12]
800077c: 6a3a ldr r2, [r7, #32]
800077e: 615a str r2, [r3, #20]
- }
+ }
8000780: 68fb ldr r3, [r7, #12]
8000782: 4618 mov r0, r3
8000784: 3714 adds r7, #20
0800078e <_ZN15MotorController9set_speedEi>:
- void setup() {
- HAL_TIM_PWM_Start(pwm_timer_, pwm_channel_);
- }
+ void setup() {
+ HAL_TIM_PWM_Start(pwm_timer_, pwm_channel_);
+ }
- void set_speed(int duty_cycle) {
+ void set_speed(int duty_cycle) {
800078e: b580 push {r7, lr}
8000790: b082 sub sp, #8
8000792: af00 add r7, sp, #0
8000794: 6078 str r0, [r7, #4]
8000796: 6039 str r1, [r7, #0]
- if (duty_cycle >= 0) {
+ if (duty_cycle >= 0) {
8000798: 683b ldr r3, [r7, #0]
800079a: 2b00 cmp r3, #0
800079c: db3f blt.n 800081e <_ZN15MotorController9set_speedEi+0x90>
- HAL_GPIO_WritePin(dir_gpio_port_, dir_pin_, GPIO_PIN_RESET);
+ HAL_GPIO_WritePin(dir_gpio_port_, dir_pin_, GPIO_PIN_RESET);
800079e: 687b ldr r3, [r7, #4]
80007a0: 6898 ldr r0, [r3, #8]
80007a2: 687b ldr r3, [r7, #4]
80007a4: 899b ldrh r3, [r3, #12]
80007a6: 2200 movs r2, #0
80007a8: 4619 mov r1, r3
- 80007aa: f001 fe6d bl 8002488 <HAL_GPIO_WritePin>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
+ 80007aa: f001 fb53 bl 8001e54 <HAL_GPIO_WritePin>
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
80007ae: 687b ldr r3, [r7, #4]
80007b0: 695b ldr r3, [r3, #20]
80007b2: 2b00 cmp r3, #0
80007ba: 691b ldr r3, [r3, #16]
80007bc: 681b ldr r3, [r3, #0]
80007be: 635a str r2, [r3, #52] ; 0x34
- } else {
- HAL_GPIO_WritePin(dir_gpio_port_, dir_pin_, GPIO_PIN_SET);
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
- }
+ } else {
+ HAL_GPIO_WritePin(dir_gpio_port_, dir_pin_, GPIO_PIN_SET);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ }
- }
+ }
80007c0: e072 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
80007c2: 687b ldr r3, [r7, #4]
80007c4: 695b ldr r3, [r3, #20]
80007c6: 2b04 cmp r3, #4
80007ce: 691b ldr r3, [r3, #16]
80007d0: 681b ldr r3, [r3, #0]
80007d2: 639a str r2, [r3, #56] ; 0x38
- }
+ }
80007d4: e068 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
80007d6: 687b ldr r3, [r7, #4]
80007d8: 695b ldr r3, [r3, #20]
80007da: 2b08 cmp r3, #8
80007e2: 691b ldr r3, [r3, #16]
80007e4: 681b ldr r3, [r3, #0]
80007e6: 63da str r2, [r3, #60] ; 0x3c
- }
+ }
80007e8: e05e b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
80007ea: 687b ldr r3, [r7, #4]
80007ec: 695b ldr r3, [r3, #20]
80007ee: 2b0c cmp r3, #12
80007f6: 691b ldr r3, [r3, #16]
80007f8: 681b ldr r3, [r3, #0]
80007fa: 641a str r2, [r3, #64] ; 0x40
- }
+ }
80007fc: e054 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
80007fe: 687b ldr r3, [r7, #4]
8000800: 695b ldr r3, [r3, #20]
8000802: 2b10 cmp r3, #16
800080a: 691b ldr r3, [r3, #16]
800080c: 681b ldr r3, [r3, #0]
800080e: 659a str r2, [r3, #88] ; 0x58
- }
+ }
8000810: e04a b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, duty_cycle);
8000812: 683a ldr r2, [r7, #0]
8000814: 687b ldr r3, [r7, #4]
8000816: 691b ldr r3, [r3, #16]
8000818: 681b ldr r3, [r3, #0]
800081a: 65da str r2, [r3, #92] ; 0x5c
- }
+ }
800081c: e044 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- HAL_GPIO_WritePin(dir_gpio_port_, dir_pin_, GPIO_PIN_SET);
+ HAL_GPIO_WritePin(dir_gpio_port_, dir_pin_, GPIO_PIN_SET);
800081e: 687b ldr r3, [r7, #4]
8000820: 6898 ldr r0, [r3, #8]
8000822: 687b ldr r3, [r7, #4]
8000824: 899b ldrh r3, [r3, #12]
8000826: 2201 movs r2, #1
8000828: 4619 mov r1, r3
- 800082a: f001 fe2d bl 8002488 <HAL_GPIO_WritePin>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ 800082a: f001 fb13 bl 8001e54 <HAL_GPIO_WritePin>
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
800082e: 687b ldr r3, [r7, #4]
8000830: 695b ldr r3, [r3, #20]
8000832: 2b00 cmp r3, #0
800083c: 691b ldr r3, [r3, #16]
800083e: 681b ldr r3, [r3, #0]
8000840: 635a str r2, [r3, #52] ; 0x34
- }
+ }
8000842: e031 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
8000844: 687b ldr r3, [r7, #4]
8000846: 695b ldr r3, [r3, #20]
8000848: 2b04 cmp r3, #4
8000852: 691b ldr r3, [r3, #16]
8000854: 681b ldr r3, [r3, #0]
8000856: 639a str r2, [r3, #56] ; 0x38
- }
+ }
8000858: e026 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
800085a: 687b ldr r3, [r7, #4]
800085c: 695b ldr r3, [r3, #20]
800085e: 2b08 cmp r3, #8
8000868: 691b ldr r3, [r3, #16]
800086a: 681b ldr r3, [r3, #0]
800086c: 63da str r2, [r3, #60] ; 0x3c
- }
+ }
800086e: e01b b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
8000870: 687b ldr r3, [r7, #4]
8000872: 695b ldr r3, [r3, #20]
8000874: 2b0c cmp r3, #12
800087e: 691b ldr r3, [r3, #16]
8000880: 681b ldr r3, [r3, #0]
8000882: 641a str r2, [r3, #64] ; 0x40
- }
+ }
8000884: e010 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
8000886: 687b ldr r3, [r7, #4]
8000888: 695b ldr r3, [r3, #20]
800088a: 2b10 cmp r3, #16
8000894: 691b ldr r3, [r3, #16]
8000896: 681b ldr r3, [r3, #0]
8000898: 659a str r2, [r3, #88] ; 0x58
- }
+ }
800089a: e005 b.n 80008a8 <_ZN15MotorController9set_speedEi+0x11a>
- __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
+ __HAL_TIM_SET_COMPARE(pwm_timer_, pwm_channel_, -duty_cycle);
800089c: 683b ldr r3, [r7, #0]
800089e: 425a negs r2, r3
80008a0: 687b ldr r3, [r7, #4]
80008a2: 691b ldr r3, [r3, #16]
80008a4: 681b ldr r3, [r3, #0]
80008a6: 65da str r2, [r3, #92] ; 0x5c
- }
+ }
80008a8: bf00 nop
80008aa: 3708 adds r7, #8
80008ac: 46bd mov sp, r7
80008ae: bd80 pop {r7, pc}
080008b0 <_ZN3PidC1Efffii>:
- float error_sum_;
- float setpoint_;
- int min_;
- int max_;
+ float error_sum_;
+ float setpoint_;
+ int min_;
+ int max_;
- Pid(float kp, float ki, float kd, int min, int max){
+ Pid(float kp, float ki, float kd, int min, int max) {
80008b0: b480 push {r7}
80008b2: b087 sub sp, #28
80008b4: af00 add r7, sp, #0
80008c0: ed87 1a02 vstr s2, [r7, #8]
80008c4: 6079 str r1, [r7, #4]
80008c6: 603a str r2, [r7, #0]
- this->kp_ = kp;
+ this->kp_ = kp;
80008c8: 697b ldr r3, [r7, #20]
80008ca: 693a ldr r2, [r7, #16]
80008cc: 601a str r2, [r3, #0]
- this->ki_ = ki;
+ this->ki_ = ki;
80008ce: 697b ldr r3, [r7, #20]
80008d0: 68fa ldr r2, [r7, #12]
80008d2: 605a str r2, [r3, #4]
- this->kd_ = kd;
+ this->kd_ = kd;
80008d4: 697b ldr r3, [r7, #20]
80008d6: 68ba ldr r2, [r7, #8]
80008d8: 609a str r2, [r3, #8]
800090e: f85d 7b04 ldr.w r7, [sp], #4
8000912: 4770 bx lr
-08000914 <_ZN3Pid6updateEf>:
+08000914 <_ZN3Pid3setEf>:
void set(float setpoint){
- this->setpoint_ = setpoint;
- }
-
- int update(float measure){
8000914: b480 push {r7}
- 8000916: b085 sub sp, #20
+ 8000916: b083 sub sp, #12
8000918: af00 add r7, sp, #0
800091a: 6078 str r0, [r7, #4]
800091c: ed87 0a00 vstr s0, [r7]
+ this->setpoint_ = setpoint;
+ 8000920: 687b ldr r3, [r7, #4]
+ 8000922: 683a ldr r2, [r7, #0]
+ 8000924: 619a str r2, [r3, #24]
+ }
+ 8000926: bf00 nop
+ 8000928: 370c adds r7, #12
+ 800092a: 46bd mov sp, r7
+ 800092c: f85d 7b04 ldr.w r7, [sp], #4
+ 8000930: 4770 bx lr
+
+08000932 <_ZN3Pid6updateEf>:
+
+ int update(float measure){
+ 8000932: b480 push {r7}
+ 8000934: b085 sub sp, #20
+ 8000936: af00 add r7, sp, #0
+ 8000938: 6078 str r0, [r7, #4]
+ 800093a: ed87 0a00 vstr s0, [r7]
this->error_ = this->setpoint_ - measure;
- 8000920: 687b ldr r3, [r7, #4]
- 8000922: ed93 7a06 vldr s14, [r3, #24]
- 8000926: edd7 7a00 vldr s15, [r7]
- 800092a: ee77 7a67 vsub.f32 s15, s14, s15
- 800092e: 687b ldr r3, [r7, #4]
- 8000930: edc3 7a04 vstr s15, [r3, #16]
+ 800093e: 687b ldr r3, [r7, #4]
+ 8000940: ed93 7a06 vldr s14, [r3, #24]
+ 8000944: edd7 7a00 vldr s15, [r7]
+ 8000948: ee77 7a67 vsub.f32 s15, s14, s15
+ 800094c: 687b ldr r3, [r7, #4]
+ 800094e: edc3 7a04 vstr s15, [r3, #16]
//proportional term
float output = this->error_ * this->kp_;
- 8000934: 687b ldr r3, [r7, #4]
- 8000936: ed93 7a04 vldr s14, [r3, #16]
- 800093a: 687b ldr r3, [r7, #4]
- 800093c: edd3 7a00 vldr s15, [r3]
- 8000940: ee67 7a27 vmul.f32 s15, s14, s15
- 8000944: edc7 7a03 vstr s15, [r7, #12]
+ 8000952: 687b ldr r3, [r7, #4]
+ 8000954: ed93 7a04 vldr s14, [r3, #16]
+ 8000958: 687b ldr r3, [r7, #4]
+ 800095a: edd3 7a00 vldr s15, [r3]
+ 800095e: ee67 7a27 vmul.f32 s15, s14, s15
+ 8000962: edc7 7a03 vstr s15, [r7, #12]
//TODO integral term
//TODO derivative term
if (output > this->max_){
- 8000948: 687b ldr r3, [r7, #4]
- 800094a: 6a1b ldr r3, [r3, #32]
- 800094c: ee07 3a90 vmov s15, r3
- 8000950: eef8 7ae7 vcvt.f32.s32 s15, s15
- 8000954: ed97 7a03 vldr s14, [r7, #12]
- 8000958: eeb4 7ae7 vcmpe.f32 s14, s15
- 800095c: eef1 fa10 vmrs APSR_nzcv, fpscr
- 8000960: dd08 ble.n 8000974 <_ZN3Pid6updateEf+0x60>
+ 8000966: 687b ldr r3, [r7, #4]
+ 8000968: 6a1b ldr r3, [r3, #32]
+ 800096a: ee07 3a90 vmov s15, r3
+ 800096e: eef8 7ae7 vcvt.f32.s32 s15, s15
+ 8000972: ed97 7a03 vldr s14, [r7, #12]
+ 8000976: eeb4 7ae7 vcmpe.f32 s14, s15
+ 800097a: eef1 fa10 vmrs APSR_nzcv, fpscr
+ 800097e: dd08 ble.n 8000992 <_ZN3Pid6updateEf+0x60>
output = this->max_;
- 8000962: 687b ldr r3, [r7, #4]
- 8000964: 6a1b ldr r3, [r3, #32]
- 8000966: ee07 3a90 vmov s15, r3
- 800096a: eef8 7ae7 vcvt.f32.s32 s15, s15
- 800096e: edc7 7a03 vstr s15, [r7, #12]
- 8000972: e014 b.n 800099e <_ZN3Pid6updateEf+0x8a>
+ 8000980: 687b ldr r3, [r7, #4]
+ 8000982: 6a1b ldr r3, [r3, #32]
+ 8000984: ee07 3a90 vmov s15, r3
+ 8000988: eef8 7ae7 vcvt.f32.s32 s15, s15
+ 800098c: edc7 7a03 vstr s15, [r7, #12]
+ 8000990: e014 b.n 80009bc <_ZN3Pid6updateEf+0x8a>
//TODO anti-windup (prima capisco cos'è)
} else if (output < this->min_){
- 8000974: 687b ldr r3, [r7, #4]
- 8000976: 69db ldr r3, [r3, #28]
- 8000978: ee07 3a90 vmov s15, r3
- 800097c: eef8 7ae7 vcvt.f32.s32 s15, s15
- 8000980: ed97 7a03 vldr s14, [r7, #12]
- 8000984: eeb4 7ae7 vcmpe.f32 s14, s15
- 8000988: eef1 fa10 vmrs APSR_nzcv, fpscr
- 800098c: d507 bpl.n 800099e <_ZN3Pid6updateEf+0x8a>
+ 8000992: 687b ldr r3, [r7, #4]
+ 8000994: 69db ldr r3, [r3, #28]
+ 8000996: ee07 3a90 vmov s15, r3
+ 800099a: eef8 7ae7 vcvt.f32.s32 s15, s15
+ 800099e: ed97 7a03 vldr s14, [r7, #12]
+ 80009a2: eeb4 7ae7 vcmpe.f32 s14, s15
+ 80009a6: eef1 fa10 vmrs APSR_nzcv, fpscr
+ 80009aa: d507 bpl.n 80009bc <_ZN3Pid6updateEf+0x8a>
output = this->min_;
- 800098e: 687b ldr r3, [r7, #4]
- 8000990: 69db ldr r3, [r3, #28]
- 8000992: ee07 3a90 vmov s15, r3
- 8000996: eef8 7ae7 vcvt.f32.s32 s15, s15
- 800099a: edc7 7a03 vstr s15, [r7, #12]
+ 80009ac: 687b ldr r3, [r7, #4]
+ 80009ae: 69db ldr r3, [r3, #28]
+ 80009b0: ee07 3a90 vmov s15, r3
+ 80009b4: eef8 7ae7 vcvt.f32.s32 s15, s15
+ 80009b8: edc7 7a03 vstr s15, [r7, #12]
//TODO anti-windup
}
int integer_output = (int) output;
- 800099e: edd7 7a03 vldr s15, [r7, #12]
- 80009a2: eefd 7ae7 vcvt.s32.f32 s15, s15
- 80009a6: ee17 3a90 vmov r3, s15
- 80009aa: 60bb str r3, [r7, #8]
+ 80009bc: edd7 7a03 vldr s15, [r7, #12]
+ 80009c0: eefd 7ae7 vcvt.s32.f32 s15, s15
+ 80009c4: ee17 3a90 vmov r3, s15
+ 80009c8: 60bb str r3, [r7, #8]
return integer_output;
- 80009ac: 68bb ldr r3, [r7, #8]
+ 80009ca: 68bb ldr r3, [r7, #8]
}
- 80009ae: 4618 mov r0, r3
- 80009b0: 3714 adds r7, #20
- 80009b2: 46bd mov sp, r7
- 80009b4: f85d 7b04 ldr.w r7, [sp], #4
- 80009b8: 4770 bx lr
- ...
-
-080009bc <main>:
+ 80009cc: 4618 mov r0, r3
+ 80009ce: 3714 adds r7, #20
+ 80009d0: 46bd mov sp, r7
+ 80009d2: f85d 7b04 ldr.w r7, [sp], #4
+ 80009d6: 4770 bx lr
+080009d8 <main>:
/**
- * @brief The application entry point.
- * @retval int
- */
-int main(void) {
- 80009bc: b580 push {r7, lr}
- 80009be: af00 add r7, sp, #0
- /* USER CODE END 1 */
-
- /* MCU Configuration--------------------------------------------------------*/
-
- /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
- HAL_Init();
- 80009c0: f000 ff3f bl 8001842 <HAL_Init>
- /* USER CODE BEGIN Init */
-
- /* USER CODE END Init */
-
- /* Configure the system clock */
- SystemClock_Config();
- 80009c4: f000 f82e bl 8000a24 <_Z18SystemClock_Configv>
- /* USER CODE BEGIN SysInit */
-
- /* USER CODE END SysInit */
-
- /* Initialize all configured peripherals */
- MX_GPIO_Init();
- 80009c8: f000 fb0e bl 8000fe8 <_ZL12MX_GPIO_Initv>
- MX_DMA_Init();
- 80009cc: f000 fae6 bl 8000f9c <_ZL11MX_DMA_Initv>
- MX_TIM2_Init();
- 80009d0: f000 f8b2 bl 8000b38 <_ZL12MX_TIM2_Initv>
- MX_TIM3_Init();
- 80009d4: f000 f90e bl 8000bf4 <_ZL12MX_TIM3_Initv>
- MX_TIM4_Init();
- 80009d8: f000 f96a bl 8000cb0 <_ZL12MX_TIM4_Initv>
- MX_TIM5_Init();
- 80009dc: f000 fa08 bl 8000df0 <_ZL12MX_TIM5_Initv>
- MX_USART6_UART_Init();
- 80009e0: f000 faa8 bl 8000f34 <_ZL19MX_USART6_UART_Initv>
- MX_TIM6_Init();
- 80009e4: f000 fa64 bl 8000eb0 <_ZL12MX_TIM6_Initv>
- /* USER CODE BEGIN 2 */
-
- left_encoder.Setup();
- 80009e8: 4807 ldr r0, [pc, #28] ; (8000a08 <main+0x4c>)
- 80009ea: f7ff fdeb bl 80005c4 <_ZN7Encoder5SetupEv>
- right_encoder.Setup();
- 80009ee: 4807 ldr r0, [pc, #28] ; (8000a0c <main+0x50>)
- 80009f0: f7ff fde8 bl 80005c4 <_ZN7Encoder5SetupEv>
-
- tx_buffer = (uint8_t*) &odom_msg;
- 80009f4: 4b06 ldr r3, [pc, #24] ; (8000a10 <main+0x54>)
- 80009f6: 4a07 ldr r2, [pc, #28] ; (8000a14 <main+0x58>)
- 80009f8: 601a str r2, [r3, #0]
- rx_buffer = (uint8_t*) &vel_msg;
- 80009fa: 4b07 ldr r3, [pc, #28] ; (8000a18 <main+0x5c>)
- 80009fc: 4a07 ldr r2, [pc, #28] ; (8000a1c <main+0x60>)
- 80009fe: 601a str r2, [r3, #0]
-
- HAL_TIM_Base_Start_IT(&htim3);
- 8000a00: 4807 ldr r0, [pc, #28] ; (8000a20 <main+0x64>)
- 8000a02: f002 fded bl 80035e0 <HAL_TIM_Base_Start_IT>
-
- /* USER CODE END 2 */
-
- /* Infinite loop */
- /* USER CODE BEGIN WHILE */
- while (1) {
- 8000a06: e7fe b.n 8000a06 <main+0x4a>
- 8000a08: 200002a8 .word 0x200002a8
- 8000a0c: 200002c4 .word 0x200002c4
- 8000a10: 200003c4 .word 0x200003c4
- 8000a14: 200003cc .word 0x200003cc
- 8000a18: 200003c8 .word 0x200003c8
- 8000a1c: 200003d8 .word 0x200003d8
- 8000a20: 20000068 .word 0x20000068
-
-08000a24 <_Z18SystemClock_Configv>:
+ * @brief The application entry point.
+ * @retval int
+ */
+int main(void)
+{
+ 80009d8: b580 push {r7, lr}
+ 80009da: af00 add r7, sp, #0
+
+ /* MCU Configuration--------------------------------------------------------*/
+
+ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
+ HAL_Init();
+ 80009dc: f000 feff bl 80017de <HAL_Init>
+ /* USER CODE BEGIN Init */
+
+ /* USER CODE END Init */
+
+ /* Configure the system clock */
+ SystemClock_Config();
+ 80009e0: f000 f838 bl 8000a54 <_Z18SystemClock_Configv>
+ /* USER CODE BEGIN SysInit */
+
+ /* USER CODE END SysInit */
+
+ /* Initialize all configured peripherals */
+ MX_GPIO_Init();
+ 80009e4: f000 fb10 bl 8001008 <_ZL12MX_GPIO_Initv>
+ MX_TIM2_Init();
+ 80009e8: f000 f8da bl 8000ba0 <_ZL12MX_TIM2_Initv>
+ MX_TIM3_Init();
+ 80009ec: f000 f936 bl 8000c5c <_ZL12MX_TIM3_Initv>
+ MX_TIM4_Init();
+ 80009f0: f000 f992 bl 8000d18 <_ZL12MX_TIM4_Initv>
+ MX_TIM5_Init();
+ 80009f4: f000 fa30 bl 8000e58 <_ZL12MX_TIM5_Initv>
+ MX_USART6_UART_Init();
+ 80009f8: f000 fad0 bl 8000f9c <_ZL19MX_USART6_UART_Initv>
+ MX_TIM6_Init();
+ 80009fc: f000 fa8c bl 8000f18 <_ZL12MX_TIM6_Initv>
+
+ /* Initialize interrupts */
+ MX_NVIC_Init();
+ 8000a00: f000 f8b2 bl 8000b68 <_ZL12MX_NVIC_Initv>
+ /* USER CODE BEGIN 2 */
+
+ left_encoder.Setup();
+ 8000a04: 480b ldr r0, [pc, #44] ; (8000a34 <main+0x5c>)
+ 8000a06: f7ff fddd bl 80005c4 <_ZN7Encoder5SetupEv>
+ right_encoder.Setup();
+ 8000a0a: 480b ldr r0, [pc, #44] ; (8000a38 <main+0x60>)
+ 8000a0c: f7ff fdda bl 80005c4 <_ZN7Encoder5SetupEv>
+
+ tx_buffer = (uint8_t*) &odom_msg;
+ 8000a10: 4b0a ldr r3, [pc, #40] ; (8000a3c <main+0x64>)
+ 8000a12: 4a0b ldr r2, [pc, #44] ; (8000a40 <main+0x68>)
+ 8000a14: 601a str r2, [r3, #0]
+ rx_buffer = (uint8_t*) &vel_msg;
+ 8000a16: 4b0b ldr r3, [pc, #44] ; (8000a44 <main+0x6c>)
+ 8000a18: 4a0b ldr r2, [pc, #44] ; (8000a48 <main+0x70>)
+ 8000a1a: 601a str r2, [r3, #0]
+
+ HAL_UART_Receive_IT(&huart6, rx_buffer, 8);
+ 8000a1c: 4b09 ldr r3, [pc, #36] ; (8000a44 <main+0x6c>)
+ 8000a1e: 681b ldr r3, [r3, #0]
+ 8000a20: 2208 movs r2, #8
+ 8000a22: 4619 mov r1, r3
+ 8000a24: 4809 ldr r0, [pc, #36] ; (8000a4c <main+0x74>)
+ 8000a26: f003 fb89 bl 800413c <HAL_UART_Receive_IT>
+ HAL_TIM_Base_Start_IT(&htim3);
+ 8000a2a: 4809 ldr r0, [pc, #36] ; (8000a50 <main+0x78>)
+ 8000a2c: f002 fabe bl 8002fac <HAL_TIM_Base_Start_IT>
+
+ /* USER CODE END 2 */
+
+ /* Infinite loop */
+ /* USER CODE BEGIN WHILE */
+ while (1) {
+ 8000a30: e7fe b.n 8000a30 <main+0x58>
+ 8000a32: bf00 nop
+ 8000a34: 200001ec .word 0x200001ec
+ 8000a38: 20000208 .word 0x20000208
+ 8000a3c: 20000310 .word 0x20000310
+ 8000a40: 20000318 .word 0x20000318
+ 8000a44: 20000314 .word 0x20000314
+ 8000a48: 20000324 .word 0x20000324
+ 8000a4c: 2000016c .word 0x2000016c
+ 8000a50: 2000006c .word 0x2000006c
+
+08000a54 <_Z18SystemClock_Configv>:
/**
- * @brief System Clock Configuration
- * @retval None
- */
-void SystemClock_Config(void) {
- 8000a24: b580 push {r7, lr}
- 8000a26: b0b8 sub sp, #224 ; 0xe0
- 8000a28: af00 add r7, sp, #0
- RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
- 8000a2a: f107 03ac add.w r3, r7, #172 ; 0xac
- 8000a2e: 2234 movs r2, #52 ; 0x34
- 8000a30: 2100 movs r1, #0
- 8000a32: 4618 mov r0, r3
- 8000a34: f004 fbfc bl 8005230 <memset>
- RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
- 8000a38: f107 0398 add.w r3, r7, #152 ; 0x98
- 8000a3c: 2200 movs r2, #0
- 8000a3e: 601a str r2, [r3, #0]
- 8000a40: 605a str r2, [r3, #4]
- 8000a42: 609a str r2, [r3, #8]
- 8000a44: 60da str r2, [r3, #12]
- 8000a46: 611a str r2, [r3, #16]
- RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
- 8000a48: f107 0308 add.w r3, r7, #8
- 8000a4c: 2290 movs r2, #144 ; 0x90
- 8000a4e: 2100 movs r1, #0
- 8000a50: 4618 mov r0, r3
- 8000a52: f004 fbed bl 8005230 <memset>
-
- /** Configure the main internal regulator output voltage
- */
- __HAL_RCC_PWR_CLK_ENABLE();
- 8000a56: 4b36 ldr r3, [pc, #216] ; (8000b30 <_Z18SystemClock_Configv+0x10c>)
- 8000a58: 6c1b ldr r3, [r3, #64] ; 0x40
- 8000a5a: 4a35 ldr r2, [pc, #212] ; (8000b30 <_Z18SystemClock_Configv+0x10c>)
- 8000a5c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 8000a60: 6413 str r3, [r2, #64] ; 0x40
- 8000a62: 4b33 ldr r3, [pc, #204] ; (8000b30 <_Z18SystemClock_Configv+0x10c>)
- 8000a64: 6c1b ldr r3, [r3, #64] ; 0x40
- 8000a66: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8000a6a: 607b str r3, [r7, #4]
- 8000a6c: 687b ldr r3, [r7, #4]
- __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
- 8000a6e: 4b31 ldr r3, [pc, #196] ; (8000b34 <_Z18SystemClock_Configv+0x110>)
- 8000a70: 681b ldr r3, [r3, #0]
- 8000a72: f423 4340 bic.w r3, r3, #49152 ; 0xc000
- 8000a76: 4a2f ldr r2, [pc, #188] ; (8000b34 <_Z18SystemClock_Configv+0x110>)
- 8000a78: f443 4380 orr.w r3, r3, #16384 ; 0x4000
- 8000a7c: 6013 str r3, [r2, #0]
- 8000a7e: 4b2d ldr r3, [pc, #180] ; (8000b34 <_Z18SystemClock_Configv+0x110>)
- 8000a80: 681b ldr r3, [r3, #0]
- 8000a82: f403 4340 and.w r3, r3, #49152 ; 0xc000
- 8000a86: 603b str r3, [r7, #0]
- 8000a88: 683b ldr r3, [r7, #0]
- /** Initializes the CPU, AHB and APB busses clocks
- */
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
- 8000a8a: 2302 movs r3, #2
- 8000a8c: f8c7 30ac str.w r3, [r7, #172] ; 0xac
- RCC_OscInitStruct.HSIState = RCC_HSI_ON;
- 8000a90: 2301 movs r3, #1
- 8000a92: f8c7 30b8 str.w r3, [r7, #184] ; 0xb8
- RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
- 8000a96: 2310 movs r3, #16
- 8000a98: f8c7 30bc str.w r3, [r7, #188] ; 0xbc
- RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
- 8000a9c: 2300 movs r3, #0
- 8000a9e: f8c7 30c4 str.w r3, [r7, #196] ; 0xc4
- if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
- 8000aa2: f107 03ac add.w r3, r7, #172 ; 0xac
- 8000aa6: 4618 mov r0, r3
- 8000aa8: f001 fd08 bl 80024bc <HAL_RCC_OscConfig>
- 8000aac: 4603 mov r3, r0
- 8000aae: 2b00 cmp r3, #0
- 8000ab0: bf14 ite ne
- 8000ab2: 2301 movne r3, #1
- 8000ab4: 2300 moveq r3, #0
- 8000ab6: b2db uxtb r3, r3
- 8000ab8: 2b00 cmp r3, #0
- 8000aba: d001 beq.n 8000ac0 <_Z18SystemClock_Configv+0x9c>
- Error_Handler();
- 8000abc: f000 fb76 bl 80011ac <Error_Handler>
- }
- /** Initializes the CPU, AHB and APB busses clocks
- */
- RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
- 8000ac0: 230f movs r3, #15
- 8000ac2: f8c7 3098 str.w r3, [r7, #152] ; 0x98
- | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
- RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
- 8000ac6: 2300 movs r3, #0
- 8000ac8: f8c7 309c str.w r3, [r7, #156] ; 0x9c
- RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
+ * @brief System Clock Configuration
+ * @retval None
+ */
+void SystemClock_Config(void)
+{
+ 8000a54: b580 push {r7, lr}
+ 8000a56: b0b8 sub sp, #224 ; 0xe0
+ 8000a58: af00 add r7, sp, #0
+ RCC_OscInitTypeDef RCC_OscInitStruct = {0};
+ 8000a5a: f107 03ac add.w r3, r7, #172 ; 0xac
+ 8000a5e: 2234 movs r2, #52 ; 0x34
+ 8000a60: 2100 movs r1, #0
+ 8000a62: 4618 mov r0, r3
+ 8000a64: f004 fa12 bl 8004e8c <memset>
+ RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
+ 8000a68: f107 0398 add.w r3, r7, #152 ; 0x98
+ 8000a6c: 2200 movs r2, #0
+ 8000a6e: 601a str r2, [r3, #0]
+ 8000a70: 605a str r2, [r3, #4]
+ 8000a72: 609a str r2, [r3, #8]
+ 8000a74: 60da str r2, [r3, #12]
+ 8000a76: 611a str r2, [r3, #16]
+ RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
+ 8000a78: f107 0308 add.w r3, r7, #8
+ 8000a7c: 2290 movs r2, #144 ; 0x90
+ 8000a7e: 2100 movs r1, #0
+ 8000a80: 4618 mov r0, r3
+ 8000a82: f004 fa03 bl 8004e8c <memset>
+
+ /** Configure the main internal regulator output voltage
+ */
+ __HAL_RCC_PWR_CLK_ENABLE();
+ 8000a86: 4b36 ldr r3, [pc, #216] ; (8000b60 <_Z18SystemClock_Configv+0x10c>)
+ 8000a88: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8000a8a: 4a35 ldr r2, [pc, #212] ; (8000b60 <_Z18SystemClock_Configv+0x10c>)
+ 8000a8c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
+ 8000a90: 6413 str r3, [r2, #64] ; 0x40
+ 8000a92: 4b33 ldr r3, [pc, #204] ; (8000b60 <_Z18SystemClock_Configv+0x10c>)
+ 8000a94: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8000a96: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 8000a9a: 607b str r3, [r7, #4]
+ 8000a9c: 687b ldr r3, [r7, #4]
+ __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
+ 8000a9e: 4b31 ldr r3, [pc, #196] ; (8000b64 <_Z18SystemClock_Configv+0x110>)
+ 8000aa0: 681b ldr r3, [r3, #0]
+ 8000aa2: f423 4340 bic.w r3, r3, #49152 ; 0xc000
+ 8000aa6: 4a2f ldr r2, [pc, #188] ; (8000b64 <_Z18SystemClock_Configv+0x110>)
+ 8000aa8: f443 4380 orr.w r3, r3, #16384 ; 0x4000
+ 8000aac: 6013 str r3, [r2, #0]
+ 8000aae: 4b2d ldr r3, [pc, #180] ; (8000b64 <_Z18SystemClock_Configv+0x110>)
+ 8000ab0: 681b ldr r3, [r3, #0]
+ 8000ab2: f403 4340 and.w r3, r3, #49152 ; 0xc000
+ 8000ab6: 603b str r3, [r7, #0]
+ 8000ab8: 683b ldr r3, [r7, #0]
+ /** Initializes the CPU, AHB and APB busses clocks
+ */
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
+ 8000aba: 2302 movs r3, #2
+ 8000abc: f8c7 30ac str.w r3, [r7, #172] ; 0xac
+ RCC_OscInitStruct.HSIState = RCC_HSI_ON;
+ 8000ac0: 2301 movs r3, #1
+ 8000ac2: f8c7 30b8 str.w r3, [r7, #184] ; 0xb8
+ RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
+ 8000ac6: 2310 movs r3, #16
+ 8000ac8: f8c7 30bc str.w r3, [r7, #188] ; 0xbc
+ RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
8000acc: 2300 movs r3, #0
- 8000ace: f8c7 30a0 str.w r3, [r7, #160] ; 0xa0
- RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
- 8000ad2: 2300 movs r3, #0
- 8000ad4: f8c7 30a4 str.w r3, [r7, #164] ; 0xa4
- RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
- 8000ad8: 2300 movs r3, #0
- 8000ada: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8
-
- if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK) {
- 8000ade: f107 0398 add.w r3, r7, #152 ; 0x98
- 8000ae2: 2100 movs r1, #0
- 8000ae4: 4618 mov r0, r3
- 8000ae6: f001 ff5b bl 80029a0 <HAL_RCC_ClockConfig>
- 8000aea: 4603 mov r3, r0
- 8000aec: 2b00 cmp r3, #0
- 8000aee: bf14 ite ne
- 8000af0: 2301 movne r3, #1
- 8000af2: 2300 moveq r3, #0
- 8000af4: b2db uxtb r3, r3
- 8000af6: 2b00 cmp r3, #0
- 8000af8: d001 beq.n 8000afe <_Z18SystemClock_Configv+0xda>
- Error_Handler();
- 8000afa: f000 fb57 bl 80011ac <Error_Handler>
- }
- PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;
- 8000afe: f44f 6300 mov.w r3, #2048 ; 0x800
- 8000b02: 60bb str r3, [r7, #8]
- PeriphClkInitStruct.Usart6ClockSelection = RCC_USART6CLKSOURCE_PCLK2;
- 8000b04: 2300 movs r3, #0
- 8000b06: 663b str r3, [r7, #96] ; 0x60
- if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) {
- 8000b08: f107 0308 add.w r3, r7, #8
- 8000b0c: 4618 mov r0, r3
- 8000b0e: f002 f915 bl 8002d3c <HAL_RCCEx_PeriphCLKConfig>
- 8000b12: 4603 mov r3, r0
- 8000b14: 2b00 cmp r3, #0
- 8000b16: bf14 ite ne
- 8000b18: 2301 movne r3, #1
- 8000b1a: 2300 moveq r3, #0
- 8000b1c: b2db uxtb r3, r3
- 8000b1e: 2b00 cmp r3, #0
- 8000b20: d001 beq.n 8000b26 <_Z18SystemClock_Configv+0x102>
- Error_Handler();
- 8000b22: f000 fb43 bl 80011ac <Error_Handler>
- }
+ 8000ace: f8c7 30c4 str.w r3, [r7, #196] ; 0xc4
+ if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
+ 8000ad2: f107 03ac add.w r3, r7, #172 ; 0xac
+ 8000ad6: 4618 mov r0, r3
+ 8000ad8: f001 f9d6 bl 8001e88 <HAL_RCC_OscConfig>
+ 8000adc: 4603 mov r3, r0
+ 8000ade: 2b00 cmp r3, #0
+ 8000ae0: bf14 ite ne
+ 8000ae2: 2301 movne r3, #1
+ 8000ae4: 2300 moveq r3, #0
+ 8000ae6: b2db uxtb r3, r3
+ 8000ae8: 2b00 cmp r3, #0
+ 8000aea: d001 beq.n 8000af0 <_Z18SystemClock_Configv+0x9c>
+ {
+ Error_Handler();
+ 8000aec: f000 fbba bl 8001264 <Error_Handler>
+ }
+ /** Initializes the CPU, AHB and APB busses clocks
+ */
+ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
+ 8000af0: 230f movs r3, #15
+ 8000af2: f8c7 3098 str.w r3, [r7, #152] ; 0x98
+ |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
+ RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
+ 8000af6: 2300 movs r3, #0
+ 8000af8: f8c7 309c str.w r3, [r7, #156] ; 0x9c
+ RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
+ 8000afc: 2300 movs r3, #0
+ 8000afe: f8c7 30a0 str.w r3, [r7, #160] ; 0xa0
+ RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
+ 8000b02: 2300 movs r3, #0
+ 8000b04: f8c7 30a4 str.w r3, [r7, #164] ; 0xa4
+ RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
+ 8000b08: 2300 movs r3, #0
+ 8000b0a: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8
+
+ if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
+ 8000b0e: f107 0398 add.w r3, r7, #152 ; 0x98
+ 8000b12: 2100 movs r1, #0
+ 8000b14: 4618 mov r0, r3
+ 8000b16: f001 fc29 bl 800236c <HAL_RCC_ClockConfig>
+ 8000b1a: 4603 mov r3, r0
+ 8000b1c: 2b00 cmp r3, #0
+ 8000b1e: bf14 ite ne
+ 8000b20: 2301 movne r3, #1
+ 8000b22: 2300 moveq r3, #0
+ 8000b24: b2db uxtb r3, r3
+ 8000b26: 2b00 cmp r3, #0
+ 8000b28: d001 beq.n 8000b2e <_Z18SystemClock_Configv+0xda>
+ {
+ Error_Handler();
+ 8000b2a: f000 fb9b bl 8001264 <Error_Handler>
+ }
+ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;
+ 8000b2e: f44f 6300 mov.w r3, #2048 ; 0x800
+ 8000b32: 60bb str r3, [r7, #8]
+ PeriphClkInitStruct.Usart6ClockSelection = RCC_USART6CLKSOURCE_PCLK2;
+ 8000b34: 2300 movs r3, #0
+ 8000b36: 663b str r3, [r7, #96] ; 0x60
+ if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
+ 8000b38: f107 0308 add.w r3, r7, #8
+ 8000b3c: 4618 mov r0, r3
+ 8000b3e: f001 fde3 bl 8002708 <HAL_RCCEx_PeriphCLKConfig>
+ 8000b42: 4603 mov r3, r0
+ 8000b44: 2b00 cmp r3, #0
+ 8000b46: bf14 ite ne
+ 8000b48: 2301 movne r3, #1
+ 8000b4a: 2300 moveq r3, #0
+ 8000b4c: b2db uxtb r3, r3
+ 8000b4e: 2b00 cmp r3, #0
+ 8000b50: d001 beq.n 8000b56 <_Z18SystemClock_Configv+0x102>
+ {
+ Error_Handler();
+ 8000b52: f000 fb87 bl 8001264 <Error_Handler>
+ }
}
- 8000b26: bf00 nop
- 8000b28: 37e0 adds r7, #224 ; 0xe0
- 8000b2a: 46bd mov sp, r7
- 8000b2c: bd80 pop {r7, pc}
- 8000b2e: bf00 nop
- 8000b30: 40023800 .word 0x40023800
- 8000b34: 40007000 .word 0x40007000
-
-08000b38 <_ZL12MX_TIM2_Initv>:
+ 8000b56: bf00 nop
+ 8000b58: 37e0 adds r7, #224 ; 0xe0
+ 8000b5a: 46bd mov sp, r7
+ 8000b5c: bd80 pop {r7, pc}
+ 8000b5e: bf00 nop
+ 8000b60: 40023800 .word 0x40023800
+ 8000b64: 40007000 .word 0x40007000
+
+08000b68 <_ZL12MX_NVIC_Initv>:
/**
- * @brief TIM2 Initialization Function
- * @param None
- * @retval None
- */
-static void MX_TIM2_Init(void) {
- 8000b38: b580 push {r7, lr}
- 8000b3a: b08c sub sp, #48 ; 0x30
- 8000b3c: af00 add r7, sp, #0
-
- /* USER CODE BEGIN TIM2_Init 0 */
-
- /* USER CODE END TIM2_Init 0 */
-
- TIM_Encoder_InitTypeDef sConfig = { 0 };
- 8000b3e: f107 030c add.w r3, r7, #12
- 8000b42: 2224 movs r2, #36 ; 0x24
- 8000b44: 2100 movs r1, #0
- 8000b46: 4618 mov r0, r3
- 8000b48: f004 fb72 bl 8005230 <memset>
- TIM_MasterConfigTypeDef sMasterConfig = { 0 };
- 8000b4c: 463b mov r3, r7
- 8000b4e: 2200 movs r2, #0
- 8000b50: 601a str r2, [r3, #0]
- 8000b52: 605a str r2, [r3, #4]
- 8000b54: 609a str r2, [r3, #8]
-
- /* USER CODE BEGIN TIM2_Init 1 */
-
- /* USER CODE END TIM2_Init 1 */
- htim2.Instance = TIM2;
- 8000b56: 4b26 ldr r3, [pc, #152] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000b58: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
- 8000b5c: 601a str r2, [r3, #0]
- htim2.Init.Prescaler = 0;
- 8000b5e: 4b24 ldr r3, [pc, #144] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000b60: 2200 movs r2, #0
- 8000b62: 605a str r2, [r3, #4]
- htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
- 8000b64: 4b22 ldr r3, [pc, #136] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000b66: 2200 movs r2, #0
- 8000b68: 609a str r2, [r3, #8]
- htim2.Init.Period = 4294967295;
- 8000b6a: 4b21 ldr r3, [pc, #132] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000b6c: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8000b70: 60da str r2, [r3, #12]
- htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 8000b72: 4b1f ldr r3, [pc, #124] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000b74: 2200 movs r2, #0
- 8000b76: 611a str r2, [r3, #16]
- htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 8000b78: 4b1d ldr r3, [pc, #116] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000b7a: 2200 movs r2, #0
- 8000b7c: 619a str r2, [r3, #24]
- sConfig.EncoderMode = TIM_ENCODERMODE_TI12;
- 8000b7e: 2303 movs r3, #3
- 8000b80: 60fb str r3, [r7, #12]
- sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
- 8000b82: 2300 movs r3, #0
- 8000b84: 613b str r3, [r7, #16]
- sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI;
- 8000b86: 2301 movs r3, #1
- 8000b88: 617b str r3, [r7, #20]
- sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
- 8000b8a: 2300 movs r3, #0
- 8000b8c: 61bb str r3, [r7, #24]
- sConfig.IC1Filter = 0;
- 8000b8e: 2300 movs r3, #0
- 8000b90: 61fb str r3, [r7, #28]
- sConfig.IC2Polarity = TIM_ICPOLARITY_RISING;
- 8000b92: 2300 movs r3, #0
- 8000b94: 623b str r3, [r7, #32]
- sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI;
- 8000b96: 2301 movs r3, #1
- 8000b98: 627b str r3, [r7, #36] ; 0x24
- sConfig.IC2Prescaler = TIM_ICPSC_DIV1;
- 8000b9a: 2300 movs r3, #0
- 8000b9c: 62bb str r3, [r7, #40] ; 0x28
- sConfig.IC2Filter = 0;
- 8000b9e: 2300 movs r3, #0
- 8000ba0: 62fb str r3, [r7, #44] ; 0x2c
- if (HAL_TIM_Encoder_Init(&htim2, &sConfig) != HAL_OK) {
- 8000ba2: f107 030c add.w r3, r7, #12
- 8000ba6: 4619 mov r1, r3
- 8000ba8: 4811 ldr r0, [pc, #68] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000baa: f002 fd79 bl 80036a0 <HAL_TIM_Encoder_Init>
- 8000bae: 4603 mov r3, r0
- 8000bb0: 2b00 cmp r3, #0
- 8000bb2: bf14 ite ne
- 8000bb4: 2301 movne r3, #1
- 8000bb6: 2300 moveq r3, #0
- 8000bb8: b2db uxtb r3, r3
- 8000bba: 2b00 cmp r3, #0
- 8000bbc: d001 beq.n 8000bc2 <_ZL12MX_TIM2_Initv+0x8a>
- Error_Handler();
- 8000bbe: f000 faf5 bl 80011ac <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
- 8000bc2: 2300 movs r3, #0
- 8000bc4: 603b str r3, [r7, #0]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 8000bc6: 2300 movs r3, #0
- 8000bc8: 60bb str r3, [r7, #8]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig)
- 8000bca: 463b mov r3, r7
- 8000bcc: 4619 mov r1, r3
- 8000bce: 4808 ldr r0, [pc, #32] ; (8000bf0 <_ZL12MX_TIM2_Initv+0xb8>)
- 8000bd0: f003 fd06 bl 80045e0 <HAL_TIMEx_MasterConfigSynchronization>
- 8000bd4: 4603 mov r3, r0
- != HAL_OK) {
- 8000bd6: 2b00 cmp r3, #0
- 8000bd8: bf14 ite ne
- 8000bda: 2301 movne r3, #1
- 8000bdc: 2300 moveq r3, #0
- 8000bde: b2db uxtb r3, r3
- if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig)
- 8000be0: 2b00 cmp r3, #0
- 8000be2: d001 beq.n 8000be8 <_ZL12MX_TIM2_Initv+0xb0>
- Error_Handler();
- 8000be4: f000 fae2 bl 80011ac <Error_Handler>
- }
- /* USER CODE BEGIN TIM2_Init 2 */
+ * @brief NVIC Configuration.
+ * @retval None
+ */
+static void MX_NVIC_Init(void)
+{
+ 8000b68: b580 push {r7, lr}
+ 8000b6a: af00 add r7, sp, #0
+ /* TIM3_IRQn interrupt configuration */
+ HAL_NVIC_SetPriority(TIM3_IRQn, 2, 1);
+ 8000b6c: 2201 movs r2, #1
+ 8000b6e: 2102 movs r1, #2
+ 8000b70: 201d movs r0, #29
+ 8000b72: f000 ff6c bl 8001a4e <HAL_NVIC_SetPriority>
+ HAL_NVIC_EnableIRQ(TIM3_IRQn);
+ 8000b76: 201d movs r0, #29
+ 8000b78: f000 ff85 bl 8001a86 <HAL_NVIC_EnableIRQ>
+ /* TIM6_DAC_IRQn interrupt configuration */
+ HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 2, 2);
+ 8000b7c: 2202 movs r2, #2
+ 8000b7e: 2102 movs r1, #2
+ 8000b80: 2036 movs r0, #54 ; 0x36
+ 8000b82: f000 ff64 bl 8001a4e <HAL_NVIC_SetPriority>
+ HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
+ 8000b86: 2036 movs r0, #54 ; 0x36
+ 8000b88: f000 ff7d bl 8001a86 <HAL_NVIC_EnableIRQ>
+ /* USART6_IRQn interrupt configuration */
+ HAL_NVIC_SetPriority(USART6_IRQn, 2, 0);
+ 8000b8c: 2200 movs r2, #0
+ 8000b8e: 2102 movs r1, #2
+ 8000b90: 2047 movs r0, #71 ; 0x47
+ 8000b92: f000 ff5c bl 8001a4e <HAL_NVIC_SetPriority>
+ HAL_NVIC_EnableIRQ(USART6_IRQn);
+ 8000b96: 2047 movs r0, #71 ; 0x47
+ 8000b98: f000 ff75 bl 8001a86 <HAL_NVIC_EnableIRQ>
+}
+ 8000b9c: bf00 nop
+ 8000b9e: bd80 pop {r7, pc}
+
+08000ba0 <_ZL12MX_TIM2_Initv>:
+ * @brief TIM2 Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_TIM2_Init(void)
+{
+ 8000ba0: b580 push {r7, lr}
+ 8000ba2: b08c sub sp, #48 ; 0x30
+ 8000ba4: af00 add r7, sp, #0
+
+ /* USER CODE BEGIN TIM2_Init 0 */
+
+ /* USER CODE END TIM2_Init 0 */
+
+ TIM_Encoder_InitTypeDef sConfig = {0};
+ 8000ba6: f107 030c add.w r3, r7, #12
+ 8000baa: 2224 movs r2, #36 ; 0x24
+ 8000bac: 2100 movs r1, #0
+ 8000bae: 4618 mov r0, r3
+ 8000bb0: f004 f96c bl 8004e8c <memset>
+ TIM_MasterConfigTypeDef sMasterConfig = {0};
+ 8000bb4: 463b mov r3, r7
+ 8000bb6: 2200 movs r2, #0
+ 8000bb8: 601a str r2, [r3, #0]
+ 8000bba: 605a str r2, [r3, #4]
+ 8000bbc: 609a str r2, [r3, #8]
+
+ /* USER CODE BEGIN TIM2_Init 1 */
+
+ /* USER CODE END TIM2_Init 1 */
+ htim2.Instance = TIM2;
+ 8000bbe: 4b26 ldr r3, [pc, #152] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000bc0: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
+ 8000bc4: 601a str r2, [r3, #0]
+ htim2.Init.Prescaler = 0;
+ 8000bc6: 4b24 ldr r3, [pc, #144] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000bc8: 2200 movs r2, #0
+ 8000bca: 605a str r2, [r3, #4]
+ htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
+ 8000bcc: 4b22 ldr r3, [pc, #136] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000bce: 2200 movs r2, #0
+ 8000bd0: 609a str r2, [r3, #8]
+ htim2.Init.Period = 4294967295;
+ 8000bd2: 4b21 ldr r3, [pc, #132] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000bd4: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
+ 8000bd8: 60da str r2, [r3, #12]
+ htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
+ 8000bda: 4b1f ldr r3, [pc, #124] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000bdc: 2200 movs r2, #0
+ 8000bde: 611a str r2, [r3, #16]
+ htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
+ 8000be0: 4b1d ldr r3, [pc, #116] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000be2: 2200 movs r2, #0
+ 8000be4: 619a str r2, [r3, #24]
+ sConfig.EncoderMode = TIM_ENCODERMODE_TI12;
+ 8000be6: 2303 movs r3, #3
+ 8000be8: 60fb str r3, [r7, #12]
+ sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
+ 8000bea: 2300 movs r3, #0
+ 8000bec: 613b str r3, [r7, #16]
+ sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI;
+ 8000bee: 2301 movs r3, #1
+ 8000bf0: 617b str r3, [r7, #20]
+ sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
+ 8000bf2: 2300 movs r3, #0
+ 8000bf4: 61bb str r3, [r7, #24]
+ sConfig.IC1Filter = 0;
+ 8000bf6: 2300 movs r3, #0
+ 8000bf8: 61fb str r3, [r7, #28]
+ sConfig.IC2Polarity = TIM_ICPOLARITY_RISING;
+ 8000bfa: 2300 movs r3, #0
+ 8000bfc: 623b str r3, [r7, #32]
+ sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI;
+ 8000bfe: 2301 movs r3, #1
+ 8000c00: 627b str r3, [r7, #36] ; 0x24
+ sConfig.IC2Prescaler = TIM_ICPSC_DIV1;
+ 8000c02: 2300 movs r3, #0
+ 8000c04: 62bb str r3, [r7, #40] ; 0x28
+ sConfig.IC2Filter = 0;
+ 8000c06: 2300 movs r3, #0
+ 8000c08: 62fb str r3, [r7, #44] ; 0x2c
+ if (HAL_TIM_Encoder_Init(&htim2, &sConfig) != HAL_OK)
+ 8000c0a: f107 030c add.w r3, r7, #12
+ 8000c0e: 4619 mov r1, r3
+ 8000c10: 4811 ldr r0, [pc, #68] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000c12: f002 fa2b bl 800306c <HAL_TIM_Encoder_Init>
+ 8000c16: 4603 mov r3, r0
+ 8000c18: 2b00 cmp r3, #0
+ 8000c1a: bf14 ite ne
+ 8000c1c: 2301 movne r3, #1
+ 8000c1e: 2300 moveq r3, #0
+ 8000c20: b2db uxtb r3, r3
+ 8000c22: 2b00 cmp r3, #0
+ 8000c24: d001 beq.n 8000c2a <_ZL12MX_TIM2_Initv+0x8a>
+ {
+ Error_Handler();
+ 8000c26: f000 fb1d bl 8001264 <Error_Handler>
+ }
+ sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
+ 8000c2a: 2300 movs r3, #0
+ 8000c2c: 603b str r3, [r7, #0]
+ sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
+ 8000c2e: 2300 movs r3, #0
+ 8000c30: 60bb str r3, [r7, #8]
+ if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
+ 8000c32: 463b mov r3, r7
+ 8000c34: 4619 mov r1, r3
+ 8000c36: 4808 ldr r0, [pc, #32] ; (8000c58 <_ZL12MX_TIM2_Initv+0xb8>)
+ 8000c38: f003 f9b8 bl 8003fac <HAL_TIMEx_MasterConfigSynchronization>
+ 8000c3c: 4603 mov r3, r0
+ 8000c3e: 2b00 cmp r3, #0
+ 8000c40: bf14 ite ne
+ 8000c42: 2301 movne r3, #1
+ 8000c44: 2300 moveq r3, #0
+ 8000c46: b2db uxtb r3, r3
+ 8000c48: 2b00 cmp r3, #0
+ 8000c4a: d001 beq.n 8000c50 <_ZL12MX_TIM2_Initv+0xb0>
+ {
+ Error_Handler();
+ 8000c4c: f000 fb0a bl 8001264 <Error_Handler>
+ }
+ /* USER CODE BEGIN TIM2_Init 2 */
- /* USER CODE END TIM2_Init 2 */
+ /* USER CODE END TIM2_Init 2 */
}
- 8000be8: bf00 nop
- 8000bea: 3730 adds r7, #48 ; 0x30
- 8000bec: 46bd mov sp, r7
- 8000bee: bd80 pop {r7, pc}
- 8000bf0: 20000028 .word 0x20000028
-
-08000bf4 <_ZL12MX_TIM3_Initv>:
-/**
- * @brief TIM3 Initialization Function
- * @param None
- * @retval None
- */
-static void MX_TIM3_Init(void) {
- 8000bf4: b580 push {r7, lr}
- 8000bf6: b088 sub sp, #32
- 8000bf8: af00 add r7, sp, #0
-
- /* USER CODE BEGIN TIM3_Init 0 */
-
- /* USER CODE END TIM3_Init 0 */
-
- TIM_ClockConfigTypeDef sClockSourceConfig = { 0 };
- 8000bfa: f107 0310 add.w r3, r7, #16
- 8000bfe: 2200 movs r2, #0
- 8000c00: 601a str r2, [r3, #0]
- 8000c02: 605a str r2, [r3, #4]
- 8000c04: 609a str r2, [r3, #8]
- 8000c06: 60da str r2, [r3, #12]
- TIM_MasterConfigTypeDef sMasterConfig = { 0 };
- 8000c08: 1d3b adds r3, r7, #4
- 8000c0a: 2200 movs r2, #0
- 8000c0c: 601a str r2, [r3, #0]
- 8000c0e: 605a str r2, [r3, #4]
- 8000c10: 609a str r2, [r3, #8]
-
- /* USER CODE BEGIN TIM3_Init 1 */
-
- /* USER CODE END TIM3_Init 1 */
- htim3.Instance = TIM3;
- 8000c12: 4b25 ldr r3, [pc, #148] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c14: 4a25 ldr r2, [pc, #148] ; (8000cac <_ZL12MX_TIM3_Initv+0xb8>)
- 8000c16: 601a str r2, [r3, #0]
- htim3.Init.Prescaler = 9999;
- 8000c18: 4b23 ldr r3, [pc, #140] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c1a: f242 720f movw r2, #9999 ; 0x270f
- 8000c1e: 605a str r2, [r3, #4]
- htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
- 8000c20: 4b21 ldr r3, [pc, #132] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c22: 2200 movs r2, #0
- 8000c24: 609a str r2, [r3, #8]
- htim3.Init.Period = 159;
- 8000c26: 4b20 ldr r3, [pc, #128] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c28: 229f movs r2, #159 ; 0x9f
- 8000c2a: 60da str r2, [r3, #12]
- htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 8000c2c: 4b1e ldr r3, [pc, #120] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c2e: 2200 movs r2, #0
- 8000c30: 611a str r2, [r3, #16]
- htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 8000c32: 4b1d ldr r3, [pc, #116] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c34: 2200 movs r2, #0
- 8000c36: 619a str r2, [r3, #24]
- if (HAL_TIM_Base_Init(&htim3) != HAL_OK) {
- 8000c38: 481b ldr r0, [pc, #108] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c3a: f002 fca5 bl 8003588 <HAL_TIM_Base_Init>
- 8000c3e: 4603 mov r3, r0
- 8000c40: 2b00 cmp r3, #0
- 8000c42: bf14 ite ne
- 8000c44: 2301 movne r3, #1
- 8000c46: 2300 moveq r3, #0
- 8000c48: b2db uxtb r3, r3
- 8000c4a: 2b00 cmp r3, #0
- 8000c4c: d001 beq.n 8000c52 <_ZL12MX_TIM3_Initv+0x5e>
- Error_Handler();
- 8000c4e: f000 faad bl 80011ac <Error_Handler>
- }
- sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
- 8000c52: f44f 5380 mov.w r3, #4096 ; 0x1000
- 8000c56: 613b str r3, [r7, #16]
- if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK) {
- 8000c58: f107 0310 add.w r3, r7, #16
- 8000c5c: 4619 mov r1, r3
- 8000c5e: 4812 ldr r0, [pc, #72] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c60: f003 f81e bl 8003ca0 <HAL_TIM_ConfigClockSource>
- 8000c64: 4603 mov r3, r0
- 8000c66: 2b00 cmp r3, #0
- 8000c68: bf14 ite ne
- 8000c6a: 2301 movne r3, #1
- 8000c6c: 2300 moveq r3, #0
- 8000c6e: b2db uxtb r3, r3
- 8000c70: 2b00 cmp r3, #0
- 8000c72: d001 beq.n 8000c78 <_ZL12MX_TIM3_Initv+0x84>
- Error_Handler();
- 8000c74: f000 fa9a bl 80011ac <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
- 8000c78: 2300 movs r3, #0
- 8000c7a: 607b str r3, [r7, #4]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 8000c7c: 2300 movs r3, #0
- 8000c7e: 60fb str r3, [r7, #12]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig)
- 8000c80: 1d3b adds r3, r7, #4
- 8000c82: 4619 mov r1, r3
- 8000c84: 4808 ldr r0, [pc, #32] ; (8000ca8 <_ZL12MX_TIM3_Initv+0xb4>)
- 8000c86: f003 fcab bl 80045e0 <HAL_TIMEx_MasterConfigSynchronization>
- 8000c8a: 4603 mov r3, r0
- != HAL_OK) {
- 8000c8c: 2b00 cmp r3, #0
- 8000c8e: bf14 ite ne
- 8000c90: 2301 movne r3, #1
- 8000c92: 2300 moveq r3, #0
- 8000c94: b2db uxtb r3, r3
- if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig)
- 8000c96: 2b00 cmp r3, #0
- 8000c98: d001 beq.n 8000c9e <_ZL12MX_TIM3_Initv+0xaa>
- Error_Handler();
- 8000c9a: f000 fa87 bl 80011ac <Error_Handler>
- }
- /* USER CODE BEGIN TIM3_Init 2 */
+ 8000c50: bf00 nop
+ 8000c52: 3730 adds r7, #48 ; 0x30
+ 8000c54: 46bd mov sp, r7
+ 8000c56: bd80 pop {r7, pc}
+ 8000c58: 2000002c .word 0x2000002c
+
+08000c5c <_ZL12MX_TIM3_Initv>:
+ * @brief TIM3 Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_TIM3_Init(void)
+{
+ 8000c5c: b580 push {r7, lr}
+ 8000c5e: b088 sub sp, #32
+ 8000c60: af00 add r7, sp, #0
+
+ /* USER CODE BEGIN TIM3_Init 0 */
+
+ /* USER CODE END TIM3_Init 0 */
+
+ TIM_ClockConfigTypeDef sClockSourceConfig = {0};
+ 8000c62: f107 0310 add.w r3, r7, #16
+ 8000c66: 2200 movs r2, #0
+ 8000c68: 601a str r2, [r3, #0]
+ 8000c6a: 605a str r2, [r3, #4]
+ 8000c6c: 609a str r2, [r3, #8]
+ 8000c6e: 60da str r2, [r3, #12]
+ TIM_MasterConfigTypeDef sMasterConfig = {0};
+ 8000c70: 1d3b adds r3, r7, #4
+ 8000c72: 2200 movs r2, #0
+ 8000c74: 601a str r2, [r3, #0]
+ 8000c76: 605a str r2, [r3, #4]
+ 8000c78: 609a str r2, [r3, #8]
+
+ /* USER CODE BEGIN TIM3_Init 1 */
+
+ /* USER CODE END TIM3_Init 1 */
+ htim3.Instance = TIM3;
+ 8000c7a: 4b25 ldr r3, [pc, #148] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000c7c: 4a25 ldr r2, [pc, #148] ; (8000d14 <_ZL12MX_TIM3_Initv+0xb8>)
+ 8000c7e: 601a str r2, [r3, #0]
+ htim3.Init.Prescaler = 9999;
+ 8000c80: 4b23 ldr r3, [pc, #140] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000c82: f242 720f movw r2, #9999 ; 0x270f
+ 8000c86: 605a str r2, [r3, #4]
+ htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
+ 8000c88: 4b21 ldr r3, [pc, #132] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000c8a: 2200 movs r2, #0
+ 8000c8c: 609a str r2, [r3, #8]
+ htim3.Init.Period = 159;
+ 8000c8e: 4b20 ldr r3, [pc, #128] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000c90: 229f movs r2, #159 ; 0x9f
+ 8000c92: 60da str r2, [r3, #12]
+ htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
+ 8000c94: 4b1e ldr r3, [pc, #120] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000c96: 2200 movs r2, #0
+ 8000c98: 611a str r2, [r3, #16]
+ htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
+ 8000c9a: 4b1d ldr r3, [pc, #116] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000c9c: 2200 movs r2, #0
+ 8000c9e: 619a str r2, [r3, #24]
+ if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
+ 8000ca0: 481b ldr r0, [pc, #108] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000ca2: f002 f957 bl 8002f54 <HAL_TIM_Base_Init>
+ 8000ca6: 4603 mov r3, r0
+ 8000ca8: 2b00 cmp r3, #0
+ 8000caa: bf14 ite ne
+ 8000cac: 2301 movne r3, #1
+ 8000cae: 2300 moveq r3, #0
+ 8000cb0: b2db uxtb r3, r3
+ 8000cb2: 2b00 cmp r3, #0
+ 8000cb4: d001 beq.n 8000cba <_ZL12MX_TIM3_Initv+0x5e>
+ {
+ Error_Handler();
+ 8000cb6: f000 fad5 bl 8001264 <Error_Handler>
+ }
+ sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
+ 8000cba: f44f 5380 mov.w r3, #4096 ; 0x1000
+ 8000cbe: 613b str r3, [r7, #16]
+ if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK)
+ 8000cc0: f107 0310 add.w r3, r7, #16
+ 8000cc4: 4619 mov r1, r3
+ 8000cc6: 4812 ldr r0, [pc, #72] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000cc8: f002 fcd0 bl 800366c <HAL_TIM_ConfigClockSource>
+ 8000ccc: 4603 mov r3, r0
+ 8000cce: 2b00 cmp r3, #0
+ 8000cd0: bf14 ite ne
+ 8000cd2: 2301 movne r3, #1
+ 8000cd4: 2300 moveq r3, #0
+ 8000cd6: b2db uxtb r3, r3
+ 8000cd8: 2b00 cmp r3, #0
+ 8000cda: d001 beq.n 8000ce0 <_ZL12MX_TIM3_Initv+0x84>
+ {
+ Error_Handler();
+ 8000cdc: f000 fac2 bl 8001264 <Error_Handler>
+ }
+ sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
+ 8000ce0: 2300 movs r3, #0
+ 8000ce2: 607b str r3, [r7, #4]
+ sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
+ 8000ce4: 2300 movs r3, #0
+ 8000ce6: 60fb str r3, [r7, #12]
+ if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
+ 8000ce8: 1d3b adds r3, r7, #4
+ 8000cea: 4619 mov r1, r3
+ 8000cec: 4808 ldr r0, [pc, #32] ; (8000d10 <_ZL12MX_TIM3_Initv+0xb4>)
+ 8000cee: f003 f95d bl 8003fac <HAL_TIMEx_MasterConfigSynchronization>
+ 8000cf2: 4603 mov r3, r0
+ 8000cf4: 2b00 cmp r3, #0
+ 8000cf6: bf14 ite ne
+ 8000cf8: 2301 movne r3, #1
+ 8000cfa: 2300 moveq r3, #0
+ 8000cfc: b2db uxtb r3, r3
+ 8000cfe: 2b00 cmp r3, #0
+ 8000d00: d001 beq.n 8000d06 <_ZL12MX_TIM3_Initv+0xaa>
+ {
+ Error_Handler();
+ 8000d02: f000 faaf bl 8001264 <Error_Handler>
+ }
+ /* USER CODE BEGIN TIM3_Init 2 */
- /* USER CODE END TIM3_Init 2 */
+ /* USER CODE END TIM3_Init 2 */
}
- 8000c9e: bf00 nop
- 8000ca0: 3720 adds r7, #32
- 8000ca2: 46bd mov sp, r7
- 8000ca4: bd80 pop {r7, pc}
- 8000ca6: bf00 nop
- 8000ca8: 20000068 .word 0x20000068
- 8000cac: 40000400 .word 0x40000400
-
-08000cb0 <_ZL12MX_TIM4_Initv>:
-/**
- * @brief TIM4 Initialization Function
- * @param None
- * @retval None
- */
-static void MX_TIM4_Init(void) {
- 8000cb0: b580 push {r7, lr}
- 8000cb2: b08e sub sp, #56 ; 0x38
- 8000cb4: af00 add r7, sp, #0
-
- /* USER CODE BEGIN TIM4_Init 0 */
-
- /* USER CODE END TIM4_Init 0 */
-
- TIM_ClockConfigTypeDef sClockSourceConfig = { 0 };
- 8000cb6: f107 0328 add.w r3, r7, #40 ; 0x28
- 8000cba: 2200 movs r2, #0
- 8000cbc: 601a str r2, [r3, #0]
- 8000cbe: 605a str r2, [r3, #4]
- 8000cc0: 609a str r2, [r3, #8]
- 8000cc2: 60da str r2, [r3, #12]
- TIM_MasterConfigTypeDef sMasterConfig = { 0 };
- 8000cc4: f107 031c add.w r3, r7, #28
- 8000cc8: 2200 movs r2, #0
- 8000cca: 601a str r2, [r3, #0]
- 8000ccc: 605a str r2, [r3, #4]
- 8000cce: 609a str r2, [r3, #8]
- TIM_OC_InitTypeDef sConfigOC = { 0 };
- 8000cd0: 463b mov r3, r7
- 8000cd2: 2200 movs r2, #0
- 8000cd4: 601a str r2, [r3, #0]
- 8000cd6: 605a str r2, [r3, #4]
- 8000cd8: 609a str r2, [r3, #8]
- 8000cda: 60da str r2, [r3, #12]
- 8000cdc: 611a str r2, [r3, #16]
- 8000cde: 615a str r2, [r3, #20]
- 8000ce0: 619a str r2, [r3, #24]
-
- /* USER CODE BEGIN TIM4_Init 1 */
-
- /* USER CODE END TIM4_Init 1 */
- htim4.Instance = TIM4;
- 8000ce2: 4b41 ldr r3, [pc, #260] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000ce4: 4a41 ldr r2, [pc, #260] ; (8000dec <_ZL12MX_TIM4_Initv+0x13c>)
- 8000ce6: 601a str r2, [r3, #0]
- htim4.Init.Prescaler = 0;
- 8000ce8: 4b3f ldr r3, [pc, #252] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000cea: 2200 movs r2, #0
- 8000cec: 605a str r2, [r3, #4]
- htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
- 8000cee: 4b3e ldr r3, [pc, #248] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000cf0: 2200 movs r2, #0
- 8000cf2: 609a str r2, [r3, #8]
- htim4.Init.Period = 799;
- 8000cf4: 4b3c ldr r3, [pc, #240] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000cf6: f240 321f movw r2, #799 ; 0x31f
- 8000cfa: 60da str r2, [r3, #12]
- htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 8000cfc: 4b3a ldr r3, [pc, #232] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000cfe: 2200 movs r2, #0
- 8000d00: 611a str r2, [r3, #16]
- htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 8000d02: 4b39 ldr r3, [pc, #228] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000d04: 2200 movs r2, #0
- 8000d06: 619a str r2, [r3, #24]
- if (HAL_TIM_Base_Init(&htim4) != HAL_OK) {
- 8000d08: 4837 ldr r0, [pc, #220] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000d0a: f002 fc3d bl 8003588 <HAL_TIM_Base_Init>
- 8000d0e: 4603 mov r3, r0
- 8000d10: 2b00 cmp r3, #0
- 8000d12: bf14 ite ne
- 8000d14: 2301 movne r3, #1
- 8000d16: 2300 moveq r3, #0
- 8000d18: b2db uxtb r3, r3
- 8000d1a: 2b00 cmp r3, #0
- 8000d1c: d001 beq.n 8000d22 <_ZL12MX_TIM4_Initv+0x72>
- Error_Handler();
- 8000d1e: f000 fa45 bl 80011ac <Error_Handler>
- }
- sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
- 8000d22: f44f 5380 mov.w r3, #4096 ; 0x1000
- 8000d26: 62bb str r3, [r7, #40] ; 0x28
- if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) {
- 8000d28: f107 0328 add.w r3, r7, #40 ; 0x28
- 8000d2c: 4619 mov r1, r3
- 8000d2e: 482e ldr r0, [pc, #184] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000d30: f002 ffb6 bl 8003ca0 <HAL_TIM_ConfigClockSource>
- 8000d34: 4603 mov r3, r0
- 8000d36: 2b00 cmp r3, #0
- 8000d38: bf14 ite ne
- 8000d3a: 2301 movne r3, #1
- 8000d3c: 2300 moveq r3, #0
- 8000d3e: b2db uxtb r3, r3
- 8000d40: 2b00 cmp r3, #0
- 8000d42: d001 beq.n 8000d48 <_ZL12MX_TIM4_Initv+0x98>
- Error_Handler();
- 8000d44: f000 fa32 bl 80011ac <Error_Handler>
- }
- if (HAL_TIM_PWM_Init(&htim4) != HAL_OK) {
- 8000d48: 4827 ldr r0, [pc, #156] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000d4a: f002 fc73 bl 8003634 <HAL_TIM_PWM_Init>
- 8000d4e: 4603 mov r3, r0
- 8000d50: 2b00 cmp r3, #0
- 8000d52: bf14 ite ne
- 8000d54: 2301 movne r3, #1
- 8000d56: 2300 moveq r3, #0
- 8000d58: b2db uxtb r3, r3
- 8000d5a: 2b00 cmp r3, #0
- 8000d5c: d001 beq.n 8000d62 <_ZL12MX_TIM4_Initv+0xb2>
- Error_Handler();
- 8000d5e: f000 fa25 bl 80011ac <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
- 8000d62: 2300 movs r3, #0
- 8000d64: 61fb str r3, [r7, #28]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 8000d66: 2300 movs r3, #0
- 8000d68: 627b str r3, [r7, #36] ; 0x24
- if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig)
- 8000d6a: f107 031c add.w r3, r7, #28
- 8000d6e: 4619 mov r1, r3
- 8000d70: 481d ldr r0, [pc, #116] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000d72: f003 fc35 bl 80045e0 <HAL_TIMEx_MasterConfigSynchronization>
+ 8000d06: bf00 nop
+ 8000d08: 3720 adds r7, #32
+ 8000d0a: 46bd mov sp, r7
+ 8000d0c: bd80 pop {r7, pc}
+ 8000d0e: bf00 nop
+ 8000d10: 2000006c .word 0x2000006c
+ 8000d14: 40000400 .word 0x40000400
+
+08000d18 <_ZL12MX_TIM4_Initv>:
+ * @brief TIM4 Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_TIM4_Init(void)
+{
+ 8000d18: b580 push {r7, lr}
+ 8000d1a: b08e sub sp, #56 ; 0x38
+ 8000d1c: af00 add r7, sp, #0
+
+ /* USER CODE BEGIN TIM4_Init 0 */
+
+ /* USER CODE END TIM4_Init 0 */
+
+ TIM_ClockConfigTypeDef sClockSourceConfig = {0};
+ 8000d1e: f107 0328 add.w r3, r7, #40 ; 0x28
+ 8000d22: 2200 movs r2, #0
+ 8000d24: 601a str r2, [r3, #0]
+ 8000d26: 605a str r2, [r3, #4]
+ 8000d28: 609a str r2, [r3, #8]
+ 8000d2a: 60da str r2, [r3, #12]
+ TIM_MasterConfigTypeDef sMasterConfig = {0};
+ 8000d2c: f107 031c add.w r3, r7, #28
+ 8000d30: 2200 movs r2, #0
+ 8000d32: 601a str r2, [r3, #0]
+ 8000d34: 605a str r2, [r3, #4]
+ 8000d36: 609a str r2, [r3, #8]
+ TIM_OC_InitTypeDef sConfigOC = {0};
+ 8000d38: 463b mov r3, r7
+ 8000d3a: 2200 movs r2, #0
+ 8000d3c: 601a str r2, [r3, #0]
+ 8000d3e: 605a str r2, [r3, #4]
+ 8000d40: 609a str r2, [r3, #8]
+ 8000d42: 60da str r2, [r3, #12]
+ 8000d44: 611a str r2, [r3, #16]
+ 8000d46: 615a str r2, [r3, #20]
+ 8000d48: 619a str r2, [r3, #24]
+
+ /* USER CODE BEGIN TIM4_Init 1 */
+
+ /* USER CODE END TIM4_Init 1 */
+ htim4.Instance = TIM4;
+ 8000d4a: 4b41 ldr r3, [pc, #260] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d4c: 4a41 ldr r2, [pc, #260] ; (8000e54 <_ZL12MX_TIM4_Initv+0x13c>)
+ 8000d4e: 601a str r2, [r3, #0]
+ htim4.Init.Prescaler = 0;
+ 8000d50: 4b3f ldr r3, [pc, #252] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d52: 2200 movs r2, #0
+ 8000d54: 605a str r2, [r3, #4]
+ htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
+ 8000d56: 4b3e ldr r3, [pc, #248] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d58: 2200 movs r2, #0
+ 8000d5a: 609a str r2, [r3, #8]
+ htim4.Init.Period = 799;
+ 8000d5c: 4b3c ldr r3, [pc, #240] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d5e: f240 321f movw r2, #799 ; 0x31f
+ 8000d62: 60da str r2, [r3, #12]
+ htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
+ 8000d64: 4b3a ldr r3, [pc, #232] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d66: 2200 movs r2, #0
+ 8000d68: 611a str r2, [r3, #16]
+ htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
+ 8000d6a: 4b39 ldr r3, [pc, #228] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d6c: 2200 movs r2, #0
+ 8000d6e: 619a str r2, [r3, #24]
+ if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
+ 8000d70: 4837 ldr r0, [pc, #220] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d72: f002 f8ef bl 8002f54 <HAL_TIM_Base_Init>
8000d76: 4603 mov r3, r0
- != HAL_OK) {
8000d78: 2b00 cmp r3, #0
8000d7a: bf14 ite ne
8000d7c: 2301 movne r3, #1
8000d7e: 2300 moveq r3, #0
8000d80: b2db uxtb r3, r3
- if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig)
8000d82: 2b00 cmp r3, #0
- 8000d84: d001 beq.n 8000d8a <_ZL12MX_TIM4_Initv+0xda>
- Error_Handler();
- 8000d86: f000 fa11 bl 80011ac <Error_Handler>
- }
- sConfigOC.OCMode = TIM_OCMODE_PWM1;
- 8000d8a: 2360 movs r3, #96 ; 0x60
- 8000d8c: 603b str r3, [r7, #0]
- sConfigOC.Pulse = 0;
- 8000d8e: 2300 movs r3, #0
- 8000d90: 607b str r3, [r7, #4]
- sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
- 8000d92: 2300 movs r3, #0
- 8000d94: 60bb str r3, [r7, #8]
- sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
- 8000d96: 2300 movs r3, #0
- 8000d98: 613b str r3, [r7, #16]
- if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3)
- 8000d9a: 463b mov r3, r7
- 8000d9c: 2208 movs r2, #8
- 8000d9e: 4619 mov r1, r3
- 8000da0: 4811 ldr r0, [pc, #68] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000da2: f002 fe65 bl 8003a70 <HAL_TIM_PWM_ConfigChannel>
- 8000da6: 4603 mov r3, r0
- != HAL_OK) {
+ 8000d84: d001 beq.n 8000d8a <_ZL12MX_TIM4_Initv+0x72>
+ {
+ Error_Handler();
+ 8000d86: f000 fa6d bl 8001264 <Error_Handler>
+ }
+ sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
+ 8000d8a: f44f 5380 mov.w r3, #4096 ; 0x1000
+ 8000d8e: 62bb str r3, [r7, #40] ; 0x28
+ if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
+ 8000d90: f107 0328 add.w r3, r7, #40 ; 0x28
+ 8000d94: 4619 mov r1, r3
+ 8000d96: 482e ldr r0, [pc, #184] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000d98: f002 fc68 bl 800366c <HAL_TIM_ConfigClockSource>
+ 8000d9c: 4603 mov r3, r0
+ 8000d9e: 2b00 cmp r3, #0
+ 8000da0: bf14 ite ne
+ 8000da2: 2301 movne r3, #1
+ 8000da4: 2300 moveq r3, #0
+ 8000da6: b2db uxtb r3, r3
8000da8: 2b00 cmp r3, #0
- 8000daa: bf14 ite ne
- 8000dac: 2301 movne r3, #1
- 8000dae: 2300 moveq r3, #0
- 8000db0: b2db uxtb r3, r3
- if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3)
- 8000db2: 2b00 cmp r3, #0
- 8000db4: d001 beq.n 8000dba <_ZL12MX_TIM4_Initv+0x10a>
- Error_Handler();
- 8000db6: f000 f9f9 bl 80011ac <Error_Handler>
- }
- if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_4)
- 8000dba: 463b mov r3, r7
- 8000dbc: 220c movs r2, #12
- 8000dbe: 4619 mov r1, r3
- 8000dc0: 4809 ldr r0, [pc, #36] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000dc2: f002 fe55 bl 8003a70 <HAL_TIM_PWM_ConfigChannel>
- 8000dc6: 4603 mov r3, r0
- != HAL_OK) {
- 8000dc8: 2b00 cmp r3, #0
- 8000dca: bf14 ite ne
- 8000dcc: 2301 movne r3, #1
- 8000dce: 2300 moveq r3, #0
- 8000dd0: b2db uxtb r3, r3
- if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_4)
- 8000dd2: 2b00 cmp r3, #0
- 8000dd4: d001 beq.n 8000dda <_ZL12MX_TIM4_Initv+0x12a>
- Error_Handler();
- 8000dd6: f000 f9e9 bl 80011ac <Error_Handler>
- }
- /* USER CODE BEGIN TIM4_Init 2 */
-
- /* USER CODE END TIM4_Init 2 */
- HAL_TIM_MspPostInit(&htim4);
- 8000dda: 4803 ldr r0, [pc, #12] ; (8000de8 <_ZL12MX_TIM4_Initv+0x138>)
- 8000ddc: f000 fb8a bl 80014f4 <HAL_TIM_MspPostInit>
-
-}
- 8000de0: bf00 nop
- 8000de2: 3738 adds r7, #56 ; 0x38
- 8000de4: 46bd mov sp, r7
- 8000de6: bd80 pop {r7, pc}
- 8000de8: 200000a8 .word 0x200000a8
- 8000dec: 40000800 .word 0x40000800
-
-08000df0 <_ZL12MX_TIM5_Initv>:
-/**
- * @brief TIM5 Initialization Function
- * @param None
- * @retval None
- */
-static void MX_TIM5_Init(void) {
- 8000df0: b580 push {r7, lr}
- 8000df2: b08c sub sp, #48 ; 0x30
- 8000df4: af00 add r7, sp, #0
-
- /* USER CODE BEGIN TIM5_Init 0 */
-
- /* USER CODE END TIM5_Init 0 */
-
- TIM_Encoder_InitTypeDef sConfig = { 0 };
- 8000df6: f107 030c add.w r3, r7, #12
- 8000dfa: 2224 movs r2, #36 ; 0x24
- 8000dfc: 2100 movs r1, #0
- 8000dfe: 4618 mov r0, r3
- 8000e00: f004 fa16 bl 8005230 <memset>
- TIM_MasterConfigTypeDef sMasterConfig = { 0 };
- 8000e04: 463b mov r3, r7
- 8000e06: 2200 movs r2, #0
- 8000e08: 601a str r2, [r3, #0]
- 8000e0a: 605a str r2, [r3, #4]
- 8000e0c: 609a str r2, [r3, #8]
-
- /* USER CODE BEGIN TIM5_Init 1 */
-
- /* USER CODE END TIM5_Init 1 */
- htim5.Instance = TIM5;
- 8000e0e: 4b26 ldr r3, [pc, #152] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e10: 4a26 ldr r2, [pc, #152] ; (8000eac <_ZL12MX_TIM5_Initv+0xbc>)
- 8000e12: 601a str r2, [r3, #0]
- htim5.Init.Prescaler = 0;
- 8000e14: 4b24 ldr r3, [pc, #144] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e16: 2200 movs r2, #0
- 8000e18: 605a str r2, [r3, #4]
- htim5.Init.CounterMode = TIM_COUNTERMODE_UP;
- 8000e1a: 4b23 ldr r3, [pc, #140] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e1c: 2200 movs r2, #0
- 8000e1e: 609a str r2, [r3, #8]
- htim5.Init.Period = 4294967295;
- 8000e20: 4b21 ldr r3, [pc, #132] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e22: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8000e26: 60da str r2, [r3, #12]
- htim5.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
- 8000e28: 4b1f ldr r3, [pc, #124] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e2a: 2200 movs r2, #0
- 8000e2c: 611a str r2, [r3, #16]
- htim5.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 8000e2e: 4b1e ldr r3, [pc, #120] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e30: 2200 movs r2, #0
- 8000e32: 619a str r2, [r3, #24]
- sConfig.EncoderMode = TIM_ENCODERMODE_TI12;
- 8000e34: 2303 movs r3, #3
- 8000e36: 60fb str r3, [r7, #12]
- sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
- 8000e38: 2300 movs r3, #0
- 8000e3a: 613b str r3, [r7, #16]
- sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI;
- 8000e3c: 2301 movs r3, #1
- 8000e3e: 617b str r3, [r7, #20]
- sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
- 8000e40: 2300 movs r3, #0
- 8000e42: 61bb str r3, [r7, #24]
- sConfig.IC1Filter = 0;
- 8000e44: 2300 movs r3, #0
- 8000e46: 61fb str r3, [r7, #28]
- sConfig.IC2Polarity = TIM_ICPOLARITY_RISING;
- 8000e48: 2300 movs r3, #0
- 8000e4a: 623b str r3, [r7, #32]
- sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI;
- 8000e4c: 2301 movs r3, #1
- 8000e4e: 627b str r3, [r7, #36] ; 0x24
- sConfig.IC2Prescaler = TIM_ICPSC_DIV1;
- 8000e50: 2300 movs r3, #0
- 8000e52: 62bb str r3, [r7, #40] ; 0x28
- sConfig.IC2Filter = 0;
- 8000e54: 2300 movs r3, #0
- 8000e56: 62fb str r3, [r7, #44] ; 0x2c
- if (HAL_TIM_Encoder_Init(&htim5, &sConfig) != HAL_OK) {
- 8000e58: f107 030c add.w r3, r7, #12
- 8000e5c: 4619 mov r1, r3
- 8000e5e: 4812 ldr r0, [pc, #72] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e60: f002 fc1e bl 80036a0 <HAL_TIM_Encoder_Init>
- 8000e64: 4603 mov r3, r0
- 8000e66: 2b00 cmp r3, #0
- 8000e68: bf14 ite ne
- 8000e6a: 2301 movne r3, #1
- 8000e6c: 2300 moveq r3, #0
- 8000e6e: b2db uxtb r3, r3
- 8000e70: 2b00 cmp r3, #0
- 8000e72: d001 beq.n 8000e78 <_ZL12MX_TIM5_Initv+0x88>
- Error_Handler();
- 8000e74: f000 f99a bl 80011ac <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
- 8000e78: 2300 movs r3, #0
- 8000e7a: 603b str r3, [r7, #0]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 8000e7c: 2300 movs r3, #0
- 8000e7e: 60bb str r3, [r7, #8]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim5, &sMasterConfig)
- 8000e80: 463b mov r3, r7
- 8000e82: 4619 mov r1, r3
- 8000e84: 4808 ldr r0, [pc, #32] ; (8000ea8 <_ZL12MX_TIM5_Initv+0xb8>)
- 8000e86: f003 fbab bl 80045e0 <HAL_TIMEx_MasterConfigSynchronization>
- 8000e8a: 4603 mov r3, r0
- != HAL_OK) {
- 8000e8c: 2b00 cmp r3, #0
- 8000e8e: bf14 ite ne
- 8000e90: 2301 movne r3, #1
- 8000e92: 2300 moveq r3, #0
- 8000e94: b2db uxtb r3, r3
- if (HAL_TIMEx_MasterConfigSynchronization(&htim5, &sMasterConfig)
- 8000e96: 2b00 cmp r3, #0
- 8000e98: d001 beq.n 8000e9e <_ZL12MX_TIM5_Initv+0xae>
- Error_Handler();
- 8000e9a: f000 f987 bl 80011ac <Error_Handler>
- }
- /* USER CODE BEGIN TIM5_Init 2 */
+ 8000daa: d001 beq.n 8000db0 <_ZL12MX_TIM4_Initv+0x98>
+ {
+ Error_Handler();
+ 8000dac: f000 fa5a bl 8001264 <Error_Handler>
+ }
+ if (HAL_TIM_PWM_Init(&htim4) != HAL_OK)
+ 8000db0: 4827 ldr r0, [pc, #156] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000db2: f002 f925 bl 8003000 <HAL_TIM_PWM_Init>
+ 8000db6: 4603 mov r3, r0
+ 8000db8: 2b00 cmp r3, #0
+ 8000dba: bf14 ite ne
+ 8000dbc: 2301 movne r3, #1
+ 8000dbe: 2300 moveq r3, #0
+ 8000dc0: b2db uxtb r3, r3
+ 8000dc2: 2b00 cmp r3, #0
+ 8000dc4: d001 beq.n 8000dca <_ZL12MX_TIM4_Initv+0xb2>
+ {
+ Error_Handler();
+ 8000dc6: f000 fa4d bl 8001264 <Error_Handler>
+ }
+ sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
+ 8000dca: 2300 movs r3, #0
+ 8000dcc: 61fb str r3, [r7, #28]
+ sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
+ 8000dce: 2300 movs r3, #0
+ 8000dd0: 627b str r3, [r7, #36] ; 0x24
+ if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
+ 8000dd2: f107 031c add.w r3, r7, #28
+ 8000dd6: 4619 mov r1, r3
+ 8000dd8: 481d ldr r0, [pc, #116] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000dda: f003 f8e7 bl 8003fac <HAL_TIMEx_MasterConfigSynchronization>
+ 8000dde: 4603 mov r3, r0
+ 8000de0: 2b00 cmp r3, #0
+ 8000de2: bf14 ite ne
+ 8000de4: 2301 movne r3, #1
+ 8000de6: 2300 moveq r3, #0
+ 8000de8: b2db uxtb r3, r3
+ 8000dea: 2b00 cmp r3, #0
+ 8000dec: d001 beq.n 8000df2 <_ZL12MX_TIM4_Initv+0xda>
+ {
+ Error_Handler();
+ 8000dee: f000 fa39 bl 8001264 <Error_Handler>
+ }
+ sConfigOC.OCMode = TIM_OCMODE_PWM1;
+ 8000df2: 2360 movs r3, #96 ; 0x60
+ 8000df4: 603b str r3, [r7, #0]
+ sConfigOC.Pulse = 0;
+ 8000df6: 2300 movs r3, #0
+ 8000df8: 607b str r3, [r7, #4]
+ sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
+ 8000dfa: 2300 movs r3, #0
+ 8000dfc: 60bb str r3, [r7, #8]
+ sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
+ 8000dfe: 2300 movs r3, #0
+ 8000e00: 613b str r3, [r7, #16]
+ if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3) != HAL_OK)
+ 8000e02: 463b mov r3, r7
+ 8000e04: 2208 movs r2, #8
+ 8000e06: 4619 mov r1, r3
+ 8000e08: 4811 ldr r0, [pc, #68] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000e0a: f002 fb17 bl 800343c <HAL_TIM_PWM_ConfigChannel>
+ 8000e0e: 4603 mov r3, r0
+ 8000e10: 2b00 cmp r3, #0
+ 8000e12: bf14 ite ne
+ 8000e14: 2301 movne r3, #1
+ 8000e16: 2300 moveq r3, #0
+ 8000e18: b2db uxtb r3, r3
+ 8000e1a: 2b00 cmp r3, #0
+ 8000e1c: d001 beq.n 8000e22 <_ZL12MX_TIM4_Initv+0x10a>
+ {
+ Error_Handler();
+ 8000e1e: f000 fa21 bl 8001264 <Error_Handler>
+ }
+ if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
+ 8000e22: 463b mov r3, r7
+ 8000e24: 220c movs r2, #12
+ 8000e26: 4619 mov r1, r3
+ 8000e28: 4809 ldr r0, [pc, #36] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000e2a: f002 fb07 bl 800343c <HAL_TIM_PWM_ConfigChannel>
+ 8000e2e: 4603 mov r3, r0
+ 8000e30: 2b00 cmp r3, #0
+ 8000e32: bf14 ite ne
+ 8000e34: 2301 movne r3, #1
+ 8000e36: 2300 moveq r3, #0
+ 8000e38: b2db uxtb r3, r3
+ 8000e3a: 2b00 cmp r3, #0
+ 8000e3c: d001 beq.n 8000e42 <_ZL12MX_TIM4_Initv+0x12a>
+ {
+ Error_Handler();
+ 8000e3e: f000 fa11 bl 8001264 <Error_Handler>
+ }
+ /* USER CODE BEGIN TIM4_Init 2 */
- /* USER CODE END TIM5_Init 2 */
+ /* USER CODE END TIM4_Init 2 */
+ HAL_TIM_MspPostInit(&htim4);
+ 8000e42: 4803 ldr r0, [pc, #12] ; (8000e50 <_ZL12MX_TIM4_Initv+0x138>)
+ 8000e44: f000 fba4 bl 8001590 <HAL_TIM_MspPostInit>
}
- 8000e9e: bf00 nop
- 8000ea0: 3730 adds r7, #48 ; 0x30
- 8000ea2: 46bd mov sp, r7
- 8000ea4: bd80 pop {r7, pc}
- 8000ea6: bf00 nop
- 8000ea8: 200000e8 .word 0x200000e8
- 8000eac: 40000c00 .word 0x40000c00
-
-08000eb0 <_ZL12MX_TIM6_Initv>:
-/**
- * @brief TIM6 Initialization Function
- * @param None
- * @retval None
- */
-static void MX_TIM6_Init(void) {
- 8000eb0: b580 push {r7, lr}
- 8000eb2: b084 sub sp, #16
- 8000eb4: af00 add r7, sp, #0
-
- /* USER CODE BEGIN TIM6_Init 0 */
-
- /* USER CODE END TIM6_Init 0 */
-
- TIM_MasterConfigTypeDef sMasterConfig = { 0 };
- 8000eb6: 1d3b adds r3, r7, #4
- 8000eb8: 2200 movs r2, #0
- 8000eba: 601a str r2, [r3, #0]
- 8000ebc: 605a str r2, [r3, #4]
- 8000ebe: 609a str r2, [r3, #8]
-
- /* USER CODE BEGIN TIM6_Init 1 */
-
- /* USER CODE END TIM6_Init 1 */
- htim6.Instance = TIM6;
- 8000ec0: 4b1a ldr r3, [pc, #104] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000ec2: 4a1b ldr r2, [pc, #108] ; (8000f30 <_ZL12MX_TIM6_Initv+0x80>)
- 8000ec4: 601a str r2, [r3, #0]
- htim6.Init.Prescaler = 9999;
- 8000ec6: 4b19 ldr r3, [pc, #100] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000ec8: f242 720f movw r2, #9999 ; 0x270f
- 8000ecc: 605a str r2, [r3, #4]
- htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
- 8000ece: 4b17 ldr r3, [pc, #92] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000ed0: 2200 movs r2, #0
- 8000ed2: 609a str r2, [r3, #8]
- htim6.Init.Period = 799;
- 8000ed4: 4b15 ldr r3, [pc, #84] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000ed6: f240 321f movw r2, #799 ; 0x31f
- 8000eda: 60da str r2, [r3, #12]
- htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
- 8000edc: 4b13 ldr r3, [pc, #76] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000ede: 2200 movs r2, #0
- 8000ee0: 619a str r2, [r3, #24]
- if (HAL_TIM_Base_Init(&htim6) != HAL_OK) {
- 8000ee2: 4812 ldr r0, [pc, #72] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000ee4: f002 fb50 bl 8003588 <HAL_TIM_Base_Init>
- 8000ee8: 4603 mov r3, r0
- 8000eea: 2b00 cmp r3, #0
- 8000eec: bf14 ite ne
- 8000eee: 2301 movne r3, #1
- 8000ef0: 2300 moveq r3, #0
- 8000ef2: b2db uxtb r3, r3
+ 8000e48: bf00 nop
+ 8000e4a: 3738 adds r7, #56 ; 0x38
+ 8000e4c: 46bd mov sp, r7
+ 8000e4e: bd80 pop {r7, pc}
+ 8000e50: 200000ac .word 0x200000ac
+ 8000e54: 40000800 .word 0x40000800
+
+08000e58 <_ZL12MX_TIM5_Initv>:
+ * @brief TIM5 Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_TIM5_Init(void)
+{
+ 8000e58: b580 push {r7, lr}
+ 8000e5a: b08c sub sp, #48 ; 0x30
+ 8000e5c: af00 add r7, sp, #0
+
+ /* USER CODE BEGIN TIM5_Init 0 */
+
+ /* USER CODE END TIM5_Init 0 */
+
+ TIM_Encoder_InitTypeDef sConfig = {0};
+ 8000e5e: f107 030c add.w r3, r7, #12
+ 8000e62: 2224 movs r2, #36 ; 0x24
+ 8000e64: 2100 movs r1, #0
+ 8000e66: 4618 mov r0, r3
+ 8000e68: f004 f810 bl 8004e8c <memset>
+ TIM_MasterConfigTypeDef sMasterConfig = {0};
+ 8000e6c: 463b mov r3, r7
+ 8000e6e: 2200 movs r2, #0
+ 8000e70: 601a str r2, [r3, #0]
+ 8000e72: 605a str r2, [r3, #4]
+ 8000e74: 609a str r2, [r3, #8]
+
+ /* USER CODE BEGIN TIM5_Init 1 */
+
+ /* USER CODE END TIM5_Init 1 */
+ htim5.Instance = TIM5;
+ 8000e76: 4b26 ldr r3, [pc, #152] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000e78: 4a26 ldr r2, [pc, #152] ; (8000f14 <_ZL12MX_TIM5_Initv+0xbc>)
+ 8000e7a: 601a str r2, [r3, #0]
+ htim5.Init.Prescaler = 0;
+ 8000e7c: 4b24 ldr r3, [pc, #144] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000e7e: 2200 movs r2, #0
+ 8000e80: 605a str r2, [r3, #4]
+ htim5.Init.CounterMode = TIM_COUNTERMODE_UP;
+ 8000e82: 4b23 ldr r3, [pc, #140] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000e84: 2200 movs r2, #0
+ 8000e86: 609a str r2, [r3, #8]
+ htim5.Init.Period = 4294967295;
+ 8000e88: 4b21 ldr r3, [pc, #132] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000e8a: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
+ 8000e8e: 60da str r2, [r3, #12]
+ htim5.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
+ 8000e90: 4b1f ldr r3, [pc, #124] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000e92: 2200 movs r2, #0
+ 8000e94: 611a str r2, [r3, #16]
+ htim5.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
+ 8000e96: 4b1e ldr r3, [pc, #120] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000e98: 2200 movs r2, #0
+ 8000e9a: 619a str r2, [r3, #24]
+ sConfig.EncoderMode = TIM_ENCODERMODE_TI12;
+ 8000e9c: 2303 movs r3, #3
+ 8000e9e: 60fb str r3, [r7, #12]
+ sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
+ 8000ea0: 2300 movs r3, #0
+ 8000ea2: 613b str r3, [r7, #16]
+ sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI;
+ 8000ea4: 2301 movs r3, #1
+ 8000ea6: 617b str r3, [r7, #20]
+ sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
+ 8000ea8: 2300 movs r3, #0
+ 8000eaa: 61bb str r3, [r7, #24]
+ sConfig.IC1Filter = 0;
+ 8000eac: 2300 movs r3, #0
+ 8000eae: 61fb str r3, [r7, #28]
+ sConfig.IC2Polarity = TIM_ICPOLARITY_RISING;
+ 8000eb0: 2300 movs r3, #0
+ 8000eb2: 623b str r3, [r7, #32]
+ sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI;
+ 8000eb4: 2301 movs r3, #1
+ 8000eb6: 627b str r3, [r7, #36] ; 0x24
+ sConfig.IC2Prescaler = TIM_ICPSC_DIV1;
+ 8000eb8: 2300 movs r3, #0
+ 8000eba: 62bb str r3, [r7, #40] ; 0x28
+ sConfig.IC2Filter = 0;
+ 8000ebc: 2300 movs r3, #0
+ 8000ebe: 62fb str r3, [r7, #44] ; 0x2c
+ if (HAL_TIM_Encoder_Init(&htim5, &sConfig) != HAL_OK)
+ 8000ec0: f107 030c add.w r3, r7, #12
+ 8000ec4: 4619 mov r1, r3
+ 8000ec6: 4812 ldr r0, [pc, #72] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000ec8: f002 f8d0 bl 800306c <HAL_TIM_Encoder_Init>
+ 8000ecc: 4603 mov r3, r0
+ 8000ece: 2b00 cmp r3, #0
+ 8000ed0: bf14 ite ne
+ 8000ed2: 2301 movne r3, #1
+ 8000ed4: 2300 moveq r3, #0
+ 8000ed6: b2db uxtb r3, r3
+ 8000ed8: 2b00 cmp r3, #0
+ 8000eda: d001 beq.n 8000ee0 <_ZL12MX_TIM5_Initv+0x88>
+ {
+ Error_Handler();
+ 8000edc: f000 f9c2 bl 8001264 <Error_Handler>
+ }
+ sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
+ 8000ee0: 2300 movs r3, #0
+ 8000ee2: 603b str r3, [r7, #0]
+ sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
+ 8000ee4: 2300 movs r3, #0
+ 8000ee6: 60bb str r3, [r7, #8]
+ if (HAL_TIMEx_MasterConfigSynchronization(&htim5, &sMasterConfig) != HAL_OK)
+ 8000ee8: 463b mov r3, r7
+ 8000eea: 4619 mov r1, r3
+ 8000eec: 4808 ldr r0, [pc, #32] ; (8000f10 <_ZL12MX_TIM5_Initv+0xb8>)
+ 8000eee: f003 f85d bl 8003fac <HAL_TIMEx_MasterConfigSynchronization>
+ 8000ef2: 4603 mov r3, r0
8000ef4: 2b00 cmp r3, #0
- 8000ef6: d001 beq.n 8000efc <_ZL12MX_TIM6_Initv+0x4c>
- Error_Handler();
- 8000ef8: f000 f958 bl 80011ac <Error_Handler>
- }
- sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
- 8000efc: 2300 movs r3, #0
- 8000efe: 607b str r3, [r7, #4]
- sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
- 8000f00: 2300 movs r3, #0
- 8000f02: 60fb str r3, [r7, #12]
- if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig)
- 8000f04: 1d3b adds r3, r7, #4
- 8000f06: 4619 mov r1, r3
- 8000f08: 4808 ldr r0, [pc, #32] ; (8000f2c <_ZL12MX_TIM6_Initv+0x7c>)
- 8000f0a: f003 fb69 bl 80045e0 <HAL_TIMEx_MasterConfigSynchronization>
- 8000f0e: 4603 mov r3, r0
- != HAL_OK) {
- 8000f10: 2b00 cmp r3, #0
- 8000f12: bf14 ite ne
- 8000f14: 2301 movne r3, #1
- 8000f16: 2300 moveq r3, #0
- 8000f18: b2db uxtb r3, r3
- if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig)
- 8000f1a: 2b00 cmp r3, #0
- 8000f1c: d001 beq.n 8000f22 <_ZL12MX_TIM6_Initv+0x72>
- Error_Handler();
- 8000f1e: f000 f945 bl 80011ac <Error_Handler>
- }
- /* USER CODE BEGIN TIM6_Init 2 */
+ 8000ef6: bf14 ite ne
+ 8000ef8: 2301 movne r3, #1
+ 8000efa: 2300 moveq r3, #0
+ 8000efc: b2db uxtb r3, r3
+ 8000efe: 2b00 cmp r3, #0
+ 8000f00: d001 beq.n 8000f06 <_ZL12MX_TIM5_Initv+0xae>
+ {
+ Error_Handler();
+ 8000f02: f000 f9af bl 8001264 <Error_Handler>
+ }
+ /* USER CODE BEGIN TIM5_Init 2 */
- /* USER CODE END TIM6_Init 2 */
+ /* USER CODE END TIM5_Init 2 */
}
- 8000f22: bf00 nop
- 8000f24: 3710 adds r7, #16
- 8000f26: 46bd mov sp, r7
- 8000f28: bd80 pop {r7, pc}
- 8000f2a: bf00 nop
- 8000f2c: 20000128 .word 0x20000128
- 8000f30: 40001000 .word 0x40001000
-
-08000f34 <_ZL19MX_USART6_UART_Initv>:
-/**
- * @brief USART6 Initialization Function
- * @param None
- * @retval None
- */
-static void MX_USART6_UART_Init(void) {
- 8000f34: b580 push {r7, lr}
- 8000f36: af00 add r7, sp, #0
- /* USER CODE END USART6_Init 0 */
-
- /* USER CODE BEGIN USART6_Init 1 */
-
- /* USER CODE END USART6_Init 1 */
- huart6.Instance = USART6;
- 8000f38: 4b16 ldr r3, [pc, #88] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f3a: 4a17 ldr r2, [pc, #92] ; (8000f98 <_ZL19MX_USART6_UART_Initv+0x64>)
- 8000f3c: 601a str r2, [r3, #0]
- huart6.Init.BaudRate = 115200;
- 8000f3e: 4b15 ldr r3, [pc, #84] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f40: f44f 32e1 mov.w r2, #115200 ; 0x1c200
- 8000f44: 605a str r2, [r3, #4]
- huart6.Init.WordLength = UART_WORDLENGTH_8B;
- 8000f46: 4b13 ldr r3, [pc, #76] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f48: 2200 movs r2, #0
- 8000f4a: 609a str r2, [r3, #8]
- huart6.Init.StopBits = UART_STOPBITS_1;
- 8000f4c: 4b11 ldr r3, [pc, #68] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f4e: 2200 movs r2, #0
- 8000f50: 60da str r2, [r3, #12]
- huart6.Init.Parity = UART_PARITY_NONE;
- 8000f52: 4b10 ldr r3, [pc, #64] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f54: 2200 movs r2, #0
- 8000f56: 611a str r2, [r3, #16]
- huart6.Init.Mode = UART_MODE_TX_RX;
- 8000f58: 4b0e ldr r3, [pc, #56] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f5a: 220c movs r2, #12
- 8000f5c: 615a str r2, [r3, #20]
- huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
- 8000f5e: 4b0d ldr r3, [pc, #52] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f60: 2200 movs r2, #0
- 8000f62: 619a str r2, [r3, #24]
- huart6.Init.OverSampling = UART_OVERSAMPLING_16;
- 8000f64: 4b0b ldr r3, [pc, #44] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f66: 2200 movs r2, #0
- 8000f68: 61da str r2, [r3, #28]
- huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
- 8000f6a: 4b0a ldr r3, [pc, #40] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f6c: 2200 movs r2, #0
- 8000f6e: 621a str r2, [r3, #32]
- huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
- 8000f70: 4b08 ldr r3, [pc, #32] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f72: 2200 movs r2, #0
- 8000f74: 625a str r2, [r3, #36] ; 0x24
- if (HAL_UART_Init(&huart6) != HAL_OK) {
- 8000f76: 4807 ldr r0, [pc, #28] ; (8000f94 <_ZL19MX_USART6_UART_Initv+0x60>)
- 8000f78: f003 fbac bl 80046d4 <HAL_UART_Init>
- 8000f7c: 4603 mov r3, r0
- 8000f7e: 2b00 cmp r3, #0
- 8000f80: bf14 ite ne
- 8000f82: 2301 movne r3, #1
- 8000f84: 2300 moveq r3, #0
- 8000f86: b2db uxtb r3, r3
- 8000f88: 2b00 cmp r3, #0
- 8000f8a: d001 beq.n 8000f90 <_ZL19MX_USART6_UART_Initv+0x5c>
- Error_Handler();
- 8000f8c: f000 f90e bl 80011ac <Error_Handler>
- }
- /* USER CODE BEGIN USART6_Init 2 */
+ 8000f06: bf00 nop
+ 8000f08: 3730 adds r7, #48 ; 0x30
+ 8000f0a: 46bd mov sp, r7
+ 8000f0c: bd80 pop {r7, pc}
+ 8000f0e: bf00 nop
+ 8000f10: 200000ec .word 0x200000ec
+ 8000f14: 40000c00 .word 0x40000c00
+
+08000f18 <_ZL12MX_TIM6_Initv>:
+ * @brief TIM6 Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_TIM6_Init(void)
+{
+ 8000f18: b580 push {r7, lr}
+ 8000f1a: b084 sub sp, #16
+ 8000f1c: af00 add r7, sp, #0
+
+ /* USER CODE BEGIN TIM6_Init 0 */
+
+ /* USER CODE END TIM6_Init 0 */
+
+ TIM_MasterConfigTypeDef sMasterConfig = {0};
+ 8000f1e: 1d3b adds r3, r7, #4
+ 8000f20: 2200 movs r2, #0
+ 8000f22: 601a str r2, [r3, #0]
+ 8000f24: 605a str r2, [r3, #4]
+ 8000f26: 609a str r2, [r3, #8]
+
+ /* USER CODE BEGIN TIM6_Init 1 */
+
+ /* USER CODE END TIM6_Init 1 */
+ htim6.Instance = TIM6;
+ 8000f28: 4b1a ldr r3, [pc, #104] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f2a: 4a1b ldr r2, [pc, #108] ; (8000f98 <_ZL12MX_TIM6_Initv+0x80>)
+ 8000f2c: 601a str r2, [r3, #0]
+ htim6.Init.Prescaler = 9999;
+ 8000f2e: 4b19 ldr r3, [pc, #100] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f30: f242 720f movw r2, #9999 ; 0x270f
+ 8000f34: 605a str r2, [r3, #4]
+ htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
+ 8000f36: 4b17 ldr r3, [pc, #92] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f38: 2200 movs r2, #0
+ 8000f3a: 609a str r2, [r3, #8]
+ htim6.Init.Period = 799;
+ 8000f3c: 4b15 ldr r3, [pc, #84] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f3e: f240 321f movw r2, #799 ; 0x31f
+ 8000f42: 60da str r2, [r3, #12]
+ htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
+ 8000f44: 4b13 ldr r3, [pc, #76] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f46: 2200 movs r2, #0
+ 8000f48: 619a str r2, [r3, #24]
+ if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
+ 8000f4a: 4812 ldr r0, [pc, #72] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f4c: f002 f802 bl 8002f54 <HAL_TIM_Base_Init>
+ 8000f50: 4603 mov r3, r0
+ 8000f52: 2b00 cmp r3, #0
+ 8000f54: bf14 ite ne
+ 8000f56: 2301 movne r3, #1
+ 8000f58: 2300 moveq r3, #0
+ 8000f5a: b2db uxtb r3, r3
+ 8000f5c: 2b00 cmp r3, #0
+ 8000f5e: d001 beq.n 8000f64 <_ZL12MX_TIM6_Initv+0x4c>
+ {
+ Error_Handler();
+ 8000f60: f000 f980 bl 8001264 <Error_Handler>
+ }
+ sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
+ 8000f64: 2300 movs r3, #0
+ 8000f66: 607b str r3, [r7, #4]
+ sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
+ 8000f68: 2300 movs r3, #0
+ 8000f6a: 60fb str r3, [r7, #12]
+ if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
+ 8000f6c: 1d3b adds r3, r7, #4
+ 8000f6e: 4619 mov r1, r3
+ 8000f70: 4808 ldr r0, [pc, #32] ; (8000f94 <_ZL12MX_TIM6_Initv+0x7c>)
+ 8000f72: f003 f81b bl 8003fac <HAL_TIMEx_MasterConfigSynchronization>
+ 8000f76: 4603 mov r3, r0
+ 8000f78: 2b00 cmp r3, #0
+ 8000f7a: bf14 ite ne
+ 8000f7c: 2301 movne r3, #1
+ 8000f7e: 2300 moveq r3, #0
+ 8000f80: b2db uxtb r3, r3
+ 8000f82: 2b00 cmp r3, #0
+ 8000f84: d001 beq.n 8000f8a <_ZL12MX_TIM6_Initv+0x72>
+ {
+ Error_Handler();
+ 8000f86: f000 f96d bl 8001264 <Error_Handler>
+ }
+ /* USER CODE BEGIN TIM6_Init 2 */
- /* USER CODE END USART6_Init 2 */
+ /* USER CODE END TIM6_Init 2 */
}
- 8000f90: bf00 nop
- 8000f92: bd80 pop {r7, pc}
- 8000f94: 20000168 .word 0x20000168
- 8000f98: 40011400 .word 0x40011400
-
-08000f9c <_ZL11MX_DMA_Initv>:
-
-/**
- * Enable DMA controller clock
- */
-static void MX_DMA_Init(void) {
+ 8000f8a: bf00 nop
+ 8000f8c: 3710 adds r7, #16
+ 8000f8e: 46bd mov sp, r7
+ 8000f90: bd80 pop {r7, pc}
+ 8000f92: bf00 nop
+ 8000f94: 2000012c .word 0x2000012c
+ 8000f98: 40001000 .word 0x40001000
+
+08000f9c <_ZL19MX_USART6_UART_Initv>:
+ * @brief USART6 Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_USART6_UART_Init(void)
+{
8000f9c: b580 push {r7, lr}
- 8000f9e: b082 sub sp, #8
- 8000fa0: af00 add r7, sp, #0
-
- /* DMA controller clock enable */
- __HAL_RCC_DMA2_CLK_ENABLE();
- 8000fa2: 4b10 ldr r3, [pc, #64] ; (8000fe4 <_ZL11MX_DMA_Initv+0x48>)
- 8000fa4: 6b1b ldr r3, [r3, #48] ; 0x30
- 8000fa6: 4a0f ldr r2, [pc, #60] ; (8000fe4 <_ZL11MX_DMA_Initv+0x48>)
- 8000fa8: f443 0380 orr.w r3, r3, #4194304 ; 0x400000
- 8000fac: 6313 str r3, [r2, #48] ; 0x30
- 8000fae: 4b0d ldr r3, [pc, #52] ; (8000fe4 <_ZL11MX_DMA_Initv+0x48>)
- 8000fb0: 6b1b ldr r3, [r3, #48] ; 0x30
- 8000fb2: f403 0380 and.w r3, r3, #4194304 ; 0x400000
- 8000fb6: 607b str r3, [r7, #4]
- 8000fb8: 687b ldr r3, [r7, #4]
-
- /* DMA interrupt init */
- /* DMA2_Stream1_IRQn interrupt configuration */
- HAL_NVIC_SetPriority(DMA2_Stream1_IRQn, 2, 0);
- 8000fba: 2200 movs r2, #0
- 8000fbc: 2102 movs r1, #2
- 8000fbe: 2039 movs r0, #57 ; 0x39
- 8000fc0: f000 fd77 bl 8001ab2 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(DMA2_Stream1_IRQn);
- 8000fc4: 2039 movs r0, #57 ; 0x39
- 8000fc6: f000 fd90 bl 8001aea <HAL_NVIC_EnableIRQ>
- /* DMA2_Stream6_IRQn interrupt configuration */
- HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 2, 0);
- 8000fca: 2200 movs r2, #0
- 8000fcc: 2102 movs r1, #2
- 8000fce: 2045 movs r0, #69 ; 0x45
- 8000fd0: f000 fd6f bl 8001ab2 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);
- 8000fd4: 2045 movs r0, #69 ; 0x45
- 8000fd6: f000 fd88 bl 8001aea <HAL_NVIC_EnableIRQ>
+ 8000f9e: af00 add r7, sp, #0
+ /* USER CODE END USART6_Init 0 */
+
+ /* USER CODE BEGIN USART6_Init 1 */
+
+ /* USER CODE END USART6_Init 1 */
+ huart6.Instance = USART6;
+ 8000fa0: 4b17 ldr r3, [pc, #92] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fa2: 4a18 ldr r2, [pc, #96] ; (8001004 <_ZL19MX_USART6_UART_Initv+0x68>)
+ 8000fa4: 601a str r2, [r3, #0]
+ huart6.Init.BaudRate = 115200;
+ 8000fa6: 4b16 ldr r3, [pc, #88] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fa8: f44f 32e1 mov.w r2, #115200 ; 0x1c200
+ 8000fac: 605a str r2, [r3, #4]
+ huart6.Init.WordLength = UART_WORDLENGTH_9B;
+ 8000fae: 4b14 ldr r3, [pc, #80] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fb0: f44f 5280 mov.w r2, #4096 ; 0x1000
+ 8000fb4: 609a str r2, [r3, #8]
+ huart6.Init.StopBits = UART_STOPBITS_1;
+ 8000fb6: 4b12 ldr r3, [pc, #72] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fb8: 2200 movs r2, #0
+ 8000fba: 60da str r2, [r3, #12]
+ huart6.Init.Parity = UART_PARITY_ODD;
+ 8000fbc: 4b10 ldr r3, [pc, #64] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fbe: f44f 62c0 mov.w r2, #1536 ; 0x600
+ 8000fc2: 611a str r2, [r3, #16]
+ huart6.Init.Mode = UART_MODE_TX_RX;
+ 8000fc4: 4b0e ldr r3, [pc, #56] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fc6: 220c movs r2, #12
+ 8000fc8: 615a str r2, [r3, #20]
+ huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
+ 8000fca: 4b0d ldr r3, [pc, #52] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fcc: 2200 movs r2, #0
+ 8000fce: 619a str r2, [r3, #24]
+ huart6.Init.OverSampling = UART_OVERSAMPLING_16;
+ 8000fd0: 4b0b ldr r3, [pc, #44] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fd2: 2200 movs r2, #0
+ 8000fd4: 61da str r2, [r3, #28]
+ huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
+ 8000fd6: 4b0a ldr r3, [pc, #40] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fd8: 2200 movs r2, #0
+ 8000fda: 621a str r2, [r3, #32]
+ huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
+ 8000fdc: 4b08 ldr r3, [pc, #32] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fde: 2200 movs r2, #0
+ 8000fe0: 625a str r2, [r3, #36] ; 0x24
+ if (HAL_UART_Init(&huart6) != HAL_OK)
+ 8000fe2: 4807 ldr r0, [pc, #28] ; (8001000 <_ZL19MX_USART6_UART_Initv+0x64>)
+ 8000fe4: f003 f85c bl 80040a0 <HAL_UART_Init>
+ 8000fe8: 4603 mov r3, r0
+ 8000fea: 2b00 cmp r3, #0
+ 8000fec: bf14 ite ne
+ 8000fee: 2301 movne r3, #1
+ 8000ff0: 2300 moveq r3, #0
+ 8000ff2: b2db uxtb r3, r3
+ 8000ff4: 2b00 cmp r3, #0
+ 8000ff6: d001 beq.n 8000ffc <_ZL19MX_USART6_UART_Initv+0x60>
+ {
+ Error_Handler();
+ 8000ff8: f000 f934 bl 8001264 <Error_Handler>
+ }
+ /* USER CODE BEGIN USART6_Init 2 */
+
+ /* USER CODE END USART6_Init 2 */
}
- 8000fda: bf00 nop
- 8000fdc: 3708 adds r7, #8
- 8000fde: 46bd mov sp, r7
- 8000fe0: bd80 pop {r7, pc}
- 8000fe2: bf00 nop
- 8000fe4: 40023800 .word 0x40023800
-
-08000fe8 <_ZL12MX_GPIO_Initv>:
-/**
- * @brief GPIO Initialization Function
- * @param None
- * @retval None
- */
-static void MX_GPIO_Init(void) {
- 8000fe8: b580 push {r7, lr}
- 8000fea: b08c sub sp, #48 ; 0x30
- 8000fec: af00 add r7, sp, #0
- GPIO_InitTypeDef GPIO_InitStruct = { 0 };
- 8000fee: f107 031c add.w r3, r7, #28
- 8000ff2: 2200 movs r2, #0
- 8000ff4: 601a str r2, [r3, #0]
- 8000ff6: 605a str r2, [r3, #4]
- 8000ff8: 609a str r2, [r3, #8]
- 8000ffa: 60da str r2, [r3, #12]
- 8000ffc: 611a str r2, [r3, #16]
-
- /* GPIO Ports Clock Enable */
- __HAL_RCC_GPIOC_CLK_ENABLE();
- 8000ffe: 4b49 ldr r3, [pc, #292] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001000: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001002: 4a48 ldr r2, [pc, #288] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001004: f043 0304 orr.w r3, r3, #4
- 8001008: 6313 str r3, [r2, #48] ; 0x30
- 800100a: 4b46 ldr r3, [pc, #280] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 800100c: 6b1b ldr r3, [r3, #48] ; 0x30
- 800100e: f003 0304 and.w r3, r3, #4
- 8001012: 61bb str r3, [r7, #24]
- 8001014: 69bb ldr r3, [r7, #24]
- __HAL_RCC_GPIOA_CLK_ENABLE();
- 8001016: 4b43 ldr r3, [pc, #268] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001018: 6b1b ldr r3, [r3, #48] ; 0x30
- 800101a: 4a42 ldr r2, [pc, #264] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 800101c: f043 0301 orr.w r3, r3, #1
- 8001020: 6313 str r3, [r2, #48] ; 0x30
- 8001022: 4b40 ldr r3, [pc, #256] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001024: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001026: f003 0301 and.w r3, r3, #1
- 800102a: 617b str r3, [r7, #20]
- 800102c: 697b ldr r3, [r7, #20]
- __HAL_RCC_GPIOF_CLK_ENABLE();
- 800102e: 4b3d ldr r3, [pc, #244] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001030: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001032: 4a3c ldr r2, [pc, #240] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001034: f043 0320 orr.w r3, r3, #32
- 8001038: 6313 str r3, [r2, #48] ; 0x30
- 800103a: 4b3a ldr r3, [pc, #232] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 800103c: 6b1b ldr r3, [r3, #48] ; 0x30
- 800103e: f003 0320 and.w r3, r3, #32
- 8001042: 613b str r3, [r7, #16]
- 8001044: 693b ldr r3, [r7, #16]
- __HAL_RCC_GPIOE_CLK_ENABLE();
- 8001046: 4b37 ldr r3, [pc, #220] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001048: 6b1b ldr r3, [r3, #48] ; 0x30
- 800104a: 4a36 ldr r2, [pc, #216] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 800104c: f043 0310 orr.w r3, r3, #16
- 8001050: 6313 str r3, [r2, #48] ; 0x30
- 8001052: 4b34 ldr r3, [pc, #208] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001054: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001056: f003 0310 and.w r3, r3, #16
- 800105a: 60fb str r3, [r7, #12]
- 800105c: 68fb ldr r3, [r7, #12]
- __HAL_RCC_GPIOD_CLK_ENABLE();
- 800105e: 4b31 ldr r3, [pc, #196] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001060: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001062: 4a30 ldr r2, [pc, #192] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001064: f043 0308 orr.w r3, r3, #8
- 8001068: 6313 str r3, [r2, #48] ; 0x30
- 800106a: 4b2e ldr r3, [pc, #184] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 800106c: 6b1b ldr r3, [r3, #48] ; 0x30
- 800106e: f003 0308 and.w r3, r3, #8
- 8001072: 60bb str r3, [r7, #8]
- 8001074: 68bb ldr r3, [r7, #8]
- __HAL_RCC_GPIOB_CLK_ENABLE();
- 8001076: 4b2b ldr r3, [pc, #172] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001078: 6b1b ldr r3, [r3, #48] ; 0x30
- 800107a: 4a2a ldr r2, [pc, #168] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 800107c: f043 0302 orr.w r3, r3, #2
- 8001080: 6313 str r3, [r2, #48] ; 0x30
- 8001082: 4b28 ldr r3, [pc, #160] ; (8001124 <_ZL12MX_GPIO_Initv+0x13c>)
- 8001084: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001086: f003 0302 and.w r3, r3, #2
- 800108a: 607b str r3, [r7, #4]
- 800108c: 687b ldr r3, [r7, #4]
-
- /*Configure GPIO pin Output Level */
- HAL_GPIO_WritePin(GPIOF, dir2_Pin | dir1_Pin | sleep2_Pin | sleep1_Pin,
- 800108e: 2200 movs r2, #0
- 8001090: f44f 4170 mov.w r1, #61440 ; 0xf000
- 8001094: 4824 ldr r0, [pc, #144] ; (8001128 <_ZL12MX_GPIO_Initv+0x140>)
- 8001096: f001 f9f7 bl 8002488 <HAL_GPIO_WritePin>
- GPIO_PIN_RESET);
-
- /*Configure GPIO pin : current2_Pin */
- GPIO_InitStruct.Pin = current2_Pin;
- 800109a: 2301 movs r3, #1
- 800109c: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 800109e: 2303 movs r3, #3
- 80010a0: 623b str r3, [r7, #32]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80010a2: 2300 movs r3, #0
- 80010a4: 627b str r3, [r7, #36] ; 0x24
- HAL_GPIO_Init(current2_GPIO_Port, &GPIO_InitStruct);
- 80010a6: f107 031c add.w r3, r7, #28
- 80010aa: 4619 mov r1, r3
- 80010ac: 481f ldr r0, [pc, #124] ; (800112c <_ZL12MX_GPIO_Initv+0x144>)
- 80010ae: f001 f841 bl 8002134 <HAL_GPIO_Init>
-
- /*Configure GPIO pin : current1_Pin */
- GPIO_InitStruct.Pin = current1_Pin;
- 80010b2: 2308 movs r3, #8
- 80010b4: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
- 80010b6: 2303 movs r3, #3
- 80010b8: 623b str r3, [r7, #32]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80010ba: 2300 movs r3, #0
- 80010bc: 627b str r3, [r7, #36] ; 0x24
- HAL_GPIO_Init(current1_GPIO_Port, &GPIO_InitStruct);
- 80010be: f107 031c add.w r3, r7, #28
- 80010c2: 4619 mov r1, r3
- 80010c4: 481a ldr r0, [pc, #104] ; (8001130 <_ZL12MX_GPIO_Initv+0x148>)
- 80010c6: f001 f835 bl 8002134 <HAL_GPIO_Init>
-
- /*Configure GPIO pin : fault2_Pin */
- GPIO_InitStruct.Pin = fault2_Pin;
- 80010ca: 2340 movs r3, #64 ; 0x40
- 80010cc: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
- 80010ce: 2300 movs r3, #0
- 80010d0: 623b str r3, [r7, #32]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80010d2: 2300 movs r3, #0
- 80010d4: 627b str r3, [r7, #36] ; 0x24
- HAL_GPIO_Init(fault2_GPIO_Port, &GPIO_InitStruct);
- 80010d6: f107 031c add.w r3, r7, #28
- 80010da: 4619 mov r1, r3
- 80010dc: 4814 ldr r0, [pc, #80] ; (8001130 <_ZL12MX_GPIO_Initv+0x148>)
- 80010de: f001 f829 bl 8002134 <HAL_GPIO_Init>
-
- /*Configure GPIO pins : dir2_Pin dir1_Pin sleep2_Pin sleep1_Pin */
- GPIO_InitStruct.Pin = dir2_Pin | dir1_Pin | sleep2_Pin | sleep1_Pin;
- 80010e2: f44f 4370 mov.w r3, #61440 ; 0xf000
- 80010e6: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
- 80010e8: 2301 movs r3, #1
- 80010ea: 623b str r3, [r7, #32]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80010ec: 2300 movs r3, #0
- 80010ee: 627b str r3, [r7, #36] ; 0x24
- GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 80010f0: 2300 movs r3, #0
- 80010f2: 62bb str r3, [r7, #40] ; 0x28
- HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
- 80010f4: f107 031c add.w r3, r7, #28
- 80010f8: 4619 mov r1, r3
- 80010fa: 480b ldr r0, [pc, #44] ; (8001128 <_ZL12MX_GPIO_Initv+0x140>)
- 80010fc: f001 f81a bl 8002134 <HAL_GPIO_Init>
-
- /*Configure GPIO pin : fault1_Pin */
- GPIO_InitStruct.Pin = fault1_Pin;
- 8001100: f44f 7300 mov.w r3, #512 ; 0x200
- 8001104: 61fb str r3, [r7, #28]
- GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
- 8001106: 2300 movs r3, #0
- 8001108: 623b str r3, [r7, #32]
- GPIO_InitStruct.Pull = GPIO_NOPULL;
- 800110a: 2300 movs r3, #0
- 800110c: 627b str r3, [r7, #36] ; 0x24
- HAL_GPIO_Init(fault1_GPIO_Port, &GPIO_InitStruct);
- 800110e: f107 031c add.w r3, r7, #28
- 8001112: 4619 mov r1, r3
- 8001114: 4807 ldr r0, [pc, #28] ; (8001134 <_ZL12MX_GPIO_Initv+0x14c>)
- 8001116: f001 f80d bl 8002134 <HAL_GPIO_Init>
+ 8000ffc: bf00 nop
+ 8000ffe: bd80 pop {r7, pc}
+ 8001000: 2000016c .word 0x2000016c
+ 8001004: 40011400 .word 0x40011400
+
+08001008 <_ZL12MX_GPIO_Initv>:
+ * @brief GPIO Initialization Function
+ * @param None
+ * @retval None
+ */
+static void MX_GPIO_Init(void)
+{
+ 8001008: b580 push {r7, lr}
+ 800100a: b08c sub sp, #48 ; 0x30
+ 800100c: af00 add r7, sp, #0
+ GPIO_InitTypeDef GPIO_InitStruct = {0};
+ 800100e: f107 031c add.w r3, r7, #28
+ 8001012: 2200 movs r2, #0
+ 8001014: 601a str r2, [r3, #0]
+ 8001016: 605a str r2, [r3, #4]
+ 8001018: 609a str r2, [r3, #8]
+ 800101a: 60da str r2, [r3, #12]
+ 800101c: 611a str r2, [r3, #16]
+
+ /* GPIO Ports Clock Enable */
+ __HAL_RCC_GPIOC_CLK_ENABLE();
+ 800101e: 4b49 ldr r3, [pc, #292] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001020: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001022: 4a48 ldr r2, [pc, #288] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001024: f043 0304 orr.w r3, r3, #4
+ 8001028: 6313 str r3, [r2, #48] ; 0x30
+ 800102a: 4b46 ldr r3, [pc, #280] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 800102c: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800102e: f003 0304 and.w r3, r3, #4
+ 8001032: 61bb str r3, [r7, #24]
+ 8001034: 69bb ldr r3, [r7, #24]
+ __HAL_RCC_GPIOA_CLK_ENABLE();
+ 8001036: 4b43 ldr r3, [pc, #268] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001038: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800103a: 4a42 ldr r2, [pc, #264] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 800103c: f043 0301 orr.w r3, r3, #1
+ 8001040: 6313 str r3, [r2, #48] ; 0x30
+ 8001042: 4b40 ldr r3, [pc, #256] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001044: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001046: f003 0301 and.w r3, r3, #1
+ 800104a: 617b str r3, [r7, #20]
+ 800104c: 697b ldr r3, [r7, #20]
+ __HAL_RCC_GPIOF_CLK_ENABLE();
+ 800104e: 4b3d ldr r3, [pc, #244] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001050: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001052: 4a3c ldr r2, [pc, #240] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001054: f043 0320 orr.w r3, r3, #32
+ 8001058: 6313 str r3, [r2, #48] ; 0x30
+ 800105a: 4b3a ldr r3, [pc, #232] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 800105c: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800105e: f003 0320 and.w r3, r3, #32
+ 8001062: 613b str r3, [r7, #16]
+ 8001064: 693b ldr r3, [r7, #16]
+ __HAL_RCC_GPIOE_CLK_ENABLE();
+ 8001066: 4b37 ldr r3, [pc, #220] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001068: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800106a: 4a36 ldr r2, [pc, #216] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 800106c: f043 0310 orr.w r3, r3, #16
+ 8001070: 6313 str r3, [r2, #48] ; 0x30
+ 8001072: 4b34 ldr r3, [pc, #208] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001074: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001076: f003 0310 and.w r3, r3, #16
+ 800107a: 60fb str r3, [r7, #12]
+ 800107c: 68fb ldr r3, [r7, #12]
+ __HAL_RCC_GPIOD_CLK_ENABLE();
+ 800107e: 4b31 ldr r3, [pc, #196] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001080: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001082: 4a30 ldr r2, [pc, #192] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001084: f043 0308 orr.w r3, r3, #8
+ 8001088: 6313 str r3, [r2, #48] ; 0x30
+ 800108a: 4b2e ldr r3, [pc, #184] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 800108c: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800108e: f003 0308 and.w r3, r3, #8
+ 8001092: 60bb str r3, [r7, #8]
+ 8001094: 68bb ldr r3, [r7, #8]
+ __HAL_RCC_GPIOB_CLK_ENABLE();
+ 8001096: 4b2b ldr r3, [pc, #172] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 8001098: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800109a: 4a2a ldr r2, [pc, #168] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 800109c: f043 0302 orr.w r3, r3, #2
+ 80010a0: 6313 str r3, [r2, #48] ; 0x30
+ 80010a2: 4b28 ldr r3, [pc, #160] ; (8001144 <_ZL12MX_GPIO_Initv+0x13c>)
+ 80010a4: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80010a6: f003 0302 and.w r3, r3, #2
+ 80010aa: 607b str r3, [r7, #4]
+ 80010ac: 687b ldr r3, [r7, #4]
+
+ /*Configure GPIO pin Output Level */
+ HAL_GPIO_WritePin(GPIOF, dir2_Pin|dir1_Pin|sleep2_Pin|sleep1_Pin, GPIO_PIN_RESET);
+ 80010ae: 2200 movs r2, #0
+ 80010b0: f44f 4170 mov.w r1, #61440 ; 0xf000
+ 80010b4: 4824 ldr r0, [pc, #144] ; (8001148 <_ZL12MX_GPIO_Initv+0x140>)
+ 80010b6: f000 fecd bl 8001e54 <HAL_GPIO_WritePin>
+
+ /*Configure GPIO pin : current2_Pin */
+ GPIO_InitStruct.Pin = current2_Pin;
+ 80010ba: 2301 movs r3, #1
+ 80010bc: 61fb str r3, [r7, #28]
+ GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
+ 80010be: 2303 movs r3, #3
+ 80010c0: 623b str r3, [r7, #32]
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ 80010c2: 2300 movs r3, #0
+ 80010c4: 627b str r3, [r7, #36] ; 0x24
+ HAL_GPIO_Init(current2_GPIO_Port, &GPIO_InitStruct);
+ 80010c6: f107 031c add.w r3, r7, #28
+ 80010ca: 4619 mov r1, r3
+ 80010cc: 481f ldr r0, [pc, #124] ; (800114c <_ZL12MX_GPIO_Initv+0x144>)
+ 80010ce: f000 fd17 bl 8001b00 <HAL_GPIO_Init>
+
+ /*Configure GPIO pin : current1_Pin */
+ GPIO_InitStruct.Pin = current1_Pin;
+ 80010d2: 2308 movs r3, #8
+ 80010d4: 61fb str r3, [r7, #28]
+ GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
+ 80010d6: 2303 movs r3, #3
+ 80010d8: 623b str r3, [r7, #32]
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ 80010da: 2300 movs r3, #0
+ 80010dc: 627b str r3, [r7, #36] ; 0x24
+ HAL_GPIO_Init(current1_GPIO_Port, &GPIO_InitStruct);
+ 80010de: f107 031c add.w r3, r7, #28
+ 80010e2: 4619 mov r1, r3
+ 80010e4: 481a ldr r0, [pc, #104] ; (8001150 <_ZL12MX_GPIO_Initv+0x148>)
+ 80010e6: f000 fd0b bl 8001b00 <HAL_GPIO_Init>
+
+ /*Configure GPIO pin : fault2_Pin */
+ GPIO_InitStruct.Pin = fault2_Pin;
+ 80010ea: 2340 movs r3, #64 ; 0x40
+ 80010ec: 61fb str r3, [r7, #28]
+ GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
+ 80010ee: 2300 movs r3, #0
+ 80010f0: 623b str r3, [r7, #32]
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ 80010f2: 2300 movs r3, #0
+ 80010f4: 627b str r3, [r7, #36] ; 0x24
+ HAL_GPIO_Init(fault2_GPIO_Port, &GPIO_InitStruct);
+ 80010f6: f107 031c add.w r3, r7, #28
+ 80010fa: 4619 mov r1, r3
+ 80010fc: 4814 ldr r0, [pc, #80] ; (8001150 <_ZL12MX_GPIO_Initv+0x148>)
+ 80010fe: f000 fcff bl 8001b00 <HAL_GPIO_Init>
+
+ /*Configure GPIO pins : dir2_Pin dir1_Pin sleep2_Pin sleep1_Pin */
+ GPIO_InitStruct.Pin = dir2_Pin|dir1_Pin|sleep2_Pin|sleep1_Pin;
+ 8001102: f44f 4370 mov.w r3, #61440 ; 0xf000
+ 8001106: 61fb str r3, [r7, #28]
+ GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
+ 8001108: 2301 movs r3, #1
+ 800110a: 623b str r3, [r7, #32]
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ 800110c: 2300 movs r3, #0
+ 800110e: 627b str r3, [r7, #36] ; 0x24
+ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
+ 8001110: 2300 movs r3, #0
+ 8001112: 62bb str r3, [r7, #40] ; 0x28
+ HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
+ 8001114: f107 031c add.w r3, r7, #28
+ 8001118: 4619 mov r1, r3
+ 800111a: 480b ldr r0, [pc, #44] ; (8001148 <_ZL12MX_GPIO_Initv+0x140>)
+ 800111c: f000 fcf0 bl 8001b00 <HAL_GPIO_Init>
+
+ /*Configure GPIO pin : fault1_Pin */
+ GPIO_InitStruct.Pin = fault1_Pin;
+ 8001120: f44f 7300 mov.w r3, #512 ; 0x200
+ 8001124: 61fb str r3, [r7, #28]
+ GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
+ 8001126: 2300 movs r3, #0
+ 8001128: 623b str r3, [r7, #32]
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ 800112a: 2300 movs r3, #0
+ 800112c: 627b str r3, [r7, #36] ; 0x24
+ HAL_GPIO_Init(fault1_GPIO_Port, &GPIO_InitStruct);
+ 800112e: f107 031c add.w r3, r7, #28
+ 8001132: 4619 mov r1, r3
+ 8001134: 4807 ldr r0, [pc, #28] ; (8001154 <_ZL12MX_GPIO_Initv+0x14c>)
+ 8001136: f000 fce3 bl 8001b00 <HAL_GPIO_Init>
}
- 800111a: bf00 nop
- 800111c: 3730 adds r7, #48 ; 0x30
- 800111e: 46bd mov sp, r7
- 8001120: bd80 pop {r7, pc}
- 8001122: bf00 nop
- 8001124: 40023800 .word 0x40023800
- 8001128: 40021400 .word 0x40021400
- 800112c: 40020800 .word 0x40020800
- 8001130: 40020000 .word 0x40020000
- 8001134: 40021000 .word 0x40021000
-
-08001138 <HAL_TIM_PeriodElapsedCallback>:
+ 800113a: bf00 nop
+ 800113c: 3730 adds r7, #48 ; 0x30
+ 800113e: 46bd mov sp, r7
+ 8001140: bd80 pop {r7, pc}
+ 8001142: bf00 nop
+ 8001144: 40023800 .word 0x40023800
+ 8001148: 40021400 .word 0x40021400
+ 800114c: 40020800 .word 0x40020800
+ 8001150: 40020000 .word 0x40020000
+ 8001154: 40021000 .word 0x40021000
+
+08001158 <HAL_TIM_PeriodElapsedCallback>:
/* USER CODE BEGIN 4 */
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
- 8001138: b580 push {r7, lr}
- 800113a: b086 sub sp, #24
- 800113c: af00 add r7, sp, #0
- 800113e: 6078 str r0, [r7, #4]
- if (htim->Instance == TIM3) {
- 8001140: 687b ldr r3, [r7, #4]
- 8001142: 681b ldr r3, [r3, #0]
- 8001144: 4a12 ldr r2, [pc, #72] ; (8001190 <HAL_TIM_PeriodElapsedCallback+0x58>)
- 8001146: 4293 cmp r3, r2
- 8001148: d11d bne.n 8001186 <HAL_TIM_PeriodElapsedCallback+0x4e>
- float left_measure = left_encoder.GetLinearVelocity();
- 800114a: 4812 ldr r0, [pc, #72] ; (8001194 <HAL_TIM_PeriodElapsedCallback+0x5c>)
- 800114c: f7ff fa6e bl 800062c <_ZN7Encoder17GetLinearVelocityEv>
- 8001150: ed87 0a05 vstr s0, [r7, #20]
- float right_measure = right_encoder.GetLinearVelocity();
- 8001154: 4810 ldr r0, [pc, #64] ; (8001198 <HAL_TIM_PeriodElapsedCallback+0x60>)
- 8001156: f7ff fa69 bl 800062c <_ZN7Encoder17GetLinearVelocityEv>
- 800115a: ed87 0a04 vstr s0, [r7, #16]
- int left_duty_cycle = left_pid.update(left_measure);
- 800115e: ed97 0a05 vldr s0, [r7, #20]
- 8001162: 480e ldr r0, [pc, #56] ; (800119c <HAL_TIM_PeriodElapsedCallback+0x64>)
- 8001164: f7ff fbd6 bl 8000914 <_ZN3Pid6updateEf>
- 8001168: 60f8 str r0, [r7, #12]
- int right_duty_cycle = right_pid.update(right_measure);
- 800116a: ed97 0a04 vldr s0, [r7, #16]
- 800116e: 480c ldr r0, [pc, #48] ; (80011a0 <HAL_TIM_PeriodElapsedCallback+0x68>)
- 8001170: f7ff fbd0 bl 8000914 <_ZN3Pid6updateEf>
- 8001174: 60b8 str r0, [r7, #8]
-
- left_motor.set_speed(left_duty_cycle);
- 8001176: 68f9 ldr r1, [r7, #12]
- 8001178: 480a ldr r0, [pc, #40] ; (80011a4 <HAL_TIM_PeriodElapsedCallback+0x6c>)
- 800117a: f7ff fb08 bl 800078e <_ZN15MotorController9set_speedEi>
- right_motor.set_speed(right_duty_cycle);
- 800117e: 68b9 ldr r1, [r7, #8]
- 8001180: 4809 ldr r0, [pc, #36] ; (80011a8 <HAL_TIM_PeriodElapsedCallback+0x70>)
- 8001182: f7ff fb04 bl 800078e <_ZN15MotorController9set_speedEi>
- }
+ 8001158: b580 push {r7, lr}
+ 800115a: b084 sub sp, #16
+ 800115c: af00 add r7, sp, #0
+ 800115e: 6078 str r0, [r7, #4]
+ if (htim->Instance == TIM3) {
+ 8001160: 687b ldr r3, [r7, #4]
+ 8001162: 681b ldr r3, [r3, #0]
+ 8001164: 4a16 ldr r2, [pc, #88] ; (80011c0 <HAL_TIM_PeriodElapsedCallback+0x68>)
+ 8001166: 4293 cmp r3, r2
+ 8001168: d125 bne.n 80011b6 <HAL_TIM_PeriodElapsedCallback+0x5e>
+
+ //PID control
+
+ float left_measure = left_encoder.GetLinearVelocity();
+ 800116a: 4816 ldr r0, [pc, #88] ; (80011c4 <HAL_TIM_PeriodElapsedCallback+0x6c>)
+ 800116c: f7ff fa5e bl 800062c <_ZN7Encoder17GetLinearVelocityEv>
+ 8001170: ed87 0a03 vstr s0, [r7, #12]
+ float right_measure = right_encoder.GetLinearVelocity();
+ 8001174: 4814 ldr r0, [pc, #80] ; (80011c8 <HAL_TIM_PeriodElapsedCallback+0x70>)
+ 8001176: f7ff fa59 bl 800062c <_ZN7Encoder17GetLinearVelocityEv>
+ 800117a: ed87 0a02 vstr s0, [r7, #8]
+ left_dutycycle = left_pid.update(left_measure);
+ 800117e: ed97 0a03 vldr s0, [r7, #12]
+ 8001182: 4812 ldr r0, [pc, #72] ; (80011cc <HAL_TIM_PeriodElapsedCallback+0x74>)
+ 8001184: f7ff fbd5 bl 8000932 <_ZN3Pid6updateEf>
+ 8001188: 4602 mov r2, r0
+ 800118a: 4b11 ldr r3, [pc, #68] ; (80011d0 <HAL_TIM_PeriodElapsedCallback+0x78>)
+ 800118c: 601a str r2, [r3, #0]
+ right_dutycycle = right_pid.update(right_measure);
+ 800118e: ed97 0a02 vldr s0, [r7, #8]
+ 8001192: 4810 ldr r0, [pc, #64] ; (80011d4 <HAL_TIM_PeriodElapsedCallback+0x7c>)
+ 8001194: f7ff fbcd bl 8000932 <_ZN3Pid6updateEf>
+ 8001198: 4602 mov r2, r0
+ 800119a: 4b0f ldr r3, [pc, #60] ; (80011d8 <HAL_TIM_PeriodElapsedCallback+0x80>)
+ 800119c: 601a str r2, [r3, #0]
+
+ left_motor.set_speed(left_dutycycle);
+ 800119e: 4b0c ldr r3, [pc, #48] ; (80011d0 <HAL_TIM_PeriodElapsedCallback+0x78>)
+ 80011a0: 681b ldr r3, [r3, #0]
+ 80011a2: 4619 mov r1, r3
+ 80011a4: 480d ldr r0, [pc, #52] ; (80011dc <HAL_TIM_PeriodElapsedCallback+0x84>)
+ 80011a6: f7ff faf2 bl 800078e <_ZN15MotorController9set_speedEi>
+ right_motor.set_speed(right_dutycycle);
+ 80011aa: 4b0b ldr r3, [pc, #44] ; (80011d8 <HAL_TIM_PeriodElapsedCallback+0x80>)
+ 80011ac: 681b ldr r3, [r3, #0]
+ 80011ae: 4619 mov r1, r3
+ 80011b0: 480b ldr r0, [pc, #44] ; (80011e0 <HAL_TIM_PeriodElapsedCallback+0x88>)
+ 80011b2: f7ff faec bl 800078e <_ZN15MotorController9set_speedEi>
+ }
}
- 8001186: bf00 nop
- 8001188: 3718 adds r7, #24
- 800118a: 46bd mov sp, r7
- 800118c: bd80 pop {r7, pc}
- 800118e: bf00 nop
- 8001190: 40000400 .word 0x40000400
- 8001194: 200002a8 .word 0x200002a8
- 8001198: 200002c4 .word 0x200002c4
- 800119c: 20000328 .word 0x20000328
- 80011a0: 2000034c .word 0x2000034c
- 80011a4: 20000394 .word 0x20000394
- 80011a8: 200003ac .word 0x200003ac
-
-080011ac <Error_Handler>:
+ 80011b6: bf00 nop
+ 80011b8: 3710 adds r7, #16
+ 80011ba: 46bd mov sp, r7
+ 80011bc: bd80 pop {r7, pc}
+ 80011be: bf00 nop
+ 80011c0: 40000400 .word 0x40000400
+ 80011c4: 200001ec .word 0x200001ec
+ 80011c8: 20000208 .word 0x20000208
+ 80011cc: 2000026c .word 0x2000026c
+ 80011d0: 200002d8 .word 0x200002d8
+ 80011d4: 20000290 .word 0x20000290
+ 80011d8: 200002dc .word 0x200002dc
+ 80011dc: 200002e0 .word 0x200002e0
+ 80011e0: 200002f8 .word 0x200002f8
+
+080011e4 <HAL_UART_RxCpltCallback>:
+
+void HAL_UART_RxCpltCallback(UART_HandleTypeDef *UartHandle) {
+ 80011e4: b580 push {r7, lr}
+ 80011e6: b084 sub sp, #16
+ 80011e8: af00 add r7, sp, #0
+ 80011ea: 6078 str r0, [r7, #4]
+ float left_setpoint;
+ float right_setpoint;
+
+ left_setpoint = -(vel_msg.angular_velocity * baseline)
+ + vel_msg.linear_velocity;
+ 80011ec: 4b17 ldr r3, [pc, #92] ; (800124c <HAL_UART_RxCpltCallback+0x68>)
+ 80011ee: ed93 7a01 vldr s14, [r3, #4]
+ left_setpoint = -(vel_msg.angular_velocity * baseline)
+ 80011f2: 4b16 ldr r3, [pc, #88] ; (800124c <HAL_UART_RxCpltCallback+0x68>)
+ 80011f4: edd3 6a00 vldr s13, [r3]
+ 80011f8: 4b15 ldr r3, [pc, #84] ; (8001250 <HAL_UART_RxCpltCallback+0x6c>)
+ 80011fa: edd3 7a00 vldr s15, [r3]
+ 80011fe: ee66 7aa7 vmul.f32 s15, s13, s15
+ 8001202: ee77 7a67 vsub.f32 s15, s14, s15
+ 8001206: edc7 7a03 vstr s15, [r7, #12]
+ right_setpoint = vel_msg.linear_velocity * 2 - left_setpoint;
+ 800120a: 4b10 ldr r3, [pc, #64] ; (800124c <HAL_UART_RxCpltCallback+0x68>)
+ 800120c: edd3 7a01 vldr s15, [r3, #4]
+ 8001210: ee37 7aa7 vadd.f32 s14, s15, s15
+ 8001214: edd7 7a03 vldr s15, [r7, #12]
+ 8001218: ee77 7a67 vsub.f32 s15, s14, s15
+ 800121c: edc7 7a02 vstr s15, [r7, #8]
+
+ left_pid.set(left_setpoint);
+ 8001220: ed97 0a03 vldr s0, [r7, #12]
+ 8001224: 480b ldr r0, [pc, #44] ; (8001254 <HAL_UART_RxCpltCallback+0x70>)
+ 8001226: f7ff fb75 bl 8000914 <_ZN3Pid3setEf>
+ right_pid.set(right_setpoint);
+ 800122a: ed97 0a02 vldr s0, [r7, #8]
+ 800122e: 480a ldr r0, [pc, #40] ; (8001258 <HAL_UART_RxCpltCallback+0x74>)
+ 8001230: f7ff fb70 bl 8000914 <_ZN3Pid3setEf>
+
+ //TODO cross pid
+
+ //abilita interrupt nuovamente
+ HAL_UART_Receive_IT(&huart6, rx_buffer, 8);
+ 8001234: 4b09 ldr r3, [pc, #36] ; (800125c <HAL_UART_RxCpltCallback+0x78>)
+ 8001236: 681b ldr r3, [r3, #0]
+ 8001238: 2208 movs r2, #8
+ 800123a: 4619 mov r1, r3
+ 800123c: 4808 ldr r0, [pc, #32] ; (8001260 <HAL_UART_RxCpltCallback+0x7c>)
+ 800123e: f002 ff7d bl 800413c <HAL_UART_Receive_IT>
+}
+ 8001242: bf00 nop
+ 8001244: 3710 adds r7, #16
+ 8001246: 46bd mov sp, r7
+ 8001248: bd80 pop {r7, pc}
+ 800124a: bf00 nop
+ 800124c: 20000324 .word 0x20000324
+ 8001250: 20000000 .word 0x20000000
+ 8001254: 2000026c .word 0x2000026c
+ 8001258: 20000290 .word 0x20000290
+ 800125c: 20000314 .word 0x20000314
+ 8001260: 2000016c .word 0x2000016c
+
+08001264 <Error_Handler>:
/**
- * @brief This function is executed in case of error occurrence.
- * @retval None
- */
-void Error_Handler(void) {
- 80011ac: b480 push {r7}
- 80011ae: af00 add r7, sp, #0
- /* USER CODE BEGIN Error_Handler_Debug */
- /* User can add his own implementation to report the HAL error return state */
+ * @brief This function is executed in case of error occurrence.
+ * @retval None
+ */
+void Error_Handler(void)
+{
+ 8001264: b480 push {r7}
+ 8001266: af00 add r7, sp, #0
+ /* USER CODE BEGIN Error_Handler_Debug */
+ /* User can add his own implementation to report the HAL error return state */
- /* USER CODE END Error_Handler_Debug */
+ /* USER CODE END Error_Handler_Debug */
}
- 80011b0: bf00 nop
- 80011b2: 46bd mov sp, r7
- 80011b4: f85d 7b04 ldr.w r7, [sp], #4
- 80011b8: 4770 bx lr
+ 8001268: bf00 nop
+ 800126a: 46bd mov sp, r7
+ 800126c: f85d 7b04 ldr.w r7, [sp], #4
+ 8001270: 4770 bx lr
...
-080011bc <_Z41__static_initialization_and_destruction_0ii>:
- 80011bc: b5f0 push {r4, r5, r6, r7, lr}
- 80011be: b08f sub sp, #60 ; 0x3c
- 80011c0: af0c add r7, sp, #48 ; 0x30
- 80011c2: 6078 str r0, [r7, #4]
- 80011c4: 6039 str r1, [r7, #0]
- 80011c6: 687b ldr r3, [r7, #4]
- 80011c8: 2b01 cmp r3, #1
- 80011ca: d161 bne.n 8001290 <_Z41__static_initialization_and_destruction_0ii+0xd4>
- 80011cc: 683b ldr r3, [r7, #0]
- 80011ce: f64f 72ff movw r2, #65535 ; 0xffff
- 80011d2: 4293 cmp r3, r2
- 80011d4: d15c bne.n 8001290 <_Z41__static_initialization_and_destruction_0ii+0xd4>
+08001274 <_Z41__static_initialization_and_destruction_0ii>:
+ 8001274: b5f0 push {r4, r5, r6, r7, lr}
+ 8001276: b08f sub sp, #60 ; 0x3c
+ 8001278: af0c add r7, sp, #48 ; 0x30
+ 800127a: 6078 str r0, [r7, #4]
+ 800127c: 6039 str r1, [r7, #0]
+ 800127e: 687b ldr r3, [r7, #4]
+ 8001280: 2b01 cmp r3, #1
+ 8001282: d161 bne.n 8001348 <_Z41__static_initialization_and_destruction_0ii+0xd4>
+ 8001284: 683b ldr r3, [r7, #0]
+ 8001286: f64f 72ff movw r2, #65535 ; 0xffff
+ 800128a: 4293 cmp r3, r2
+ 800128c: d15c bne.n 8001348 <_Z41__static_initialization_and_destruction_0ii+0xd4>
Encoder left_encoder = Encoder(&htim5);
- 80011d6: 4930 ldr r1, [pc, #192] ; (8001298 <_Z41__static_initialization_and_destruction_0ii+0xdc>)
- 80011d8: 4830 ldr r0, [pc, #192] ; (800129c <_Z41__static_initialization_and_destruction_0ii+0xe0>)
- 80011da: f7ff f9d5 bl 8000588 <_ZN7EncoderC1EP17TIM_HandleTypeDef>
+ 800128e: 4930 ldr r1, [pc, #192] ; (8001350 <_Z41__static_initialization_and_destruction_0ii+0xdc>)
+ 8001290: 4830 ldr r0, [pc, #192] ; (8001354 <_Z41__static_initialization_and_destruction_0ii+0xe0>)
+ 8001292: f7ff f979 bl 8000588 <_ZN7EncoderC1EP17TIM_HandleTypeDef>
Encoder right_encoder = Encoder(&htim2);
- 80011de: 4930 ldr r1, [pc, #192] ; (80012a0 <_Z41__static_initialization_and_destruction_0ii+0xe4>)
- 80011e0: 4830 ldr r0, [pc, #192] ; (80012a4 <_Z41__static_initialization_and_destruction_0ii+0xe8>)
- 80011e2: f7ff f9d1 bl 8000588 <_ZN7EncoderC1EP17TIM_HandleTypeDef>
+ 8001296: 4930 ldr r1, [pc, #192] ; (8001358 <_Z41__static_initialization_and_destruction_0ii+0xe4>)
+ 8001298: 4830 ldr r0, [pc, #192] ; (800135c <_Z41__static_initialization_and_destruction_0ii+0xe8>)
+ 800129a: f7ff f975 bl 8000588 <_ZN7EncoderC1EP17TIM_HandleTypeDef>
Odometry odom = Odometry(left_encoder, right_encoder);
- 80011e6: 4e2d ldr r6, [pc, #180] ; (800129c <_Z41__static_initialization_and_destruction_0ii+0xe0>)
- 80011e8: 4b2e ldr r3, [pc, #184] ; (80012a4 <_Z41__static_initialization_and_destruction_0ii+0xe8>)
- 80011ea: ac04 add r4, sp, #16
- 80011ec: 461d mov r5, r3
- 80011ee: cd0f ldmia r5!, {r0, r1, r2, r3}
- 80011f0: c40f stmia r4!, {r0, r1, r2, r3}
- 80011f2: e895 0007 ldmia.w r5, {r0, r1, r2}
- 80011f6: e884 0007 stmia.w r4, {r0, r1, r2}
- 80011fa: 466c mov r4, sp
- 80011fc: f106 030c add.w r3, r6, #12
- 8001200: cb0f ldmia r3, {r0, r1, r2, r3}
- 8001202: e884 000f stmia.w r4, {r0, r1, r2, r3}
- 8001206: e896 000e ldmia.w r6, {r1, r2, r3}
- 800120a: 4827 ldr r0, [pc, #156] ; (80012a8 <_Z41__static_initialization_and_destruction_0ii+0xec>)
- 800120c: f7ff fa6a bl 80006e4 <_ZN8OdometryC1E7EncoderS0_>
+ 800129e: 4e2d ldr r6, [pc, #180] ; (8001354 <_Z41__static_initialization_and_destruction_0ii+0xe0>)
+ 80012a0: 4b2e ldr r3, [pc, #184] ; (800135c <_Z41__static_initialization_and_destruction_0ii+0xe8>)
+ 80012a2: ac04 add r4, sp, #16
+ 80012a4: 461d mov r5, r3
+ 80012a6: cd0f ldmia r5!, {r0, r1, r2, r3}
+ 80012a8: c40f stmia r4!, {r0, r1, r2, r3}
+ 80012aa: e895 0007 ldmia.w r5, {r0, r1, r2}
+ 80012ae: e884 0007 stmia.w r4, {r0, r1, r2}
+ 80012b2: 466c mov r4, sp
+ 80012b4: f106 030c add.w r3, r6, #12
+ 80012b8: cb0f ldmia r3, {r0, r1, r2, r3}
+ 80012ba: e884 000f stmia.w r4, {r0, r1, r2, r3}
+ 80012be: e896 000e ldmia.w r6, {r1, r2, r3}
+ 80012c2: 4827 ldr r0, [pc, #156] ; (8001360 <_Z41__static_initialization_and_destruction_0ii+0xec>)
+ 80012c4: f7ff fa0e bl 80006e4 <_ZN8OdometryC1E7EncoderS0_>
Pid left_pid(0.5, 0.2, 0.1, 1, 790);
- 8001210: f240 3216 movw r2, #790 ; 0x316
- 8001214: 2101 movs r1, #1
- 8001216: ed9f 1a25 vldr s2, [pc, #148] ; 80012ac <_Z41__static_initialization_and_destruction_0ii+0xf0>
- 800121a: eddf 0a25 vldr s1, [pc, #148] ; 80012b0 <_Z41__static_initialization_and_destruction_0ii+0xf4>
- 800121e: eeb6 0a00 vmov.f32 s0, #96 ; 0x3f000000 0.5
- 8001222: 4824 ldr r0, [pc, #144] ; (80012b4 <_Z41__static_initialization_and_destruction_0ii+0xf8>)
- 8001224: f7ff fb44 bl 80008b0 <_ZN3PidC1Efffii>
+ 80012c8: f240 3216 movw r2, #790 ; 0x316
+ 80012cc: 2101 movs r1, #1
+ 80012ce: ed9f 1a25 vldr s2, [pc, #148] ; 8001364 <_Z41__static_initialization_and_destruction_0ii+0xf0>
+ 80012d2: eddf 0a25 vldr s1, [pc, #148] ; 8001368 <_Z41__static_initialization_and_destruction_0ii+0xf4>
+ 80012d6: eeb6 0a00 vmov.f32 s0, #96 ; 0x3f000000 0.5
+ 80012da: 4824 ldr r0, [pc, #144] ; (800136c <_Z41__static_initialization_and_destruction_0ii+0xf8>)
+ 80012dc: f7ff fae8 bl 80008b0 <_ZN3PidC1Efffii>
Pid right_pid(0.5, 0.2, 0.1, 1, 790);
- 8001228: f240 3216 movw r2, #790 ; 0x316
- 800122c: 2101 movs r1, #1
- 800122e: ed9f 1a1f vldr s2, [pc, #124] ; 80012ac <_Z41__static_initialization_and_destruction_0ii+0xf0>
- 8001232: eddf 0a1f vldr s1, [pc, #124] ; 80012b0 <_Z41__static_initialization_and_destruction_0ii+0xf4>
- 8001236: eeb6 0a00 vmov.f32 s0, #96 ; 0x3f000000 0.5
- 800123a: 481f ldr r0, [pc, #124] ; (80012b8 <_Z41__static_initialization_and_destruction_0ii+0xfc>)
- 800123c: f7ff fb38 bl 80008b0 <_ZN3PidC1Efffii>
+ 80012e0: f240 3216 movw r2, #790 ; 0x316
+ 80012e4: 2101 movs r1, #1
+ 80012e6: ed9f 1a1f vldr s2, [pc, #124] ; 8001364 <_Z41__static_initialization_and_destruction_0ii+0xf0>
+ 80012ea: eddf 0a1f vldr s1, [pc, #124] ; 8001368 <_Z41__static_initialization_and_destruction_0ii+0xf4>
+ 80012ee: eeb6 0a00 vmov.f32 s0, #96 ; 0x3f000000 0.5
+ 80012f2: 481f ldr r0, [pc, #124] ; (8001370 <_Z41__static_initialization_and_destruction_0ii+0xfc>)
+ 80012f4: f7ff fadc bl 80008b0 <_ZN3PidC1Efffii>
Pid cross_pid(0.5, 0.2, 0.1, 1, 790);
- 8001240: f240 3216 movw r2, #790 ; 0x316
- 8001244: 2101 movs r1, #1
- 8001246: ed9f 1a19 vldr s2, [pc, #100] ; 80012ac <_Z41__static_initialization_and_destruction_0ii+0xf0>
- 800124a: eddf 0a19 vldr s1, [pc, #100] ; 80012b0 <_Z41__static_initialization_and_destruction_0ii+0xf4>
- 800124e: eeb6 0a00 vmov.f32 s0, #96 ; 0x3f000000 0.5
- 8001252: 481a ldr r0, [pc, #104] ; (80012bc <_Z41__static_initialization_and_destruction_0ii+0x100>)
- 8001254: f7ff fb2c bl 80008b0 <_ZN3PidC1Efffii>
- dir1_Pin, &htim4, TIM_CHANNEL_4);
- 8001258: 230c movs r3, #12
- 800125a: 9302 str r3, [sp, #8]
- 800125c: 4b18 ldr r3, [pc, #96] ; (80012c0 <_Z41__static_initialization_and_destruction_0ii+0x104>)
- 800125e: 9301 str r3, [sp, #4]
- 8001260: f44f 5300 mov.w r3, #8192 ; 0x2000
- 8001264: 9300 str r3, [sp, #0]
- 8001266: 4b17 ldr r3, [pc, #92] ; (80012c4 <_Z41__static_initialization_and_destruction_0ii+0x108>)
- 8001268: f44f 4200 mov.w r2, #32768 ; 0x8000
- 800126c: 4915 ldr r1, [pc, #84] ; (80012c4 <_Z41__static_initialization_and_destruction_0ii+0x108>)
- 800126e: 4816 ldr r0, [pc, #88] ; (80012c8 <_Z41__static_initialization_and_destruction_0ii+0x10c>)
- 8001270: f7ff fa6c bl 800074c <_ZN15MotorControllerC1EP12GPIO_TypeDeftS1_tP17TIM_HandleTypeDefm>
- dir2_Pin, &htim4, TIM_CHANNEL_3);
- 8001274: 2308 movs r3, #8
- 8001276: 9302 str r3, [sp, #8]
- 8001278: 4b11 ldr r3, [pc, #68] ; (80012c0 <_Z41__static_initialization_and_destruction_0ii+0x104>)
- 800127a: 9301 str r3, [sp, #4]
- 800127c: f44f 5380 mov.w r3, #4096 ; 0x1000
- 8001280: 9300 str r3, [sp, #0]
- 8001282: 4b10 ldr r3, [pc, #64] ; (80012c4 <_Z41__static_initialization_and_destruction_0ii+0x108>)
- 8001284: f44f 4280 mov.w r2, #16384 ; 0x4000
- 8001288: 490e ldr r1, [pc, #56] ; (80012c4 <_Z41__static_initialization_and_destruction_0ii+0x108>)
- 800128a: 4810 ldr r0, [pc, #64] ; (80012cc <_Z41__static_initialization_and_destruction_0ii+0x110>)
- 800128c: f7ff fa5e bl 800074c <_ZN15MotorControllerC1EP12GPIO_TypeDeftS1_tP17TIM_HandleTypeDefm>
+ 80012f8: f240 3216 movw r2, #790 ; 0x316
+ 80012fc: 2101 movs r1, #1
+ 80012fe: ed9f 1a19 vldr s2, [pc, #100] ; 8001364 <_Z41__static_initialization_and_destruction_0ii+0xf0>
+ 8001302: eddf 0a19 vldr s1, [pc, #100] ; 8001368 <_Z41__static_initialization_and_destruction_0ii+0xf4>
+ 8001306: eeb6 0a00 vmov.f32 s0, #96 ; 0x3f000000 0.5
+ 800130a: 481a ldr r0, [pc, #104] ; (8001374 <_Z41__static_initialization_and_destruction_0ii+0x100>)
+ 800130c: f7ff fad0 bl 80008b0 <_ZN3PidC1Efffii>
+ TIM_CHANNEL_4);
+ 8001310: 230c movs r3, #12
+ 8001312: 9302 str r3, [sp, #8]
+ 8001314: 4b18 ldr r3, [pc, #96] ; (8001378 <_Z41__static_initialization_and_destruction_0ii+0x104>)
+ 8001316: 9301 str r3, [sp, #4]
+ 8001318: f44f 5300 mov.w r3, #8192 ; 0x2000
+ 800131c: 9300 str r3, [sp, #0]
+ 800131e: 4b17 ldr r3, [pc, #92] ; (800137c <_Z41__static_initialization_and_destruction_0ii+0x108>)
+ 8001320: f44f 4200 mov.w r2, #32768 ; 0x8000
+ 8001324: 4915 ldr r1, [pc, #84] ; (800137c <_Z41__static_initialization_and_destruction_0ii+0x108>)
+ 8001326: 4816 ldr r0, [pc, #88] ; (8001380 <_Z41__static_initialization_and_destruction_0ii+0x10c>)
+ 8001328: f7ff fa10 bl 800074c <_ZN15MotorControllerC1EP12GPIO_TypeDeftS1_tP17TIM_HandleTypeDefm>
+ TIM_CHANNEL_3);
+ 800132c: 2308 movs r3, #8
+ 800132e: 9302 str r3, [sp, #8]
+ 8001330: 4b11 ldr r3, [pc, #68] ; (8001378 <_Z41__static_initialization_and_destruction_0ii+0x104>)
+ 8001332: 9301 str r3, [sp, #4]
+ 8001334: f44f 5380 mov.w r3, #4096 ; 0x1000
+ 8001338: 9300 str r3, [sp, #0]
+ 800133a: 4b10 ldr r3, [pc, #64] ; (800137c <_Z41__static_initialization_and_destruction_0ii+0x108>)
+ 800133c: f44f 4280 mov.w r2, #16384 ; 0x4000
+ 8001340: 490e ldr r1, [pc, #56] ; (800137c <_Z41__static_initialization_and_destruction_0ii+0x108>)
+ 8001342: 4810 ldr r0, [pc, #64] ; (8001384 <_Z41__static_initialization_and_destruction_0ii+0x110>)
+ 8001344: f7ff fa02 bl 800074c <_ZN15MotorControllerC1EP12GPIO_TypeDeftS1_tP17TIM_HandleTypeDefm>
}
- 8001290: bf00 nop
- 8001292: 370c adds r7, #12
- 8001294: 46bd mov sp, r7
- 8001296: bdf0 pop {r4, r5, r6, r7, pc}
- 8001298: 200000e8 .word 0x200000e8
- 800129c: 200002a8 .word 0x200002a8
- 80012a0: 20000028 .word 0x20000028
- 80012a4: 200002c4 .word 0x200002c4
- 80012a8: 200002e0 .word 0x200002e0
- 80012ac: 3dcccccd .word 0x3dcccccd
- 80012b0: 3e4ccccd .word 0x3e4ccccd
- 80012b4: 20000328 .word 0x20000328
- 80012b8: 2000034c .word 0x2000034c
- 80012bc: 20000370 .word 0x20000370
- 80012c0: 200000a8 .word 0x200000a8
- 80012c4: 40021400 .word 0x40021400
- 80012c8: 20000394 .word 0x20000394
- 80012cc: 200003ac .word 0x200003ac
-
-080012d0 <_GLOBAL__sub_I_htim2>:
- 80012d0: b580 push {r7, lr}
- 80012d2: af00 add r7, sp, #0
- 80012d4: f64f 71ff movw r1, #65535 ; 0xffff
- 80012d8: 2001 movs r0, #1
- 80012da: f7ff ff6f bl 80011bc <_Z41__static_initialization_and_destruction_0ii>
- 80012de: bd80 pop {r7, pc}
-
-080012e0 <HAL_MspInit>:
+ 8001348: bf00 nop
+ 800134a: 370c adds r7, #12
+ 800134c: 46bd mov sp, r7
+ 800134e: bdf0 pop {r4, r5, r6, r7, pc}
+ 8001350: 200000ec .word 0x200000ec
+ 8001354: 200001ec .word 0x200001ec
+ 8001358: 2000002c .word 0x2000002c
+ 800135c: 20000208 .word 0x20000208
+ 8001360: 20000224 .word 0x20000224
+ 8001364: 3dcccccd .word 0x3dcccccd
+ 8001368: 3e4ccccd .word 0x3e4ccccd
+ 800136c: 2000026c .word 0x2000026c
+ 8001370: 20000290 .word 0x20000290
+ 8001374: 200002b4 .word 0x200002b4
+ 8001378: 200000ac .word 0x200000ac
+ 800137c: 40021400 .word 0x40021400
+ 8001380: 200002e0 .word 0x200002e0
+ 8001384: 200002f8 .word 0x200002f8
+
+08001388 <_GLOBAL__sub_I_htim2>:
+ 8001388: b580 push {r7, lr}
+ 800138a: af00 add r7, sp, #0
+ 800138c: f64f 71ff movw r1, #65535 ; 0xffff
+ 8001390: 2001 movs r0, #1
+ 8001392: f7ff ff6f bl 8001274 <_Z41__static_initialization_and_destruction_0ii>
+ 8001396: bd80 pop {r7, pc}
+
+08001398 <HAL_MspInit>:
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
/**
* Initializes the Global MSP.
*/
void HAL_MspInit(void)
{
- 80012e0: b480 push {r7}
- 80012e2: b083 sub sp, #12
- 80012e4: af00 add r7, sp, #0
+ 8001398: b480 push {r7}
+ 800139a: b083 sub sp, #12
+ 800139c: af00 add r7, sp, #0
/* USER CODE BEGIN MspInit 0 */
/* USER CODE END MspInit 0 */
__HAL_RCC_PWR_CLK_ENABLE();
- 80012e6: 4b0f ldr r3, [pc, #60] ; (8001324 <HAL_MspInit+0x44>)
- 80012e8: 6c1b ldr r3, [r3, #64] ; 0x40
- 80012ea: 4a0e ldr r2, [pc, #56] ; (8001324 <HAL_MspInit+0x44>)
- 80012ec: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 80012f0: 6413 str r3, [r2, #64] ; 0x40
- 80012f2: 4b0c ldr r3, [pc, #48] ; (8001324 <HAL_MspInit+0x44>)
- 80012f4: 6c1b ldr r3, [r3, #64] ; 0x40
- 80012f6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 80012fa: 607b str r3, [r7, #4]
- 80012fc: 687b ldr r3, [r7, #4]
+ 800139e: 4b0f ldr r3, [pc, #60] ; (80013dc <HAL_MspInit+0x44>)
+ 80013a0: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80013a2: 4a0e ldr r2, [pc, #56] ; (80013dc <HAL_MspInit+0x44>)
+ 80013a4: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
+ 80013a8: 6413 str r3, [r2, #64] ; 0x40
+ 80013aa: 4b0c ldr r3, [pc, #48] ; (80013dc <HAL_MspInit+0x44>)
+ 80013ac: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80013ae: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 80013b2: 607b str r3, [r7, #4]
+ 80013b4: 687b ldr r3, [r7, #4]
__HAL_RCC_SYSCFG_CLK_ENABLE();
- 80012fe: 4b09 ldr r3, [pc, #36] ; (8001324 <HAL_MspInit+0x44>)
- 8001300: 6c5b ldr r3, [r3, #68] ; 0x44
- 8001302: 4a08 ldr r2, [pc, #32] ; (8001324 <HAL_MspInit+0x44>)
- 8001304: f443 4380 orr.w r3, r3, #16384 ; 0x4000
- 8001308: 6453 str r3, [r2, #68] ; 0x44
- 800130a: 4b06 ldr r3, [pc, #24] ; (8001324 <HAL_MspInit+0x44>)
- 800130c: 6c5b ldr r3, [r3, #68] ; 0x44
- 800130e: f403 4380 and.w r3, r3, #16384 ; 0x4000
- 8001312: 603b str r3, [r7, #0]
- 8001314: 683b ldr r3, [r7, #0]
+ 80013b6: 4b09 ldr r3, [pc, #36] ; (80013dc <HAL_MspInit+0x44>)
+ 80013b8: 6c5b ldr r3, [r3, #68] ; 0x44
+ 80013ba: 4a08 ldr r2, [pc, #32] ; (80013dc <HAL_MspInit+0x44>)
+ 80013bc: f443 4380 orr.w r3, r3, #16384 ; 0x4000
+ 80013c0: 6453 str r3, [r2, #68] ; 0x44
+ 80013c2: 4b06 ldr r3, [pc, #24] ; (80013dc <HAL_MspInit+0x44>)
+ 80013c4: 6c5b ldr r3, [r3, #68] ; 0x44
+ 80013c6: f403 4380 and.w r3, r3, #16384 ; 0x4000
+ 80013ca: 603b str r3, [r7, #0]
+ 80013cc: 683b ldr r3, [r7, #0]
/* System interrupt init*/
/* USER CODE BEGIN MspInit 1 */
/* USER CODE END MspInit 1 */
}
- 8001316: bf00 nop
- 8001318: 370c adds r7, #12
- 800131a: 46bd mov sp, r7
- 800131c: f85d 7b04 ldr.w r7, [sp], #4
- 8001320: 4770 bx lr
- 8001322: bf00 nop
- 8001324: 40023800 .word 0x40023800
-
-08001328 <HAL_TIM_Encoder_MspInit>:
+ 80013ce: bf00 nop
+ 80013d0: 370c adds r7, #12
+ 80013d2: 46bd mov sp, r7
+ 80013d4: f85d 7b04 ldr.w r7, [sp], #4
+ 80013d8: 4770 bx lr
+ 80013da: bf00 nop
+ 80013dc: 40023800 .word 0x40023800
+
+080013e0 <HAL_TIM_Encoder_MspInit>:
* This function configures the hardware resources used in this example
* @param htim_encoder: TIM_Encoder handle pointer
* @retval None
*/
void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef* htim_encoder)
{
- 8001328: b580 push {r7, lr}
- 800132a: b08c sub sp, #48 ; 0x30
- 800132c: af00 add r7, sp, #0
- 800132e: 6078 str r0, [r7, #4]
+ 80013e0: b580 push {r7, lr}
+ 80013e2: b08c sub sp, #48 ; 0x30
+ 80013e4: af00 add r7, sp, #0
+ 80013e6: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
- 8001330: f107 031c add.w r3, r7, #28
- 8001334: 2200 movs r2, #0
- 8001336: 601a str r2, [r3, #0]
- 8001338: 605a str r2, [r3, #4]
- 800133a: 609a str r2, [r3, #8]
- 800133c: 60da str r2, [r3, #12]
- 800133e: 611a str r2, [r3, #16]
+ 80013e8: f107 031c add.w r3, r7, #28
+ 80013ec: 2200 movs r2, #0
+ 80013ee: 601a str r2, [r3, #0]
+ 80013f0: 605a str r2, [r3, #4]
+ 80013f2: 609a str r2, [r3, #8]
+ 80013f4: 60da str r2, [r3, #12]
+ 80013f6: 611a str r2, [r3, #16]
if(htim_encoder->Instance==TIM2)
- 8001340: 687b ldr r3, [r7, #4]
- 8001342: 681b ldr r3, [r3, #0]
- 8001344: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8001348: d144 bne.n 80013d4 <HAL_TIM_Encoder_MspInit+0xac>
+ 80013f8: 687b ldr r3, [r7, #4]
+ 80013fa: 681b ldr r3, [r3, #0]
+ 80013fc: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
+ 8001400: d144 bne.n 800148c <HAL_TIM_Encoder_MspInit+0xac>
{
/* USER CODE BEGIN TIM2_MspInit 0 */
/* USER CODE END TIM2_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_TIM2_CLK_ENABLE();
- 800134a: 4b3b ldr r3, [pc, #236] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 800134c: 6c1b ldr r3, [r3, #64] ; 0x40
- 800134e: 4a3a ldr r2, [pc, #232] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001350: f043 0301 orr.w r3, r3, #1
- 8001354: 6413 str r3, [r2, #64] ; 0x40
- 8001356: 4b38 ldr r3, [pc, #224] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001358: 6c1b ldr r3, [r3, #64] ; 0x40
- 800135a: f003 0301 and.w r3, r3, #1
- 800135e: 61bb str r3, [r7, #24]
- 8001360: 69bb ldr r3, [r7, #24]
+ 8001402: 4b3b ldr r3, [pc, #236] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001404: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8001406: 4a3a ldr r2, [pc, #232] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001408: f043 0301 orr.w r3, r3, #1
+ 800140c: 6413 str r3, [r2, #64] ; 0x40
+ 800140e: 4b38 ldr r3, [pc, #224] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001410: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8001412: f003 0301 and.w r3, r3, #1
+ 8001416: 61bb str r3, [r7, #24]
+ 8001418: 69bb ldr r3, [r7, #24]
__HAL_RCC_GPIOA_CLK_ENABLE();
- 8001362: 4b35 ldr r3, [pc, #212] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001364: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001366: 4a34 ldr r2, [pc, #208] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001368: f043 0301 orr.w r3, r3, #1
- 800136c: 6313 str r3, [r2, #48] ; 0x30
- 800136e: 4b32 ldr r3, [pc, #200] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001370: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001372: f003 0301 and.w r3, r3, #1
- 8001376: 617b str r3, [r7, #20]
- 8001378: 697b ldr r3, [r7, #20]
+ 800141a: 4b35 ldr r3, [pc, #212] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 800141c: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800141e: 4a34 ldr r2, [pc, #208] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001420: f043 0301 orr.w r3, r3, #1
+ 8001424: 6313 str r3, [r2, #48] ; 0x30
+ 8001426: 4b32 ldr r3, [pc, #200] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001428: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800142a: f003 0301 and.w r3, r3, #1
+ 800142e: 617b str r3, [r7, #20]
+ 8001430: 697b ldr r3, [r7, #20]
__HAL_RCC_GPIOB_CLK_ENABLE();
- 800137a: 4b2f ldr r3, [pc, #188] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 800137c: 6b1b ldr r3, [r3, #48] ; 0x30
- 800137e: 4a2e ldr r2, [pc, #184] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001380: f043 0302 orr.w r3, r3, #2
- 8001384: 6313 str r3, [r2, #48] ; 0x30
- 8001386: 4b2c ldr r3, [pc, #176] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001388: 6b1b ldr r3, [r3, #48] ; 0x30
- 800138a: f003 0302 and.w r3, r3, #2
- 800138e: 613b str r3, [r7, #16]
- 8001390: 693b ldr r3, [r7, #16]
+ 8001432: 4b2f ldr r3, [pc, #188] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001434: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001436: 4a2e ldr r2, [pc, #184] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001438: f043 0302 orr.w r3, r3, #2
+ 800143c: 6313 str r3, [r2, #48] ; 0x30
+ 800143e: 4b2c ldr r3, [pc, #176] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001440: 6b1b ldr r3, [r3, #48] ; 0x30
+ 8001442: f003 0302 and.w r3, r3, #2
+ 8001446: 613b str r3, [r7, #16]
+ 8001448: 693b ldr r3, [r7, #16]
/**TIM2 GPIO Configuration
PA5 ------> TIM2_CH1
PB3 ------> TIM2_CH2
*/
GPIO_InitStruct.Pin = encoder_dx1_Pin;
- 8001392: 2320 movs r3, #32
- 8001394: 61fb str r3, [r7, #28]
+ 800144a: 2320 movs r3, #32
+ 800144c: 61fb str r3, [r7, #28]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 8001396: 2302 movs r3, #2
- 8001398: 623b str r3, [r7, #32]
+ 800144e: 2302 movs r3, #2
+ 8001450: 623b str r3, [r7, #32]
GPIO_InitStruct.Pull = GPIO_NOPULL;
- 800139a: 2300 movs r3, #0
- 800139c: 627b str r3, [r7, #36] ; 0x24
+ 8001452: 2300 movs r3, #0
+ 8001454: 627b str r3, [r7, #36] ; 0x24
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 800139e: 2300 movs r3, #0
- 80013a0: 62bb str r3, [r7, #40] ; 0x28
+ 8001456: 2300 movs r3, #0
+ 8001458: 62bb str r3, [r7, #40] ; 0x28
GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
- 80013a2: 2301 movs r3, #1
- 80013a4: 62fb str r3, [r7, #44] ; 0x2c
+ 800145a: 2301 movs r3, #1
+ 800145c: 62fb str r3, [r7, #44] ; 0x2c
HAL_GPIO_Init(encoder_dx1_GPIO_Port, &GPIO_InitStruct);
- 80013a6: f107 031c add.w r3, r7, #28
- 80013aa: 4619 mov r1, r3
- 80013ac: 4823 ldr r0, [pc, #140] ; (800143c <HAL_TIM_Encoder_MspInit+0x114>)
- 80013ae: f000 fec1 bl 8002134 <HAL_GPIO_Init>
+ 800145e: f107 031c add.w r3, r7, #28
+ 8001462: 4619 mov r1, r3
+ 8001464: 4823 ldr r0, [pc, #140] ; (80014f4 <HAL_TIM_Encoder_MspInit+0x114>)
+ 8001466: f000 fb4b bl 8001b00 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = encoder_dx2_Pin;
- 80013b2: 2308 movs r3, #8
- 80013b4: 61fb str r3, [r7, #28]
+ 800146a: 2308 movs r3, #8
+ 800146c: 61fb str r3, [r7, #28]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 80013b6: 2302 movs r3, #2
- 80013b8: 623b str r3, [r7, #32]
+ 800146e: 2302 movs r3, #2
+ 8001470: 623b str r3, [r7, #32]
GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80013ba: 2300 movs r3, #0
- 80013bc: 627b str r3, [r7, #36] ; 0x24
+ 8001472: 2300 movs r3, #0
+ 8001474: 627b str r3, [r7, #36] ; 0x24
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 80013be: 2300 movs r3, #0
- 80013c0: 62bb str r3, [r7, #40] ; 0x28
+ 8001476: 2300 movs r3, #0
+ 8001478: 62bb str r3, [r7, #40] ; 0x28
GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
- 80013c2: 2301 movs r3, #1
- 80013c4: 62fb str r3, [r7, #44] ; 0x2c
+ 800147a: 2301 movs r3, #1
+ 800147c: 62fb str r3, [r7, #44] ; 0x2c
HAL_GPIO_Init(encoder_dx2_GPIO_Port, &GPIO_InitStruct);
- 80013c6: f107 031c add.w r3, r7, #28
- 80013ca: 4619 mov r1, r3
- 80013cc: 481c ldr r0, [pc, #112] ; (8001440 <HAL_TIM_Encoder_MspInit+0x118>)
- 80013ce: f000 feb1 bl 8002134 <HAL_GPIO_Init>
+ 800147e: f107 031c add.w r3, r7, #28
+ 8001482: 4619 mov r1, r3
+ 8001484: 481c ldr r0, [pc, #112] ; (80014f8 <HAL_TIM_Encoder_MspInit+0x118>)
+ 8001486: f000 fb3b bl 8001b00 <HAL_GPIO_Init>
/* USER CODE BEGIN TIM5_MspInit 1 */
/* USER CODE END TIM5_MspInit 1 */
}
}
- 80013d2: e02c b.n 800142e <HAL_TIM_Encoder_MspInit+0x106>
+ 800148a: e02c b.n 80014e6 <HAL_TIM_Encoder_MspInit+0x106>
else if(htim_encoder->Instance==TIM5)
- 80013d4: 687b ldr r3, [r7, #4]
- 80013d6: 681b ldr r3, [r3, #0]
- 80013d8: 4a1a ldr r2, [pc, #104] ; (8001444 <HAL_TIM_Encoder_MspInit+0x11c>)
- 80013da: 4293 cmp r3, r2
- 80013dc: d127 bne.n 800142e <HAL_TIM_Encoder_MspInit+0x106>
+ 800148c: 687b ldr r3, [r7, #4]
+ 800148e: 681b ldr r3, [r3, #0]
+ 8001490: 4a1a ldr r2, [pc, #104] ; (80014fc <HAL_TIM_Encoder_MspInit+0x11c>)
+ 8001492: 4293 cmp r3, r2
+ 8001494: d127 bne.n 80014e6 <HAL_TIM_Encoder_MspInit+0x106>
__HAL_RCC_TIM5_CLK_ENABLE();
- 80013de: 4b16 ldr r3, [pc, #88] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 80013e0: 6c1b ldr r3, [r3, #64] ; 0x40
- 80013e2: 4a15 ldr r2, [pc, #84] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 80013e4: f043 0308 orr.w r3, r3, #8
- 80013e8: 6413 str r3, [r2, #64] ; 0x40
- 80013ea: 4b13 ldr r3, [pc, #76] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 80013ec: 6c1b ldr r3, [r3, #64] ; 0x40
- 80013ee: f003 0308 and.w r3, r3, #8
- 80013f2: 60fb str r3, [r7, #12]
- 80013f4: 68fb ldr r3, [r7, #12]
+ 8001496: 4b16 ldr r3, [pc, #88] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 8001498: 6c1b ldr r3, [r3, #64] ; 0x40
+ 800149a: 4a15 ldr r2, [pc, #84] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 800149c: f043 0308 orr.w r3, r3, #8
+ 80014a0: 6413 str r3, [r2, #64] ; 0x40
+ 80014a2: 4b13 ldr r3, [pc, #76] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 80014a4: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80014a6: f003 0308 and.w r3, r3, #8
+ 80014aa: 60fb str r3, [r7, #12]
+ 80014ac: 68fb ldr r3, [r7, #12]
__HAL_RCC_GPIOA_CLK_ENABLE();
- 80013f6: 4b10 ldr r3, [pc, #64] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 80013f8: 6b1b ldr r3, [r3, #48] ; 0x30
- 80013fa: 4a0f ldr r2, [pc, #60] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 80013fc: f043 0301 orr.w r3, r3, #1
- 8001400: 6313 str r3, [r2, #48] ; 0x30
- 8001402: 4b0d ldr r3, [pc, #52] ; (8001438 <HAL_TIM_Encoder_MspInit+0x110>)
- 8001404: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001406: f003 0301 and.w r3, r3, #1
- 800140a: 60bb str r3, [r7, #8]
- 800140c: 68bb ldr r3, [r7, #8]
+ 80014ae: 4b10 ldr r3, [pc, #64] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 80014b0: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80014b2: 4a0f ldr r2, [pc, #60] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 80014b4: f043 0301 orr.w r3, r3, #1
+ 80014b8: 6313 str r3, [r2, #48] ; 0x30
+ 80014ba: 4b0d ldr r3, [pc, #52] ; (80014f0 <HAL_TIM_Encoder_MspInit+0x110>)
+ 80014bc: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80014be: f003 0301 and.w r3, r3, #1
+ 80014c2: 60bb str r3, [r7, #8]
+ 80014c4: 68bb ldr r3, [r7, #8]
GPIO_InitStruct.Pin = encoder_sx1_Pin|encoder_sx2_Pin;
- 800140e: 2303 movs r3, #3
- 8001410: 61fb str r3, [r7, #28]
+ 80014c6: 2303 movs r3, #3
+ 80014c8: 61fb str r3, [r7, #28]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 8001412: 2302 movs r3, #2
- 8001414: 623b str r3, [r7, #32]
+ 80014ca: 2302 movs r3, #2
+ 80014cc: 623b str r3, [r7, #32]
GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001416: 2300 movs r3, #0
- 8001418: 627b str r3, [r7, #36] ; 0x24
+ 80014ce: 2300 movs r3, #0
+ 80014d0: 627b str r3, [r7, #36] ; 0x24
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 800141a: 2300 movs r3, #0
- 800141c: 62bb str r3, [r7, #40] ; 0x28
+ 80014d2: 2300 movs r3, #0
+ 80014d4: 62bb str r3, [r7, #40] ; 0x28
GPIO_InitStruct.Alternate = GPIO_AF2_TIM5;
- 800141e: 2302 movs r3, #2
- 8001420: 62fb str r3, [r7, #44] ; 0x2c
+ 80014d6: 2302 movs r3, #2
+ 80014d8: 62fb str r3, [r7, #44] ; 0x2c
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
- 8001422: f107 031c add.w r3, r7, #28
- 8001426: 4619 mov r1, r3
- 8001428: 4804 ldr r0, [pc, #16] ; (800143c <HAL_TIM_Encoder_MspInit+0x114>)
- 800142a: f000 fe83 bl 8002134 <HAL_GPIO_Init>
+ 80014da: f107 031c add.w r3, r7, #28
+ 80014de: 4619 mov r1, r3
+ 80014e0: 4804 ldr r0, [pc, #16] ; (80014f4 <HAL_TIM_Encoder_MspInit+0x114>)
+ 80014e2: f000 fb0d bl 8001b00 <HAL_GPIO_Init>
}
- 800142e: bf00 nop
- 8001430: 3730 adds r7, #48 ; 0x30
- 8001432: 46bd mov sp, r7
- 8001434: bd80 pop {r7, pc}
- 8001436: bf00 nop
- 8001438: 40023800 .word 0x40023800
- 800143c: 40020000 .word 0x40020000
- 8001440: 40020400 .word 0x40020400
- 8001444: 40000c00 .word 0x40000c00
-
-08001448 <HAL_TIM_Base_MspInit>:
+ 80014e6: bf00 nop
+ 80014e8: 3730 adds r7, #48 ; 0x30
+ 80014ea: 46bd mov sp, r7
+ 80014ec: bd80 pop {r7, pc}
+ 80014ee: bf00 nop
+ 80014f0: 40023800 .word 0x40023800
+ 80014f4: 40020000 .word 0x40020000
+ 80014f8: 40020400 .word 0x40020400
+ 80014fc: 40000c00 .word 0x40000c00
+
+08001500 <HAL_TIM_Base_MspInit>:
* This function configures the hardware resources used in this example
* @param htim_base: TIM_Base handle pointer
* @retval None
*/
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
{
- 8001448: b580 push {r7, lr}
- 800144a: b086 sub sp, #24
- 800144c: af00 add r7, sp, #0
- 800144e: 6078 str r0, [r7, #4]
+ 8001500: b480 push {r7}
+ 8001502: b087 sub sp, #28
+ 8001504: af00 add r7, sp, #0
+ 8001506: 6078 str r0, [r7, #4]
if(htim_base->Instance==TIM3)
- 8001450: 687b ldr r3, [r7, #4]
- 8001452: 681b ldr r3, [r3, #0]
- 8001454: 4a23 ldr r2, [pc, #140] ; (80014e4 <HAL_TIM_Base_MspInit+0x9c>)
- 8001456: 4293 cmp r3, r2
- 8001458: d114 bne.n 8001484 <HAL_TIM_Base_MspInit+0x3c>
+ 8001508: 687b ldr r3, [r7, #4]
+ 800150a: 681b ldr r3, [r3, #0]
+ 800150c: 4a1c ldr r2, [pc, #112] ; (8001580 <HAL_TIM_Base_MspInit+0x80>)
+ 800150e: 4293 cmp r3, r2
+ 8001510: d10c bne.n 800152c <HAL_TIM_Base_MspInit+0x2c>
{
/* USER CODE BEGIN TIM3_MspInit 0 */
/* USER CODE END TIM3_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_TIM3_CLK_ENABLE();
- 800145a: 4b23 ldr r3, [pc, #140] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 800145c: 6c1b ldr r3, [r3, #64] ; 0x40
- 800145e: 4a22 ldr r2, [pc, #136] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 8001460: f043 0302 orr.w r3, r3, #2
- 8001464: 6413 str r3, [r2, #64] ; 0x40
- 8001466: 4b20 ldr r3, [pc, #128] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 8001468: 6c1b ldr r3, [r3, #64] ; 0x40
- 800146a: f003 0302 and.w r3, r3, #2
- 800146e: 617b str r3, [r7, #20]
- 8001470: 697b ldr r3, [r7, #20]
- /* TIM3 interrupt Init */
- HAL_NVIC_SetPriority(TIM3_IRQn, 2, 0);
- 8001472: 2200 movs r2, #0
- 8001474: 2102 movs r1, #2
- 8001476: 201d movs r0, #29
- 8001478: f000 fb1b bl 8001ab2 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(TIM3_IRQn);
- 800147c: 201d movs r0, #29
- 800147e: f000 fb34 bl 8001aea <HAL_NVIC_EnableIRQ>
+ 8001512: 4b1c ldr r3, [pc, #112] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001514: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8001516: 4a1b ldr r2, [pc, #108] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001518: f043 0302 orr.w r3, r3, #2
+ 800151c: 6413 str r3, [r2, #64] ; 0x40
+ 800151e: 4b19 ldr r3, [pc, #100] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001520: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8001522: f003 0302 and.w r3, r3, #2
+ 8001526: 617b str r3, [r7, #20]
+ 8001528: 697b ldr r3, [r7, #20]
/* USER CODE BEGIN TIM6_MspInit 1 */
/* USER CODE END TIM6_MspInit 1 */
}
}
- 8001482: e02a b.n 80014da <HAL_TIM_Base_MspInit+0x92>
+ 800152a: e022 b.n 8001572 <HAL_TIM_Base_MspInit+0x72>
else if(htim_base->Instance==TIM4)
- 8001484: 687b ldr r3, [r7, #4]
- 8001486: 681b ldr r3, [r3, #0]
- 8001488: 4a18 ldr r2, [pc, #96] ; (80014ec <HAL_TIM_Base_MspInit+0xa4>)
- 800148a: 4293 cmp r3, r2
- 800148c: d10c bne.n 80014a8 <HAL_TIM_Base_MspInit+0x60>
+ 800152c: 687b ldr r3, [r7, #4]
+ 800152e: 681b ldr r3, [r3, #0]
+ 8001530: 4a15 ldr r2, [pc, #84] ; (8001588 <HAL_TIM_Base_MspInit+0x88>)
+ 8001532: 4293 cmp r3, r2
+ 8001534: d10c bne.n 8001550 <HAL_TIM_Base_MspInit+0x50>
__HAL_RCC_TIM4_CLK_ENABLE();
- 800148e: 4b16 ldr r3, [pc, #88] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 8001490: 6c1b ldr r3, [r3, #64] ; 0x40
- 8001492: 4a15 ldr r2, [pc, #84] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 8001494: f043 0304 orr.w r3, r3, #4
- 8001498: 6413 str r3, [r2, #64] ; 0x40
- 800149a: 4b13 ldr r3, [pc, #76] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 800149c: 6c1b ldr r3, [r3, #64] ; 0x40
- 800149e: f003 0304 and.w r3, r3, #4
- 80014a2: 613b str r3, [r7, #16]
- 80014a4: 693b ldr r3, [r7, #16]
+ 8001536: 4b13 ldr r3, [pc, #76] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001538: 6c1b ldr r3, [r3, #64] ; 0x40
+ 800153a: 4a12 ldr r2, [pc, #72] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 800153c: f043 0304 orr.w r3, r3, #4
+ 8001540: 6413 str r3, [r2, #64] ; 0x40
+ 8001542: 4b10 ldr r3, [pc, #64] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001544: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8001546: f003 0304 and.w r3, r3, #4
+ 800154a: 613b str r3, [r7, #16]
+ 800154c: 693b ldr r3, [r7, #16]
}
- 80014a6: e018 b.n 80014da <HAL_TIM_Base_MspInit+0x92>
+ 800154e: e010 b.n 8001572 <HAL_TIM_Base_MspInit+0x72>
else if(htim_base->Instance==TIM6)
- 80014a8: 687b ldr r3, [r7, #4]
- 80014aa: 681b ldr r3, [r3, #0]
- 80014ac: 4a10 ldr r2, [pc, #64] ; (80014f0 <HAL_TIM_Base_MspInit+0xa8>)
- 80014ae: 4293 cmp r3, r2
- 80014b0: d113 bne.n 80014da <HAL_TIM_Base_MspInit+0x92>
+ 8001550: 687b ldr r3, [r7, #4]
+ 8001552: 681b ldr r3, [r3, #0]
+ 8001554: 4a0d ldr r2, [pc, #52] ; (800158c <HAL_TIM_Base_MspInit+0x8c>)
+ 8001556: 4293 cmp r3, r2
+ 8001558: d10b bne.n 8001572 <HAL_TIM_Base_MspInit+0x72>
__HAL_RCC_TIM6_CLK_ENABLE();
- 80014b2: 4b0d ldr r3, [pc, #52] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 80014b4: 6c1b ldr r3, [r3, #64] ; 0x40
- 80014b6: 4a0c ldr r2, [pc, #48] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 80014b8: f043 0310 orr.w r3, r3, #16
- 80014bc: 6413 str r3, [r2, #64] ; 0x40
- 80014be: 4b0a ldr r3, [pc, #40] ; (80014e8 <HAL_TIM_Base_MspInit+0xa0>)
- 80014c0: 6c1b ldr r3, [r3, #64] ; 0x40
- 80014c2: f003 0310 and.w r3, r3, #16
- 80014c6: 60fb str r3, [r7, #12]
- 80014c8: 68fb ldr r3, [r7, #12]
- HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 0, 0);
- 80014ca: 2200 movs r2, #0
- 80014cc: 2100 movs r1, #0
- 80014ce: 2036 movs r0, #54 ; 0x36
- 80014d0: f000 faef bl 8001ab2 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
- 80014d4: 2036 movs r0, #54 ; 0x36
- 80014d6: f000 fb08 bl 8001aea <HAL_NVIC_EnableIRQ>
+ 800155a: 4b0a ldr r3, [pc, #40] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 800155c: 6c1b ldr r3, [r3, #64] ; 0x40
+ 800155e: 4a09 ldr r2, [pc, #36] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001560: f043 0310 orr.w r3, r3, #16
+ 8001564: 6413 str r3, [r2, #64] ; 0x40
+ 8001566: 4b07 ldr r3, [pc, #28] ; (8001584 <HAL_TIM_Base_MspInit+0x84>)
+ 8001568: 6c1b ldr r3, [r3, #64] ; 0x40
+ 800156a: f003 0310 and.w r3, r3, #16
+ 800156e: 60fb str r3, [r7, #12]
+ 8001570: 68fb ldr r3, [r7, #12]
}
- 80014da: bf00 nop
- 80014dc: 3718 adds r7, #24
- 80014de: 46bd mov sp, r7
- 80014e0: bd80 pop {r7, pc}
- 80014e2: bf00 nop
- 80014e4: 40000400 .word 0x40000400
- 80014e8: 40023800 .word 0x40023800
- 80014ec: 40000800 .word 0x40000800
- 80014f0: 40001000 .word 0x40001000
-
-080014f4 <HAL_TIM_MspPostInit>:
+ 8001572: bf00 nop
+ 8001574: 371c adds r7, #28
+ 8001576: 46bd mov sp, r7
+ 8001578: f85d 7b04 ldr.w r7, [sp], #4
+ 800157c: 4770 bx lr
+ 800157e: bf00 nop
+ 8001580: 40000400 .word 0x40000400
+ 8001584: 40023800 .word 0x40023800
+ 8001588: 40000800 .word 0x40000800
+ 800158c: 40001000 .word 0x40001000
+
+08001590 <HAL_TIM_MspPostInit>:
void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
{
- 80014f4: b580 push {r7, lr}
- 80014f6: b088 sub sp, #32
- 80014f8: af00 add r7, sp, #0
- 80014fa: 6078 str r0, [r7, #4]
+ 8001590: b580 push {r7, lr}
+ 8001592: b088 sub sp, #32
+ 8001594: af00 add r7, sp, #0
+ 8001596: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
- 80014fc: f107 030c add.w r3, r7, #12
- 8001500: 2200 movs r2, #0
- 8001502: 601a str r2, [r3, #0]
- 8001504: 605a str r2, [r3, #4]
- 8001506: 609a str r2, [r3, #8]
- 8001508: 60da str r2, [r3, #12]
- 800150a: 611a str r2, [r3, #16]
+ 8001598: f107 030c add.w r3, r7, #12
+ 800159c: 2200 movs r2, #0
+ 800159e: 601a str r2, [r3, #0]
+ 80015a0: 605a str r2, [r3, #4]
+ 80015a2: 609a str r2, [r3, #8]
+ 80015a4: 60da str r2, [r3, #12]
+ 80015a6: 611a str r2, [r3, #16]
if(htim->Instance==TIM4)
- 800150c: 687b ldr r3, [r7, #4]
- 800150e: 681b ldr r3, [r3, #0]
- 8001510: 4a11 ldr r2, [pc, #68] ; (8001558 <HAL_TIM_MspPostInit+0x64>)
- 8001512: 4293 cmp r3, r2
- 8001514: d11c bne.n 8001550 <HAL_TIM_MspPostInit+0x5c>
+ 80015a8: 687b ldr r3, [r7, #4]
+ 80015aa: 681b ldr r3, [r3, #0]
+ 80015ac: 4a11 ldr r2, [pc, #68] ; (80015f4 <HAL_TIM_MspPostInit+0x64>)
+ 80015ae: 4293 cmp r3, r2
+ 80015b0: d11c bne.n 80015ec <HAL_TIM_MspPostInit+0x5c>
{
/* USER CODE BEGIN TIM4_MspPostInit 0 */
/* USER CODE END TIM4_MspPostInit 0 */
__HAL_RCC_GPIOD_CLK_ENABLE();
- 8001516: 4b11 ldr r3, [pc, #68] ; (800155c <HAL_TIM_MspPostInit+0x68>)
- 8001518: 6b1b ldr r3, [r3, #48] ; 0x30
- 800151a: 4a10 ldr r2, [pc, #64] ; (800155c <HAL_TIM_MspPostInit+0x68>)
- 800151c: f043 0308 orr.w r3, r3, #8
- 8001520: 6313 str r3, [r2, #48] ; 0x30
- 8001522: 4b0e ldr r3, [pc, #56] ; (800155c <HAL_TIM_MspPostInit+0x68>)
- 8001524: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001526: f003 0308 and.w r3, r3, #8
- 800152a: 60bb str r3, [r7, #8]
- 800152c: 68bb ldr r3, [r7, #8]
+ 80015b2: 4b11 ldr r3, [pc, #68] ; (80015f8 <HAL_TIM_MspPostInit+0x68>)
+ 80015b4: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80015b6: 4a10 ldr r2, [pc, #64] ; (80015f8 <HAL_TIM_MspPostInit+0x68>)
+ 80015b8: f043 0308 orr.w r3, r3, #8
+ 80015bc: 6313 str r3, [r2, #48] ; 0x30
+ 80015be: 4b0e ldr r3, [pc, #56] ; (80015f8 <HAL_TIM_MspPostInit+0x68>)
+ 80015c0: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80015c2: f003 0308 and.w r3, r3, #8
+ 80015c6: 60bb str r3, [r7, #8]
+ 80015c8: 68bb ldr r3, [r7, #8]
/**TIM4 GPIO Configuration
PD14 ------> TIM4_CH3
PD15 ------> TIM4_CH4
*/
GPIO_InitStruct.Pin = pwm2_Pin|pwm1_Pin;
- 800152e: f44f 4340 mov.w r3, #49152 ; 0xc000
- 8001532: 60fb str r3, [r7, #12]
+ 80015ca: f44f 4340 mov.w r3, #49152 ; 0xc000
+ 80015ce: 60fb str r3, [r7, #12]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 8001534: 2302 movs r3, #2
- 8001536: 613b str r3, [r7, #16]
+ 80015d0: 2302 movs r3, #2
+ 80015d2: 613b str r3, [r7, #16]
GPIO_InitStruct.Pull = GPIO_NOPULL;
- 8001538: 2300 movs r3, #0
- 800153a: 617b str r3, [r7, #20]
+ 80015d4: 2300 movs r3, #0
+ 80015d6: 617b str r3, [r7, #20]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
- 800153c: 2300 movs r3, #0
- 800153e: 61bb str r3, [r7, #24]
+ 80015d8: 2300 movs r3, #0
+ 80015da: 61bb str r3, [r7, #24]
GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
- 8001540: 2302 movs r3, #2
- 8001542: 61fb str r3, [r7, #28]
+ 80015dc: 2302 movs r3, #2
+ 80015de: 61fb str r3, [r7, #28]
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
- 8001544: f107 030c add.w r3, r7, #12
- 8001548: 4619 mov r1, r3
- 800154a: 4805 ldr r0, [pc, #20] ; (8001560 <HAL_TIM_MspPostInit+0x6c>)
- 800154c: f000 fdf2 bl 8002134 <HAL_GPIO_Init>
+ 80015e0: f107 030c add.w r3, r7, #12
+ 80015e4: 4619 mov r1, r3
+ 80015e6: 4805 ldr r0, [pc, #20] ; (80015fc <HAL_TIM_MspPostInit+0x6c>)
+ 80015e8: f000 fa8a bl 8001b00 <HAL_GPIO_Init>
/* USER CODE BEGIN TIM4_MspPostInit 1 */
/* USER CODE END TIM4_MspPostInit 1 */
}
}
- 8001550: bf00 nop
- 8001552: 3720 adds r7, #32
- 8001554: 46bd mov sp, r7
- 8001556: bd80 pop {r7, pc}
- 8001558: 40000800 .word 0x40000800
- 800155c: 40023800 .word 0x40023800
- 8001560: 40020c00 .word 0x40020c00
-
-08001564 <HAL_UART_MspInit>:
+ 80015ec: bf00 nop
+ 80015ee: 3720 adds r7, #32
+ 80015f0: 46bd mov sp, r7
+ 80015f2: bd80 pop {r7, pc}
+ 80015f4: 40000800 .word 0x40000800
+ 80015f8: 40023800 .word 0x40023800
+ 80015fc: 40020c00 .word 0x40020c00
+
+08001600 <HAL_UART_MspInit>:
* This function configures the hardware resources used in this example
* @param huart: UART handle pointer
* @retval None
*/
void HAL_UART_MspInit(UART_HandleTypeDef* huart)
{
- 8001564: b580 push {r7, lr}
- 8001566: b08a sub sp, #40 ; 0x28
- 8001568: af00 add r7, sp, #0
- 800156a: 6078 str r0, [r7, #4]
+ 8001600: b580 push {r7, lr}
+ 8001602: b08a sub sp, #40 ; 0x28
+ 8001604: af00 add r7, sp, #0
+ 8001606: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
- 800156c: f107 0314 add.w r3, r7, #20
- 8001570: 2200 movs r2, #0
- 8001572: 601a str r2, [r3, #0]
- 8001574: 605a str r2, [r3, #4]
- 8001576: 609a str r2, [r3, #8]
- 8001578: 60da str r2, [r3, #12]
- 800157a: 611a str r2, [r3, #16]
+ 8001608: f107 0314 add.w r3, r7, #20
+ 800160c: 2200 movs r2, #0
+ 800160e: 601a str r2, [r3, #0]
+ 8001610: 605a str r2, [r3, #4]
+ 8001612: 609a str r2, [r3, #8]
+ 8001614: 60da str r2, [r3, #12]
+ 8001616: 611a str r2, [r3, #16]
if(huart->Instance==USART6)
- 800157c: 687b ldr r3, [r7, #4]
- 800157e: 681b ldr r3, [r3, #0]
- 8001580: 4a49 ldr r2, [pc, #292] ; (80016a8 <HAL_UART_MspInit+0x144>)
- 8001582: 4293 cmp r3, r2
- 8001584: f040 808c bne.w 80016a0 <HAL_UART_MspInit+0x13c>
+ 8001618: 687b ldr r3, [r7, #4]
+ 800161a: 681b ldr r3, [r3, #0]
+ 800161c: 4a17 ldr r2, [pc, #92] ; (800167c <HAL_UART_MspInit+0x7c>)
+ 800161e: 4293 cmp r3, r2
+ 8001620: d127 bne.n 8001672 <HAL_UART_MspInit+0x72>
{
/* USER CODE BEGIN USART6_MspInit 0 */
/* USER CODE END USART6_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_USART6_CLK_ENABLE();
- 8001588: 4b48 ldr r3, [pc, #288] ; (80016ac <HAL_UART_MspInit+0x148>)
- 800158a: 6c5b ldr r3, [r3, #68] ; 0x44
- 800158c: 4a47 ldr r2, [pc, #284] ; (80016ac <HAL_UART_MspInit+0x148>)
- 800158e: f043 0320 orr.w r3, r3, #32
- 8001592: 6453 str r3, [r2, #68] ; 0x44
- 8001594: 4b45 ldr r3, [pc, #276] ; (80016ac <HAL_UART_MspInit+0x148>)
- 8001596: 6c5b ldr r3, [r3, #68] ; 0x44
- 8001598: f003 0320 and.w r3, r3, #32
- 800159c: 613b str r3, [r7, #16]
- 800159e: 693b ldr r3, [r7, #16]
+ 8001622: 4b17 ldr r3, [pc, #92] ; (8001680 <HAL_UART_MspInit+0x80>)
+ 8001624: 6c5b ldr r3, [r3, #68] ; 0x44
+ 8001626: 4a16 ldr r2, [pc, #88] ; (8001680 <HAL_UART_MspInit+0x80>)
+ 8001628: f043 0320 orr.w r3, r3, #32
+ 800162c: 6453 str r3, [r2, #68] ; 0x44
+ 800162e: 4b14 ldr r3, [pc, #80] ; (8001680 <HAL_UART_MspInit+0x80>)
+ 8001630: 6c5b ldr r3, [r3, #68] ; 0x44
+ 8001632: f003 0320 and.w r3, r3, #32
+ 8001636: 613b str r3, [r7, #16]
+ 8001638: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOC_CLK_ENABLE();
- 80015a0: 4b42 ldr r3, [pc, #264] ; (80016ac <HAL_UART_MspInit+0x148>)
- 80015a2: 6b1b ldr r3, [r3, #48] ; 0x30
- 80015a4: 4a41 ldr r2, [pc, #260] ; (80016ac <HAL_UART_MspInit+0x148>)
- 80015a6: f043 0304 orr.w r3, r3, #4
- 80015aa: 6313 str r3, [r2, #48] ; 0x30
- 80015ac: 4b3f ldr r3, [pc, #252] ; (80016ac <HAL_UART_MspInit+0x148>)
- 80015ae: 6b1b ldr r3, [r3, #48] ; 0x30
- 80015b0: f003 0304 and.w r3, r3, #4
- 80015b4: 60fb str r3, [r7, #12]
- 80015b6: 68fb ldr r3, [r7, #12]
+ 800163a: 4b11 ldr r3, [pc, #68] ; (8001680 <HAL_UART_MspInit+0x80>)
+ 800163c: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800163e: 4a10 ldr r2, [pc, #64] ; (8001680 <HAL_UART_MspInit+0x80>)
+ 8001640: f043 0304 orr.w r3, r3, #4
+ 8001644: 6313 str r3, [r2, #48] ; 0x30
+ 8001646: 4b0e ldr r3, [pc, #56] ; (8001680 <HAL_UART_MspInit+0x80>)
+ 8001648: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800164a: f003 0304 and.w r3, r3, #4
+ 800164e: 60fb str r3, [r7, #12]
+ 8001650: 68fb ldr r3, [r7, #12]
/**USART6 GPIO Configuration
PC6 ------> USART6_TX
PC7 ------> USART6_RX
*/
GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
- 80015b8: 23c0 movs r3, #192 ; 0xc0
- 80015ba: 617b str r3, [r7, #20]
+ 8001652: 23c0 movs r3, #192 ; 0xc0
+ 8001654: 617b str r3, [r7, #20]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
- 80015bc: 2302 movs r3, #2
- 80015be: 61bb str r3, [r7, #24]
+ 8001656: 2302 movs r3, #2
+ 8001658: 61bb str r3, [r7, #24]
GPIO_InitStruct.Pull = GPIO_NOPULL;
- 80015c0: 2300 movs r3, #0
- 80015c2: 61fb str r3, [r7, #28]
+ 800165a: 2300 movs r3, #0
+ 800165c: 61fb str r3, [r7, #28]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
- 80015c4: 2303 movs r3, #3
- 80015c6: 623b str r3, [r7, #32]
+ 800165e: 2303 movs r3, #3
+ 8001660: 623b str r3, [r7, #32]
GPIO_InitStruct.Alternate = GPIO_AF8_USART6;
- 80015c8: 2308 movs r3, #8
- 80015ca: 627b str r3, [r7, #36] ; 0x24
+ 8001662: 2308 movs r3, #8
+ 8001664: 627b str r3, [r7, #36] ; 0x24
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
- 80015cc: f107 0314 add.w r3, r7, #20
- 80015d0: 4619 mov r1, r3
- 80015d2: 4837 ldr r0, [pc, #220] ; (80016b0 <HAL_UART_MspInit+0x14c>)
- 80015d4: f000 fdae bl 8002134 <HAL_GPIO_Init>
-
- /* USART6 DMA Init */
- /* USART6_RX Init */
- hdma_usart6_rx.Instance = DMA2_Stream1;
- 80015d8: 4b36 ldr r3, [pc, #216] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 80015da: 4a37 ldr r2, [pc, #220] ; (80016b8 <HAL_UART_MspInit+0x154>)
- 80015dc: 601a str r2, [r3, #0]
- hdma_usart6_rx.Init.Channel = DMA_CHANNEL_5;
- 80015de: 4b35 ldr r3, [pc, #212] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 80015e0: f04f 6220 mov.w r2, #167772160 ; 0xa000000
- 80015e4: 605a str r2, [r3, #4]
- hdma_usart6_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
- 80015e6: 4b33 ldr r3, [pc, #204] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 80015e8: 2200 movs r2, #0
- 80015ea: 609a str r2, [r3, #8]
- hdma_usart6_rx.Init.PeriphInc = DMA_PINC_DISABLE;
- 80015ec: 4b31 ldr r3, [pc, #196] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 80015ee: 2200 movs r2, #0
- 80015f0: 60da str r2, [r3, #12]
- hdma_usart6_rx.Init.MemInc = DMA_MINC_ENABLE;
- 80015f2: 4b30 ldr r3, [pc, #192] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 80015f4: f44f 6280 mov.w r2, #1024 ; 0x400
- 80015f8: 611a str r2, [r3, #16]
- hdma_usart6_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
- 80015fa: 4b2e ldr r3, [pc, #184] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 80015fc: 2200 movs r2, #0
- 80015fe: 615a str r2, [r3, #20]
- hdma_usart6_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
- 8001600: 4b2c ldr r3, [pc, #176] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 8001602: 2200 movs r2, #0
- 8001604: 619a str r2, [r3, #24]
- hdma_usart6_rx.Init.Mode = DMA_NORMAL;
- 8001606: 4b2b ldr r3, [pc, #172] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 8001608: 2200 movs r2, #0
- 800160a: 61da str r2, [r3, #28]
- hdma_usart6_rx.Init.Priority = DMA_PRIORITY_LOW;
- 800160c: 4b29 ldr r3, [pc, #164] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 800160e: 2200 movs r2, #0
- 8001610: 621a str r2, [r3, #32]
- hdma_usart6_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
- 8001612: 4b28 ldr r3, [pc, #160] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 8001614: 2200 movs r2, #0
- 8001616: 625a str r2, [r3, #36] ; 0x24
- if (HAL_DMA_Init(&hdma_usart6_rx) != HAL_OK)
- 8001618: 4826 ldr r0, [pc, #152] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 800161a: f000 fa81 bl 8001b20 <HAL_DMA_Init>
- 800161e: 4603 mov r3, r0
- 8001620: 2b00 cmp r3, #0
- 8001622: d001 beq.n 8001628 <HAL_UART_MspInit+0xc4>
- {
- Error_Handler();
- 8001624: f7ff fdc2 bl 80011ac <Error_Handler>
- }
-
- __HAL_LINKDMA(huart,hdmarx,hdma_usart6_rx);
- 8001628: 687b ldr r3, [r7, #4]
- 800162a: 4a22 ldr r2, [pc, #136] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 800162c: 66da str r2, [r3, #108] ; 0x6c
- 800162e: 4a21 ldr r2, [pc, #132] ; (80016b4 <HAL_UART_MspInit+0x150>)
- 8001630: 687b ldr r3, [r7, #4]
- 8001632: 6393 str r3, [r2, #56] ; 0x38
-
- /* USART6_TX Init */
- hdma_usart6_tx.Instance = DMA2_Stream6;
- 8001634: 4b21 ldr r3, [pc, #132] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001636: 4a22 ldr r2, [pc, #136] ; (80016c0 <HAL_UART_MspInit+0x15c>)
- 8001638: 601a str r2, [r3, #0]
- hdma_usart6_tx.Init.Channel = DMA_CHANNEL_5;
- 800163a: 4b20 ldr r3, [pc, #128] ; (80016bc <HAL_UART_MspInit+0x158>)
- 800163c: f04f 6220 mov.w r2, #167772160 ; 0xa000000
- 8001640: 605a str r2, [r3, #4]
- hdma_usart6_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
- 8001642: 4b1e ldr r3, [pc, #120] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001644: 2240 movs r2, #64 ; 0x40
- 8001646: 609a str r2, [r3, #8]
- hdma_usart6_tx.Init.PeriphInc = DMA_PINC_DISABLE;
- 8001648: 4b1c ldr r3, [pc, #112] ; (80016bc <HAL_UART_MspInit+0x158>)
- 800164a: 2200 movs r2, #0
- 800164c: 60da str r2, [r3, #12]
- hdma_usart6_tx.Init.MemInc = DMA_MINC_ENABLE;
- 800164e: 4b1b ldr r3, [pc, #108] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001650: f44f 6280 mov.w r2, #1024 ; 0x400
- 8001654: 611a str r2, [r3, #16]
- hdma_usart6_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
- 8001656: 4b19 ldr r3, [pc, #100] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001658: 2200 movs r2, #0
- 800165a: 615a str r2, [r3, #20]
- hdma_usart6_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
- 800165c: 4b17 ldr r3, [pc, #92] ; (80016bc <HAL_UART_MspInit+0x158>)
- 800165e: 2200 movs r2, #0
- 8001660: 619a str r2, [r3, #24]
- hdma_usart6_tx.Init.Mode = DMA_NORMAL;
- 8001662: 4b16 ldr r3, [pc, #88] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001664: 2200 movs r2, #0
- 8001666: 61da str r2, [r3, #28]
- hdma_usart6_tx.Init.Priority = DMA_PRIORITY_LOW;
- 8001668: 4b14 ldr r3, [pc, #80] ; (80016bc <HAL_UART_MspInit+0x158>)
- 800166a: 2200 movs r2, #0
- 800166c: 621a str r2, [r3, #32]
- hdma_usart6_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
- 800166e: 4b13 ldr r3, [pc, #76] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001670: 2200 movs r2, #0
- 8001672: 625a str r2, [r3, #36] ; 0x24
- if (HAL_DMA_Init(&hdma_usart6_tx) != HAL_OK)
- 8001674: 4811 ldr r0, [pc, #68] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001676: f000 fa53 bl 8001b20 <HAL_DMA_Init>
- 800167a: 4603 mov r3, r0
- 800167c: 2b00 cmp r3, #0
- 800167e: d001 beq.n 8001684 <HAL_UART_MspInit+0x120>
- {
- Error_Handler();
- 8001680: f7ff fd94 bl 80011ac <Error_Handler>
- }
-
- __HAL_LINKDMA(huart,hdmatx,hdma_usart6_tx);
- 8001684: 687b ldr r3, [r7, #4]
- 8001686: 4a0d ldr r2, [pc, #52] ; (80016bc <HAL_UART_MspInit+0x158>)
- 8001688: 669a str r2, [r3, #104] ; 0x68
- 800168a: 4a0c ldr r2, [pc, #48] ; (80016bc <HAL_UART_MspInit+0x158>)
- 800168c: 687b ldr r3, [r7, #4]
- 800168e: 6393 str r3, [r2, #56] ; 0x38
-
- /* USART6 interrupt Init */
- HAL_NVIC_SetPriority(USART6_IRQn, 0, 0);
- 8001690: 2200 movs r2, #0
- 8001692: 2100 movs r1, #0
- 8001694: 2047 movs r0, #71 ; 0x47
- 8001696: f000 fa0c bl 8001ab2 <HAL_NVIC_SetPriority>
- HAL_NVIC_EnableIRQ(USART6_IRQn);
- 800169a: 2047 movs r0, #71 ; 0x47
- 800169c: f000 fa25 bl 8001aea <HAL_NVIC_EnableIRQ>
+ 8001666: f107 0314 add.w r3, r7, #20
+ 800166a: 4619 mov r1, r3
+ 800166c: 4805 ldr r0, [pc, #20] ; (8001684 <HAL_UART_MspInit+0x84>)
+ 800166e: f000 fa47 bl 8001b00 <HAL_GPIO_Init>
/* USER CODE BEGIN USART6_MspInit 1 */
/* USER CODE END USART6_MspInit 1 */
}
}
- 80016a0: bf00 nop
- 80016a2: 3728 adds r7, #40 ; 0x28
- 80016a4: 46bd mov sp, r7
- 80016a6: bd80 pop {r7, pc}
- 80016a8: 40011400 .word 0x40011400
- 80016ac: 40023800 .word 0x40023800
- 80016b0: 40020800 .word 0x40020800
- 80016b4: 200001e8 .word 0x200001e8
- 80016b8: 40026428 .word 0x40026428
- 80016bc: 20000248 .word 0x20000248
- 80016c0: 400264a0 .word 0x400264a0
-
-080016c4 <NMI_Handler>:
+ 8001672: bf00 nop
+ 8001674: 3728 adds r7, #40 ; 0x28
+ 8001676: 46bd mov sp, r7
+ 8001678: bd80 pop {r7, pc}
+ 800167a: bf00 nop
+ 800167c: 40011400 .word 0x40011400
+ 8001680: 40023800 .word 0x40023800
+ 8001684: 40020800 .word 0x40020800
+
+08001688 <NMI_Handler>:
/******************************************************************************/
/**
* @brief This function handles Non maskable interrupt.
*/
void NMI_Handler(void)
{
- 80016c4: b480 push {r7}
- 80016c6: af00 add r7, sp, #0
+ 8001688: b480 push {r7}
+ 800168a: af00 add r7, sp, #0
/* USER CODE END NonMaskableInt_IRQn 0 */
/* USER CODE BEGIN NonMaskableInt_IRQn 1 */
/* USER CODE END NonMaskableInt_IRQn 1 */
}
- 80016c8: bf00 nop
- 80016ca: 46bd mov sp, r7
- 80016cc: f85d 7b04 ldr.w r7, [sp], #4
- 80016d0: 4770 bx lr
+ 800168c: bf00 nop
+ 800168e: 46bd mov sp, r7
+ 8001690: f85d 7b04 ldr.w r7, [sp], #4
+ 8001694: 4770 bx lr
-080016d2 <HardFault_Handler>:
+08001696 <HardFault_Handler>:
/**
* @brief This function handles Hard fault interrupt.
*/
void HardFault_Handler(void)
{
- 80016d2: b480 push {r7}
- 80016d4: af00 add r7, sp, #0
+ 8001696: b480 push {r7}
+ 8001698: af00 add r7, sp, #0
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
- 80016d6: e7fe b.n 80016d6 <HardFault_Handler+0x4>
+ 800169a: e7fe b.n 800169a <HardFault_Handler+0x4>
-080016d8 <MemManage_Handler>:
+0800169c <MemManage_Handler>:
/**
* @brief This function handles Memory management fault.
*/
void MemManage_Handler(void)
{
- 80016d8: b480 push {r7}
- 80016da: af00 add r7, sp, #0
+ 800169c: b480 push {r7}
+ 800169e: af00 add r7, sp, #0
/* USER CODE BEGIN MemoryManagement_IRQn 0 */
/* USER CODE END MemoryManagement_IRQn 0 */
while (1)
- 80016dc: e7fe b.n 80016dc <MemManage_Handler+0x4>
+ 80016a0: e7fe b.n 80016a0 <MemManage_Handler+0x4>
-080016de <BusFault_Handler>:
+080016a2 <BusFault_Handler>:
/**
* @brief This function handles Pre-fetch fault, memory access fault.
*/
void BusFault_Handler(void)
{
- 80016de: b480 push {r7}
- 80016e0: af00 add r7, sp, #0
+ 80016a2: b480 push {r7}
+ 80016a4: af00 add r7, sp, #0
/* USER CODE BEGIN BusFault_IRQn 0 */
/* USER CODE END BusFault_IRQn 0 */
while (1)
- 80016e2: e7fe b.n 80016e2 <BusFault_Handler+0x4>
+ 80016a6: e7fe b.n 80016a6 <BusFault_Handler+0x4>
-080016e4 <UsageFault_Handler>:
+080016a8 <UsageFault_Handler>:
/**
* @brief This function handles Undefined instruction or illegal state.
*/
void UsageFault_Handler(void)
{
- 80016e4: b480 push {r7}
- 80016e6: af00 add r7, sp, #0
+ 80016a8: b480 push {r7}
+ 80016aa: af00 add r7, sp, #0
/* USER CODE BEGIN UsageFault_IRQn 0 */
/* USER CODE END UsageFault_IRQn 0 */
while (1)
- 80016e8: e7fe b.n 80016e8 <UsageFault_Handler+0x4>
+ 80016ac: e7fe b.n 80016ac <UsageFault_Handler+0x4>
-080016ea <SVC_Handler>:
+080016ae <SVC_Handler>:
/**
* @brief This function handles System service call via SWI instruction.
*/
void SVC_Handler(void)
{
- 80016ea: b480 push {r7}
- 80016ec: af00 add r7, sp, #0
+ 80016ae: b480 push {r7}
+ 80016b0: af00 add r7, sp, #0
/* USER CODE END SVCall_IRQn 0 */
/* USER CODE BEGIN SVCall_IRQn 1 */
/* USER CODE END SVCall_IRQn 1 */
}
- 80016ee: bf00 nop
- 80016f0: 46bd mov sp, r7
- 80016f2: f85d 7b04 ldr.w r7, [sp], #4
- 80016f6: 4770 bx lr
+ 80016b2: bf00 nop
+ 80016b4: 46bd mov sp, r7
+ 80016b6: f85d 7b04 ldr.w r7, [sp], #4
+ 80016ba: 4770 bx lr
-080016f8 <DebugMon_Handler>:
+080016bc <DebugMon_Handler>:
/**
* @brief This function handles Debug monitor.
*/
void DebugMon_Handler(void)
{
- 80016f8: b480 push {r7}
- 80016fa: af00 add r7, sp, #0
+ 80016bc: b480 push {r7}
+ 80016be: af00 add r7, sp, #0
/* USER CODE END DebugMonitor_IRQn 0 */
/* USER CODE BEGIN DebugMonitor_IRQn 1 */
/* USER CODE END DebugMonitor_IRQn 1 */
}
- 80016fc: bf00 nop
- 80016fe: 46bd mov sp, r7
- 8001700: f85d 7b04 ldr.w r7, [sp], #4
- 8001704: 4770 bx lr
+ 80016c0: bf00 nop
+ 80016c2: 46bd mov sp, r7
+ 80016c4: f85d 7b04 ldr.w r7, [sp], #4
+ 80016c8: 4770 bx lr
-08001706 <PendSV_Handler>:
+080016ca <PendSV_Handler>:
/**
* @brief This function handles Pendable request for system service.
*/
void PendSV_Handler(void)
{
- 8001706: b480 push {r7}
- 8001708: af00 add r7, sp, #0
+ 80016ca: b480 push {r7}
+ 80016cc: af00 add r7, sp, #0
/* USER CODE END PendSV_IRQn 0 */
/* USER CODE BEGIN PendSV_IRQn 1 */
/* USER CODE END PendSV_IRQn 1 */
}
- 800170a: bf00 nop
- 800170c: 46bd mov sp, r7
- 800170e: f85d 7b04 ldr.w r7, [sp], #4
- 8001712: 4770 bx lr
+ 80016ce: bf00 nop
+ 80016d0: 46bd mov sp, r7
+ 80016d2: f85d 7b04 ldr.w r7, [sp], #4
+ 80016d6: 4770 bx lr
-08001714 <SysTick_Handler>:
+080016d8 <SysTick_Handler>:
/**
* @brief This function handles System tick timer.
*/
void SysTick_Handler(void)
{
- 8001714: b580 push {r7, lr}
- 8001716: af00 add r7, sp, #0
+ 80016d8: b580 push {r7, lr}
+ 80016da: af00 add r7, sp, #0
/* USER CODE BEGIN SysTick_IRQn 0 */
/* USER CODE END SysTick_IRQn 0 */
HAL_IncTick();
- 8001718: f000 f8d0 bl 80018bc <HAL_IncTick>
+ 80016dc: f000 f8bc bl 8001858 <HAL_IncTick>
/* USER CODE BEGIN SysTick_IRQn 1 */
/* USER CODE END SysTick_IRQn 1 */
}
- 800171c: bf00 nop
- 800171e: bd80 pop {r7, pc}
+ 80016e0: bf00 nop
+ 80016e2: bd80 pop {r7, pc}
-08001720 <TIM3_IRQHandler>:
+080016e4 <TIM3_IRQHandler>:
/**
* @brief This function handles TIM3 global interrupt.
*/
void TIM3_IRQHandler(void)
{
- 8001720: b580 push {r7, lr}
- 8001722: af00 add r7, sp, #0
+ 80016e4: b580 push {r7, lr}
+ 80016e6: af00 add r7, sp, #0
/* USER CODE BEGIN TIM3_IRQn 0 */
/* USER CODE END TIM3_IRQn 0 */
HAL_TIM_IRQHandler(&htim3);
- 8001724: 4802 ldr r0, [pc, #8] ; (8001730 <TIM3_IRQHandler+0x10>)
- 8001726: f002 f884 bl 8003832 <HAL_TIM_IRQHandler>
+ 80016e8: 4802 ldr r0, [pc, #8] ; (80016f4 <TIM3_IRQHandler+0x10>)
+ 80016ea: f001 fd88 bl 80031fe <HAL_TIM_IRQHandler>
/* USER CODE BEGIN TIM3_IRQn 1 */
/* USER CODE END TIM3_IRQn 1 */
}
- 800172a: bf00 nop
- 800172c: bd80 pop {r7, pc}
- 800172e: bf00 nop
- 8001730: 20000068 .word 0x20000068
+ 80016ee: bf00 nop
+ 80016f0: bd80 pop {r7, pc}
+ 80016f2: bf00 nop
+ 80016f4: 2000006c .word 0x2000006c
-08001734 <TIM6_DAC_IRQHandler>:
+080016f8 <TIM6_DAC_IRQHandler>:
/**
* @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.
*/
void TIM6_DAC_IRQHandler(void)
{
- 8001734: b580 push {r7, lr}
- 8001736: af00 add r7, sp, #0
+ 80016f8: b580 push {r7, lr}
+ 80016fa: af00 add r7, sp, #0
/* USER CODE BEGIN TIM6_DAC_IRQn 0 */
/* USER CODE END TIM6_DAC_IRQn 0 */
HAL_TIM_IRQHandler(&htim6);
- 8001738: 4802 ldr r0, [pc, #8] ; (8001744 <TIM6_DAC_IRQHandler+0x10>)
- 800173a: f002 f87a bl 8003832 <HAL_TIM_IRQHandler>
+ 80016fc: 4802 ldr r0, [pc, #8] ; (8001708 <TIM6_DAC_IRQHandler+0x10>)
+ 80016fe: f001 fd7e bl 80031fe <HAL_TIM_IRQHandler>
/* USER CODE BEGIN TIM6_DAC_IRQn 1 */
/* USER CODE END TIM6_DAC_IRQn 1 */
}
- 800173e: bf00 nop
- 8001740: bd80 pop {r7, pc}
- 8001742: bf00 nop
- 8001744: 20000128 .word 0x20000128
-
-08001748 <DMA2_Stream1_IRQHandler>:
-
-/**
- * @brief This function handles DMA2 stream1 global interrupt.
- */
-void DMA2_Stream1_IRQHandler(void)
-{
- 8001748: b580 push {r7, lr}
- 800174a: af00 add r7, sp, #0
- /* USER CODE BEGIN DMA2_Stream1_IRQn 0 */
-
- /* USER CODE END DMA2_Stream1_IRQn 0 */
- HAL_DMA_IRQHandler(&hdma_usart6_rx);
- 800174c: 4802 ldr r0, [pc, #8] ; (8001758 <DMA2_Stream1_IRQHandler+0x10>)
- 800174e: f000 fab7 bl 8001cc0 <HAL_DMA_IRQHandler>
- /* USER CODE BEGIN DMA2_Stream1_IRQn 1 */
-
- /* USER CODE END DMA2_Stream1_IRQn 1 */
-}
- 8001752: bf00 nop
- 8001754: bd80 pop {r7, pc}
- 8001756: bf00 nop
- 8001758: 200001e8 .word 0x200001e8
-
-0800175c <DMA2_Stream6_IRQHandler>:
-
-/**
- * @brief This function handles DMA2 stream6 global interrupt.
- */
-void DMA2_Stream6_IRQHandler(void)
-{
- 800175c: b580 push {r7, lr}
- 800175e: af00 add r7, sp, #0
- /* USER CODE BEGIN DMA2_Stream6_IRQn 0 */
-
- /* USER CODE END DMA2_Stream6_IRQn 0 */
- HAL_DMA_IRQHandler(&hdma_usart6_tx);
- 8001760: 4802 ldr r0, [pc, #8] ; (800176c <DMA2_Stream6_IRQHandler+0x10>)
- 8001762: f000 faad bl 8001cc0 <HAL_DMA_IRQHandler>
- /* USER CODE BEGIN DMA2_Stream6_IRQn 1 */
-
- /* USER CODE END DMA2_Stream6_IRQn 1 */
-}
- 8001766: bf00 nop
- 8001768: bd80 pop {r7, pc}
- 800176a: bf00 nop
- 800176c: 20000248 .word 0x20000248
+ 8001702: bf00 nop
+ 8001704: bd80 pop {r7, pc}
+ 8001706: bf00 nop
+ 8001708: 2000012c .word 0x2000012c
-08001770 <USART6_IRQHandler>:
+0800170c <USART6_IRQHandler>:
/**
* @brief This function handles USART6 global interrupt.
*/
void USART6_IRQHandler(void)
{
- 8001770: b580 push {r7, lr}
- 8001772: af00 add r7, sp, #0
+ 800170c: b580 push {r7, lr}
+ 800170e: af00 add r7, sp, #0
/* USER CODE BEGIN USART6_IRQn 0 */
/* USER CODE END USART6_IRQn 0 */
HAL_UART_IRQHandler(&huart6);
- 8001774: 4802 ldr r0, [pc, #8] ; (8001780 <USART6_IRQHandler+0x10>)
- 8001776: f002 fffb bl 8004770 <HAL_UART_IRQHandler>
+ 8001710: 4802 ldr r0, [pc, #8] ; (800171c <USART6_IRQHandler+0x10>)
+ 8001712: f002 fdb5 bl 8004280 <HAL_UART_IRQHandler>
/* USER CODE BEGIN USART6_IRQn 1 */
/* USER CODE END USART6_IRQn 1 */
}
- 800177a: bf00 nop
- 800177c: bd80 pop {r7, pc}
- 800177e: bf00 nop
- 8001780: 20000168 .word 0x20000168
+ 8001716: bf00 nop
+ 8001718: bd80 pop {r7, pc}
+ 800171a: bf00 nop
+ 800171c: 2000016c .word 0x2000016c
-08001784 <SystemInit>:
+08001720 <SystemInit>:
* SystemFrequency variable.
* @param None
* @retval None
*/
void SystemInit(void)
{
- 8001784: b480 push {r7}
- 8001786: af00 add r7, sp, #0
+ 8001720: b480 push {r7}
+ 8001722: af00 add r7, sp, #0
/* FPU settings ------------------------------------------------------------*/
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
- 8001788: 4b15 ldr r3, [pc, #84] ; (80017e0 <SystemInit+0x5c>)
- 800178a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 800178e: 4a14 ldr r2, [pc, #80] ; (80017e0 <SystemInit+0x5c>)
- 8001790: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000
- 8001794: f8c2 3088 str.w r3, [r2, #136] ; 0x88
+ 8001724: 4b15 ldr r3, [pc, #84] ; (800177c <SystemInit+0x5c>)
+ 8001726: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 800172a: 4a14 ldr r2, [pc, #80] ; (800177c <SystemInit+0x5c>)
+ 800172c: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000
+ 8001730: f8c2 3088 str.w r3, [r2, #136] ; 0x88
#endif
/* Reset the RCC clock configuration to the default reset state ------------*/
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001;
- 8001798: 4b12 ldr r3, [pc, #72] ; (80017e4 <SystemInit+0x60>)
- 800179a: 681b ldr r3, [r3, #0]
- 800179c: 4a11 ldr r2, [pc, #68] ; (80017e4 <SystemInit+0x60>)
- 800179e: f043 0301 orr.w r3, r3, #1
- 80017a2: 6013 str r3, [r2, #0]
+ 8001734: 4b12 ldr r3, [pc, #72] ; (8001780 <SystemInit+0x60>)
+ 8001736: 681b ldr r3, [r3, #0]
+ 8001738: 4a11 ldr r2, [pc, #68] ; (8001780 <SystemInit+0x60>)
+ 800173a: f043 0301 orr.w r3, r3, #1
+ 800173e: 6013 str r3, [r2, #0]
/* Reset CFGR register */
RCC->CFGR = 0x00000000;
- 80017a4: 4b0f ldr r3, [pc, #60] ; (80017e4 <SystemInit+0x60>)
- 80017a6: 2200 movs r2, #0
- 80017a8: 609a str r2, [r3, #8]
+ 8001740: 4b0f ldr r3, [pc, #60] ; (8001780 <SystemInit+0x60>)
+ 8001742: 2200 movs r2, #0
+ 8001744: 609a str r2, [r3, #8]
/* Reset HSEON, CSSON and PLLON bits */
RCC->CR &= (uint32_t)0xFEF6FFFF;
- 80017aa: 4b0e ldr r3, [pc, #56] ; (80017e4 <SystemInit+0x60>)
- 80017ac: 681a ldr r2, [r3, #0]
- 80017ae: 490d ldr r1, [pc, #52] ; (80017e4 <SystemInit+0x60>)
- 80017b0: 4b0d ldr r3, [pc, #52] ; (80017e8 <SystemInit+0x64>)
- 80017b2: 4013 ands r3, r2
- 80017b4: 600b str r3, [r1, #0]
+ 8001746: 4b0e ldr r3, [pc, #56] ; (8001780 <SystemInit+0x60>)
+ 8001748: 681a ldr r2, [r3, #0]
+ 800174a: 490d ldr r1, [pc, #52] ; (8001780 <SystemInit+0x60>)
+ 800174c: 4b0d ldr r3, [pc, #52] ; (8001784 <SystemInit+0x64>)
+ 800174e: 4013 ands r3, r2
+ 8001750: 600b str r3, [r1, #0]
/* Reset PLLCFGR register */
RCC->PLLCFGR = 0x24003010;
- 80017b6: 4b0b ldr r3, [pc, #44] ; (80017e4 <SystemInit+0x60>)
- 80017b8: 4a0c ldr r2, [pc, #48] ; (80017ec <SystemInit+0x68>)
- 80017ba: 605a str r2, [r3, #4]
+ 8001752: 4b0b ldr r3, [pc, #44] ; (8001780 <SystemInit+0x60>)
+ 8001754: 4a0c ldr r2, [pc, #48] ; (8001788 <SystemInit+0x68>)
+ 8001756: 605a str r2, [r3, #4]
/* Reset HSEBYP bit */
RCC->CR &= (uint32_t)0xFFFBFFFF;
- 80017bc: 4b09 ldr r3, [pc, #36] ; (80017e4 <SystemInit+0x60>)
- 80017be: 681b ldr r3, [r3, #0]
- 80017c0: 4a08 ldr r2, [pc, #32] ; (80017e4 <SystemInit+0x60>)
- 80017c2: f423 2380 bic.w r3, r3, #262144 ; 0x40000
- 80017c6: 6013 str r3, [r2, #0]
+ 8001758: 4b09 ldr r3, [pc, #36] ; (8001780 <SystemInit+0x60>)
+ 800175a: 681b ldr r3, [r3, #0]
+ 800175c: 4a08 ldr r2, [pc, #32] ; (8001780 <SystemInit+0x60>)
+ 800175e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
+ 8001762: 6013 str r3, [r2, #0]
/* Disable all interrupts */
RCC->CIR = 0x00000000;
- 80017c8: 4b06 ldr r3, [pc, #24] ; (80017e4 <SystemInit+0x60>)
- 80017ca: 2200 movs r2, #0
- 80017cc: 60da str r2, [r3, #12]
+ 8001764: 4b06 ldr r3, [pc, #24] ; (8001780 <SystemInit+0x60>)
+ 8001766: 2200 movs r2, #0
+ 8001768: 60da str r2, [r3, #12]
/* Configure the Vector Table location add offset address ------------------*/
#ifdef VECT_TAB_SRAM
SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
#else
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
- 80017ce: 4b04 ldr r3, [pc, #16] ; (80017e0 <SystemInit+0x5c>)
- 80017d0: f04f 6200 mov.w r2, #134217728 ; 0x8000000
- 80017d4: 609a str r2, [r3, #8]
+ 800176a: 4b04 ldr r3, [pc, #16] ; (800177c <SystemInit+0x5c>)
+ 800176c: f04f 6200 mov.w r2, #134217728 ; 0x8000000
+ 8001770: 609a str r2, [r3, #8]
#endif
}
- 80017d6: bf00 nop
- 80017d8: 46bd mov sp, r7
- 80017da: f85d 7b04 ldr.w r7, [sp], #4
- 80017de: 4770 bx lr
- 80017e0: e000ed00 .word 0xe000ed00
- 80017e4: 40023800 .word 0x40023800
- 80017e8: fef6ffff .word 0xfef6ffff
- 80017ec: 24003010 .word 0x24003010
+ 8001772: bf00 nop
+ 8001774: 46bd mov sp, r7
+ 8001776: f85d 7b04 ldr.w r7, [sp], #4
+ 800177a: 4770 bx lr
+ 800177c: e000ed00 .word 0xe000ed00
+ 8001780: 40023800 .word 0x40023800
+ 8001784: fef6ffff .word 0xfef6ffff
+ 8001788: 24003010 .word 0x24003010
-080017f0 <Reset_Handler>:
+0800178c <Reset_Handler>:
.section .text.Reset_Handler
.weak Reset_Handler
.type Reset_Handler, %function
Reset_Handler:
ldr sp, =_estack /* set stack pointer */
- 80017f0: f8df d034 ldr.w sp, [pc, #52] ; 8001828 <LoopFillZerobss+0x14>
+ 800178c: f8df d034 ldr.w sp, [pc, #52] ; 80017c4 <LoopFillZerobss+0x14>
/* Copy the data segment initializers from flash to SRAM */
movs r1, #0
- 80017f4: 2100 movs r1, #0
+ 8001790: 2100 movs r1, #0
b LoopCopyDataInit
- 80017f6: e003 b.n 8001800 <LoopCopyDataInit>
+ 8001792: e003 b.n 800179c <LoopCopyDataInit>
-080017f8 <CopyDataInit>:
+08001794 <CopyDataInit>:
CopyDataInit:
ldr r3, =_sidata
- 80017f8: 4b0c ldr r3, [pc, #48] ; (800182c <LoopFillZerobss+0x18>)
+ 8001794: 4b0c ldr r3, [pc, #48] ; (80017c8 <LoopFillZerobss+0x18>)
ldr r3, [r3, r1]
- 80017fa: 585b ldr r3, [r3, r1]
+ 8001796: 585b ldr r3, [r3, r1]
str r3, [r0, r1]
- 80017fc: 5043 str r3, [r0, r1]
+ 8001798: 5043 str r3, [r0, r1]
adds r1, r1, #4
- 80017fe: 3104 adds r1, #4
+ 800179a: 3104 adds r1, #4
-08001800 <LoopCopyDataInit>:
+0800179c <LoopCopyDataInit>:
LoopCopyDataInit:
ldr r0, =_sdata
- 8001800: 480b ldr r0, [pc, #44] ; (8001830 <LoopFillZerobss+0x1c>)
+ 800179c: 480b ldr r0, [pc, #44] ; (80017cc <LoopFillZerobss+0x1c>)
ldr r3, =_edata
- 8001802: 4b0c ldr r3, [pc, #48] ; (8001834 <LoopFillZerobss+0x20>)
+ 800179e: 4b0c ldr r3, [pc, #48] ; (80017d0 <LoopFillZerobss+0x20>)
adds r2, r0, r1
- 8001804: 1842 adds r2, r0, r1
+ 80017a0: 1842 adds r2, r0, r1
cmp r2, r3
- 8001806: 429a cmp r2, r3
+ 80017a2: 429a cmp r2, r3
bcc CopyDataInit
- 8001808: d3f6 bcc.n 80017f8 <CopyDataInit>
+ 80017a4: d3f6 bcc.n 8001794 <CopyDataInit>
ldr r2, =_sbss
- 800180a: 4a0b ldr r2, [pc, #44] ; (8001838 <LoopFillZerobss+0x24>)
+ 80017a6: 4a0b ldr r2, [pc, #44] ; (80017d4 <LoopFillZerobss+0x24>)
b LoopFillZerobss
- 800180c: e002 b.n 8001814 <LoopFillZerobss>
+ 80017a8: e002 b.n 80017b0 <LoopFillZerobss>
-0800180e <FillZerobss>:
+080017aa <FillZerobss>:
/* Zero fill the bss segment. */
FillZerobss:
movs r3, #0
- 800180e: 2300 movs r3, #0
+ 80017aa: 2300 movs r3, #0
str r3, [r2], #4
- 8001810: f842 3b04 str.w r3, [r2], #4
+ 80017ac: f842 3b04 str.w r3, [r2], #4
-08001814 <LoopFillZerobss>:
+080017b0 <LoopFillZerobss>:
LoopFillZerobss:
ldr r3, = _ebss
- 8001814: 4b09 ldr r3, [pc, #36] ; (800183c <LoopFillZerobss+0x28>)
+ 80017b0: 4b09 ldr r3, [pc, #36] ; (80017d8 <LoopFillZerobss+0x28>)
cmp r2, r3
- 8001816: 429a cmp r2, r3
+ 80017b2: 429a cmp r2, r3
bcc FillZerobss
- 8001818: d3f9 bcc.n 800180e <FillZerobss>
+ 80017b4: d3f9 bcc.n 80017aa <FillZerobss>
/* Call the clock system initialization function.*/
bl SystemInit
- 800181a: f7ff ffb3 bl 8001784 <SystemInit>
+ 80017b6: f7ff ffb3 bl 8001720 <SystemInit>
/* Call static constructors */
bl __libc_init_array
- 800181e: f003 fce3 bl 80051e8 <__libc_init_array>
+ 80017ba: f003 fb43 bl 8004e44 <__libc_init_array>
/* Call the application's entry point.*/
bl main
- 8001822: f7ff f8cb bl 80009bc <main>
+ 80017be: f7ff f90b bl 80009d8 <main>
bx lr
- 8001826: 4770 bx lr
+ 80017c2: 4770 bx lr
ldr sp, =_estack /* set stack pointer */
- 8001828: 20080000 .word 0x20080000
+ 80017c4: 20080000 .word 0x20080000
ldr r3, =_sidata
- 800182c: 0800528c .word 0x0800528c
+ 80017c8: 08004ee0 .word 0x08004ee0
ldr r0, =_sdata
- 8001830: 20000000 .word 0x20000000
+ 80017cc: 20000000 .word 0x20000000
ldr r3, =_edata
- 8001834: 2000000c .word 0x2000000c
+ 80017d0: 20000010 .word 0x20000010
ldr r2, =_sbss
- 8001838: 2000000c .word 0x2000000c
+ 80017d4: 20000010 .word 0x20000010
ldr r3, = _ebss
- 800183c: 200003e4 .word 0x200003e4
+ 80017d8: 20000330 .word 0x20000330
-08001840 <ADC_IRQHandler>:
+080017dc <ADC_IRQHandler>:
* @retval None
*/
.section .text.Default_Handler,"ax",%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop
- 8001840: e7fe b.n 8001840 <ADC_IRQHandler>
+ 80017dc: e7fe b.n 80017dc <ADC_IRQHandler>
-08001842 <HAL_Init>:
+080017de <HAL_Init>:
* need to ensure that the SysTick time base is always set to 1 millisecond
* to have correct HAL operation.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_Init(void)
{
- 8001842: b580 push {r7, lr}
- 8001844: af00 add r7, sp, #0
+ 80017de: b580 push {r7, lr}
+ 80017e0: af00 add r7, sp, #0
#if (PREFETCH_ENABLE != 0U)
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
#endif /* PREFETCH_ENABLE */
/* Set Interrupt Group Priority */
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
- 8001846: 2003 movs r0, #3
- 8001848: f000 f928 bl 8001a9c <HAL_NVIC_SetPriorityGrouping>
+ 80017e2: 2003 movs r0, #3
+ 80017e4: f000 f928 bl 8001a38 <HAL_NVIC_SetPriorityGrouping>
/* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
HAL_InitTick(TICK_INT_PRIORITY);
- 800184c: 2000 movs r0, #0
- 800184e: f000 f805 bl 800185c <HAL_InitTick>
+ 80017e8: 2000 movs r0, #0
+ 80017ea: f000 f805 bl 80017f8 <HAL_InitTick>
/* Init the low level hardware */
HAL_MspInit();
- 8001852: f7ff fd45 bl 80012e0 <HAL_MspInit>
+ 80017ee: f7ff fdd3 bl 8001398 <HAL_MspInit>
/* Return function status */
return HAL_OK;
- 8001856: 2300 movs r3, #0
+ 80017f2: 2300 movs r3, #0
}
- 8001858: 4618 mov r0, r3
- 800185a: bd80 pop {r7, pc}
+ 80017f4: 4618 mov r0, r3
+ 80017f6: bd80 pop {r7, pc}
-0800185c <HAL_InitTick>:
+080017f8 <HAL_InitTick>:
* implementation in user file.
* @param TickPriority Tick interrupt priority.
* @retval HAL status
*/
__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
{
- 800185c: b580 push {r7, lr}
- 800185e: b082 sub sp, #8
- 8001860: af00 add r7, sp, #0
- 8001862: 6078 str r0, [r7, #4]
+ 80017f8: b580 push {r7, lr}
+ 80017fa: b082 sub sp, #8
+ 80017fc: af00 add r7, sp, #0
+ 80017fe: 6078 str r0, [r7, #4]
/* Configure the SysTick to have interrupt in 1ms time basis*/
if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U)
- 8001864: 4b12 ldr r3, [pc, #72] ; (80018b0 <HAL_InitTick+0x54>)
- 8001866: 681a ldr r2, [r3, #0]
- 8001868: 4b12 ldr r3, [pc, #72] ; (80018b4 <HAL_InitTick+0x58>)
- 800186a: 781b ldrb r3, [r3, #0]
- 800186c: 4619 mov r1, r3
- 800186e: f44f 737a mov.w r3, #1000 ; 0x3e8
- 8001872: fbb3 f3f1 udiv r3, r3, r1
- 8001876: fbb2 f3f3 udiv r3, r2, r3
- 800187a: 4618 mov r0, r3
- 800187c: f000 f943 bl 8001b06 <HAL_SYSTICK_Config>
- 8001880: 4603 mov r3, r0
- 8001882: 2b00 cmp r3, #0
- 8001884: d001 beq.n 800188a <HAL_InitTick+0x2e>
+ 8001800: 4b12 ldr r3, [pc, #72] ; (800184c <HAL_InitTick+0x54>)
+ 8001802: 681a ldr r2, [r3, #0]
+ 8001804: 4b12 ldr r3, [pc, #72] ; (8001850 <HAL_InitTick+0x58>)
+ 8001806: 781b ldrb r3, [r3, #0]
+ 8001808: 4619 mov r1, r3
+ 800180a: f44f 737a mov.w r3, #1000 ; 0x3e8
+ 800180e: fbb3 f3f1 udiv r3, r3, r1
+ 8001812: fbb2 f3f3 udiv r3, r2, r3
+ 8001816: 4618 mov r0, r3
+ 8001818: f000 f943 bl 8001aa2 <HAL_SYSTICK_Config>
+ 800181c: 4603 mov r3, r0
+ 800181e: 2b00 cmp r3, #0
+ 8001820: d001 beq.n 8001826 <HAL_InitTick+0x2e>
{
return HAL_ERROR;
- 8001886: 2301 movs r3, #1
- 8001888: e00e b.n 80018a8 <HAL_InitTick+0x4c>
+ 8001822: 2301 movs r3, #1
+ 8001824: e00e b.n 8001844 <HAL_InitTick+0x4c>
}
/* Configure the SysTick IRQ priority */
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
- 800188a: 687b ldr r3, [r7, #4]
- 800188c: 2b0f cmp r3, #15
- 800188e: d80a bhi.n 80018a6 <HAL_InitTick+0x4a>
+ 8001826: 687b ldr r3, [r7, #4]
+ 8001828: 2b0f cmp r3, #15
+ 800182a: d80a bhi.n 8001842 <HAL_InitTick+0x4a>
{
HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
- 8001890: 2200 movs r2, #0
- 8001892: 6879 ldr r1, [r7, #4]
- 8001894: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8001898: f000 f90b bl 8001ab2 <HAL_NVIC_SetPriority>
+ 800182c: 2200 movs r2, #0
+ 800182e: 6879 ldr r1, [r7, #4]
+ 8001830: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
+ 8001834: f000 f90b bl 8001a4e <HAL_NVIC_SetPriority>
uwTickPrio = TickPriority;
- 800189c: 4a06 ldr r2, [pc, #24] ; (80018b8 <HAL_InitTick+0x5c>)
- 800189e: 687b ldr r3, [r7, #4]
- 80018a0: 6013 str r3, [r2, #0]
+ 8001838: 4a06 ldr r2, [pc, #24] ; (8001854 <HAL_InitTick+0x5c>)
+ 800183a: 687b ldr r3, [r7, #4]
+ 800183c: 6013 str r3, [r2, #0]
{
return HAL_ERROR;
}
/* Return function status */
return HAL_OK;
- 80018a2: 2300 movs r3, #0
- 80018a4: e000 b.n 80018a8 <HAL_InitTick+0x4c>
+ 800183e: 2300 movs r3, #0
+ 8001840: e000 b.n 8001844 <HAL_InitTick+0x4c>
return HAL_ERROR;
- 80018a6: 2301 movs r3, #1
+ 8001842: 2301 movs r3, #1
}
- 80018a8: 4618 mov r0, r3
- 80018aa: 3708 adds r7, #8
- 80018ac: 46bd mov sp, r7
- 80018ae: bd80 pop {r7, pc}
- 80018b0: 20000000 .word 0x20000000
- 80018b4: 20000008 .word 0x20000008
- 80018b8: 20000004 .word 0x20000004
-
-080018bc <HAL_IncTick>:
+ 8001844: 4618 mov r0, r3
+ 8001846: 3708 adds r7, #8
+ 8001848: 46bd mov sp, r7
+ 800184a: bd80 pop {r7, pc}
+ 800184c: 20000004 .word 0x20000004
+ 8001850: 2000000c .word 0x2000000c
+ 8001854: 20000008 .word 0x20000008
+
+08001858 <HAL_IncTick>:
* @note This function is declared as __weak to be overwritten in case of other
* implementations in user file.
* @retval None
*/
__weak void HAL_IncTick(void)
{
- 80018bc: b480 push {r7}
- 80018be: af00 add r7, sp, #0
+ 8001858: b480 push {r7}
+ 800185a: af00 add r7, sp, #0
uwTick += uwTickFreq;
- 80018c0: 4b06 ldr r3, [pc, #24] ; (80018dc <HAL_IncTick+0x20>)
- 80018c2: 781b ldrb r3, [r3, #0]
- 80018c4: 461a mov r2, r3
- 80018c6: 4b06 ldr r3, [pc, #24] ; (80018e0 <HAL_IncTick+0x24>)
- 80018c8: 681b ldr r3, [r3, #0]
- 80018ca: 4413 add r3, r2
- 80018cc: 4a04 ldr r2, [pc, #16] ; (80018e0 <HAL_IncTick+0x24>)
- 80018ce: 6013 str r3, [r2, #0]
+ 800185c: 4b06 ldr r3, [pc, #24] ; (8001878 <HAL_IncTick+0x20>)
+ 800185e: 781b ldrb r3, [r3, #0]
+ 8001860: 461a mov r2, r3
+ 8001862: 4b06 ldr r3, [pc, #24] ; (800187c <HAL_IncTick+0x24>)
+ 8001864: 681b ldr r3, [r3, #0]
+ 8001866: 4413 add r3, r2
+ 8001868: 4a04 ldr r2, [pc, #16] ; (800187c <HAL_IncTick+0x24>)
+ 800186a: 6013 str r3, [r2, #0]
}
- 80018d0: bf00 nop
- 80018d2: 46bd mov sp, r7
- 80018d4: f85d 7b04 ldr.w r7, [sp], #4
- 80018d8: 4770 bx lr
- 80018da: bf00 nop
- 80018dc: 20000008 .word 0x20000008
- 80018e0: 200003e0 .word 0x200003e0
-
-080018e4 <HAL_GetTick>:
+ 800186c: bf00 nop
+ 800186e: 46bd mov sp, r7
+ 8001870: f85d 7b04 ldr.w r7, [sp], #4
+ 8001874: 4770 bx lr
+ 8001876: bf00 nop
+ 8001878: 2000000c .word 0x2000000c
+ 800187c: 2000032c .word 0x2000032c
+
+08001880 <HAL_GetTick>:
* @note This function is declared as __weak to be overwritten in case of other
* implementations in user file.
* @retval tick value
*/
__weak uint32_t HAL_GetTick(void)
{
- 80018e4: b480 push {r7}
- 80018e6: af00 add r7, sp, #0
+ 8001880: b480 push {r7}
+ 8001882: af00 add r7, sp, #0
return uwTick;
- 80018e8: 4b03 ldr r3, [pc, #12] ; (80018f8 <HAL_GetTick+0x14>)
- 80018ea: 681b ldr r3, [r3, #0]
+ 8001884: 4b03 ldr r3, [pc, #12] ; (8001894 <HAL_GetTick+0x14>)
+ 8001886: 681b ldr r3, [r3, #0]
}
- 80018ec: 4618 mov r0, r3
- 80018ee: 46bd mov sp, r7
- 80018f0: f85d 7b04 ldr.w r7, [sp], #4
- 80018f4: 4770 bx lr
- 80018f6: bf00 nop
- 80018f8: 200003e0 .word 0x200003e0
-
-080018fc <__NVIC_SetPriorityGrouping>:
+ 8001888: 4618 mov r0, r3
+ 800188a: 46bd mov sp, r7
+ 800188c: f85d 7b04 ldr.w r7, [sp], #4
+ 8001890: 4770 bx lr
+ 8001892: bf00 nop
+ 8001894: 2000032c .word 0x2000032c
+
+08001898 <__NVIC_SetPriorityGrouping>:
In case of a conflict between priority grouping and available
priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
\param [in] PriorityGroup Priority grouping field.
*/
__STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
{
- 80018fc: b480 push {r7}
- 80018fe: b085 sub sp, #20
- 8001900: af00 add r7, sp, #0
- 8001902: 6078 str r0, [r7, #4]
+ 8001898: b480 push {r7}
+ 800189a: b085 sub sp, #20
+ 800189c: af00 add r7, sp, #0
+ 800189e: 6078 str r0, [r7, #4]
uint32_t reg_value;
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
- 8001904: 687b ldr r3, [r7, #4]
- 8001906: f003 0307 and.w r3, r3, #7
- 800190a: 60fb str r3, [r7, #12]
+ 80018a0: 687b ldr r3, [r7, #4]
+ 80018a2: f003 0307 and.w r3, r3, #7
+ 80018a6: 60fb str r3, [r7, #12]
reg_value = SCB->AIRCR; /* read old register configuration */
- 800190c: 4b0b ldr r3, [pc, #44] ; (800193c <__NVIC_SetPriorityGrouping+0x40>)
- 800190e: 68db ldr r3, [r3, #12]
- 8001910: 60bb str r3, [r7, #8]
+ 80018a8: 4b0b ldr r3, [pc, #44] ; (80018d8 <__NVIC_SetPriorityGrouping+0x40>)
+ 80018aa: 68db ldr r3, [r3, #12]
+ 80018ac: 60bb str r3, [r7, #8]
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
- 8001912: 68ba ldr r2, [r7, #8]
- 8001914: f64f 03ff movw r3, #63743 ; 0xf8ff
- 8001918: 4013 ands r3, r2
- 800191a: 60bb str r3, [r7, #8]
+ 80018ae: 68ba ldr r2, [r7, #8]
+ 80018b0: f64f 03ff movw r3, #63743 ; 0xf8ff
+ 80018b4: 4013 ands r3, r2
+ 80018b6: 60bb str r3, [r7, #8]
reg_value = (reg_value |
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
(PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
- 800191c: 68fb ldr r3, [r7, #12]
- 800191e: 021a lsls r2, r3, #8
+ 80018b8: 68fb ldr r3, [r7, #12]
+ 80018ba: 021a lsls r2, r3, #8
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
- 8001920: 68bb ldr r3, [r7, #8]
- 8001922: 431a orrs r2, r3
+ 80018bc: 68bb ldr r3, [r7, #8]
+ 80018be: 431a orrs r2, r3
reg_value = (reg_value |
- 8001924: 4b06 ldr r3, [pc, #24] ; (8001940 <__NVIC_SetPriorityGrouping+0x44>)
- 8001926: 4313 orrs r3, r2
- 8001928: 60bb str r3, [r7, #8]
+ 80018c0: 4b06 ldr r3, [pc, #24] ; (80018dc <__NVIC_SetPriorityGrouping+0x44>)
+ 80018c2: 4313 orrs r3, r2
+ 80018c4: 60bb str r3, [r7, #8]
SCB->AIRCR = reg_value;
- 800192a: 4a04 ldr r2, [pc, #16] ; (800193c <__NVIC_SetPriorityGrouping+0x40>)
- 800192c: 68bb ldr r3, [r7, #8]
- 800192e: 60d3 str r3, [r2, #12]
+ 80018c6: 4a04 ldr r2, [pc, #16] ; (80018d8 <__NVIC_SetPriorityGrouping+0x40>)
+ 80018c8: 68bb ldr r3, [r7, #8]
+ 80018ca: 60d3 str r3, [r2, #12]
}
- 8001930: bf00 nop
- 8001932: 3714 adds r7, #20
- 8001934: 46bd mov sp, r7
- 8001936: f85d 7b04 ldr.w r7, [sp], #4
- 800193a: 4770 bx lr
- 800193c: e000ed00 .word 0xe000ed00
- 8001940: 05fa0000 .word 0x05fa0000
-
-08001944 <__NVIC_GetPriorityGrouping>:
+ 80018cc: bf00 nop
+ 80018ce: 3714 adds r7, #20
+ 80018d0: 46bd mov sp, r7
+ 80018d2: f85d 7b04 ldr.w r7, [sp], #4
+ 80018d6: 4770 bx lr
+ 80018d8: e000ed00 .word 0xe000ed00
+ 80018dc: 05fa0000 .word 0x05fa0000
+
+080018e0 <__NVIC_GetPriorityGrouping>:
\brief Get Priority Grouping
\details Reads the priority grouping field from the NVIC Interrupt Controller.
\return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
*/
__STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
{
- 8001944: b480 push {r7}
- 8001946: af00 add r7, sp, #0
+ 80018e0: b480 push {r7}
+ 80018e2: af00 add r7, sp, #0
return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
- 8001948: 4b04 ldr r3, [pc, #16] ; (800195c <__NVIC_GetPriorityGrouping+0x18>)
- 800194a: 68db ldr r3, [r3, #12]
- 800194c: 0a1b lsrs r3, r3, #8
- 800194e: f003 0307 and.w r3, r3, #7
+ 80018e4: 4b04 ldr r3, [pc, #16] ; (80018f8 <__NVIC_GetPriorityGrouping+0x18>)
+ 80018e6: 68db ldr r3, [r3, #12]
+ 80018e8: 0a1b lsrs r3, r3, #8
+ 80018ea: f003 0307 and.w r3, r3, #7
}
- 8001952: 4618 mov r0, r3
- 8001954: 46bd mov sp, r7
- 8001956: f85d 7b04 ldr.w r7, [sp], #4
- 800195a: 4770 bx lr
- 800195c: e000ed00 .word 0xe000ed00
+ 80018ee: 4618 mov r0, r3
+ 80018f0: 46bd mov sp, r7
+ 80018f2: f85d 7b04 ldr.w r7, [sp], #4
+ 80018f6: 4770 bx lr
+ 80018f8: e000ed00 .word 0xe000ed00
-08001960 <__NVIC_EnableIRQ>:
+080018fc <__NVIC_EnableIRQ>:
\details Enables a device specific interrupt in the NVIC interrupt controller.
\param [in] IRQn Device specific interrupt number.
\note IRQn must not be negative.
*/
__STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
{
- 8001960: b480 push {r7}
- 8001962: b083 sub sp, #12
- 8001964: af00 add r7, sp, #0
- 8001966: 4603 mov r3, r0
- 8001968: 71fb strb r3, [r7, #7]
+ 80018fc: b480 push {r7}
+ 80018fe: b083 sub sp, #12
+ 8001900: af00 add r7, sp, #0
+ 8001902: 4603 mov r3, r0
+ 8001904: 71fb strb r3, [r7, #7]
if ((int32_t)(IRQn) >= 0)
- 800196a: f997 3007 ldrsb.w r3, [r7, #7]
- 800196e: 2b00 cmp r3, #0
- 8001970: db0b blt.n 800198a <__NVIC_EnableIRQ+0x2a>
+ 8001906: f997 3007 ldrsb.w r3, [r7, #7]
+ 800190a: 2b00 cmp r3, #0
+ 800190c: db0b blt.n 8001926 <__NVIC_EnableIRQ+0x2a>
{
NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
- 8001972: 79fb ldrb r3, [r7, #7]
- 8001974: f003 021f and.w r2, r3, #31
- 8001978: 4907 ldr r1, [pc, #28] ; (8001998 <__NVIC_EnableIRQ+0x38>)
- 800197a: f997 3007 ldrsb.w r3, [r7, #7]
- 800197e: 095b lsrs r3, r3, #5
- 8001980: 2001 movs r0, #1
- 8001982: fa00 f202 lsl.w r2, r0, r2
- 8001986: f841 2023 str.w r2, [r1, r3, lsl #2]
+ 800190e: 79fb ldrb r3, [r7, #7]
+ 8001910: f003 021f and.w r2, r3, #31
+ 8001914: 4907 ldr r1, [pc, #28] ; (8001934 <__NVIC_EnableIRQ+0x38>)
+ 8001916: f997 3007 ldrsb.w r3, [r7, #7]
+ 800191a: 095b lsrs r3, r3, #5
+ 800191c: 2001 movs r0, #1
+ 800191e: fa00 f202 lsl.w r2, r0, r2
+ 8001922: f841 2023 str.w r2, [r1, r3, lsl #2]
}
}
- 800198a: bf00 nop
- 800198c: 370c adds r7, #12
- 800198e: 46bd mov sp, r7
- 8001990: f85d 7b04 ldr.w r7, [sp], #4
- 8001994: 4770 bx lr
- 8001996: bf00 nop
- 8001998: e000e100 .word 0xe000e100
-
-0800199c <__NVIC_SetPriority>:
+ 8001926: bf00 nop
+ 8001928: 370c adds r7, #12
+ 800192a: 46bd mov sp, r7
+ 800192c: f85d 7b04 ldr.w r7, [sp], #4
+ 8001930: 4770 bx lr
+ 8001932: bf00 nop
+ 8001934: e000e100 .word 0xe000e100
+
+08001938 <__NVIC_SetPriority>:
\param [in] IRQn Interrupt number.
\param [in] priority Priority to set.
\note The priority cannot be set for every processor exception.
*/
__STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
{
- 800199c: b480 push {r7}
- 800199e: b083 sub sp, #12
- 80019a0: af00 add r7, sp, #0
- 80019a2: 4603 mov r3, r0
- 80019a4: 6039 str r1, [r7, #0]
- 80019a6: 71fb strb r3, [r7, #7]
+ 8001938: b480 push {r7}
+ 800193a: b083 sub sp, #12
+ 800193c: af00 add r7, sp, #0
+ 800193e: 4603 mov r3, r0
+ 8001940: 6039 str r1, [r7, #0]
+ 8001942: 71fb strb r3, [r7, #7]
if ((int32_t)(IRQn) >= 0)
- 80019a8: f997 3007 ldrsb.w r3, [r7, #7]
- 80019ac: 2b00 cmp r3, #0
- 80019ae: db0a blt.n 80019c6 <__NVIC_SetPriority+0x2a>
+ 8001944: f997 3007 ldrsb.w r3, [r7, #7]
+ 8001948: 2b00 cmp r3, #0
+ 800194a: db0a blt.n 8001962 <__NVIC_SetPriority+0x2a>
{
NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
- 80019b0: 683b ldr r3, [r7, #0]
- 80019b2: b2da uxtb r2, r3
- 80019b4: 490c ldr r1, [pc, #48] ; (80019e8 <__NVIC_SetPriority+0x4c>)
- 80019b6: f997 3007 ldrsb.w r3, [r7, #7]
- 80019ba: 0112 lsls r2, r2, #4
- 80019bc: b2d2 uxtb r2, r2
- 80019be: 440b add r3, r1
- 80019c0: f883 2300 strb.w r2, [r3, #768] ; 0x300
+ 800194c: 683b ldr r3, [r7, #0]
+ 800194e: b2da uxtb r2, r3
+ 8001950: 490c ldr r1, [pc, #48] ; (8001984 <__NVIC_SetPriority+0x4c>)
+ 8001952: f997 3007 ldrsb.w r3, [r7, #7]
+ 8001956: 0112 lsls r2, r2, #4
+ 8001958: b2d2 uxtb r2, r2
+ 800195a: 440b add r3, r1
+ 800195c: f883 2300 strb.w r2, [r3, #768] ; 0x300
}
else
{
SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
}
}
- 80019c4: e00a b.n 80019dc <__NVIC_SetPriority+0x40>
+ 8001960: e00a b.n 8001978 <__NVIC_SetPriority+0x40>
SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
- 80019c6: 683b ldr r3, [r7, #0]
- 80019c8: b2da uxtb r2, r3
- 80019ca: 4908 ldr r1, [pc, #32] ; (80019ec <__NVIC_SetPriority+0x50>)
- 80019cc: 79fb ldrb r3, [r7, #7]
- 80019ce: f003 030f and.w r3, r3, #15
- 80019d2: 3b04 subs r3, #4
- 80019d4: 0112 lsls r2, r2, #4
- 80019d6: b2d2 uxtb r2, r2
- 80019d8: 440b add r3, r1
- 80019da: 761a strb r2, [r3, #24]
+ 8001962: 683b ldr r3, [r7, #0]
+ 8001964: b2da uxtb r2, r3
+ 8001966: 4908 ldr r1, [pc, #32] ; (8001988 <__NVIC_SetPriority+0x50>)
+ 8001968: 79fb ldrb r3, [r7, #7]
+ 800196a: f003 030f and.w r3, r3, #15
+ 800196e: 3b04 subs r3, #4
+ 8001970: 0112 lsls r2, r2, #4
+ 8001972: b2d2 uxtb r2, r2
+ 8001974: 440b add r3, r1
+ 8001976: 761a strb r2, [r3, #24]
}
- 80019dc: bf00 nop
- 80019de: 370c adds r7, #12
- 80019e0: 46bd mov sp, r7
- 80019e2: f85d 7b04 ldr.w r7, [sp], #4
- 80019e6: 4770 bx lr
- 80019e8: e000e100 .word 0xe000e100
- 80019ec: e000ed00 .word 0xe000ed00
-
-080019f0 <NVIC_EncodePriority>:
+ 8001978: bf00 nop
+ 800197a: 370c adds r7, #12
+ 800197c: 46bd mov sp, r7
+ 800197e: f85d 7b04 ldr.w r7, [sp], #4
+ 8001982: 4770 bx lr
+ 8001984: e000e100 .word 0xe000e100
+ 8001988: e000ed00 .word 0xe000ed00
+
+0800198c <NVIC_EncodePriority>:
\param [in] PreemptPriority Preemptive priority value (starting from 0).
\param [in] SubPriority Subpriority value (starting from 0).
\return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
*/
__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
{
- 80019f0: b480 push {r7}
- 80019f2: b089 sub sp, #36 ; 0x24
- 80019f4: af00 add r7, sp, #0
- 80019f6: 60f8 str r0, [r7, #12]
- 80019f8: 60b9 str r1, [r7, #8]
- 80019fa: 607a str r2, [r7, #4]
+ 800198c: b480 push {r7}
+ 800198e: b089 sub sp, #36 ; 0x24
+ 8001990: af00 add r7, sp, #0
+ 8001992: 60f8 str r0, [r7, #12]
+ 8001994: 60b9 str r1, [r7, #8]
+ 8001996: 607a str r2, [r7, #4]
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
- 80019fc: 68fb ldr r3, [r7, #12]
- 80019fe: f003 0307 and.w r3, r3, #7
- 8001a02: 61fb str r3, [r7, #28]
+ 8001998: 68fb ldr r3, [r7, #12]
+ 800199a: f003 0307 and.w r3, r3, #7
+ 800199e: 61fb str r3, [r7, #28]
uint32_t PreemptPriorityBits;
uint32_t SubPriorityBits;
PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
- 8001a04: 69fb ldr r3, [r7, #28]
- 8001a06: f1c3 0307 rsb r3, r3, #7
- 8001a0a: 2b04 cmp r3, #4
- 8001a0c: bf28 it cs
- 8001a0e: 2304 movcs r3, #4
- 8001a10: 61bb str r3, [r7, #24]
+ 80019a0: 69fb ldr r3, [r7, #28]
+ 80019a2: f1c3 0307 rsb r3, r3, #7
+ 80019a6: 2b04 cmp r3, #4
+ 80019a8: bf28 it cs
+ 80019aa: 2304 movcs r3, #4
+ 80019ac: 61bb str r3, [r7, #24]
SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
- 8001a12: 69fb ldr r3, [r7, #28]
- 8001a14: 3304 adds r3, #4
- 8001a16: 2b06 cmp r3, #6
- 8001a18: d902 bls.n 8001a20 <NVIC_EncodePriority+0x30>
- 8001a1a: 69fb ldr r3, [r7, #28]
- 8001a1c: 3b03 subs r3, #3
- 8001a1e: e000 b.n 8001a22 <NVIC_EncodePriority+0x32>
- 8001a20: 2300 movs r3, #0
- 8001a22: 617b str r3, [r7, #20]
+ 80019ae: 69fb ldr r3, [r7, #28]
+ 80019b0: 3304 adds r3, #4
+ 80019b2: 2b06 cmp r3, #6
+ 80019b4: d902 bls.n 80019bc <NVIC_EncodePriority+0x30>
+ 80019b6: 69fb ldr r3, [r7, #28]
+ 80019b8: 3b03 subs r3, #3
+ 80019ba: e000 b.n 80019be <NVIC_EncodePriority+0x32>
+ 80019bc: 2300 movs r3, #0
+ 80019be: 617b str r3, [r7, #20]
return (
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
- 8001a24: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
- 8001a28: 69bb ldr r3, [r7, #24]
- 8001a2a: fa02 f303 lsl.w r3, r2, r3
- 8001a2e: 43da mvns r2, r3
- 8001a30: 68bb ldr r3, [r7, #8]
- 8001a32: 401a ands r2, r3
- 8001a34: 697b ldr r3, [r7, #20]
- 8001a36: 409a lsls r2, r3
+ 80019c0: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
+ 80019c4: 69bb ldr r3, [r7, #24]
+ 80019c6: fa02 f303 lsl.w r3, r2, r3
+ 80019ca: 43da mvns r2, r3
+ 80019cc: 68bb ldr r3, [r7, #8]
+ 80019ce: 401a ands r2, r3
+ 80019d0: 697b ldr r3, [r7, #20]
+ 80019d2: 409a lsls r2, r3
((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
- 8001a38: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
- 8001a3c: 697b ldr r3, [r7, #20]
- 8001a3e: fa01 f303 lsl.w r3, r1, r3
- 8001a42: 43d9 mvns r1, r3
- 8001a44: 687b ldr r3, [r7, #4]
- 8001a46: 400b ands r3, r1
+ 80019d4: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
+ 80019d8: 697b ldr r3, [r7, #20]
+ 80019da: fa01 f303 lsl.w r3, r1, r3
+ 80019de: 43d9 mvns r1, r3
+ 80019e0: 687b ldr r3, [r7, #4]
+ 80019e2: 400b ands r3, r1
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
- 8001a48: 4313 orrs r3, r2
+ 80019e4: 4313 orrs r3, r2
);
}
- 8001a4a: 4618 mov r0, r3
- 8001a4c: 3724 adds r7, #36 ; 0x24
- 8001a4e: 46bd mov sp, r7
- 8001a50: f85d 7b04 ldr.w r7, [sp], #4
- 8001a54: 4770 bx lr
+ 80019e6: 4618 mov r0, r3
+ 80019e8: 3724 adds r7, #36 ; 0x24
+ 80019ea: 46bd mov sp, r7
+ 80019ec: f85d 7b04 ldr.w r7, [sp], #4
+ 80019f0: 4770 bx lr
...
-08001a58 <SysTick_Config>:
+080019f4 <SysTick_Config>:
\note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the
function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
must contain a vendor-specific implementation of this function.
*/
__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
{
- 8001a58: b580 push {r7, lr}
- 8001a5a: b082 sub sp, #8
- 8001a5c: af00 add r7, sp, #0
- 8001a5e: 6078 str r0, [r7, #4]
+ 80019f4: b580 push {r7, lr}
+ 80019f6: b082 sub sp, #8
+ 80019f8: af00 add r7, sp, #0
+ 80019fa: 6078 str r0, [r7, #4]
if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
- 8001a60: 687b ldr r3, [r7, #4]
- 8001a62: 3b01 subs r3, #1
- 8001a64: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000
- 8001a68: d301 bcc.n 8001a6e <SysTick_Config+0x16>
+ 80019fc: 687b ldr r3, [r7, #4]
+ 80019fe: 3b01 subs r3, #1
+ 8001a00: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000
+ 8001a04: d301 bcc.n 8001a0a <SysTick_Config+0x16>
{
return (1UL); /* Reload value impossible */
- 8001a6a: 2301 movs r3, #1
- 8001a6c: e00f b.n 8001a8e <SysTick_Config+0x36>
+ 8001a06: 2301 movs r3, #1
+ 8001a08: e00f b.n 8001a2a <SysTick_Config+0x36>
}
SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
- 8001a6e: 4a0a ldr r2, [pc, #40] ; (8001a98 <SysTick_Config+0x40>)
- 8001a70: 687b ldr r3, [r7, #4]
- 8001a72: 3b01 subs r3, #1
- 8001a74: 6053 str r3, [r2, #4]
+ 8001a0a: 4a0a ldr r2, [pc, #40] ; (8001a34 <SysTick_Config+0x40>)
+ 8001a0c: 687b ldr r3, [r7, #4]
+ 8001a0e: 3b01 subs r3, #1
+ 8001a10: 6053 str r3, [r2, #4]
NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
- 8001a76: 210f movs r1, #15
- 8001a78: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
- 8001a7c: f7ff ff8e bl 800199c <__NVIC_SetPriority>
+ 8001a12: 210f movs r1, #15
+ 8001a14: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
+ 8001a18: f7ff ff8e bl 8001938 <__NVIC_SetPriority>
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
- 8001a80: 4b05 ldr r3, [pc, #20] ; (8001a98 <SysTick_Config+0x40>)
- 8001a82: 2200 movs r2, #0
- 8001a84: 609a str r2, [r3, #8]
+ 8001a1c: 4b05 ldr r3, [pc, #20] ; (8001a34 <SysTick_Config+0x40>)
+ 8001a1e: 2200 movs r2, #0
+ 8001a20: 609a str r2, [r3, #8]
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
- 8001a86: 4b04 ldr r3, [pc, #16] ; (8001a98 <SysTick_Config+0x40>)
- 8001a88: 2207 movs r2, #7
- 8001a8a: 601a str r2, [r3, #0]
+ 8001a22: 4b04 ldr r3, [pc, #16] ; (8001a34 <SysTick_Config+0x40>)
+ 8001a24: 2207 movs r2, #7
+ 8001a26: 601a str r2, [r3, #0]
SysTick_CTRL_TICKINT_Msk |
SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
return (0UL); /* Function successful */
- 8001a8c: 2300 movs r3, #0
+ 8001a28: 2300 movs r3, #0
}
- 8001a8e: 4618 mov r0, r3
- 8001a90: 3708 adds r7, #8
- 8001a92: 46bd mov sp, r7
- 8001a94: bd80 pop {r7, pc}
- 8001a96: bf00 nop
- 8001a98: e000e010 .word 0xe000e010
-
-08001a9c <HAL_NVIC_SetPriorityGrouping>:
+ 8001a2a: 4618 mov r0, r3
+ 8001a2c: 3708 adds r7, #8
+ 8001a2e: 46bd mov sp, r7
+ 8001a30: bd80 pop {r7, pc}
+ 8001a32: bf00 nop
+ 8001a34: e000e010 .word 0xe000e010
+
+08001a38 <HAL_NVIC_SetPriorityGrouping>:
* @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
* The pending IRQ priority will be managed only by the subpriority.
* @retval None
*/
void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
{
- 8001a9c: b580 push {r7, lr}
- 8001a9e: b082 sub sp, #8
- 8001aa0: af00 add r7, sp, #0
- 8001aa2: 6078 str r0, [r7, #4]
+ 8001a38: b580 push {r7, lr}
+ 8001a3a: b082 sub sp, #8
+ 8001a3c: af00 add r7, sp, #0
+ 8001a3e: 6078 str r0, [r7, #4]
/* Check the parameters */
assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
/* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
NVIC_SetPriorityGrouping(PriorityGroup);
- 8001aa4: 6878 ldr r0, [r7, #4]
- 8001aa6: f7ff ff29 bl 80018fc <__NVIC_SetPriorityGrouping>
+ 8001a40: 6878 ldr r0, [r7, #4]
+ 8001a42: f7ff ff29 bl 8001898 <__NVIC_SetPriorityGrouping>
}
- 8001aaa: bf00 nop
- 8001aac: 3708 adds r7, #8
- 8001aae: 46bd mov sp, r7
- 8001ab0: bd80 pop {r7, pc}
+ 8001a46: bf00 nop
+ 8001a48: 3708 adds r7, #8
+ 8001a4a: 46bd mov sp, r7
+ 8001a4c: bd80 pop {r7, pc}
-08001ab2 <HAL_NVIC_SetPriority>:
+08001a4e <HAL_NVIC_SetPriority>:
* This parameter can be a value between 0 and 15
* A lower priority value indicates a higher priority.
* @retval None
*/
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
{
- 8001ab2: b580 push {r7, lr}
- 8001ab4: b086 sub sp, #24
- 8001ab6: af00 add r7, sp, #0
- 8001ab8: 4603 mov r3, r0
- 8001aba: 60b9 str r1, [r7, #8]
- 8001abc: 607a str r2, [r7, #4]
- 8001abe: 73fb strb r3, [r7, #15]
+ 8001a4e: b580 push {r7, lr}
+ 8001a50: b086 sub sp, #24
+ 8001a52: af00 add r7, sp, #0
+ 8001a54: 4603 mov r3, r0
+ 8001a56: 60b9 str r1, [r7, #8]
+ 8001a58: 607a str r2, [r7, #4]
+ 8001a5a: 73fb strb r3, [r7, #15]
uint32_t prioritygroup = 0x00;
- 8001ac0: 2300 movs r3, #0
- 8001ac2: 617b str r3, [r7, #20]
+ 8001a5c: 2300 movs r3, #0
+ 8001a5e: 617b str r3, [r7, #20]
/* Check the parameters */
assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
prioritygroup = NVIC_GetPriorityGrouping();
- 8001ac4: f7ff ff3e bl 8001944 <__NVIC_GetPriorityGrouping>
- 8001ac8: 6178 str r0, [r7, #20]
+ 8001a60: f7ff ff3e bl 80018e0 <__NVIC_GetPriorityGrouping>
+ 8001a64: 6178 str r0, [r7, #20]
NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
- 8001aca: 687a ldr r2, [r7, #4]
- 8001acc: 68b9 ldr r1, [r7, #8]
- 8001ace: 6978 ldr r0, [r7, #20]
- 8001ad0: f7ff ff8e bl 80019f0 <NVIC_EncodePriority>
- 8001ad4: 4602 mov r2, r0
- 8001ad6: f997 300f ldrsb.w r3, [r7, #15]
- 8001ada: 4611 mov r1, r2
- 8001adc: 4618 mov r0, r3
- 8001ade: f7ff ff5d bl 800199c <__NVIC_SetPriority>
+ 8001a66: 687a ldr r2, [r7, #4]
+ 8001a68: 68b9 ldr r1, [r7, #8]
+ 8001a6a: 6978 ldr r0, [r7, #20]
+ 8001a6c: f7ff ff8e bl 800198c <NVIC_EncodePriority>
+ 8001a70: 4602 mov r2, r0
+ 8001a72: f997 300f ldrsb.w r3, [r7, #15]
+ 8001a76: 4611 mov r1, r2
+ 8001a78: 4618 mov r0, r3
+ 8001a7a: f7ff ff5d bl 8001938 <__NVIC_SetPriority>
}
- 8001ae2: bf00 nop
- 8001ae4: 3718 adds r7, #24
- 8001ae6: 46bd mov sp, r7
- 8001ae8: bd80 pop {r7, pc}
+ 8001a7e: bf00 nop
+ 8001a80: 3718 adds r7, #24
+ 8001a82: 46bd mov sp, r7
+ 8001a84: bd80 pop {r7, pc}
-08001aea <HAL_NVIC_EnableIRQ>:
+08001a86 <HAL_NVIC_EnableIRQ>:
* This parameter can be an enumerator of IRQn_Type enumeration
* (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f7xxxx.h))
* @retval None
*/
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
{
- 8001aea: b580 push {r7, lr}
- 8001aec: b082 sub sp, #8
- 8001aee: af00 add r7, sp, #0
- 8001af0: 4603 mov r3, r0
- 8001af2: 71fb strb r3, [r7, #7]
+ 8001a86: b580 push {r7, lr}
+ 8001a88: b082 sub sp, #8
+ 8001a8a: af00 add r7, sp, #0
+ 8001a8c: 4603 mov r3, r0
+ 8001a8e: 71fb strb r3, [r7, #7]
/* Check the parameters */
assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
/* Enable interrupt */
NVIC_EnableIRQ(IRQn);
- 8001af4: f997 3007 ldrsb.w r3, [r7, #7]
- 8001af8: 4618 mov r0, r3
- 8001afa: f7ff ff31 bl 8001960 <__NVIC_EnableIRQ>
+ 8001a90: f997 3007 ldrsb.w r3, [r7, #7]
+ 8001a94: 4618 mov r0, r3
+ 8001a96: f7ff ff31 bl 80018fc <__NVIC_EnableIRQ>
}
- 8001afe: bf00 nop
- 8001b00: 3708 adds r7, #8
- 8001b02: 46bd mov sp, r7
- 8001b04: bd80 pop {r7, pc}
+ 8001a9a: bf00 nop
+ 8001a9c: 3708 adds r7, #8
+ 8001a9e: 46bd mov sp, r7
+ 8001aa0: bd80 pop {r7, pc}
-08001b06 <HAL_SYSTICK_Config>:
+08001aa2 <HAL_SYSTICK_Config>:
* @param TicksNumb Specifies the ticks Number of ticks between two interrupts.
* @retval status: - 0 Function succeeded.
* - 1 Function failed.
*/
uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
{
- 8001b06: b580 push {r7, lr}
- 8001b08: b082 sub sp, #8
- 8001b0a: af00 add r7, sp, #0
- 8001b0c: 6078 str r0, [r7, #4]
+ 8001aa2: b580 push {r7, lr}
+ 8001aa4: b082 sub sp, #8
+ 8001aa6: af00 add r7, sp, #0
+ 8001aa8: 6078 str r0, [r7, #4]
return SysTick_Config(TicksNumb);
- 8001b0e: 6878 ldr r0, [r7, #4]
- 8001b10: f7ff ffa2 bl 8001a58 <SysTick_Config>
- 8001b14: 4603 mov r3, r0
-}
- 8001b16: 4618 mov r0, r3
- 8001b18: 3708 adds r7, #8
- 8001b1a: 46bd mov sp, r7
- 8001b1c: bd80 pop {r7, pc}
- ...
-
-08001b20 <HAL_DMA_Init>:
- * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Stream.
- * @retval HAL status
- */
-HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
-{
- 8001b20: b580 push {r7, lr}
- 8001b22: b086 sub sp, #24
- 8001b24: af00 add r7, sp, #0
- 8001b26: 6078 str r0, [r7, #4]
- uint32_t tmp = 0U;
- 8001b28: 2300 movs r3, #0
- 8001b2a: 617b str r3, [r7, #20]
- uint32_t tickstart = HAL_GetTick();
- 8001b2c: f7ff feda bl 80018e4 <HAL_GetTick>
- 8001b30: 6138 str r0, [r7, #16]
- DMA_Base_Registers *regs;
-
- /* Check the DMA peripheral state */
- if(hdma == NULL)
- 8001b32: 687b ldr r3, [r7, #4]
- 8001b34: 2b00 cmp r3, #0
- 8001b36: d101 bne.n 8001b3c <HAL_DMA_Init+0x1c>
- {
- return HAL_ERROR;
- 8001b38: 2301 movs r3, #1
- 8001b3a: e099 b.n 8001c70 <HAL_DMA_Init+0x150>
- assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
- assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
- }
-
- /* Allocate lock resource */
- __HAL_UNLOCK(hdma);
- 8001b3c: 687b ldr r3, [r7, #4]
- 8001b3e: 2200 movs r2, #0
- 8001b40: f883 2034 strb.w r2, [r3, #52] ; 0x34
-
- /* Change DMA peripheral state */
- hdma->State = HAL_DMA_STATE_BUSY;
- 8001b44: 687b ldr r3, [r7, #4]
- 8001b46: 2202 movs r2, #2
- 8001b48: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- /* Disable the peripheral */
- __HAL_DMA_DISABLE(hdma);
- 8001b4c: 687b ldr r3, [r7, #4]
- 8001b4e: 681b ldr r3, [r3, #0]
- 8001b50: 681a ldr r2, [r3, #0]
- 8001b52: 687b ldr r3, [r7, #4]
- 8001b54: 681b ldr r3, [r3, #0]
- 8001b56: f022 0201 bic.w r2, r2, #1
- 8001b5a: 601a str r2, [r3, #0]
-
- /* Check if the DMA Stream is effectively disabled */
- while((hdma->Instance->CR & DMA_SxCR_EN) != RESET)
- 8001b5c: e00f b.n 8001b7e <HAL_DMA_Init+0x5e>
- {
- /* Check for the Timeout */
- if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
- 8001b5e: f7ff fec1 bl 80018e4 <HAL_GetTick>
- 8001b62: 4602 mov r2, r0
- 8001b64: 693b ldr r3, [r7, #16]
- 8001b66: 1ad3 subs r3, r2, r3
- 8001b68: 2b05 cmp r3, #5
- 8001b6a: d908 bls.n 8001b7e <HAL_DMA_Init+0x5e>
- {
- /* Update error code */
- hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
- 8001b6c: 687b ldr r3, [r7, #4]
- 8001b6e: 2220 movs r2, #32
- 8001b70: 655a str r2, [r3, #84] ; 0x54
-
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_TIMEOUT;
- 8001b72: 687b ldr r3, [r7, #4]
- 8001b74: 2203 movs r2, #3
- 8001b76: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- return HAL_TIMEOUT;
- 8001b7a: 2303 movs r3, #3
- 8001b7c: e078 b.n 8001c70 <HAL_DMA_Init+0x150>
- while((hdma->Instance->CR & DMA_SxCR_EN) != RESET)
- 8001b7e: 687b ldr r3, [r7, #4]
- 8001b80: 681b ldr r3, [r3, #0]
- 8001b82: 681b ldr r3, [r3, #0]
- 8001b84: f003 0301 and.w r3, r3, #1
- 8001b88: 2b00 cmp r3, #0
- 8001b8a: d1e8 bne.n 8001b5e <HAL_DMA_Init+0x3e>
- }
- }
-
- /* Get the CR register value */
- tmp = hdma->Instance->CR;
- 8001b8c: 687b ldr r3, [r7, #4]
- 8001b8e: 681b ldr r3, [r3, #0]
- 8001b90: 681b ldr r3, [r3, #0]
- 8001b92: 617b str r3, [r7, #20]
-
- /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
- tmp &= ((uint32_t)~(DMA_SxCR_CHSEL | DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
- 8001b94: 697a ldr r2, [r7, #20]
- 8001b96: 4b38 ldr r3, [pc, #224] ; (8001c78 <HAL_DMA_Init+0x158>)
- 8001b98: 4013 ands r3, r2
- 8001b9a: 617b str r3, [r7, #20]
- DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
- DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
- DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
-
- /* Prepare the DMA Stream configuration */
- tmp |= hdma->Init.Channel | hdma->Init.Direction |
- 8001b9c: 687b ldr r3, [r7, #4]
- 8001b9e: 685a ldr r2, [r3, #4]
- 8001ba0: 687b ldr r3, [r7, #4]
- 8001ba2: 689b ldr r3, [r3, #8]
- 8001ba4: 431a orrs r2, r3
- hdma->Init.PeriphInc | hdma->Init.MemInc |
- 8001ba6: 687b ldr r3, [r7, #4]
- 8001ba8: 68db ldr r3, [r3, #12]
- tmp |= hdma->Init.Channel | hdma->Init.Direction |
- 8001baa: 431a orrs r2, r3
- hdma->Init.PeriphInc | hdma->Init.MemInc |
- 8001bac: 687b ldr r3, [r7, #4]
- 8001bae: 691b ldr r3, [r3, #16]
- 8001bb0: 431a orrs r2, r3
- hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
- 8001bb2: 687b ldr r3, [r7, #4]
- 8001bb4: 695b ldr r3, [r3, #20]
- hdma->Init.PeriphInc | hdma->Init.MemInc |
- 8001bb6: 431a orrs r2, r3
- hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
- 8001bb8: 687b ldr r3, [r7, #4]
- 8001bba: 699b ldr r3, [r3, #24]
- 8001bbc: 431a orrs r2, r3
- hdma->Init.Mode | hdma->Init.Priority;
- 8001bbe: 687b ldr r3, [r7, #4]
- 8001bc0: 69db ldr r3, [r3, #28]
- hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
- 8001bc2: 431a orrs r2, r3
- hdma->Init.Mode | hdma->Init.Priority;
- 8001bc4: 687b ldr r3, [r7, #4]
- 8001bc6: 6a1b ldr r3, [r3, #32]
- 8001bc8: 4313 orrs r3, r2
- tmp |= hdma->Init.Channel | hdma->Init.Direction |
- 8001bca: 697a ldr r2, [r7, #20]
- 8001bcc: 4313 orrs r3, r2
- 8001bce: 617b str r3, [r7, #20]
-
- /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
- if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
- 8001bd0: 687b ldr r3, [r7, #4]
- 8001bd2: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001bd4: 2b04 cmp r3, #4
- 8001bd6: d107 bne.n 8001be8 <HAL_DMA_Init+0xc8>
- {
- /* Get memory burst and peripheral burst */
- tmp |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
- 8001bd8: 687b ldr r3, [r7, #4]
- 8001bda: 6ada ldr r2, [r3, #44] ; 0x2c
- 8001bdc: 687b ldr r3, [r7, #4]
- 8001bde: 6b1b ldr r3, [r3, #48] ; 0x30
- 8001be0: 4313 orrs r3, r2
- 8001be2: 697a ldr r2, [r7, #20]
- 8001be4: 4313 orrs r3, r2
- 8001be6: 617b str r3, [r7, #20]
- }
-
- /* Write to DMA Stream CR register */
- hdma->Instance->CR = tmp;
- 8001be8: 687b ldr r3, [r7, #4]
- 8001bea: 681b ldr r3, [r3, #0]
- 8001bec: 697a ldr r2, [r7, #20]
- 8001bee: 601a str r2, [r3, #0]
-
- /* Get the FCR register value */
- tmp = hdma->Instance->FCR;
- 8001bf0: 687b ldr r3, [r7, #4]
- 8001bf2: 681b ldr r3, [r3, #0]
- 8001bf4: 695b ldr r3, [r3, #20]
- 8001bf6: 617b str r3, [r7, #20]
-
- /* Clear Direct mode and FIFO threshold bits */
- tmp &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
- 8001bf8: 697b ldr r3, [r7, #20]
- 8001bfa: f023 0307 bic.w r3, r3, #7
- 8001bfe: 617b str r3, [r7, #20]
-
- /* Prepare the DMA Stream FIFO configuration */
- tmp |= hdma->Init.FIFOMode;
- 8001c00: 687b ldr r3, [r7, #4]
- 8001c02: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001c04: 697a ldr r2, [r7, #20]
- 8001c06: 4313 orrs r3, r2
- 8001c08: 617b str r3, [r7, #20]
-
- /* The FIFO threshold is not used when the FIFO mode is disabled */
- if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
- 8001c0a: 687b ldr r3, [r7, #4]
- 8001c0c: 6a5b ldr r3, [r3, #36] ; 0x24
- 8001c0e: 2b04 cmp r3, #4
- 8001c10: d117 bne.n 8001c42 <HAL_DMA_Init+0x122>
- {
- /* Get the FIFO threshold */
- tmp |= hdma->Init.FIFOThreshold;
- 8001c12: 687b ldr r3, [r7, #4]
- 8001c14: 6a9b ldr r3, [r3, #40] ; 0x28
- 8001c16: 697a ldr r2, [r7, #20]
- 8001c18: 4313 orrs r3, r2
- 8001c1a: 617b str r3, [r7, #20]
-
- /* Check compatibility between FIFO threshold level and size of the memory burst */
- /* for INCR4, INCR8, INCR16 bursts */
- if (hdma->Init.MemBurst != DMA_MBURST_SINGLE)
- 8001c1c: 687b ldr r3, [r7, #4]
- 8001c1e: 6adb ldr r3, [r3, #44] ; 0x2c
- 8001c20: 2b00 cmp r3, #0
- 8001c22: d00e beq.n 8001c42 <HAL_DMA_Init+0x122>
- {
- if (DMA_CheckFifoParam(hdma) != HAL_OK)
- 8001c24: 6878 ldr r0, [r7, #4]
- 8001c26: f000 fa0b bl 8002040 <DMA_CheckFifoParam>
- 8001c2a: 4603 mov r3, r0
- 8001c2c: 2b00 cmp r3, #0
- 8001c2e: d008 beq.n 8001c42 <HAL_DMA_Init+0x122>
- {
- /* Update error code */
- hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
- 8001c30: 687b ldr r3, [r7, #4]
- 8001c32: 2240 movs r2, #64 ; 0x40
- 8001c34: 655a str r2, [r3, #84] ; 0x54
-
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8001c36: 687b ldr r3, [r7, #4]
- 8001c38: 2201 movs r2, #1
- 8001c3a: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- return HAL_ERROR;
- 8001c3e: 2301 movs r3, #1
- 8001c40: e016 b.n 8001c70 <HAL_DMA_Init+0x150>
- }
- }
- }
-
- /* Write to DMA Stream FCR */
- hdma->Instance->FCR = tmp;
- 8001c42: 687b ldr r3, [r7, #4]
- 8001c44: 681b ldr r3, [r3, #0]
- 8001c46: 697a ldr r2, [r7, #20]
- 8001c48: 615a str r2, [r3, #20]
-
- /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
- DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
- regs = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
- 8001c4a: 6878 ldr r0, [r7, #4]
- 8001c4c: f000 f9c2 bl 8001fd4 <DMA_CalcBaseAndBitshift>
- 8001c50: 4603 mov r3, r0
- 8001c52: 60fb str r3, [r7, #12]
-
- /* Clear all interrupt flags */
- regs->IFCR = 0x3FU << hdma->StreamIndex;
- 8001c54: 687b ldr r3, [r7, #4]
- 8001c56: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001c58: 223f movs r2, #63 ; 0x3f
- 8001c5a: 409a lsls r2, r3
- 8001c5c: 68fb ldr r3, [r7, #12]
- 8001c5e: 609a str r2, [r3, #8]
-
- /* Initialize the error code */
- hdma->ErrorCode = HAL_DMA_ERROR_NONE;
- 8001c60: 687b ldr r3, [r7, #4]
- 8001c62: 2200 movs r2, #0
- 8001c64: 655a str r2, [r3, #84] ; 0x54
-
- /* Initialize the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8001c66: 687b ldr r3, [r7, #4]
- 8001c68: 2201 movs r2, #1
- 8001c6a: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- return HAL_OK;
- 8001c6e: 2300 movs r3, #0
-}
- 8001c70: 4618 mov r0, r3
- 8001c72: 3718 adds r7, #24
- 8001c74: 46bd mov sp, r7
- 8001c76: bd80 pop {r7, pc}
- 8001c78: e010803f .word 0xe010803f
-
-08001c7c <HAL_DMA_Abort_IT>:
- * @param hdma pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Stream.
- * @retval HAL status
- */
-HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
-{
- 8001c7c: b480 push {r7}
- 8001c7e: b083 sub sp, #12
- 8001c80: af00 add r7, sp, #0
- 8001c82: 6078 str r0, [r7, #4]
- if(hdma->State != HAL_DMA_STATE_BUSY)
- 8001c84: 687b ldr r3, [r7, #4]
- 8001c86: f893 3035 ldrb.w r3, [r3, #53] ; 0x35
- 8001c8a: b2db uxtb r3, r3
- 8001c8c: 2b02 cmp r3, #2
- 8001c8e: d004 beq.n 8001c9a <HAL_DMA_Abort_IT+0x1e>
- {
- hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
- 8001c90: 687b ldr r3, [r7, #4]
- 8001c92: 2280 movs r2, #128 ; 0x80
- 8001c94: 655a str r2, [r3, #84] ; 0x54
- return HAL_ERROR;
- 8001c96: 2301 movs r3, #1
- 8001c98: e00c b.n 8001cb4 <HAL_DMA_Abort_IT+0x38>
- }
- else
- {
- /* Set Abort State */
- hdma->State = HAL_DMA_STATE_ABORT;
- 8001c9a: 687b ldr r3, [r7, #4]
- 8001c9c: 2205 movs r2, #5
- 8001c9e: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- /* Disable the stream */
- __HAL_DMA_DISABLE(hdma);
- 8001ca2: 687b ldr r3, [r7, #4]
- 8001ca4: 681b ldr r3, [r3, #0]
- 8001ca6: 681a ldr r2, [r3, #0]
- 8001ca8: 687b ldr r3, [r7, #4]
- 8001caa: 681b ldr r3, [r3, #0]
- 8001cac: f022 0201 bic.w r2, r2, #1
- 8001cb0: 601a str r2, [r3, #0]
- }
-
- return HAL_OK;
- 8001cb2: 2300 movs r3, #0
-}
- 8001cb4: 4618 mov r0, r3
- 8001cb6: 370c adds r7, #12
- 8001cb8: 46bd mov sp, r7
- 8001cba: f85d 7b04 ldr.w r7, [sp], #4
- 8001cbe: 4770 bx lr
-
-08001cc0 <HAL_DMA_IRQHandler>:
- * @param hdma pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Stream.
- * @retval None
- */
-void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
-{
- 8001cc0: b580 push {r7, lr}
- 8001cc2: b086 sub sp, #24
- 8001cc4: af00 add r7, sp, #0
- 8001cc6: 6078 str r0, [r7, #4]
- uint32_t tmpisr;
- __IO uint32_t count = 0;
- 8001cc8: 2300 movs r3, #0
- 8001cca: 60bb str r3, [r7, #8]
- uint32_t timeout = SystemCoreClock / 9600;
- 8001ccc: 4b92 ldr r3, [pc, #584] ; (8001f18 <HAL_DMA_IRQHandler+0x258>)
- 8001cce: 681b ldr r3, [r3, #0]
- 8001cd0: 4a92 ldr r2, [pc, #584] ; (8001f1c <HAL_DMA_IRQHandler+0x25c>)
- 8001cd2: fba2 2303 umull r2, r3, r2, r3
- 8001cd6: 0a9b lsrs r3, r3, #10
- 8001cd8: 617b str r3, [r7, #20]
-
- /* calculate DMA base and stream number */
- DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress;
- 8001cda: 687b ldr r3, [r7, #4]
- 8001cdc: 6d9b ldr r3, [r3, #88] ; 0x58
- 8001cde: 613b str r3, [r7, #16]
-
- tmpisr = regs->ISR;
- 8001ce0: 693b ldr r3, [r7, #16]
- 8001ce2: 681b ldr r3, [r3, #0]
- 8001ce4: 60fb str r3, [r7, #12]
-
- /* Transfer Error Interrupt management ***************************************/
- if ((tmpisr & (DMA_FLAG_TEIF0_4 << hdma->StreamIndex)) != RESET)
- 8001ce6: 687b ldr r3, [r7, #4]
- 8001ce8: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001cea: 2208 movs r2, #8
- 8001cec: 409a lsls r2, r3
- 8001cee: 68fb ldr r3, [r7, #12]
- 8001cf0: 4013 ands r3, r2
- 8001cf2: 2b00 cmp r3, #0
- 8001cf4: d01a beq.n 8001d2c <HAL_DMA_IRQHandler+0x6c>
- {
- if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != RESET)
- 8001cf6: 687b ldr r3, [r7, #4]
- 8001cf8: 681b ldr r3, [r3, #0]
- 8001cfa: 681b ldr r3, [r3, #0]
- 8001cfc: f003 0304 and.w r3, r3, #4
- 8001d00: 2b00 cmp r3, #0
- 8001d02: d013 beq.n 8001d2c <HAL_DMA_IRQHandler+0x6c>
- {
- /* Disable the transfer error interrupt */
- hdma->Instance->CR &= ~(DMA_IT_TE);
- 8001d04: 687b ldr r3, [r7, #4]
- 8001d06: 681b ldr r3, [r3, #0]
- 8001d08: 681a ldr r2, [r3, #0]
- 8001d0a: 687b ldr r3, [r7, #4]
- 8001d0c: 681b ldr r3, [r3, #0]
- 8001d0e: f022 0204 bic.w r2, r2, #4
- 8001d12: 601a str r2, [r3, #0]
-
- /* Clear the transfer error flag */
- regs->IFCR = DMA_FLAG_TEIF0_4 << hdma->StreamIndex;
- 8001d14: 687b ldr r3, [r7, #4]
- 8001d16: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001d18: 2208 movs r2, #8
- 8001d1a: 409a lsls r2, r3
- 8001d1c: 693b ldr r3, [r7, #16]
- 8001d1e: 609a str r2, [r3, #8]
-
- /* Update error code */
- hdma->ErrorCode |= HAL_DMA_ERROR_TE;
- 8001d20: 687b ldr r3, [r7, #4]
- 8001d22: 6d5b ldr r3, [r3, #84] ; 0x54
- 8001d24: f043 0201 orr.w r2, r3, #1
- 8001d28: 687b ldr r3, [r7, #4]
- 8001d2a: 655a str r2, [r3, #84] ; 0x54
- }
- }
- /* FIFO Error Interrupt management ******************************************/
- if ((tmpisr & (DMA_FLAG_FEIF0_4 << hdma->StreamIndex)) != RESET)
- 8001d2c: 687b ldr r3, [r7, #4]
- 8001d2e: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001d30: 2201 movs r2, #1
- 8001d32: 409a lsls r2, r3
- 8001d34: 68fb ldr r3, [r7, #12]
- 8001d36: 4013 ands r3, r2
- 8001d38: 2b00 cmp r3, #0
- 8001d3a: d012 beq.n 8001d62 <HAL_DMA_IRQHandler+0xa2>
- {
- if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != RESET)
- 8001d3c: 687b ldr r3, [r7, #4]
- 8001d3e: 681b ldr r3, [r3, #0]
- 8001d40: 695b ldr r3, [r3, #20]
- 8001d42: f003 0380 and.w r3, r3, #128 ; 0x80
- 8001d46: 2b00 cmp r3, #0
- 8001d48: d00b beq.n 8001d62 <HAL_DMA_IRQHandler+0xa2>
- {
- /* Clear the FIFO error flag */
- regs->IFCR = DMA_FLAG_FEIF0_4 << hdma->StreamIndex;
- 8001d4a: 687b ldr r3, [r7, #4]
- 8001d4c: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001d4e: 2201 movs r2, #1
- 8001d50: 409a lsls r2, r3
- 8001d52: 693b ldr r3, [r7, #16]
- 8001d54: 609a str r2, [r3, #8]
-
- /* Update error code */
- hdma->ErrorCode |= HAL_DMA_ERROR_FE;
- 8001d56: 687b ldr r3, [r7, #4]
- 8001d58: 6d5b ldr r3, [r3, #84] ; 0x54
- 8001d5a: f043 0202 orr.w r2, r3, #2
- 8001d5e: 687b ldr r3, [r7, #4]
- 8001d60: 655a str r2, [r3, #84] ; 0x54
- }
- }
- /* Direct Mode Error Interrupt management ***********************************/
- if ((tmpisr & (DMA_FLAG_DMEIF0_4 << hdma->StreamIndex)) != RESET)
- 8001d62: 687b ldr r3, [r7, #4]
- 8001d64: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001d66: 2204 movs r2, #4
- 8001d68: 409a lsls r2, r3
- 8001d6a: 68fb ldr r3, [r7, #12]
- 8001d6c: 4013 ands r3, r2
- 8001d6e: 2b00 cmp r3, #0
- 8001d70: d012 beq.n 8001d98 <HAL_DMA_IRQHandler+0xd8>
- {
- if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != RESET)
- 8001d72: 687b ldr r3, [r7, #4]
- 8001d74: 681b ldr r3, [r3, #0]
- 8001d76: 681b ldr r3, [r3, #0]
- 8001d78: f003 0302 and.w r3, r3, #2
- 8001d7c: 2b00 cmp r3, #0
- 8001d7e: d00b beq.n 8001d98 <HAL_DMA_IRQHandler+0xd8>
- {
- /* Clear the direct mode error flag */
- regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex;
- 8001d80: 687b ldr r3, [r7, #4]
- 8001d82: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001d84: 2204 movs r2, #4
- 8001d86: 409a lsls r2, r3
- 8001d88: 693b ldr r3, [r7, #16]
- 8001d8a: 609a str r2, [r3, #8]
-
- /* Update error code */
- hdma->ErrorCode |= HAL_DMA_ERROR_DME;
- 8001d8c: 687b ldr r3, [r7, #4]
- 8001d8e: 6d5b ldr r3, [r3, #84] ; 0x54
- 8001d90: f043 0204 orr.w r2, r3, #4
- 8001d94: 687b ldr r3, [r7, #4]
- 8001d96: 655a str r2, [r3, #84] ; 0x54
- }
- }
- /* Half Transfer Complete Interrupt management ******************************/
- if ((tmpisr & (DMA_FLAG_HTIF0_4 << hdma->StreamIndex)) != RESET)
- 8001d98: 687b ldr r3, [r7, #4]
- 8001d9a: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001d9c: 2210 movs r2, #16
- 8001d9e: 409a lsls r2, r3
- 8001da0: 68fb ldr r3, [r7, #12]
- 8001da2: 4013 ands r3, r2
- 8001da4: 2b00 cmp r3, #0
- 8001da6: d043 beq.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- {
- if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != RESET)
- 8001da8: 687b ldr r3, [r7, #4]
- 8001daa: 681b ldr r3, [r3, #0]
- 8001dac: 681b ldr r3, [r3, #0]
- 8001dae: f003 0308 and.w r3, r3, #8
- 8001db2: 2b00 cmp r3, #0
- 8001db4: d03c beq.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- {
- /* Clear the half transfer complete flag */
- regs->IFCR = DMA_FLAG_HTIF0_4 << hdma->StreamIndex;
- 8001db6: 687b ldr r3, [r7, #4]
- 8001db8: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001dba: 2210 movs r2, #16
- 8001dbc: 409a lsls r2, r3
- 8001dbe: 693b ldr r3, [r7, #16]
- 8001dc0: 609a str r2, [r3, #8]
-
- /* Multi_Buffering mode enabled */
- if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET)
- 8001dc2: 687b ldr r3, [r7, #4]
- 8001dc4: 681b ldr r3, [r3, #0]
- 8001dc6: 681b ldr r3, [r3, #0]
- 8001dc8: f403 2380 and.w r3, r3, #262144 ; 0x40000
- 8001dcc: 2b00 cmp r3, #0
- 8001dce: d018 beq.n 8001e02 <HAL_DMA_IRQHandler+0x142>
- {
- /* Current memory buffer used is Memory 0 */
- if((hdma->Instance->CR & DMA_SxCR_CT) == RESET)
- 8001dd0: 687b ldr r3, [r7, #4]
- 8001dd2: 681b ldr r3, [r3, #0]
- 8001dd4: 681b ldr r3, [r3, #0]
- 8001dd6: f403 2300 and.w r3, r3, #524288 ; 0x80000
- 8001dda: 2b00 cmp r3, #0
- 8001ddc: d108 bne.n 8001df0 <HAL_DMA_IRQHandler+0x130>
- {
- if(hdma->XferHalfCpltCallback != NULL)
- 8001dde: 687b ldr r3, [r7, #4]
- 8001de0: 6c1b ldr r3, [r3, #64] ; 0x40
- 8001de2: 2b00 cmp r3, #0
- 8001de4: d024 beq.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- {
- /* Half transfer callback */
- hdma->XferHalfCpltCallback(hdma);
- 8001de6: 687b ldr r3, [r7, #4]
- 8001de8: 6c1b ldr r3, [r3, #64] ; 0x40
- 8001dea: 6878 ldr r0, [r7, #4]
- 8001dec: 4798 blx r3
- 8001dee: e01f b.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- }
- }
- /* Current memory buffer used is Memory 1 */
- else
- {
- if(hdma->XferM1HalfCpltCallback != NULL)
- 8001df0: 687b ldr r3, [r7, #4]
- 8001df2: 6c9b ldr r3, [r3, #72] ; 0x48
- 8001df4: 2b00 cmp r3, #0
- 8001df6: d01b beq.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- {
- /* Half transfer callback */
- hdma->XferM1HalfCpltCallback(hdma);
- 8001df8: 687b ldr r3, [r7, #4]
- 8001dfa: 6c9b ldr r3, [r3, #72] ; 0x48
- 8001dfc: 6878 ldr r0, [r7, #4]
- 8001dfe: 4798 blx r3
- 8001e00: e016 b.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- }
- }
- else
- {
- /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
- if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET)
- 8001e02: 687b ldr r3, [r7, #4]
- 8001e04: 681b ldr r3, [r3, #0]
- 8001e06: 681b ldr r3, [r3, #0]
- 8001e08: f403 7380 and.w r3, r3, #256 ; 0x100
- 8001e0c: 2b00 cmp r3, #0
- 8001e0e: d107 bne.n 8001e20 <HAL_DMA_IRQHandler+0x160>
- {
- /* Disable the half transfer interrupt */
- hdma->Instance->CR &= ~(DMA_IT_HT);
- 8001e10: 687b ldr r3, [r7, #4]
- 8001e12: 681b ldr r3, [r3, #0]
- 8001e14: 681a ldr r2, [r3, #0]
- 8001e16: 687b ldr r3, [r7, #4]
- 8001e18: 681b ldr r3, [r3, #0]
- 8001e1a: f022 0208 bic.w r2, r2, #8
- 8001e1e: 601a str r2, [r3, #0]
- }
-
- if(hdma->XferHalfCpltCallback != NULL)
- 8001e20: 687b ldr r3, [r7, #4]
- 8001e22: 6c1b ldr r3, [r3, #64] ; 0x40
- 8001e24: 2b00 cmp r3, #0
- 8001e26: d003 beq.n 8001e30 <HAL_DMA_IRQHandler+0x170>
- {
- /* Half transfer callback */
- hdma->XferHalfCpltCallback(hdma);
- 8001e28: 687b ldr r3, [r7, #4]
- 8001e2a: 6c1b ldr r3, [r3, #64] ; 0x40
- 8001e2c: 6878 ldr r0, [r7, #4]
- 8001e2e: 4798 blx r3
- }
- }
- }
- }
- /* Transfer Complete Interrupt management ***********************************/
- if ((tmpisr & (DMA_FLAG_TCIF0_4 << hdma->StreamIndex)) != RESET)
- 8001e30: 687b ldr r3, [r7, #4]
- 8001e32: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001e34: 2220 movs r2, #32
- 8001e36: 409a lsls r2, r3
- 8001e38: 68fb ldr r3, [r7, #12]
- 8001e3a: 4013 ands r3, r2
- 8001e3c: 2b00 cmp r3, #0
- 8001e3e: f000 808e beq.w 8001f5e <HAL_DMA_IRQHandler+0x29e>
- {
- if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != RESET)
- 8001e42: 687b ldr r3, [r7, #4]
- 8001e44: 681b ldr r3, [r3, #0]
- 8001e46: 681b ldr r3, [r3, #0]
- 8001e48: f003 0310 and.w r3, r3, #16
- 8001e4c: 2b00 cmp r3, #0
- 8001e4e: f000 8086 beq.w 8001f5e <HAL_DMA_IRQHandler+0x29e>
- {
- /* Clear the transfer complete flag */
- regs->IFCR = DMA_FLAG_TCIF0_4 << hdma->StreamIndex;
- 8001e52: 687b ldr r3, [r7, #4]
- 8001e54: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001e56: 2220 movs r2, #32
- 8001e58: 409a lsls r2, r3
- 8001e5a: 693b ldr r3, [r7, #16]
- 8001e5c: 609a str r2, [r3, #8]
-
- if(HAL_DMA_STATE_ABORT == hdma->State)
- 8001e5e: 687b ldr r3, [r7, #4]
- 8001e60: f893 3035 ldrb.w r3, [r3, #53] ; 0x35
- 8001e64: b2db uxtb r3, r3
- 8001e66: 2b05 cmp r3, #5
- 8001e68: d136 bne.n 8001ed8 <HAL_DMA_IRQHandler+0x218>
- {
- /* Disable all the transfer interrupts */
- hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
- 8001e6a: 687b ldr r3, [r7, #4]
- 8001e6c: 681b ldr r3, [r3, #0]
- 8001e6e: 681a ldr r2, [r3, #0]
- 8001e70: 687b ldr r3, [r7, #4]
- 8001e72: 681b ldr r3, [r3, #0]
- 8001e74: f022 0216 bic.w r2, r2, #22
- 8001e78: 601a str r2, [r3, #0]
- hdma->Instance->FCR &= ~(DMA_IT_FE);
- 8001e7a: 687b ldr r3, [r7, #4]
- 8001e7c: 681b ldr r3, [r3, #0]
- 8001e7e: 695a ldr r2, [r3, #20]
- 8001e80: 687b ldr r3, [r7, #4]
- 8001e82: 681b ldr r3, [r3, #0]
- 8001e84: f022 0280 bic.w r2, r2, #128 ; 0x80
- 8001e88: 615a str r2, [r3, #20]
-
- if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
- 8001e8a: 687b ldr r3, [r7, #4]
- 8001e8c: 6c1b ldr r3, [r3, #64] ; 0x40
- 8001e8e: 2b00 cmp r3, #0
- 8001e90: d103 bne.n 8001e9a <HAL_DMA_IRQHandler+0x1da>
- 8001e92: 687b ldr r3, [r7, #4]
- 8001e94: 6c9b ldr r3, [r3, #72] ; 0x48
- 8001e96: 2b00 cmp r3, #0
- 8001e98: d007 beq.n 8001eaa <HAL_DMA_IRQHandler+0x1ea>
- {
- hdma->Instance->CR &= ~(DMA_IT_HT);
- 8001e9a: 687b ldr r3, [r7, #4]
- 8001e9c: 681b ldr r3, [r3, #0]
- 8001e9e: 681a ldr r2, [r3, #0]
- 8001ea0: 687b ldr r3, [r7, #4]
- 8001ea2: 681b ldr r3, [r3, #0]
- 8001ea4: f022 0208 bic.w r2, r2, #8
- 8001ea8: 601a str r2, [r3, #0]
- }
-
- /* Clear all interrupt flags at correct offset within the register */
- regs->IFCR = 0x3FU << hdma->StreamIndex;
- 8001eaa: 687b ldr r3, [r7, #4]
- 8001eac: 6ddb ldr r3, [r3, #92] ; 0x5c
- 8001eae: 223f movs r2, #63 ; 0x3f
- 8001eb0: 409a lsls r2, r3
- 8001eb2: 693b ldr r3, [r7, #16]
- 8001eb4: 609a str r2, [r3, #8]
-
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 8001eb6: 687b ldr r3, [r7, #4]
- 8001eb8: 2200 movs r2, #0
- 8001eba: f883 2034 strb.w r2, [r3, #52] ; 0x34
-
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8001ebe: 687b ldr r3, [r7, #4]
- 8001ec0: 2201 movs r2, #1
- 8001ec2: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- if(hdma->XferAbortCallback != NULL)
- 8001ec6: 687b ldr r3, [r7, #4]
- 8001ec8: 6d1b ldr r3, [r3, #80] ; 0x50
- 8001eca: 2b00 cmp r3, #0
- 8001ecc: d07d beq.n 8001fca <HAL_DMA_IRQHandler+0x30a>
- {
- hdma->XferAbortCallback(hdma);
- 8001ece: 687b ldr r3, [r7, #4]
- 8001ed0: 6d1b ldr r3, [r3, #80] ; 0x50
- 8001ed2: 6878 ldr r0, [r7, #4]
- 8001ed4: 4798 blx r3
- }
- return;
- 8001ed6: e078 b.n 8001fca <HAL_DMA_IRQHandler+0x30a>
- }
-
- if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET)
- 8001ed8: 687b ldr r3, [r7, #4]
- 8001eda: 681b ldr r3, [r3, #0]
- 8001edc: 681b ldr r3, [r3, #0]
- 8001ede: f403 2380 and.w r3, r3, #262144 ; 0x40000
- 8001ee2: 2b00 cmp r3, #0
- 8001ee4: d01c beq.n 8001f20 <HAL_DMA_IRQHandler+0x260>
- {
- /* Current memory buffer used is Memory 0 */
- if((hdma->Instance->CR & DMA_SxCR_CT) == RESET)
- 8001ee6: 687b ldr r3, [r7, #4]
- 8001ee8: 681b ldr r3, [r3, #0]
- 8001eea: 681b ldr r3, [r3, #0]
- 8001eec: f403 2300 and.w r3, r3, #524288 ; 0x80000
- 8001ef0: 2b00 cmp r3, #0
- 8001ef2: d108 bne.n 8001f06 <HAL_DMA_IRQHandler+0x246>
- {
- if(hdma->XferM1CpltCallback != NULL)
- 8001ef4: 687b ldr r3, [r7, #4]
- 8001ef6: 6c5b ldr r3, [r3, #68] ; 0x44
- 8001ef8: 2b00 cmp r3, #0
- 8001efa: d030 beq.n 8001f5e <HAL_DMA_IRQHandler+0x29e>
- {
- /* Transfer complete Callback for memory1 */
- hdma->XferM1CpltCallback(hdma);
- 8001efc: 687b ldr r3, [r7, #4]
- 8001efe: 6c5b ldr r3, [r3, #68] ; 0x44
- 8001f00: 6878 ldr r0, [r7, #4]
- 8001f02: 4798 blx r3
- 8001f04: e02b b.n 8001f5e <HAL_DMA_IRQHandler+0x29e>
- }
- }
- /* Current memory buffer used is Memory 1 */
- else
- {
- if(hdma->XferCpltCallback != NULL)
- 8001f06: 687b ldr r3, [r7, #4]
- 8001f08: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8001f0a: 2b00 cmp r3, #0
- 8001f0c: d027 beq.n 8001f5e <HAL_DMA_IRQHandler+0x29e>
- {
- /* Transfer complete Callback for memory0 */
- hdma->XferCpltCallback(hdma);
- 8001f0e: 687b ldr r3, [r7, #4]
- 8001f10: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8001f12: 6878 ldr r0, [r7, #4]
- 8001f14: 4798 blx r3
- 8001f16: e022 b.n 8001f5e <HAL_DMA_IRQHandler+0x29e>
- 8001f18: 20000000 .word 0x20000000
- 8001f1c: 1b4e81b5 .word 0x1b4e81b5
- }
- }
- /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
- else
- {
- if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET)
- 8001f20: 687b ldr r3, [r7, #4]
- 8001f22: 681b ldr r3, [r3, #0]
- 8001f24: 681b ldr r3, [r3, #0]
- 8001f26: f403 7380 and.w r3, r3, #256 ; 0x100
- 8001f2a: 2b00 cmp r3, #0
- 8001f2c: d10f bne.n 8001f4e <HAL_DMA_IRQHandler+0x28e>
- {
- /* Disable the transfer complete interrupt */
- hdma->Instance->CR &= ~(DMA_IT_TC);
- 8001f2e: 687b ldr r3, [r7, #4]
- 8001f30: 681b ldr r3, [r3, #0]
- 8001f32: 681a ldr r2, [r3, #0]
- 8001f34: 687b ldr r3, [r7, #4]
- 8001f36: 681b ldr r3, [r3, #0]
- 8001f38: f022 0210 bic.w r2, r2, #16
- 8001f3c: 601a str r2, [r3, #0]
-
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 8001f3e: 687b ldr r3, [r7, #4]
- 8001f40: 2200 movs r2, #0
- 8001f42: f883 2034 strb.w r2, [r3, #52] ; 0x34
-
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8001f46: 687b ldr r3, [r7, #4]
- 8001f48: 2201 movs r2, #1
- 8001f4a: f883 2035 strb.w r2, [r3, #53] ; 0x35
- }
-
- if(hdma->XferCpltCallback != NULL)
- 8001f4e: 687b ldr r3, [r7, #4]
- 8001f50: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8001f52: 2b00 cmp r3, #0
- 8001f54: d003 beq.n 8001f5e <HAL_DMA_IRQHandler+0x29e>
- {
- /* Transfer complete callback */
- hdma->XferCpltCallback(hdma);
- 8001f56: 687b ldr r3, [r7, #4]
- 8001f58: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8001f5a: 6878 ldr r0, [r7, #4]
- 8001f5c: 4798 blx r3
- }
- }
- }
-
- /* manage error case */
- if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
- 8001f5e: 687b ldr r3, [r7, #4]
- 8001f60: 6d5b ldr r3, [r3, #84] ; 0x54
- 8001f62: 2b00 cmp r3, #0
- 8001f64: d032 beq.n 8001fcc <HAL_DMA_IRQHandler+0x30c>
- {
- if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != RESET)
- 8001f66: 687b ldr r3, [r7, #4]
- 8001f68: 6d5b ldr r3, [r3, #84] ; 0x54
- 8001f6a: f003 0301 and.w r3, r3, #1
- 8001f6e: 2b00 cmp r3, #0
- 8001f70: d022 beq.n 8001fb8 <HAL_DMA_IRQHandler+0x2f8>
- {
- hdma->State = HAL_DMA_STATE_ABORT;
- 8001f72: 687b ldr r3, [r7, #4]
- 8001f74: 2205 movs r2, #5
- 8001f76: f883 2035 strb.w r2, [r3, #53] ; 0x35
-
- /* Disable the stream */
- __HAL_DMA_DISABLE(hdma);
- 8001f7a: 687b ldr r3, [r7, #4]
- 8001f7c: 681b ldr r3, [r3, #0]
- 8001f7e: 681a ldr r2, [r3, #0]
- 8001f80: 687b ldr r3, [r7, #4]
- 8001f82: 681b ldr r3, [r3, #0]
- 8001f84: f022 0201 bic.w r2, r2, #1
- 8001f88: 601a str r2, [r3, #0]
-
- do
- {
- if (++count > timeout)
- 8001f8a: 68bb ldr r3, [r7, #8]
- 8001f8c: 3301 adds r3, #1
- 8001f8e: 60bb str r3, [r7, #8]
- 8001f90: 697a ldr r2, [r7, #20]
- 8001f92: 429a cmp r2, r3
- 8001f94: d307 bcc.n 8001fa6 <HAL_DMA_IRQHandler+0x2e6>
- {
- break;
- }
- }
- while((hdma->Instance->CR & DMA_SxCR_EN) != RESET);
- 8001f96: 687b ldr r3, [r7, #4]
- 8001f98: 681b ldr r3, [r3, #0]
- 8001f9a: 681b ldr r3, [r3, #0]
- 8001f9c: f003 0301 and.w r3, r3, #1
- 8001fa0: 2b00 cmp r3, #0
- 8001fa2: d1f2 bne.n 8001f8a <HAL_DMA_IRQHandler+0x2ca>
- 8001fa4: e000 b.n 8001fa8 <HAL_DMA_IRQHandler+0x2e8>
- break;
- 8001fa6: bf00 nop
-
- /* Process Unlocked */
- __HAL_UNLOCK(hdma);
- 8001fa8: 687b ldr r3, [r7, #4]
- 8001faa: 2200 movs r2, #0
- 8001fac: f883 2034 strb.w r2, [r3, #52] ; 0x34
-
- /* Change the DMA state */
- hdma->State = HAL_DMA_STATE_READY;
- 8001fb0: 687b ldr r3, [r7, #4]
- 8001fb2: 2201 movs r2, #1
- 8001fb4: f883 2035 strb.w r2, [r3, #53] ; 0x35
- }
-
- if(hdma->XferErrorCallback != NULL)
- 8001fb8: 687b ldr r3, [r7, #4]
- 8001fba: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8001fbc: 2b00 cmp r3, #0
- 8001fbe: d005 beq.n 8001fcc <HAL_DMA_IRQHandler+0x30c>
- {
- /* Transfer error callback */
- hdma->XferErrorCallback(hdma);
- 8001fc0: 687b ldr r3, [r7, #4]
- 8001fc2: 6cdb ldr r3, [r3, #76] ; 0x4c
- 8001fc4: 6878 ldr r0, [r7, #4]
- 8001fc6: 4798 blx r3
- 8001fc8: e000 b.n 8001fcc <HAL_DMA_IRQHandler+0x30c>
- return;
- 8001fca: bf00 nop
- }
- }
-}
- 8001fcc: 3718 adds r7, #24
- 8001fce: 46bd mov sp, r7
- 8001fd0: bd80 pop {r7, pc}
- 8001fd2: bf00 nop
-
-08001fd4 <DMA_CalcBaseAndBitshift>:
- * @param hdma pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Stream.
- * @retval Stream base address
- */
-static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
-{
- 8001fd4: b480 push {r7}
- 8001fd6: b085 sub sp, #20
- 8001fd8: af00 add r7, sp, #0
- 8001fda: 6078 str r0, [r7, #4]
- uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U;
- 8001fdc: 687b ldr r3, [r7, #4]
- 8001fde: 681b ldr r3, [r3, #0]
- 8001fe0: b2db uxtb r3, r3
- 8001fe2: 3b10 subs r3, #16
- 8001fe4: 4a13 ldr r2, [pc, #76] ; (8002034 <DMA_CalcBaseAndBitshift+0x60>)
- 8001fe6: fba2 2303 umull r2, r3, r2, r3
- 8001fea: 091b lsrs r3, r3, #4
- 8001fec: 60fb str r3, [r7, #12]
-
- /* lookup table for necessary bitshift of flags within status registers */
- static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
- hdma->StreamIndex = flagBitshiftOffset[stream_number];
- 8001fee: 4a12 ldr r2, [pc, #72] ; (8002038 <DMA_CalcBaseAndBitshift+0x64>)
- 8001ff0: 68fb ldr r3, [r7, #12]
- 8001ff2: 4413 add r3, r2
- 8001ff4: 781b ldrb r3, [r3, #0]
- 8001ff6: 461a mov r2, r3
- 8001ff8: 687b ldr r3, [r7, #4]
- 8001ffa: 65da str r2, [r3, #92] ; 0x5c
-
- if (stream_number > 3U)
- 8001ffc: 68fb ldr r3, [r7, #12]
- 8001ffe: 2b03 cmp r3, #3
- 8002000: d908 bls.n 8002014 <DMA_CalcBaseAndBitshift+0x40>
- {
- /* return pointer to HISR and HIFCR */
- hdma->StreamBaseAddress = (((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)) + 4U);
- 8002002: 687b ldr r3, [r7, #4]
- 8002004: 681b ldr r3, [r3, #0]
- 8002006: 461a mov r2, r3
- 8002008: 4b0c ldr r3, [pc, #48] ; (800203c <DMA_CalcBaseAndBitshift+0x68>)
- 800200a: 4013 ands r3, r2
- 800200c: 1d1a adds r2, r3, #4
- 800200e: 687b ldr r3, [r7, #4]
- 8002010: 659a str r2, [r3, #88] ; 0x58
- 8002012: e006 b.n 8002022 <DMA_CalcBaseAndBitshift+0x4e>
- }
- else
- {
- /* return pointer to LISR and LIFCR */
- hdma->StreamBaseAddress = ((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU));
- 8002014: 687b ldr r3, [r7, #4]
- 8002016: 681b ldr r3, [r3, #0]
- 8002018: 461a mov r2, r3
- 800201a: 4b08 ldr r3, [pc, #32] ; (800203c <DMA_CalcBaseAndBitshift+0x68>)
- 800201c: 4013 ands r3, r2
- 800201e: 687a ldr r2, [r7, #4]
- 8002020: 6593 str r3, [r2, #88] ; 0x58
- }
-
- return hdma->StreamBaseAddress;
- 8002022: 687b ldr r3, [r7, #4]
- 8002024: 6d9b ldr r3, [r3, #88] ; 0x58
+ 8001aaa: 6878 ldr r0, [r7, #4]
+ 8001aac: f7ff ffa2 bl 80019f4 <SysTick_Config>
+ 8001ab0: 4603 mov r3, r0
}
- 8002026: 4618 mov r0, r3
- 8002028: 3714 adds r7, #20
- 800202a: 46bd mov sp, r7
- 800202c: f85d 7b04 ldr.w r7, [sp], #4
- 8002030: 4770 bx lr
- 8002032: bf00 nop
- 8002034: aaaaaaab .word 0xaaaaaaab
- 8002038: 08005270 .word 0x08005270
- 800203c: fffffc00 .word 0xfffffc00
-
-08002040 <DMA_CheckFifoParam>:
- * @param hdma pointer to a DMA_HandleTypeDef structure that contains
- * the configuration information for the specified DMA Stream.
+ 8001ab2: 4618 mov r0, r3
+ 8001ab4: 3708 adds r7, #8
+ 8001ab6: 46bd mov sp, r7
+ 8001ab8: bd80 pop {r7, pc}
+
+08001aba <HAL_DMA_Abort_IT>:
+ * @param hdma pointer to a DMA_HandleTypeDef structure that contains
+ * the configuration information for the specified DMA Stream.
* @retval HAL status
*/
-static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
+HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
{
- 8002040: b480 push {r7}
- 8002042: b085 sub sp, #20
- 8002044: af00 add r7, sp, #0
- 8002046: 6078 str r0, [r7, #4]
- HAL_StatusTypeDef status = HAL_OK;
- 8002048: 2300 movs r3, #0
- 800204a: 73fb strb r3, [r7, #15]
- uint32_t tmp = hdma->Init.FIFOThreshold;
- 800204c: 687b ldr r3, [r7, #4]
- 800204e: 6a9b ldr r3, [r3, #40] ; 0x28
- 8002050: 60bb str r3, [r7, #8]
-
- /* Memory Data size equal to Byte */
- if(hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
- 8002052: 687b ldr r3, [r7, #4]
- 8002054: 699b ldr r3, [r3, #24]
- 8002056: 2b00 cmp r3, #0
- 8002058: d11f bne.n 800209a <DMA_CheckFifoParam+0x5a>
- {
- switch (tmp)
- 800205a: 68bb ldr r3, [r7, #8]
- 800205c: 2b03 cmp r3, #3
- 800205e: d855 bhi.n 800210c <DMA_CheckFifoParam+0xcc>
- 8002060: a201 add r2, pc, #4 ; (adr r2, 8002068 <DMA_CheckFifoParam+0x28>)
- 8002062: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8002066: bf00 nop
- 8002068: 08002079 .word 0x08002079
- 800206c: 0800208b .word 0x0800208b
- 8002070: 08002079 .word 0x08002079
- 8002074: 0800210d .word 0x0800210d
- {
- case DMA_FIFO_THRESHOLD_1QUARTERFULL:
- case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
- if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
- 8002078: 687b ldr r3, [r7, #4]
- 800207a: 6adb ldr r3, [r3, #44] ; 0x2c
- 800207c: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
- 8002080: 2b00 cmp r3, #0
- 8002082: d045 beq.n 8002110 <DMA_CheckFifoParam+0xd0>
- {
- status = HAL_ERROR;
- 8002084: 2301 movs r3, #1
- 8002086: 73fb strb r3, [r7, #15]
- }
- break;
- 8002088: e042 b.n 8002110 <DMA_CheckFifoParam+0xd0>
- case DMA_FIFO_THRESHOLD_HALFFULL:
- if (hdma->Init.MemBurst == DMA_MBURST_INC16)
- 800208a: 687b ldr r3, [r7, #4]
- 800208c: 6adb ldr r3, [r3, #44] ; 0x2c
- 800208e: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000
- 8002092: d13f bne.n 8002114 <DMA_CheckFifoParam+0xd4>
- {
- status = HAL_ERROR;
- 8002094: 2301 movs r3, #1
- 8002096: 73fb strb r3, [r7, #15]
- }
- break;
- 8002098: e03c b.n 8002114 <DMA_CheckFifoParam+0xd4>
- break;
- }
- }
-
- /* Memory Data size equal to Half-Word */
- else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
- 800209a: 687b ldr r3, [r7, #4]
- 800209c: 699b ldr r3, [r3, #24]
- 800209e: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
- 80020a2: d121 bne.n 80020e8 <DMA_CheckFifoParam+0xa8>
- {
- switch (tmp)
- 80020a4: 68bb ldr r3, [r7, #8]
- 80020a6: 2b03 cmp r3, #3
- 80020a8: d836 bhi.n 8002118 <DMA_CheckFifoParam+0xd8>
- 80020aa: a201 add r2, pc, #4 ; (adr r2, 80020b0 <DMA_CheckFifoParam+0x70>)
- 80020ac: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 80020b0: 080020c1 .word 0x080020c1
- 80020b4: 080020c7 .word 0x080020c7
- 80020b8: 080020c1 .word 0x080020c1
- 80020bc: 080020d9 .word 0x080020d9
- {
- case DMA_FIFO_THRESHOLD_1QUARTERFULL:
- case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
- status = HAL_ERROR;
- 80020c0: 2301 movs r3, #1
- 80020c2: 73fb strb r3, [r7, #15]
- break;
- 80020c4: e02f b.n 8002126 <DMA_CheckFifoParam+0xe6>
- case DMA_FIFO_THRESHOLD_HALFFULL:
- if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
- 80020c6: 687b ldr r3, [r7, #4]
- 80020c8: 6adb ldr r3, [r3, #44] ; 0x2c
- 80020ca: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
- 80020ce: 2b00 cmp r3, #0
- 80020d0: d024 beq.n 800211c <DMA_CheckFifoParam+0xdc>
- {
- status = HAL_ERROR;
- 80020d2: 2301 movs r3, #1
- 80020d4: 73fb strb r3, [r7, #15]
- }
- break;
- 80020d6: e021 b.n 800211c <DMA_CheckFifoParam+0xdc>
- case DMA_FIFO_THRESHOLD_FULL:
- if (hdma->Init.MemBurst == DMA_MBURST_INC16)
- 80020d8: 687b ldr r3, [r7, #4]
- 80020da: 6adb ldr r3, [r3, #44] ; 0x2c
- 80020dc: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000
- 80020e0: d11e bne.n 8002120 <DMA_CheckFifoParam+0xe0>
- {
- status = HAL_ERROR;
- 80020e2: 2301 movs r3, #1
- 80020e4: 73fb strb r3, [r7, #15]
- }
- break;
- 80020e6: e01b b.n 8002120 <DMA_CheckFifoParam+0xe0>
+ 8001aba: b480 push {r7}
+ 8001abc: b083 sub sp, #12
+ 8001abe: af00 add r7, sp, #0
+ 8001ac0: 6078 str r0, [r7, #4]
+ if(hdma->State != HAL_DMA_STATE_BUSY)
+ 8001ac2: 687b ldr r3, [r7, #4]
+ 8001ac4: f893 3035 ldrb.w r3, [r3, #53] ; 0x35
+ 8001ac8: b2db uxtb r3, r3
+ 8001aca: 2b02 cmp r3, #2
+ 8001acc: d004 beq.n 8001ad8 <HAL_DMA_Abort_IT+0x1e>
+ {
+ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
+ 8001ace: 687b ldr r3, [r7, #4]
+ 8001ad0: 2280 movs r2, #128 ; 0x80
+ 8001ad2: 655a str r2, [r3, #84] ; 0x54
+ return HAL_ERROR;
+ 8001ad4: 2301 movs r3, #1
+ 8001ad6: e00c b.n 8001af2 <HAL_DMA_Abort_IT+0x38>
}
-
- /* Memory Data size equal to Word */
else
{
- switch (tmp)
- 80020e8: 68bb ldr r3, [r7, #8]
- 80020ea: 2b02 cmp r3, #2
- 80020ec: d902 bls.n 80020f4 <DMA_CheckFifoParam+0xb4>
- 80020ee: 2b03 cmp r3, #3
- 80020f0: d003 beq.n 80020fa <DMA_CheckFifoParam+0xba>
- {
- status = HAL_ERROR;
- }
- break;
- default:
- break;
- 80020f2: e018 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- status = HAL_ERROR;
- 80020f4: 2301 movs r3, #1
- 80020f6: 73fb strb r3, [r7, #15]
- break;
- 80020f8: e015 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
- 80020fa: 687b ldr r3, [r7, #4]
- 80020fc: 6adb ldr r3, [r3, #44] ; 0x2c
- 80020fe: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
- 8002102: 2b00 cmp r3, #0
- 8002104: d00e beq.n 8002124 <DMA_CheckFifoParam+0xe4>
- status = HAL_ERROR;
- 8002106: 2301 movs r3, #1
- 8002108: 73fb strb r3, [r7, #15]
- break;
- 800210a: e00b b.n 8002124 <DMA_CheckFifoParam+0xe4>
- break;
- 800210c: bf00 nop
- 800210e: e00a b.n 8002126 <DMA_CheckFifoParam+0xe6>
- break;
- 8002110: bf00 nop
- 8002112: e008 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- break;
- 8002114: bf00 nop
- 8002116: e006 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- break;
- 8002118: bf00 nop
- 800211a: e004 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- break;
- 800211c: bf00 nop
- 800211e: e002 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- break;
- 8002120: bf00 nop
- 8002122: e000 b.n 8002126 <DMA_CheckFifoParam+0xe6>
- break;
- 8002124: bf00 nop
- }
- }
-
- return status;
- 8002126: 7bfb ldrb r3, [r7, #15]
+ /* Set Abort State */
+ hdma->State = HAL_DMA_STATE_ABORT;
+ 8001ad8: 687b ldr r3, [r7, #4]
+ 8001ada: 2205 movs r2, #5
+ 8001adc: f883 2035 strb.w r2, [r3, #53] ; 0x35
+
+ /* Disable the stream */
+ __HAL_DMA_DISABLE(hdma);
+ 8001ae0: 687b ldr r3, [r7, #4]
+ 8001ae2: 681b ldr r3, [r3, #0]
+ 8001ae4: 681a ldr r2, [r3, #0]
+ 8001ae6: 687b ldr r3, [r7, #4]
+ 8001ae8: 681b ldr r3, [r3, #0]
+ 8001aea: f022 0201 bic.w r2, r2, #1
+ 8001aee: 601a str r2, [r3, #0]
+ }
+
+ return HAL_OK;
+ 8001af0: 2300 movs r3, #0
}
- 8002128: 4618 mov r0, r3
- 800212a: 3714 adds r7, #20
- 800212c: 46bd mov sp, r7
- 800212e: f85d 7b04 ldr.w r7, [sp], #4
- 8002132: 4770 bx lr
+ 8001af2: 4618 mov r0, r3
+ 8001af4: 370c adds r7, #12
+ 8001af6: 46bd mov sp, r7
+ 8001af8: f85d 7b04 ldr.w r7, [sp], #4
+ 8001afc: 4770 bx lr
+ ...
-08002134 <HAL_GPIO_Init>:
+08001b00 <HAL_GPIO_Init>:
* @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
* the configuration information for the specified GPIO peripheral.
* @retval None
*/
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
{
- 8002134: b480 push {r7}
- 8002136: b089 sub sp, #36 ; 0x24
- 8002138: af00 add r7, sp, #0
- 800213a: 6078 str r0, [r7, #4]
- 800213c: 6039 str r1, [r7, #0]
+ 8001b00: b480 push {r7}
+ 8001b02: b089 sub sp, #36 ; 0x24
+ 8001b04: af00 add r7, sp, #0
+ 8001b06: 6078 str r0, [r7, #4]
+ 8001b08: 6039 str r1, [r7, #0]
uint32_t position = 0x00;
- 800213e: 2300 movs r3, #0
- 8002140: 61fb str r3, [r7, #28]
+ 8001b0a: 2300 movs r3, #0
+ 8001b0c: 61fb str r3, [r7, #28]
uint32_t ioposition = 0x00;
- 8002142: 2300 movs r3, #0
- 8002144: 617b str r3, [r7, #20]
+ 8001b0e: 2300 movs r3, #0
+ 8001b10: 617b str r3, [r7, #20]
uint32_t iocurrent = 0x00;
- 8002146: 2300 movs r3, #0
- 8002148: 613b str r3, [r7, #16]
+ 8001b12: 2300 movs r3, #0
+ 8001b14: 613b str r3, [r7, #16]
uint32_t temp = 0x00;
- 800214a: 2300 movs r3, #0
- 800214c: 61bb str r3, [r7, #24]
+ 8001b16: 2300 movs r3, #0
+ 8001b18: 61bb str r3, [r7, #24]
assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
/* Configure the port pins */
for(position = 0; position < GPIO_NUMBER; position++)
- 800214e: 2300 movs r3, #0
- 8002150: 61fb str r3, [r7, #28]
- 8002152: e175 b.n 8002440 <HAL_GPIO_Init+0x30c>
+ 8001b1a: 2300 movs r3, #0
+ 8001b1c: 61fb str r3, [r7, #28]
+ 8001b1e: e175 b.n 8001e0c <HAL_GPIO_Init+0x30c>
{
/* Get the IO position */
ioposition = ((uint32_t)0x01) << position;
- 8002154: 2201 movs r2, #1
- 8002156: 69fb ldr r3, [r7, #28]
- 8002158: fa02 f303 lsl.w r3, r2, r3
- 800215c: 617b str r3, [r7, #20]
+ 8001b20: 2201 movs r2, #1
+ 8001b22: 69fb ldr r3, [r7, #28]
+ 8001b24: fa02 f303 lsl.w r3, r2, r3
+ 8001b28: 617b str r3, [r7, #20]
/* Get the current IO position */
iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
- 800215e: 683b ldr r3, [r7, #0]
- 8002160: 681b ldr r3, [r3, #0]
- 8002162: 697a ldr r2, [r7, #20]
- 8002164: 4013 ands r3, r2
- 8002166: 613b str r3, [r7, #16]
+ 8001b2a: 683b ldr r3, [r7, #0]
+ 8001b2c: 681b ldr r3, [r3, #0]
+ 8001b2e: 697a ldr r2, [r7, #20]
+ 8001b30: 4013 ands r3, r2
+ 8001b32: 613b str r3, [r7, #16]
if(iocurrent == ioposition)
- 8002168: 693a ldr r2, [r7, #16]
- 800216a: 697b ldr r3, [r7, #20]
- 800216c: 429a cmp r2, r3
- 800216e: f040 8164 bne.w 800243a <HAL_GPIO_Init+0x306>
+ 8001b34: 693a ldr r2, [r7, #16]
+ 8001b36: 697b ldr r3, [r7, #20]
+ 8001b38: 429a cmp r2, r3
+ 8001b3a: f040 8164 bne.w 8001e06 <HAL_GPIO_Init+0x306>
{
/*--------------------- GPIO Mode Configuration ------------------------*/
/* In case of Alternate function mode selection */
if((GPIO_Init->Mode == GPIO_MODE_AF_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_OD))
- 8002172: 683b ldr r3, [r7, #0]
- 8002174: 685b ldr r3, [r3, #4]
- 8002176: 2b02 cmp r3, #2
- 8002178: d003 beq.n 8002182 <HAL_GPIO_Init+0x4e>
- 800217a: 683b ldr r3, [r7, #0]
- 800217c: 685b ldr r3, [r3, #4]
- 800217e: 2b12 cmp r3, #18
- 8002180: d123 bne.n 80021ca <HAL_GPIO_Init+0x96>
+ 8001b3e: 683b ldr r3, [r7, #0]
+ 8001b40: 685b ldr r3, [r3, #4]
+ 8001b42: 2b02 cmp r3, #2
+ 8001b44: d003 beq.n 8001b4e <HAL_GPIO_Init+0x4e>
+ 8001b46: 683b ldr r3, [r7, #0]
+ 8001b48: 685b ldr r3, [r3, #4]
+ 8001b4a: 2b12 cmp r3, #18
+ 8001b4c: d123 bne.n 8001b96 <HAL_GPIO_Init+0x96>
{
/* Check the Alternate function parameter */
assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
/* Configure Alternate function mapped with the current IO */
temp = GPIOx->AFR[position >> 3];
- 8002182: 69fb ldr r3, [r7, #28]
- 8002184: 08da lsrs r2, r3, #3
- 8002186: 687b ldr r3, [r7, #4]
- 8002188: 3208 adds r2, #8
- 800218a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
- 800218e: 61bb str r3, [r7, #24]
+ 8001b4e: 69fb ldr r3, [r7, #28]
+ 8001b50: 08da lsrs r2, r3, #3
+ 8001b52: 687b ldr r3, [r7, #4]
+ 8001b54: 3208 adds r2, #8
+ 8001b56: f853 3022 ldr.w r3, [r3, r2, lsl #2]
+ 8001b5a: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)0xF << ((uint32_t)(position & (uint32_t)0x07) * 4)) ;
- 8002190: 69fb ldr r3, [r7, #28]
- 8002192: f003 0307 and.w r3, r3, #7
- 8002196: 009b lsls r3, r3, #2
- 8002198: 220f movs r2, #15
- 800219a: fa02 f303 lsl.w r3, r2, r3
- 800219e: 43db mvns r3, r3
- 80021a0: 69ba ldr r2, [r7, #24]
- 80021a2: 4013 ands r3, r2
- 80021a4: 61bb str r3, [r7, #24]
+ 8001b5c: 69fb ldr r3, [r7, #28]
+ 8001b5e: f003 0307 and.w r3, r3, #7
+ 8001b62: 009b lsls r3, r3, #2
+ 8001b64: 220f movs r2, #15
+ 8001b66: fa02 f303 lsl.w r3, r2, r3
+ 8001b6a: 43db mvns r3, r3
+ 8001b6c: 69ba ldr r2, [r7, #24]
+ 8001b6e: 4013 ands r3, r2
+ 8001b70: 61bb str r3, [r7, #24]
temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07) * 4));
- 80021a6: 683b ldr r3, [r7, #0]
- 80021a8: 691a ldr r2, [r3, #16]
- 80021aa: 69fb ldr r3, [r7, #28]
- 80021ac: f003 0307 and.w r3, r3, #7
- 80021b0: 009b lsls r3, r3, #2
- 80021b2: fa02 f303 lsl.w r3, r2, r3
- 80021b6: 69ba ldr r2, [r7, #24]
- 80021b8: 4313 orrs r3, r2
- 80021ba: 61bb str r3, [r7, #24]
+ 8001b72: 683b ldr r3, [r7, #0]
+ 8001b74: 691a ldr r2, [r3, #16]
+ 8001b76: 69fb ldr r3, [r7, #28]
+ 8001b78: f003 0307 and.w r3, r3, #7
+ 8001b7c: 009b lsls r3, r3, #2
+ 8001b7e: fa02 f303 lsl.w r3, r2, r3
+ 8001b82: 69ba ldr r2, [r7, #24]
+ 8001b84: 4313 orrs r3, r2
+ 8001b86: 61bb str r3, [r7, #24]
GPIOx->AFR[position >> 3] = temp;
- 80021bc: 69fb ldr r3, [r7, #28]
- 80021be: 08da lsrs r2, r3, #3
- 80021c0: 687b ldr r3, [r7, #4]
- 80021c2: 3208 adds r2, #8
- 80021c4: 69b9 ldr r1, [r7, #24]
- 80021c6: f843 1022 str.w r1, [r3, r2, lsl #2]
+ 8001b88: 69fb ldr r3, [r7, #28]
+ 8001b8a: 08da lsrs r2, r3, #3
+ 8001b8c: 687b ldr r3, [r7, #4]
+ 8001b8e: 3208 adds r2, #8
+ 8001b90: 69b9 ldr r1, [r7, #24]
+ 8001b92: f843 1022 str.w r1, [r3, r2, lsl #2]
}
/* Configure IO Direction mode (Input, Output, Alternate or Analog) */
temp = GPIOx->MODER;
- 80021ca: 687b ldr r3, [r7, #4]
- 80021cc: 681b ldr r3, [r3, #0]
- 80021ce: 61bb str r3, [r7, #24]
+ 8001b96: 687b ldr r3, [r7, #4]
+ 8001b98: 681b ldr r3, [r3, #0]
+ 8001b9a: 61bb str r3, [r7, #24]
temp &= ~(GPIO_MODER_MODER0 << (position * 2));
- 80021d0: 69fb ldr r3, [r7, #28]
- 80021d2: 005b lsls r3, r3, #1
- 80021d4: 2203 movs r2, #3
- 80021d6: fa02 f303 lsl.w r3, r2, r3
- 80021da: 43db mvns r3, r3
- 80021dc: 69ba ldr r2, [r7, #24]
- 80021de: 4013 ands r3, r2
- 80021e0: 61bb str r3, [r7, #24]
+ 8001b9c: 69fb ldr r3, [r7, #28]
+ 8001b9e: 005b lsls r3, r3, #1
+ 8001ba0: 2203 movs r2, #3
+ 8001ba2: fa02 f303 lsl.w r3, r2, r3
+ 8001ba6: 43db mvns r3, r3
+ 8001ba8: 69ba ldr r2, [r7, #24]
+ 8001baa: 4013 ands r3, r2
+ 8001bac: 61bb str r3, [r7, #24]
temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2));
- 80021e2: 683b ldr r3, [r7, #0]
- 80021e4: 685b ldr r3, [r3, #4]
- 80021e6: f003 0203 and.w r2, r3, #3
- 80021ea: 69fb ldr r3, [r7, #28]
- 80021ec: 005b lsls r3, r3, #1
- 80021ee: fa02 f303 lsl.w r3, r2, r3
- 80021f2: 69ba ldr r2, [r7, #24]
- 80021f4: 4313 orrs r3, r2
- 80021f6: 61bb str r3, [r7, #24]
+ 8001bae: 683b ldr r3, [r7, #0]
+ 8001bb0: 685b ldr r3, [r3, #4]
+ 8001bb2: f003 0203 and.w r2, r3, #3
+ 8001bb6: 69fb ldr r3, [r7, #28]
+ 8001bb8: 005b lsls r3, r3, #1
+ 8001bba: fa02 f303 lsl.w r3, r2, r3
+ 8001bbe: 69ba ldr r2, [r7, #24]
+ 8001bc0: 4313 orrs r3, r2
+ 8001bc2: 61bb str r3, [r7, #24]
GPIOx->MODER = temp;
- 80021f8: 687b ldr r3, [r7, #4]
- 80021fa: 69ba ldr r2, [r7, #24]
- 80021fc: 601a str r2, [r3, #0]
+ 8001bc4: 687b ldr r3, [r7, #4]
+ 8001bc6: 69ba ldr r2, [r7, #24]
+ 8001bc8: 601a str r2, [r3, #0]
/* In case of Output or Alternate function mode selection */
if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) ||
- 80021fe: 683b ldr r3, [r7, #0]
- 8002200: 685b ldr r3, [r3, #4]
- 8002202: 2b01 cmp r3, #1
- 8002204: d00b beq.n 800221e <HAL_GPIO_Init+0xea>
- 8002206: 683b ldr r3, [r7, #0]
- 8002208: 685b ldr r3, [r3, #4]
- 800220a: 2b02 cmp r3, #2
- 800220c: d007 beq.n 800221e <HAL_GPIO_Init+0xea>
+ 8001bca: 683b ldr r3, [r7, #0]
+ 8001bcc: 685b ldr r3, [r3, #4]
+ 8001bce: 2b01 cmp r3, #1
+ 8001bd0: d00b beq.n 8001bea <HAL_GPIO_Init+0xea>
+ 8001bd2: 683b ldr r3, [r7, #0]
+ 8001bd4: 685b ldr r3, [r3, #4]
+ 8001bd6: 2b02 cmp r3, #2
+ 8001bd8: d007 beq.n 8001bea <HAL_GPIO_Init+0xea>
(GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD))
- 800220e: 683b ldr r3, [r7, #0]
- 8002210: 685b ldr r3, [r3, #4]
+ 8001bda: 683b ldr r3, [r7, #0]
+ 8001bdc: 685b ldr r3, [r3, #4]
if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) ||
- 8002212: 2b11 cmp r3, #17
- 8002214: d003 beq.n 800221e <HAL_GPIO_Init+0xea>
+ 8001bde: 2b11 cmp r3, #17
+ 8001be0: d003 beq.n 8001bea <HAL_GPIO_Init+0xea>
(GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD))
- 8002216: 683b ldr r3, [r7, #0]
- 8002218: 685b ldr r3, [r3, #4]
- 800221a: 2b12 cmp r3, #18
- 800221c: d130 bne.n 8002280 <HAL_GPIO_Init+0x14c>
+ 8001be2: 683b ldr r3, [r7, #0]
+ 8001be4: 685b ldr r3, [r3, #4]
+ 8001be6: 2b12 cmp r3, #18
+ 8001be8: d130 bne.n 8001c4c <HAL_GPIO_Init+0x14c>
{
/* Check the Speed parameter */
assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
/* Configure the IO Speed */
temp = GPIOx->OSPEEDR;
- 800221e: 687b ldr r3, [r7, #4]
- 8002220: 689b ldr r3, [r3, #8]
- 8002222: 61bb str r3, [r7, #24]
+ 8001bea: 687b ldr r3, [r7, #4]
+ 8001bec: 689b ldr r3, [r3, #8]
+ 8001bee: 61bb str r3, [r7, #24]
temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2));
- 8002224: 69fb ldr r3, [r7, #28]
- 8002226: 005b lsls r3, r3, #1
- 8002228: 2203 movs r2, #3
- 800222a: fa02 f303 lsl.w r3, r2, r3
- 800222e: 43db mvns r3, r3
- 8002230: 69ba ldr r2, [r7, #24]
- 8002232: 4013 ands r3, r2
- 8002234: 61bb str r3, [r7, #24]
+ 8001bf0: 69fb ldr r3, [r7, #28]
+ 8001bf2: 005b lsls r3, r3, #1
+ 8001bf4: 2203 movs r2, #3
+ 8001bf6: fa02 f303 lsl.w r3, r2, r3
+ 8001bfa: 43db mvns r3, r3
+ 8001bfc: 69ba ldr r2, [r7, #24]
+ 8001bfe: 4013 ands r3, r2
+ 8001c00: 61bb str r3, [r7, #24]
temp |= (GPIO_Init->Speed << (position * 2));
- 8002236: 683b ldr r3, [r7, #0]
- 8002238: 68da ldr r2, [r3, #12]
- 800223a: 69fb ldr r3, [r7, #28]
- 800223c: 005b lsls r3, r3, #1
- 800223e: fa02 f303 lsl.w r3, r2, r3
- 8002242: 69ba ldr r2, [r7, #24]
- 8002244: 4313 orrs r3, r2
- 8002246: 61bb str r3, [r7, #24]
+ 8001c02: 683b ldr r3, [r7, #0]
+ 8001c04: 68da ldr r2, [r3, #12]
+ 8001c06: 69fb ldr r3, [r7, #28]
+ 8001c08: 005b lsls r3, r3, #1
+ 8001c0a: fa02 f303 lsl.w r3, r2, r3
+ 8001c0e: 69ba ldr r2, [r7, #24]
+ 8001c10: 4313 orrs r3, r2
+ 8001c12: 61bb str r3, [r7, #24]
GPIOx->OSPEEDR = temp;
- 8002248: 687b ldr r3, [r7, #4]
- 800224a: 69ba ldr r2, [r7, #24]
- 800224c: 609a str r2, [r3, #8]
+ 8001c14: 687b ldr r3, [r7, #4]
+ 8001c16: 69ba ldr r2, [r7, #24]
+ 8001c18: 609a str r2, [r3, #8]
/* Configure the IO Output Type */
temp = GPIOx->OTYPER;
- 800224e: 687b ldr r3, [r7, #4]
- 8002250: 685b ldr r3, [r3, #4]
- 8002252: 61bb str r3, [r7, #24]
+ 8001c1a: 687b ldr r3, [r7, #4]
+ 8001c1c: 685b ldr r3, [r3, #4]
+ 8001c1e: 61bb str r3, [r7, #24]
temp &= ~(GPIO_OTYPER_OT_0 << position) ;
- 8002254: 2201 movs r2, #1
- 8002256: 69fb ldr r3, [r7, #28]
- 8002258: fa02 f303 lsl.w r3, r2, r3
- 800225c: 43db mvns r3, r3
- 800225e: 69ba ldr r2, [r7, #24]
- 8002260: 4013 ands r3, r2
- 8002262: 61bb str r3, [r7, #24]
+ 8001c20: 2201 movs r2, #1
+ 8001c22: 69fb ldr r3, [r7, #28]
+ 8001c24: fa02 f303 lsl.w r3, r2, r3
+ 8001c28: 43db mvns r3, r3
+ 8001c2a: 69ba ldr r2, [r7, #24]
+ 8001c2c: 4013 ands r3, r2
+ 8001c2e: 61bb str r3, [r7, #24]
temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4) << position);
- 8002264: 683b ldr r3, [r7, #0]
- 8002266: 685b ldr r3, [r3, #4]
- 8002268: 091b lsrs r3, r3, #4
- 800226a: f003 0201 and.w r2, r3, #1
- 800226e: 69fb ldr r3, [r7, #28]
- 8002270: fa02 f303 lsl.w r3, r2, r3
- 8002274: 69ba ldr r2, [r7, #24]
- 8002276: 4313 orrs r3, r2
- 8002278: 61bb str r3, [r7, #24]
+ 8001c30: 683b ldr r3, [r7, #0]
+ 8001c32: 685b ldr r3, [r3, #4]
+ 8001c34: 091b lsrs r3, r3, #4
+ 8001c36: f003 0201 and.w r2, r3, #1
+ 8001c3a: 69fb ldr r3, [r7, #28]
+ 8001c3c: fa02 f303 lsl.w r3, r2, r3
+ 8001c40: 69ba ldr r2, [r7, #24]
+ 8001c42: 4313 orrs r3, r2
+ 8001c44: 61bb str r3, [r7, #24]
GPIOx->OTYPER = temp;
- 800227a: 687b ldr r3, [r7, #4]
- 800227c: 69ba ldr r2, [r7, #24]
- 800227e: 605a str r2, [r3, #4]
+ 8001c46: 687b ldr r3, [r7, #4]
+ 8001c48: 69ba ldr r2, [r7, #24]
+ 8001c4a: 605a str r2, [r3, #4]
}
/* Activate the Pull-up or Pull down resistor for the current IO */
temp = GPIOx->PUPDR;
- 8002280: 687b ldr r3, [r7, #4]
- 8002282: 68db ldr r3, [r3, #12]
- 8002284: 61bb str r3, [r7, #24]
+ 8001c4c: 687b ldr r3, [r7, #4]
+ 8001c4e: 68db ldr r3, [r3, #12]
+ 8001c50: 61bb str r3, [r7, #24]
temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2));
- 8002286: 69fb ldr r3, [r7, #28]
- 8002288: 005b lsls r3, r3, #1
- 800228a: 2203 movs r2, #3
- 800228c: fa02 f303 lsl.w r3, r2, r3
- 8002290: 43db mvns r3, r3
- 8002292: 69ba ldr r2, [r7, #24]
- 8002294: 4013 ands r3, r2
- 8002296: 61bb str r3, [r7, #24]
+ 8001c52: 69fb ldr r3, [r7, #28]
+ 8001c54: 005b lsls r3, r3, #1
+ 8001c56: 2203 movs r2, #3
+ 8001c58: fa02 f303 lsl.w r3, r2, r3
+ 8001c5c: 43db mvns r3, r3
+ 8001c5e: 69ba ldr r2, [r7, #24]
+ 8001c60: 4013 ands r3, r2
+ 8001c62: 61bb str r3, [r7, #24]
temp |= ((GPIO_Init->Pull) << (position * 2));
- 8002298: 683b ldr r3, [r7, #0]
- 800229a: 689a ldr r2, [r3, #8]
- 800229c: 69fb ldr r3, [r7, #28]
- 800229e: 005b lsls r3, r3, #1
- 80022a0: fa02 f303 lsl.w r3, r2, r3
- 80022a4: 69ba ldr r2, [r7, #24]
- 80022a6: 4313 orrs r3, r2
- 80022a8: 61bb str r3, [r7, #24]
+ 8001c64: 683b ldr r3, [r7, #0]
+ 8001c66: 689a ldr r2, [r3, #8]
+ 8001c68: 69fb ldr r3, [r7, #28]
+ 8001c6a: 005b lsls r3, r3, #1
+ 8001c6c: fa02 f303 lsl.w r3, r2, r3
+ 8001c70: 69ba ldr r2, [r7, #24]
+ 8001c72: 4313 orrs r3, r2
+ 8001c74: 61bb str r3, [r7, #24]
GPIOx->PUPDR = temp;
- 80022aa: 687b ldr r3, [r7, #4]
- 80022ac: 69ba ldr r2, [r7, #24]
- 80022ae: 60da str r2, [r3, #12]
+ 8001c76: 687b ldr r3, [r7, #4]
+ 8001c78: 69ba ldr r2, [r7, #24]
+ 8001c7a: 60da str r2, [r3, #12]
/*--------------------- EXTI Mode Configuration ------------------------*/
/* Configure the External Interrupt or event for the current IO */
if((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
- 80022b0: 683b ldr r3, [r7, #0]
- 80022b2: 685b ldr r3, [r3, #4]
- 80022b4: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 80022b8: 2b00 cmp r3, #0
- 80022ba: f000 80be beq.w 800243a <HAL_GPIO_Init+0x306>
+ 8001c7c: 683b ldr r3, [r7, #0]
+ 8001c7e: 685b ldr r3, [r3, #4]
+ 8001c80: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 8001c84: 2b00 cmp r3, #0
+ 8001c86: f000 80be beq.w 8001e06 <HAL_GPIO_Init+0x306>
{
/* Enable SYSCFG Clock */
__HAL_RCC_SYSCFG_CLK_ENABLE();
- 80022be: 4b65 ldr r3, [pc, #404] ; (8002454 <HAL_GPIO_Init+0x320>)
- 80022c0: 6c5b ldr r3, [r3, #68] ; 0x44
- 80022c2: 4a64 ldr r2, [pc, #400] ; (8002454 <HAL_GPIO_Init+0x320>)
- 80022c4: f443 4380 orr.w r3, r3, #16384 ; 0x4000
- 80022c8: 6453 str r3, [r2, #68] ; 0x44
- 80022ca: 4b62 ldr r3, [pc, #392] ; (8002454 <HAL_GPIO_Init+0x320>)
- 80022cc: 6c5b ldr r3, [r3, #68] ; 0x44
- 80022ce: f403 4380 and.w r3, r3, #16384 ; 0x4000
- 80022d2: 60fb str r3, [r7, #12]
- 80022d4: 68fb ldr r3, [r7, #12]
+ 8001c8a: 4b65 ldr r3, [pc, #404] ; (8001e20 <HAL_GPIO_Init+0x320>)
+ 8001c8c: 6c5b ldr r3, [r3, #68] ; 0x44
+ 8001c8e: 4a64 ldr r2, [pc, #400] ; (8001e20 <HAL_GPIO_Init+0x320>)
+ 8001c90: f443 4380 orr.w r3, r3, #16384 ; 0x4000
+ 8001c94: 6453 str r3, [r2, #68] ; 0x44
+ 8001c96: 4b62 ldr r3, [pc, #392] ; (8001e20 <HAL_GPIO_Init+0x320>)
+ 8001c98: 6c5b ldr r3, [r3, #68] ; 0x44
+ 8001c9a: f403 4380 and.w r3, r3, #16384 ; 0x4000
+ 8001c9e: 60fb str r3, [r7, #12]
+ 8001ca0: 68fb ldr r3, [r7, #12]
temp = SYSCFG->EXTICR[position >> 2];
- 80022d6: 4a60 ldr r2, [pc, #384] ; (8002458 <HAL_GPIO_Init+0x324>)
- 80022d8: 69fb ldr r3, [r7, #28]
- 80022da: 089b lsrs r3, r3, #2
- 80022dc: 3302 adds r3, #2
- 80022de: f852 3023 ldr.w r3, [r2, r3, lsl #2]
- 80022e2: 61bb str r3, [r7, #24]
+ 8001ca2: 4a60 ldr r2, [pc, #384] ; (8001e24 <HAL_GPIO_Init+0x324>)
+ 8001ca4: 69fb ldr r3, [r7, #28]
+ 8001ca6: 089b lsrs r3, r3, #2
+ 8001ca8: 3302 adds r3, #2
+ 8001caa: f852 3023 ldr.w r3, [r2, r3, lsl #2]
+ 8001cae: 61bb str r3, [r7, #24]
temp &= ~(((uint32_t)0x0F) << (4 * (position & 0x03)));
- 80022e4: 69fb ldr r3, [r7, #28]
- 80022e6: f003 0303 and.w r3, r3, #3
- 80022ea: 009b lsls r3, r3, #2
- 80022ec: 220f movs r2, #15
- 80022ee: fa02 f303 lsl.w r3, r2, r3
- 80022f2: 43db mvns r3, r3
- 80022f4: 69ba ldr r2, [r7, #24]
- 80022f6: 4013 ands r3, r2
- 80022f8: 61bb str r3, [r7, #24]
+ 8001cb0: 69fb ldr r3, [r7, #28]
+ 8001cb2: f003 0303 and.w r3, r3, #3
+ 8001cb6: 009b lsls r3, r3, #2
+ 8001cb8: 220f movs r2, #15
+ 8001cba: fa02 f303 lsl.w r3, r2, r3
+ 8001cbe: 43db mvns r3, r3
+ 8001cc0: 69ba ldr r2, [r7, #24]
+ 8001cc2: 4013 ands r3, r2
+ 8001cc4: 61bb str r3, [r7, #24]
temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03)));
- 80022fa: 687b ldr r3, [r7, #4]
- 80022fc: 4a57 ldr r2, [pc, #348] ; (800245c <HAL_GPIO_Init+0x328>)
- 80022fe: 4293 cmp r3, r2
- 8002300: d037 beq.n 8002372 <HAL_GPIO_Init+0x23e>
- 8002302: 687b ldr r3, [r7, #4]
- 8002304: 4a56 ldr r2, [pc, #344] ; (8002460 <HAL_GPIO_Init+0x32c>)
- 8002306: 4293 cmp r3, r2
- 8002308: d031 beq.n 800236e <HAL_GPIO_Init+0x23a>
- 800230a: 687b ldr r3, [r7, #4]
- 800230c: 4a55 ldr r2, [pc, #340] ; (8002464 <HAL_GPIO_Init+0x330>)
- 800230e: 4293 cmp r3, r2
- 8002310: d02b beq.n 800236a <HAL_GPIO_Init+0x236>
- 8002312: 687b ldr r3, [r7, #4]
- 8002314: 4a54 ldr r2, [pc, #336] ; (8002468 <HAL_GPIO_Init+0x334>)
- 8002316: 4293 cmp r3, r2
- 8002318: d025 beq.n 8002366 <HAL_GPIO_Init+0x232>
- 800231a: 687b ldr r3, [r7, #4]
- 800231c: 4a53 ldr r2, [pc, #332] ; (800246c <HAL_GPIO_Init+0x338>)
- 800231e: 4293 cmp r3, r2
- 8002320: d01f beq.n 8002362 <HAL_GPIO_Init+0x22e>
- 8002322: 687b ldr r3, [r7, #4]
- 8002324: 4a52 ldr r2, [pc, #328] ; (8002470 <HAL_GPIO_Init+0x33c>)
- 8002326: 4293 cmp r3, r2
- 8002328: d019 beq.n 800235e <HAL_GPIO_Init+0x22a>
- 800232a: 687b ldr r3, [r7, #4]
- 800232c: 4a51 ldr r2, [pc, #324] ; (8002474 <HAL_GPIO_Init+0x340>)
- 800232e: 4293 cmp r3, r2
- 8002330: d013 beq.n 800235a <HAL_GPIO_Init+0x226>
- 8002332: 687b ldr r3, [r7, #4]
- 8002334: 4a50 ldr r2, [pc, #320] ; (8002478 <HAL_GPIO_Init+0x344>)
- 8002336: 4293 cmp r3, r2
- 8002338: d00d beq.n 8002356 <HAL_GPIO_Init+0x222>
- 800233a: 687b ldr r3, [r7, #4]
- 800233c: 4a4f ldr r2, [pc, #316] ; (800247c <HAL_GPIO_Init+0x348>)
- 800233e: 4293 cmp r3, r2
- 8002340: d007 beq.n 8002352 <HAL_GPIO_Init+0x21e>
- 8002342: 687b ldr r3, [r7, #4]
- 8002344: 4a4e ldr r2, [pc, #312] ; (8002480 <HAL_GPIO_Init+0x34c>)
- 8002346: 4293 cmp r3, r2
- 8002348: d101 bne.n 800234e <HAL_GPIO_Init+0x21a>
- 800234a: 2309 movs r3, #9
- 800234c: e012 b.n 8002374 <HAL_GPIO_Init+0x240>
- 800234e: 230a movs r3, #10
- 8002350: e010 b.n 8002374 <HAL_GPIO_Init+0x240>
- 8002352: 2308 movs r3, #8
- 8002354: e00e b.n 8002374 <HAL_GPIO_Init+0x240>
- 8002356: 2307 movs r3, #7
- 8002358: e00c b.n 8002374 <HAL_GPIO_Init+0x240>
- 800235a: 2306 movs r3, #6
- 800235c: e00a b.n 8002374 <HAL_GPIO_Init+0x240>
- 800235e: 2305 movs r3, #5
- 8002360: e008 b.n 8002374 <HAL_GPIO_Init+0x240>
- 8002362: 2304 movs r3, #4
- 8002364: e006 b.n 8002374 <HAL_GPIO_Init+0x240>
- 8002366: 2303 movs r3, #3
- 8002368: e004 b.n 8002374 <HAL_GPIO_Init+0x240>
- 800236a: 2302 movs r3, #2
- 800236c: e002 b.n 8002374 <HAL_GPIO_Init+0x240>
- 800236e: 2301 movs r3, #1
- 8002370: e000 b.n 8002374 <HAL_GPIO_Init+0x240>
- 8002372: 2300 movs r3, #0
- 8002374: 69fa ldr r2, [r7, #28]
- 8002376: f002 0203 and.w r2, r2, #3
- 800237a: 0092 lsls r2, r2, #2
- 800237c: 4093 lsls r3, r2
- 800237e: 69ba ldr r2, [r7, #24]
- 8002380: 4313 orrs r3, r2
- 8002382: 61bb str r3, [r7, #24]
+ 8001cc6: 687b ldr r3, [r7, #4]
+ 8001cc8: 4a57 ldr r2, [pc, #348] ; (8001e28 <HAL_GPIO_Init+0x328>)
+ 8001cca: 4293 cmp r3, r2
+ 8001ccc: d037 beq.n 8001d3e <HAL_GPIO_Init+0x23e>
+ 8001cce: 687b ldr r3, [r7, #4]
+ 8001cd0: 4a56 ldr r2, [pc, #344] ; (8001e2c <HAL_GPIO_Init+0x32c>)
+ 8001cd2: 4293 cmp r3, r2
+ 8001cd4: d031 beq.n 8001d3a <HAL_GPIO_Init+0x23a>
+ 8001cd6: 687b ldr r3, [r7, #4]
+ 8001cd8: 4a55 ldr r2, [pc, #340] ; (8001e30 <HAL_GPIO_Init+0x330>)
+ 8001cda: 4293 cmp r3, r2
+ 8001cdc: d02b beq.n 8001d36 <HAL_GPIO_Init+0x236>
+ 8001cde: 687b ldr r3, [r7, #4]
+ 8001ce0: 4a54 ldr r2, [pc, #336] ; (8001e34 <HAL_GPIO_Init+0x334>)
+ 8001ce2: 4293 cmp r3, r2
+ 8001ce4: d025 beq.n 8001d32 <HAL_GPIO_Init+0x232>
+ 8001ce6: 687b ldr r3, [r7, #4]
+ 8001ce8: 4a53 ldr r2, [pc, #332] ; (8001e38 <HAL_GPIO_Init+0x338>)
+ 8001cea: 4293 cmp r3, r2
+ 8001cec: d01f beq.n 8001d2e <HAL_GPIO_Init+0x22e>
+ 8001cee: 687b ldr r3, [r7, #4]
+ 8001cf0: 4a52 ldr r2, [pc, #328] ; (8001e3c <HAL_GPIO_Init+0x33c>)
+ 8001cf2: 4293 cmp r3, r2
+ 8001cf4: d019 beq.n 8001d2a <HAL_GPIO_Init+0x22a>
+ 8001cf6: 687b ldr r3, [r7, #4]
+ 8001cf8: 4a51 ldr r2, [pc, #324] ; (8001e40 <HAL_GPIO_Init+0x340>)
+ 8001cfa: 4293 cmp r3, r2
+ 8001cfc: d013 beq.n 8001d26 <HAL_GPIO_Init+0x226>
+ 8001cfe: 687b ldr r3, [r7, #4]
+ 8001d00: 4a50 ldr r2, [pc, #320] ; (8001e44 <HAL_GPIO_Init+0x344>)
+ 8001d02: 4293 cmp r3, r2
+ 8001d04: d00d beq.n 8001d22 <HAL_GPIO_Init+0x222>
+ 8001d06: 687b ldr r3, [r7, #4]
+ 8001d08: 4a4f ldr r2, [pc, #316] ; (8001e48 <HAL_GPIO_Init+0x348>)
+ 8001d0a: 4293 cmp r3, r2
+ 8001d0c: d007 beq.n 8001d1e <HAL_GPIO_Init+0x21e>
+ 8001d0e: 687b ldr r3, [r7, #4]
+ 8001d10: 4a4e ldr r2, [pc, #312] ; (8001e4c <HAL_GPIO_Init+0x34c>)
+ 8001d12: 4293 cmp r3, r2
+ 8001d14: d101 bne.n 8001d1a <HAL_GPIO_Init+0x21a>
+ 8001d16: 2309 movs r3, #9
+ 8001d18: e012 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d1a: 230a movs r3, #10
+ 8001d1c: e010 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d1e: 2308 movs r3, #8
+ 8001d20: e00e b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d22: 2307 movs r3, #7
+ 8001d24: e00c b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d26: 2306 movs r3, #6
+ 8001d28: e00a b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d2a: 2305 movs r3, #5
+ 8001d2c: e008 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d2e: 2304 movs r3, #4
+ 8001d30: e006 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d32: 2303 movs r3, #3
+ 8001d34: e004 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d36: 2302 movs r3, #2
+ 8001d38: e002 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d3a: 2301 movs r3, #1
+ 8001d3c: e000 b.n 8001d40 <HAL_GPIO_Init+0x240>
+ 8001d3e: 2300 movs r3, #0
+ 8001d40: 69fa ldr r2, [r7, #28]
+ 8001d42: f002 0203 and.w r2, r2, #3
+ 8001d46: 0092 lsls r2, r2, #2
+ 8001d48: 4093 lsls r3, r2
+ 8001d4a: 69ba ldr r2, [r7, #24]
+ 8001d4c: 4313 orrs r3, r2
+ 8001d4e: 61bb str r3, [r7, #24]
SYSCFG->EXTICR[position >> 2] = temp;
- 8002384: 4934 ldr r1, [pc, #208] ; (8002458 <HAL_GPIO_Init+0x324>)
- 8002386: 69fb ldr r3, [r7, #28]
- 8002388: 089b lsrs r3, r3, #2
- 800238a: 3302 adds r3, #2
- 800238c: 69ba ldr r2, [r7, #24]
- 800238e: f841 2023 str.w r2, [r1, r3, lsl #2]
+ 8001d50: 4934 ldr r1, [pc, #208] ; (8001e24 <HAL_GPIO_Init+0x324>)
+ 8001d52: 69fb ldr r3, [r7, #28]
+ 8001d54: 089b lsrs r3, r3, #2
+ 8001d56: 3302 adds r3, #2
+ 8001d58: 69ba ldr r2, [r7, #24]
+ 8001d5a: f841 2023 str.w r2, [r1, r3, lsl #2]
/* Clear EXTI line configuration */
temp = EXTI->IMR;
- 8002392: 4b3c ldr r3, [pc, #240] ; (8002484 <HAL_GPIO_Init+0x350>)
- 8002394: 681b ldr r3, [r3, #0]
- 8002396: 61bb str r3, [r7, #24]
+ 8001d5e: 4b3c ldr r3, [pc, #240] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001d60: 681b ldr r3, [r3, #0]
+ 8001d62: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
- 8002398: 693b ldr r3, [r7, #16]
- 800239a: 43db mvns r3, r3
- 800239c: 69ba ldr r2, [r7, #24]
- 800239e: 4013 ands r3, r2
- 80023a0: 61bb str r3, [r7, #24]
+ 8001d64: 693b ldr r3, [r7, #16]
+ 8001d66: 43db mvns r3, r3
+ 8001d68: 69ba ldr r2, [r7, #24]
+ 8001d6a: 4013 ands r3, r2
+ 8001d6c: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
- 80023a2: 683b ldr r3, [r7, #0]
- 80023a4: 685b ldr r3, [r3, #4]
- 80023a6: f403 3380 and.w r3, r3, #65536 ; 0x10000
- 80023aa: 2b00 cmp r3, #0
- 80023ac: d003 beq.n 80023b6 <HAL_GPIO_Init+0x282>
+ 8001d6e: 683b ldr r3, [r7, #0]
+ 8001d70: 685b ldr r3, [r3, #4]
+ 8001d72: f403 3380 and.w r3, r3, #65536 ; 0x10000
+ 8001d76: 2b00 cmp r3, #0
+ 8001d78: d003 beq.n 8001d82 <HAL_GPIO_Init+0x282>
{
temp |= iocurrent;
- 80023ae: 69ba ldr r2, [r7, #24]
- 80023b0: 693b ldr r3, [r7, #16]
- 80023b2: 4313 orrs r3, r2
- 80023b4: 61bb str r3, [r7, #24]
+ 8001d7a: 69ba ldr r2, [r7, #24]
+ 8001d7c: 693b ldr r3, [r7, #16]
+ 8001d7e: 4313 orrs r3, r2
+ 8001d80: 61bb str r3, [r7, #24]
}
EXTI->IMR = temp;
- 80023b6: 4a33 ldr r2, [pc, #204] ; (8002484 <HAL_GPIO_Init+0x350>)
- 80023b8: 69bb ldr r3, [r7, #24]
- 80023ba: 6013 str r3, [r2, #0]
+ 8001d82: 4a33 ldr r2, [pc, #204] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001d84: 69bb ldr r3, [r7, #24]
+ 8001d86: 6013 str r3, [r2, #0]
temp = EXTI->EMR;
- 80023bc: 4b31 ldr r3, [pc, #196] ; (8002484 <HAL_GPIO_Init+0x350>)
- 80023be: 685b ldr r3, [r3, #4]
- 80023c0: 61bb str r3, [r7, #24]
+ 8001d88: 4b31 ldr r3, [pc, #196] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001d8a: 685b ldr r3, [r3, #4]
+ 8001d8c: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
- 80023c2: 693b ldr r3, [r7, #16]
- 80023c4: 43db mvns r3, r3
- 80023c6: 69ba ldr r2, [r7, #24]
- 80023c8: 4013 ands r3, r2
- 80023ca: 61bb str r3, [r7, #24]
+ 8001d8e: 693b ldr r3, [r7, #16]
+ 8001d90: 43db mvns r3, r3
+ 8001d92: 69ba ldr r2, [r7, #24]
+ 8001d94: 4013 ands r3, r2
+ 8001d96: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
- 80023cc: 683b ldr r3, [r7, #0]
- 80023ce: 685b ldr r3, [r3, #4]
- 80023d0: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 80023d4: 2b00 cmp r3, #0
- 80023d6: d003 beq.n 80023e0 <HAL_GPIO_Init+0x2ac>
+ 8001d98: 683b ldr r3, [r7, #0]
+ 8001d9a: 685b ldr r3, [r3, #4]
+ 8001d9c: f403 3300 and.w r3, r3, #131072 ; 0x20000
+ 8001da0: 2b00 cmp r3, #0
+ 8001da2: d003 beq.n 8001dac <HAL_GPIO_Init+0x2ac>
{
temp |= iocurrent;
- 80023d8: 69ba ldr r2, [r7, #24]
- 80023da: 693b ldr r3, [r7, #16]
- 80023dc: 4313 orrs r3, r2
- 80023de: 61bb str r3, [r7, #24]
+ 8001da4: 69ba ldr r2, [r7, #24]
+ 8001da6: 693b ldr r3, [r7, #16]
+ 8001da8: 4313 orrs r3, r2
+ 8001daa: 61bb str r3, [r7, #24]
}
EXTI->EMR = temp;
- 80023e0: 4a28 ldr r2, [pc, #160] ; (8002484 <HAL_GPIO_Init+0x350>)
- 80023e2: 69bb ldr r3, [r7, #24]
- 80023e4: 6053 str r3, [r2, #4]
+ 8001dac: 4a28 ldr r2, [pc, #160] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001dae: 69bb ldr r3, [r7, #24]
+ 8001db0: 6053 str r3, [r2, #4]
/* Clear Rising Falling edge configuration */
temp = EXTI->RTSR;
- 80023e6: 4b27 ldr r3, [pc, #156] ; (8002484 <HAL_GPIO_Init+0x350>)
- 80023e8: 689b ldr r3, [r3, #8]
- 80023ea: 61bb str r3, [r7, #24]
+ 8001db2: 4b27 ldr r3, [pc, #156] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001db4: 689b ldr r3, [r3, #8]
+ 8001db6: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
- 80023ec: 693b ldr r3, [r7, #16]
- 80023ee: 43db mvns r3, r3
- 80023f0: 69ba ldr r2, [r7, #24]
- 80023f2: 4013 ands r3, r2
- 80023f4: 61bb str r3, [r7, #24]
+ 8001db8: 693b ldr r3, [r7, #16]
+ 8001dba: 43db mvns r3, r3
+ 8001dbc: 69ba ldr r2, [r7, #24]
+ 8001dbe: 4013 ands r3, r2
+ 8001dc0: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
- 80023f6: 683b ldr r3, [r7, #0]
- 80023f8: 685b ldr r3, [r3, #4]
- 80023fa: f403 1380 and.w r3, r3, #1048576 ; 0x100000
- 80023fe: 2b00 cmp r3, #0
- 8002400: d003 beq.n 800240a <HAL_GPIO_Init+0x2d6>
+ 8001dc2: 683b ldr r3, [r7, #0]
+ 8001dc4: 685b ldr r3, [r3, #4]
+ 8001dc6: f403 1380 and.w r3, r3, #1048576 ; 0x100000
+ 8001dca: 2b00 cmp r3, #0
+ 8001dcc: d003 beq.n 8001dd6 <HAL_GPIO_Init+0x2d6>
{
temp |= iocurrent;
- 8002402: 69ba ldr r2, [r7, #24]
- 8002404: 693b ldr r3, [r7, #16]
- 8002406: 4313 orrs r3, r2
- 8002408: 61bb str r3, [r7, #24]
+ 8001dce: 69ba ldr r2, [r7, #24]
+ 8001dd0: 693b ldr r3, [r7, #16]
+ 8001dd2: 4313 orrs r3, r2
+ 8001dd4: 61bb str r3, [r7, #24]
}
EXTI->RTSR = temp;
- 800240a: 4a1e ldr r2, [pc, #120] ; (8002484 <HAL_GPIO_Init+0x350>)
- 800240c: 69bb ldr r3, [r7, #24]
- 800240e: 6093 str r3, [r2, #8]
+ 8001dd6: 4a1e ldr r2, [pc, #120] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001dd8: 69bb ldr r3, [r7, #24]
+ 8001dda: 6093 str r3, [r2, #8]
temp = EXTI->FTSR;
- 8002410: 4b1c ldr r3, [pc, #112] ; (8002484 <HAL_GPIO_Init+0x350>)
- 8002412: 68db ldr r3, [r3, #12]
- 8002414: 61bb str r3, [r7, #24]
+ 8001ddc: 4b1c ldr r3, [pc, #112] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001dde: 68db ldr r3, [r3, #12]
+ 8001de0: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
- 8002416: 693b ldr r3, [r7, #16]
- 8002418: 43db mvns r3, r3
- 800241a: 69ba ldr r2, [r7, #24]
- 800241c: 4013 ands r3, r2
- 800241e: 61bb str r3, [r7, #24]
+ 8001de2: 693b ldr r3, [r7, #16]
+ 8001de4: 43db mvns r3, r3
+ 8001de6: 69ba ldr r2, [r7, #24]
+ 8001de8: 4013 ands r3, r2
+ 8001dea: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
- 8002420: 683b ldr r3, [r7, #0]
- 8002422: 685b ldr r3, [r3, #4]
- 8002424: f403 1300 and.w r3, r3, #2097152 ; 0x200000
- 8002428: 2b00 cmp r3, #0
- 800242a: d003 beq.n 8002434 <HAL_GPIO_Init+0x300>
+ 8001dec: 683b ldr r3, [r7, #0]
+ 8001dee: 685b ldr r3, [r3, #4]
+ 8001df0: f403 1300 and.w r3, r3, #2097152 ; 0x200000
+ 8001df4: 2b00 cmp r3, #0
+ 8001df6: d003 beq.n 8001e00 <HAL_GPIO_Init+0x300>
{
temp |= iocurrent;
- 800242c: 69ba ldr r2, [r7, #24]
- 800242e: 693b ldr r3, [r7, #16]
- 8002430: 4313 orrs r3, r2
- 8002432: 61bb str r3, [r7, #24]
+ 8001df8: 69ba ldr r2, [r7, #24]
+ 8001dfa: 693b ldr r3, [r7, #16]
+ 8001dfc: 4313 orrs r3, r2
+ 8001dfe: 61bb str r3, [r7, #24]
}
EXTI->FTSR = temp;
- 8002434: 4a13 ldr r2, [pc, #76] ; (8002484 <HAL_GPIO_Init+0x350>)
- 8002436: 69bb ldr r3, [r7, #24]
- 8002438: 60d3 str r3, [r2, #12]
+ 8001e00: 4a13 ldr r2, [pc, #76] ; (8001e50 <HAL_GPIO_Init+0x350>)
+ 8001e02: 69bb ldr r3, [r7, #24]
+ 8001e04: 60d3 str r3, [r2, #12]
for(position = 0; position < GPIO_NUMBER; position++)
- 800243a: 69fb ldr r3, [r7, #28]
- 800243c: 3301 adds r3, #1
- 800243e: 61fb str r3, [r7, #28]
- 8002440: 69fb ldr r3, [r7, #28]
- 8002442: 2b0f cmp r3, #15
- 8002444: f67f ae86 bls.w 8002154 <HAL_GPIO_Init+0x20>
+ 8001e06: 69fb ldr r3, [r7, #28]
+ 8001e08: 3301 adds r3, #1
+ 8001e0a: 61fb str r3, [r7, #28]
+ 8001e0c: 69fb ldr r3, [r7, #28]
+ 8001e0e: 2b0f cmp r3, #15
+ 8001e10: f67f ae86 bls.w 8001b20 <HAL_GPIO_Init+0x20>
}
}
}
}
- 8002448: bf00 nop
- 800244a: 3724 adds r7, #36 ; 0x24
- 800244c: 46bd mov sp, r7
- 800244e: f85d 7b04 ldr.w r7, [sp], #4
- 8002452: 4770 bx lr
- 8002454: 40023800 .word 0x40023800
- 8002458: 40013800 .word 0x40013800
- 800245c: 40020000 .word 0x40020000
- 8002460: 40020400 .word 0x40020400
- 8002464: 40020800 .word 0x40020800
- 8002468: 40020c00 .word 0x40020c00
- 800246c: 40021000 .word 0x40021000
- 8002470: 40021400 .word 0x40021400
- 8002474: 40021800 .word 0x40021800
- 8002478: 40021c00 .word 0x40021c00
- 800247c: 40022000 .word 0x40022000
- 8002480: 40022400 .word 0x40022400
- 8002484: 40013c00 .word 0x40013c00
-
-08002488 <HAL_GPIO_WritePin>:
+ 8001e14: bf00 nop
+ 8001e16: 3724 adds r7, #36 ; 0x24
+ 8001e18: 46bd mov sp, r7
+ 8001e1a: f85d 7b04 ldr.w r7, [sp], #4
+ 8001e1e: 4770 bx lr
+ 8001e20: 40023800 .word 0x40023800
+ 8001e24: 40013800 .word 0x40013800
+ 8001e28: 40020000 .word 0x40020000
+ 8001e2c: 40020400 .word 0x40020400
+ 8001e30: 40020800 .word 0x40020800
+ 8001e34: 40020c00 .word 0x40020c00
+ 8001e38: 40021000 .word 0x40021000
+ 8001e3c: 40021400 .word 0x40021400
+ 8001e40: 40021800 .word 0x40021800
+ 8001e44: 40021c00 .word 0x40021c00
+ 8001e48: 40022000 .word 0x40022000
+ 8001e4c: 40022400 .word 0x40022400
+ 8001e50: 40013c00 .word 0x40013c00
+
+08001e54 <HAL_GPIO_WritePin>:
* @arg GPIO_PIN_RESET: to clear the port pin
* @arg GPIO_PIN_SET: to set the port pin
* @retval None
*/
void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
{
- 8002488: b480 push {r7}
- 800248a: b083 sub sp, #12
- 800248c: af00 add r7, sp, #0
- 800248e: 6078 str r0, [r7, #4]
- 8002490: 460b mov r3, r1
- 8002492: 807b strh r3, [r7, #2]
- 8002494: 4613 mov r3, r2
- 8002496: 707b strb r3, [r7, #1]
+ 8001e54: b480 push {r7}
+ 8001e56: b083 sub sp, #12
+ 8001e58: af00 add r7, sp, #0
+ 8001e5a: 6078 str r0, [r7, #4]
+ 8001e5c: 460b mov r3, r1
+ 8001e5e: 807b strh r3, [r7, #2]
+ 8001e60: 4613 mov r3, r2
+ 8001e62: 707b strb r3, [r7, #1]
/* Check the parameters */
assert_param(IS_GPIO_PIN(GPIO_Pin));
assert_param(IS_GPIO_PIN_ACTION(PinState));
if(PinState != GPIO_PIN_RESET)
- 8002498: 787b ldrb r3, [r7, #1]
- 800249a: 2b00 cmp r3, #0
- 800249c: d003 beq.n 80024a6 <HAL_GPIO_WritePin+0x1e>
+ 8001e64: 787b ldrb r3, [r7, #1]
+ 8001e66: 2b00 cmp r3, #0
+ 8001e68: d003 beq.n 8001e72 <HAL_GPIO_WritePin+0x1e>
{
GPIOx->BSRR = GPIO_Pin;
- 800249e: 887a ldrh r2, [r7, #2]
- 80024a0: 687b ldr r3, [r7, #4]
- 80024a2: 619a str r2, [r3, #24]
+ 8001e6a: 887a ldrh r2, [r7, #2]
+ 8001e6c: 687b ldr r3, [r7, #4]
+ 8001e6e: 619a str r2, [r3, #24]
}
else
{
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16;
}
}
- 80024a4: e003 b.n 80024ae <HAL_GPIO_WritePin+0x26>
+ 8001e70: e003 b.n 8001e7a <HAL_GPIO_WritePin+0x26>
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16;
- 80024a6: 887b ldrh r3, [r7, #2]
- 80024a8: 041a lsls r2, r3, #16
- 80024aa: 687b ldr r3, [r7, #4]
- 80024ac: 619a str r2, [r3, #24]
+ 8001e72: 887b ldrh r3, [r7, #2]
+ 8001e74: 041a lsls r2, r3, #16
+ 8001e76: 687b ldr r3, [r7, #4]
+ 8001e78: 619a str r2, [r3, #24]
}
- 80024ae: bf00 nop
- 80024b0: 370c adds r7, #12
- 80024b2: 46bd mov sp, r7
- 80024b4: f85d 7b04 ldr.w r7, [sp], #4
- 80024b8: 4770 bx lr
+ 8001e7a: bf00 nop
+ 8001e7c: 370c adds r7, #12
+ 8001e7e: 46bd mov sp, r7
+ 8001e80: f85d 7b04 ldr.w r7, [sp], #4
+ 8001e84: 4770 bx lr
...
-080024bc <HAL_RCC_OscConfig>:
+08001e88 <HAL_RCC_OscConfig>:
* supported by this function. User should request a transition to HSE Off
* first and then HSE On or HSE Bypass.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
{
- 80024bc: b580 push {r7, lr}
- 80024be: b086 sub sp, #24
- 80024c0: af00 add r7, sp, #0
- 80024c2: 6078 str r0, [r7, #4]
+ 8001e88: b580 push {r7, lr}
+ 8001e8a: b086 sub sp, #24
+ 8001e8c: af00 add r7, sp, #0
+ 8001e8e: 6078 str r0, [r7, #4]
uint32_t tickstart;
FlagStatus pwrclkchanged = RESET;
- 80024c4: 2300 movs r3, #0
- 80024c6: 75fb strb r3, [r7, #23]
+ 8001e90: 2300 movs r3, #0
+ 8001e92: 75fb strb r3, [r7, #23]
/* Check Null pointer */
if(RCC_OscInitStruct == NULL)
- 80024c8: 687b ldr r3, [r7, #4]
- 80024ca: 2b00 cmp r3, #0
- 80024cc: d101 bne.n 80024d2 <HAL_RCC_OscConfig+0x16>
+ 8001e94: 687b ldr r3, [r7, #4]
+ 8001e96: 2b00 cmp r3, #0
+ 8001e98: d101 bne.n 8001e9e <HAL_RCC_OscConfig+0x16>
{
return HAL_ERROR;
- 80024ce: 2301 movs r3, #1
- 80024d0: e25e b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8001e9a: 2301 movs r3, #1
+ 8001e9c: e25e b.n 800235c <HAL_RCC_OscConfig+0x4d4>
/* Check the parameters */
assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
/*------------------------------- HSE Configuration ------------------------*/
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
- 80024d2: 687b ldr r3, [r7, #4]
- 80024d4: 681b ldr r3, [r3, #0]
- 80024d6: f003 0301 and.w r3, r3, #1
- 80024da: 2b00 cmp r3, #0
- 80024dc: f000 8087 beq.w 80025ee <HAL_RCC_OscConfig+0x132>
+ 8001e9e: 687b ldr r3, [r7, #4]
+ 8001ea0: 681b ldr r3, [r3, #0]
+ 8001ea2: f003 0301 and.w r3, r3, #1
+ 8001ea6: 2b00 cmp r3, #0
+ 8001ea8: f000 8087 beq.w 8001fba <HAL_RCC_OscConfig+0x132>
{
/* Check the parameters */
assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
/* When the HSE is used as system clock or clock source for PLL, It can not be disabled */
if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
- 80024e0: 4b96 ldr r3, [pc, #600] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80024e2: 689b ldr r3, [r3, #8]
- 80024e4: f003 030c and.w r3, r3, #12
- 80024e8: 2b04 cmp r3, #4
- 80024ea: d00c beq.n 8002506 <HAL_RCC_OscConfig+0x4a>
+ 8001eac: 4b96 ldr r3, [pc, #600] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001eae: 689b ldr r3, [r3, #8]
+ 8001eb0: f003 030c and.w r3, r3, #12
+ 8001eb4: 2b04 cmp r3, #4
+ 8001eb6: d00c beq.n 8001ed2 <HAL_RCC_OscConfig+0x4a>
|| ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)))
- 80024ec: 4b93 ldr r3, [pc, #588] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80024ee: 689b ldr r3, [r3, #8]
- 80024f0: f003 030c and.w r3, r3, #12
- 80024f4: 2b08 cmp r3, #8
- 80024f6: d112 bne.n 800251e <HAL_RCC_OscConfig+0x62>
- 80024f8: 4b90 ldr r3, [pc, #576] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80024fa: 685b ldr r3, [r3, #4]
- 80024fc: f403 0380 and.w r3, r3, #4194304 ; 0x400000
- 8002500: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000
- 8002504: d10b bne.n 800251e <HAL_RCC_OscConfig+0x62>
+ 8001eb8: 4b93 ldr r3, [pc, #588] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001eba: 689b ldr r3, [r3, #8]
+ 8001ebc: f003 030c and.w r3, r3, #12
+ 8001ec0: 2b08 cmp r3, #8
+ 8001ec2: d112 bne.n 8001eea <HAL_RCC_OscConfig+0x62>
+ 8001ec4: 4b90 ldr r3, [pc, #576] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001ec6: 685b ldr r3, [r3, #4]
+ 8001ec8: f403 0380 and.w r3, r3, #4194304 ; 0x400000
+ 8001ecc: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000
+ 8001ed0: d10b bne.n 8001eea <HAL_RCC_OscConfig+0x62>
{
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
- 8002506: 4b8d ldr r3, [pc, #564] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002508: 681b ldr r3, [r3, #0]
- 800250a: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 800250e: 2b00 cmp r3, #0
- 8002510: d06c beq.n 80025ec <HAL_RCC_OscConfig+0x130>
- 8002512: 687b ldr r3, [r7, #4]
- 8002514: 685b ldr r3, [r3, #4]
- 8002516: 2b00 cmp r3, #0
- 8002518: d168 bne.n 80025ec <HAL_RCC_OscConfig+0x130>
+ 8001ed2: 4b8d ldr r3, [pc, #564] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001ed4: 681b ldr r3, [r3, #0]
+ 8001ed6: f403 3300 and.w r3, r3, #131072 ; 0x20000
+ 8001eda: 2b00 cmp r3, #0
+ 8001edc: d06c beq.n 8001fb8 <HAL_RCC_OscConfig+0x130>
+ 8001ede: 687b ldr r3, [r7, #4]
+ 8001ee0: 685b ldr r3, [r3, #4]
+ 8001ee2: 2b00 cmp r3, #0
+ 8001ee4: d168 bne.n 8001fb8 <HAL_RCC_OscConfig+0x130>
{
return HAL_ERROR;
- 800251a: 2301 movs r3, #1
- 800251c: e238 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8001ee6: 2301 movs r3, #1
+ 8001ee8: e238 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
}
}
else
{
/* Set the new HSE configuration ---------------------------------------*/
__HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
- 800251e: 687b ldr r3, [r7, #4]
- 8002520: 685b ldr r3, [r3, #4]
- 8002522: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
- 8002526: d106 bne.n 8002536 <HAL_RCC_OscConfig+0x7a>
- 8002528: 4b84 ldr r3, [pc, #528] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800252a: 681b ldr r3, [r3, #0]
- 800252c: 4a83 ldr r2, [pc, #524] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800252e: f443 3380 orr.w r3, r3, #65536 ; 0x10000
- 8002532: 6013 str r3, [r2, #0]
- 8002534: e02e b.n 8002594 <HAL_RCC_OscConfig+0xd8>
- 8002536: 687b ldr r3, [r7, #4]
- 8002538: 685b ldr r3, [r3, #4]
- 800253a: 2b00 cmp r3, #0
- 800253c: d10c bne.n 8002558 <HAL_RCC_OscConfig+0x9c>
- 800253e: 4b7f ldr r3, [pc, #508] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002540: 681b ldr r3, [r3, #0]
- 8002542: 4a7e ldr r2, [pc, #504] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002544: f423 3380 bic.w r3, r3, #65536 ; 0x10000
- 8002548: 6013 str r3, [r2, #0]
- 800254a: 4b7c ldr r3, [pc, #496] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800254c: 681b ldr r3, [r3, #0]
- 800254e: 4a7b ldr r2, [pc, #492] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002550: f423 2380 bic.w r3, r3, #262144 ; 0x40000
- 8002554: 6013 str r3, [r2, #0]
- 8002556: e01d b.n 8002594 <HAL_RCC_OscConfig+0xd8>
- 8002558: 687b ldr r3, [r7, #4]
- 800255a: 685b ldr r3, [r3, #4]
- 800255c: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
- 8002560: d10c bne.n 800257c <HAL_RCC_OscConfig+0xc0>
- 8002562: 4b76 ldr r3, [pc, #472] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002564: 681b ldr r3, [r3, #0]
- 8002566: 4a75 ldr r2, [pc, #468] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002568: f443 2380 orr.w r3, r3, #262144 ; 0x40000
- 800256c: 6013 str r3, [r2, #0]
- 800256e: 4b73 ldr r3, [pc, #460] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002570: 681b ldr r3, [r3, #0]
- 8002572: 4a72 ldr r2, [pc, #456] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002574: f443 3380 orr.w r3, r3, #65536 ; 0x10000
- 8002578: 6013 str r3, [r2, #0]
- 800257a: e00b b.n 8002594 <HAL_RCC_OscConfig+0xd8>
- 800257c: 4b6f ldr r3, [pc, #444] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800257e: 681b ldr r3, [r3, #0]
- 8002580: 4a6e ldr r2, [pc, #440] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002582: f423 3380 bic.w r3, r3, #65536 ; 0x10000
- 8002586: 6013 str r3, [r2, #0]
- 8002588: 4b6c ldr r3, [pc, #432] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800258a: 681b ldr r3, [r3, #0]
- 800258c: 4a6b ldr r2, [pc, #428] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800258e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
- 8002592: 6013 str r3, [r2, #0]
+ 8001eea: 687b ldr r3, [r7, #4]
+ 8001eec: 685b ldr r3, [r3, #4]
+ 8001eee: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
+ 8001ef2: d106 bne.n 8001f02 <HAL_RCC_OscConfig+0x7a>
+ 8001ef4: 4b84 ldr r3, [pc, #528] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001ef6: 681b ldr r3, [r3, #0]
+ 8001ef8: 4a83 ldr r2, [pc, #524] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001efa: f443 3380 orr.w r3, r3, #65536 ; 0x10000
+ 8001efe: 6013 str r3, [r2, #0]
+ 8001f00: e02e b.n 8001f60 <HAL_RCC_OscConfig+0xd8>
+ 8001f02: 687b ldr r3, [r7, #4]
+ 8001f04: 685b ldr r3, [r3, #4]
+ 8001f06: 2b00 cmp r3, #0
+ 8001f08: d10c bne.n 8001f24 <HAL_RCC_OscConfig+0x9c>
+ 8001f0a: 4b7f ldr r3, [pc, #508] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f0c: 681b ldr r3, [r3, #0]
+ 8001f0e: 4a7e ldr r2, [pc, #504] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f10: f423 3380 bic.w r3, r3, #65536 ; 0x10000
+ 8001f14: 6013 str r3, [r2, #0]
+ 8001f16: 4b7c ldr r3, [pc, #496] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f18: 681b ldr r3, [r3, #0]
+ 8001f1a: 4a7b ldr r2, [pc, #492] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f1c: f423 2380 bic.w r3, r3, #262144 ; 0x40000
+ 8001f20: 6013 str r3, [r2, #0]
+ 8001f22: e01d b.n 8001f60 <HAL_RCC_OscConfig+0xd8>
+ 8001f24: 687b ldr r3, [r7, #4]
+ 8001f26: 685b ldr r3, [r3, #4]
+ 8001f28: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000
+ 8001f2c: d10c bne.n 8001f48 <HAL_RCC_OscConfig+0xc0>
+ 8001f2e: 4b76 ldr r3, [pc, #472] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f30: 681b ldr r3, [r3, #0]
+ 8001f32: 4a75 ldr r2, [pc, #468] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f34: f443 2380 orr.w r3, r3, #262144 ; 0x40000
+ 8001f38: 6013 str r3, [r2, #0]
+ 8001f3a: 4b73 ldr r3, [pc, #460] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f3c: 681b ldr r3, [r3, #0]
+ 8001f3e: 4a72 ldr r2, [pc, #456] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f40: f443 3380 orr.w r3, r3, #65536 ; 0x10000
+ 8001f44: 6013 str r3, [r2, #0]
+ 8001f46: e00b b.n 8001f60 <HAL_RCC_OscConfig+0xd8>
+ 8001f48: 4b6f ldr r3, [pc, #444] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f4a: 681b ldr r3, [r3, #0]
+ 8001f4c: 4a6e ldr r2, [pc, #440] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f4e: f423 3380 bic.w r3, r3, #65536 ; 0x10000
+ 8001f52: 6013 str r3, [r2, #0]
+ 8001f54: 4b6c ldr r3, [pc, #432] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f56: 681b ldr r3, [r3, #0]
+ 8001f58: 4a6b ldr r2, [pc, #428] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f5a: f423 2380 bic.w r3, r3, #262144 ; 0x40000
+ 8001f5e: 6013 str r3, [r2, #0]
/* Check the HSE State */
if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
- 8002594: 687b ldr r3, [r7, #4]
- 8002596: 685b ldr r3, [r3, #4]
- 8002598: 2b00 cmp r3, #0
- 800259a: d013 beq.n 80025c4 <HAL_RCC_OscConfig+0x108>
+ 8001f60: 687b ldr r3, [r7, #4]
+ 8001f62: 685b ldr r3, [r3, #4]
+ 8001f64: 2b00 cmp r3, #0
+ 8001f66: d013 beq.n 8001f90 <HAL_RCC_OscConfig+0x108>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 800259c: f7ff f9a2 bl 80018e4 <HAL_GetTick>
- 80025a0: 6138 str r0, [r7, #16]
+ 8001f68: f7ff fc8a bl 8001880 <HAL_GetTick>
+ 8001f6c: 6138 str r0, [r7, #16]
/* Wait till HSE is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
- 80025a2: e008 b.n 80025b6 <HAL_RCC_OscConfig+0xfa>
+ 8001f6e: e008 b.n 8001f82 <HAL_RCC_OscConfig+0xfa>
{
if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
- 80025a4: f7ff f99e bl 80018e4 <HAL_GetTick>
- 80025a8: 4602 mov r2, r0
- 80025aa: 693b ldr r3, [r7, #16]
- 80025ac: 1ad3 subs r3, r2, r3
- 80025ae: 2b64 cmp r3, #100 ; 0x64
- 80025b0: d901 bls.n 80025b6 <HAL_RCC_OscConfig+0xfa>
+ 8001f70: f7ff fc86 bl 8001880 <HAL_GetTick>
+ 8001f74: 4602 mov r2, r0
+ 8001f76: 693b ldr r3, [r7, #16]
+ 8001f78: 1ad3 subs r3, r2, r3
+ 8001f7a: 2b64 cmp r3, #100 ; 0x64
+ 8001f7c: d901 bls.n 8001f82 <HAL_RCC_OscConfig+0xfa>
{
return HAL_TIMEOUT;
- 80025b2: 2303 movs r3, #3
- 80025b4: e1ec b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8001f7e: 2303 movs r3, #3
+ 8001f80: e1ec b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
- 80025b6: 4b61 ldr r3, [pc, #388] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80025b8: 681b ldr r3, [r3, #0]
- 80025ba: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 80025be: 2b00 cmp r3, #0
- 80025c0: d0f0 beq.n 80025a4 <HAL_RCC_OscConfig+0xe8>
- 80025c2: e014 b.n 80025ee <HAL_RCC_OscConfig+0x132>
+ 8001f82: 4b61 ldr r3, [pc, #388] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001f84: 681b ldr r3, [r3, #0]
+ 8001f86: f403 3300 and.w r3, r3, #131072 ; 0x20000
+ 8001f8a: 2b00 cmp r3, #0
+ 8001f8c: d0f0 beq.n 8001f70 <HAL_RCC_OscConfig+0xe8>
+ 8001f8e: e014 b.n 8001fba <HAL_RCC_OscConfig+0x132>
}
}
else
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 80025c4: f7ff f98e bl 80018e4 <HAL_GetTick>
- 80025c8: 6138 str r0, [r7, #16]
+ 8001f90: f7ff fc76 bl 8001880 <HAL_GetTick>
+ 8001f94: 6138 str r0, [r7, #16]
/* Wait till HSE is bypassed or disabled */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
- 80025ca: e008 b.n 80025de <HAL_RCC_OscConfig+0x122>
+ 8001f96: e008 b.n 8001faa <HAL_RCC_OscConfig+0x122>
{
if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
- 80025cc: f7ff f98a bl 80018e4 <HAL_GetTick>
- 80025d0: 4602 mov r2, r0
- 80025d2: 693b ldr r3, [r7, #16]
- 80025d4: 1ad3 subs r3, r2, r3
- 80025d6: 2b64 cmp r3, #100 ; 0x64
- 80025d8: d901 bls.n 80025de <HAL_RCC_OscConfig+0x122>
+ 8001f98: f7ff fc72 bl 8001880 <HAL_GetTick>
+ 8001f9c: 4602 mov r2, r0
+ 8001f9e: 693b ldr r3, [r7, #16]
+ 8001fa0: 1ad3 subs r3, r2, r3
+ 8001fa2: 2b64 cmp r3, #100 ; 0x64
+ 8001fa4: d901 bls.n 8001faa <HAL_RCC_OscConfig+0x122>
{
return HAL_TIMEOUT;
- 80025da: 2303 movs r3, #3
- 80025dc: e1d8 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8001fa6: 2303 movs r3, #3
+ 8001fa8: e1d8 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
- 80025de: 4b57 ldr r3, [pc, #348] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80025e0: 681b ldr r3, [r3, #0]
- 80025e2: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 80025e6: 2b00 cmp r3, #0
- 80025e8: d1f0 bne.n 80025cc <HAL_RCC_OscConfig+0x110>
- 80025ea: e000 b.n 80025ee <HAL_RCC_OscConfig+0x132>
+ 8001faa: 4b57 ldr r3, [pc, #348] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001fac: 681b ldr r3, [r3, #0]
+ 8001fae: f403 3300 and.w r3, r3, #131072 ; 0x20000
+ 8001fb2: 2b00 cmp r3, #0
+ 8001fb4: d1f0 bne.n 8001f98 <HAL_RCC_OscConfig+0x110>
+ 8001fb6: e000 b.n 8001fba <HAL_RCC_OscConfig+0x132>
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
- 80025ec: bf00 nop
+ 8001fb8: bf00 nop
}
}
}
}
/*----------------------------- HSI Configuration --------------------------*/
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
- 80025ee: 687b ldr r3, [r7, #4]
- 80025f0: 681b ldr r3, [r3, #0]
- 80025f2: f003 0302 and.w r3, r3, #2
- 80025f6: 2b00 cmp r3, #0
- 80025f8: d069 beq.n 80026ce <HAL_RCC_OscConfig+0x212>
+ 8001fba: 687b ldr r3, [r7, #4]
+ 8001fbc: 681b ldr r3, [r3, #0]
+ 8001fbe: f003 0302 and.w r3, r3, #2
+ 8001fc2: 2b00 cmp r3, #0
+ 8001fc4: d069 beq.n 800209a <HAL_RCC_OscConfig+0x212>
/* Check the parameters */
assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
/* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
- 80025fa: 4b50 ldr r3, [pc, #320] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80025fc: 689b ldr r3, [r3, #8]
- 80025fe: f003 030c and.w r3, r3, #12
- 8002602: 2b00 cmp r3, #0
- 8002604: d00b beq.n 800261e <HAL_RCC_OscConfig+0x162>
+ 8001fc6: 4b50 ldr r3, [pc, #320] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001fc8: 689b ldr r3, [r3, #8]
+ 8001fca: f003 030c and.w r3, r3, #12
+ 8001fce: 2b00 cmp r3, #0
+ 8001fd0: d00b beq.n 8001fea <HAL_RCC_OscConfig+0x162>
|| ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)))
- 8002606: 4b4d ldr r3, [pc, #308] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002608: 689b ldr r3, [r3, #8]
- 800260a: f003 030c and.w r3, r3, #12
- 800260e: 2b08 cmp r3, #8
- 8002610: d11c bne.n 800264c <HAL_RCC_OscConfig+0x190>
- 8002612: 4b4a ldr r3, [pc, #296] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002614: 685b ldr r3, [r3, #4]
- 8002616: f403 0380 and.w r3, r3, #4194304 ; 0x400000
- 800261a: 2b00 cmp r3, #0
- 800261c: d116 bne.n 800264c <HAL_RCC_OscConfig+0x190>
+ 8001fd2: 4b4d ldr r3, [pc, #308] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001fd4: 689b ldr r3, [r3, #8]
+ 8001fd6: f003 030c and.w r3, r3, #12
+ 8001fda: 2b08 cmp r3, #8
+ 8001fdc: d11c bne.n 8002018 <HAL_RCC_OscConfig+0x190>
+ 8001fde: 4b4a ldr r3, [pc, #296] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001fe0: 685b ldr r3, [r3, #4]
+ 8001fe2: f403 0380 and.w r3, r3, #4194304 ; 0x400000
+ 8001fe6: 2b00 cmp r3, #0
+ 8001fe8: d116 bne.n 8002018 <HAL_RCC_OscConfig+0x190>
{
/* When HSI is used as system clock it will not disabled */
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
- 800261e: 4b47 ldr r3, [pc, #284] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002620: 681b ldr r3, [r3, #0]
- 8002622: f003 0302 and.w r3, r3, #2
- 8002626: 2b00 cmp r3, #0
- 8002628: d005 beq.n 8002636 <HAL_RCC_OscConfig+0x17a>
- 800262a: 687b ldr r3, [r7, #4]
- 800262c: 68db ldr r3, [r3, #12]
- 800262e: 2b01 cmp r3, #1
- 8002630: d001 beq.n 8002636 <HAL_RCC_OscConfig+0x17a>
+ 8001fea: 4b47 ldr r3, [pc, #284] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8001fec: 681b ldr r3, [r3, #0]
+ 8001fee: f003 0302 and.w r3, r3, #2
+ 8001ff2: 2b00 cmp r3, #0
+ 8001ff4: d005 beq.n 8002002 <HAL_RCC_OscConfig+0x17a>
+ 8001ff6: 687b ldr r3, [r7, #4]
+ 8001ff8: 68db ldr r3, [r3, #12]
+ 8001ffa: 2b01 cmp r3, #1
+ 8001ffc: d001 beq.n 8002002 <HAL_RCC_OscConfig+0x17a>
{
return HAL_ERROR;
- 8002632: 2301 movs r3, #1
- 8002634: e1ac b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8001ffe: 2301 movs r3, #1
+ 8002000: e1ac b.n 800235c <HAL_RCC_OscConfig+0x4d4>
}
/* Otherwise, just the calibration is allowed */
else
{
/* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
- 8002636: 4b41 ldr r3, [pc, #260] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002638: 681b ldr r3, [r3, #0]
- 800263a: f023 02f8 bic.w r2, r3, #248 ; 0xf8
- 800263e: 687b ldr r3, [r7, #4]
- 8002640: 691b ldr r3, [r3, #16]
- 8002642: 00db lsls r3, r3, #3
- 8002644: 493d ldr r1, [pc, #244] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002646: 4313 orrs r3, r2
- 8002648: 600b str r3, [r1, #0]
+ 8002002: 4b41 ldr r3, [pc, #260] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002004: 681b ldr r3, [r3, #0]
+ 8002006: f023 02f8 bic.w r2, r3, #248 ; 0xf8
+ 800200a: 687b ldr r3, [r7, #4]
+ 800200c: 691b ldr r3, [r3, #16]
+ 800200e: 00db lsls r3, r3, #3
+ 8002010: 493d ldr r1, [pc, #244] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002012: 4313 orrs r3, r2
+ 8002014: 600b str r3, [r1, #0]
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
- 800264a: e040 b.n 80026ce <HAL_RCC_OscConfig+0x212>
+ 8002016: e040 b.n 800209a <HAL_RCC_OscConfig+0x212>
}
}
else
{
/* Check the HSI State */
if((RCC_OscInitStruct->HSIState)!= RCC_HSI_OFF)
- 800264c: 687b ldr r3, [r7, #4]
- 800264e: 68db ldr r3, [r3, #12]
- 8002650: 2b00 cmp r3, #0
- 8002652: d023 beq.n 800269c <HAL_RCC_OscConfig+0x1e0>
+ 8002018: 687b ldr r3, [r7, #4]
+ 800201a: 68db ldr r3, [r3, #12]
+ 800201c: 2b00 cmp r3, #0
+ 800201e: d023 beq.n 8002068 <HAL_RCC_OscConfig+0x1e0>
{
/* Enable the Internal High Speed oscillator (HSI). */
__HAL_RCC_HSI_ENABLE();
- 8002654: 4b39 ldr r3, [pc, #228] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002656: 681b ldr r3, [r3, #0]
- 8002658: 4a38 ldr r2, [pc, #224] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800265a: f043 0301 orr.w r3, r3, #1
- 800265e: 6013 str r3, [r2, #0]
+ 8002020: 4b39 ldr r3, [pc, #228] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002022: 681b ldr r3, [r3, #0]
+ 8002024: 4a38 ldr r2, [pc, #224] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002026: f043 0301 orr.w r3, r3, #1
+ 800202a: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002660: f7ff f940 bl 80018e4 <HAL_GetTick>
- 8002664: 6138 str r0, [r7, #16]
+ 800202c: f7ff fc28 bl 8001880 <HAL_GetTick>
+ 8002030: 6138 str r0, [r7, #16]
/* Wait till HSI is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
- 8002666: e008 b.n 800267a <HAL_RCC_OscConfig+0x1be>
+ 8002032: e008 b.n 8002046 <HAL_RCC_OscConfig+0x1be>
{
if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
- 8002668: f7ff f93c bl 80018e4 <HAL_GetTick>
- 800266c: 4602 mov r2, r0
- 800266e: 693b ldr r3, [r7, #16]
- 8002670: 1ad3 subs r3, r2, r3
- 8002672: 2b02 cmp r3, #2
- 8002674: d901 bls.n 800267a <HAL_RCC_OscConfig+0x1be>
+ 8002034: f7ff fc24 bl 8001880 <HAL_GetTick>
+ 8002038: 4602 mov r2, r0
+ 800203a: 693b ldr r3, [r7, #16]
+ 800203c: 1ad3 subs r3, r2, r3
+ 800203e: 2b02 cmp r3, #2
+ 8002040: d901 bls.n 8002046 <HAL_RCC_OscConfig+0x1be>
{
return HAL_TIMEOUT;
- 8002676: 2303 movs r3, #3
- 8002678: e18a b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8002042: 2303 movs r3, #3
+ 8002044: e18a b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
- 800267a: 4b30 ldr r3, [pc, #192] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800267c: 681b ldr r3, [r3, #0]
- 800267e: f003 0302 and.w r3, r3, #2
- 8002682: 2b00 cmp r3, #0
- 8002684: d0f0 beq.n 8002668 <HAL_RCC_OscConfig+0x1ac>
+ 8002046: 4b30 ldr r3, [pc, #192] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002048: 681b ldr r3, [r3, #0]
+ 800204a: f003 0302 and.w r3, r3, #2
+ 800204e: 2b00 cmp r3, #0
+ 8002050: d0f0 beq.n 8002034 <HAL_RCC_OscConfig+0x1ac>
}
}
/* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
- 8002686: 4b2d ldr r3, [pc, #180] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002688: 681b ldr r3, [r3, #0]
- 800268a: f023 02f8 bic.w r2, r3, #248 ; 0xf8
- 800268e: 687b ldr r3, [r7, #4]
- 8002690: 691b ldr r3, [r3, #16]
- 8002692: 00db lsls r3, r3, #3
- 8002694: 4929 ldr r1, [pc, #164] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002696: 4313 orrs r3, r2
- 8002698: 600b str r3, [r1, #0]
- 800269a: e018 b.n 80026ce <HAL_RCC_OscConfig+0x212>
+ 8002052: 4b2d ldr r3, [pc, #180] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002054: 681b ldr r3, [r3, #0]
+ 8002056: f023 02f8 bic.w r2, r3, #248 ; 0xf8
+ 800205a: 687b ldr r3, [r7, #4]
+ 800205c: 691b ldr r3, [r3, #16]
+ 800205e: 00db lsls r3, r3, #3
+ 8002060: 4929 ldr r1, [pc, #164] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002062: 4313 orrs r3, r2
+ 8002064: 600b str r3, [r1, #0]
+ 8002066: e018 b.n 800209a <HAL_RCC_OscConfig+0x212>
}
else
{
/* Disable the Internal High Speed oscillator (HSI). */
__HAL_RCC_HSI_DISABLE();
- 800269c: 4b27 ldr r3, [pc, #156] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800269e: 681b ldr r3, [r3, #0]
- 80026a0: 4a26 ldr r2, [pc, #152] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80026a2: f023 0301 bic.w r3, r3, #1
- 80026a6: 6013 str r3, [r2, #0]
+ 8002068: 4b27 ldr r3, [pc, #156] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 800206a: 681b ldr r3, [r3, #0]
+ 800206c: 4a26 ldr r2, [pc, #152] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 800206e: f023 0301 bic.w r3, r3, #1
+ 8002072: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 80026a8: f7ff f91c bl 80018e4 <HAL_GetTick>
- 80026ac: 6138 str r0, [r7, #16]
+ 8002074: f7ff fc04 bl 8001880 <HAL_GetTick>
+ 8002078: 6138 str r0, [r7, #16]
/* Wait till HSI is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
- 80026ae: e008 b.n 80026c2 <HAL_RCC_OscConfig+0x206>
+ 800207a: e008 b.n 800208e <HAL_RCC_OscConfig+0x206>
{
if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
- 80026b0: f7ff f918 bl 80018e4 <HAL_GetTick>
- 80026b4: 4602 mov r2, r0
- 80026b6: 693b ldr r3, [r7, #16]
- 80026b8: 1ad3 subs r3, r2, r3
- 80026ba: 2b02 cmp r3, #2
- 80026bc: d901 bls.n 80026c2 <HAL_RCC_OscConfig+0x206>
+ 800207c: f7ff fc00 bl 8001880 <HAL_GetTick>
+ 8002080: 4602 mov r2, r0
+ 8002082: 693b ldr r3, [r7, #16]
+ 8002084: 1ad3 subs r3, r2, r3
+ 8002086: 2b02 cmp r3, #2
+ 8002088: d901 bls.n 800208e <HAL_RCC_OscConfig+0x206>
{
return HAL_TIMEOUT;
- 80026be: 2303 movs r3, #3
- 80026c0: e166 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 800208a: 2303 movs r3, #3
+ 800208c: e166 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
- 80026c2: 4b1e ldr r3, [pc, #120] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80026c4: 681b ldr r3, [r3, #0]
- 80026c6: f003 0302 and.w r3, r3, #2
- 80026ca: 2b00 cmp r3, #0
- 80026cc: d1f0 bne.n 80026b0 <HAL_RCC_OscConfig+0x1f4>
+ 800208e: 4b1e ldr r3, [pc, #120] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 8002090: 681b ldr r3, [r3, #0]
+ 8002092: f003 0302 and.w r3, r3, #2
+ 8002096: 2b00 cmp r3, #0
+ 8002098: d1f0 bne.n 800207c <HAL_RCC_OscConfig+0x1f4>
}
}
}
}
/*------------------------------ LSI Configuration -------------------------*/
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
- 80026ce: 687b ldr r3, [r7, #4]
- 80026d0: 681b ldr r3, [r3, #0]
- 80026d2: f003 0308 and.w r3, r3, #8
- 80026d6: 2b00 cmp r3, #0
- 80026d8: d038 beq.n 800274c <HAL_RCC_OscConfig+0x290>
+ 800209a: 687b ldr r3, [r7, #4]
+ 800209c: 681b ldr r3, [r3, #0]
+ 800209e: f003 0308 and.w r3, r3, #8
+ 80020a2: 2b00 cmp r3, #0
+ 80020a4: d038 beq.n 8002118 <HAL_RCC_OscConfig+0x290>
{
/* Check the parameters */
assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
/* Check the LSI State */
if((RCC_OscInitStruct->LSIState)!= RCC_LSI_OFF)
- 80026da: 687b ldr r3, [r7, #4]
- 80026dc: 695b ldr r3, [r3, #20]
- 80026de: 2b00 cmp r3, #0
- 80026e0: d019 beq.n 8002716 <HAL_RCC_OscConfig+0x25a>
+ 80020a6: 687b ldr r3, [r7, #4]
+ 80020a8: 695b ldr r3, [r3, #20]
+ 80020aa: 2b00 cmp r3, #0
+ 80020ac: d019 beq.n 80020e2 <HAL_RCC_OscConfig+0x25a>
{
/* Enable the Internal Low Speed oscillator (LSI). */
__HAL_RCC_LSI_ENABLE();
- 80026e2: 4b16 ldr r3, [pc, #88] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80026e4: 6f5b ldr r3, [r3, #116] ; 0x74
- 80026e6: 4a15 ldr r2, [pc, #84] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 80026e8: f043 0301 orr.w r3, r3, #1
- 80026ec: 6753 str r3, [r2, #116] ; 0x74
+ 80020ae: 4b16 ldr r3, [pc, #88] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 80020b0: 6f5b ldr r3, [r3, #116] ; 0x74
+ 80020b2: 4a15 ldr r2, [pc, #84] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 80020b4: f043 0301 orr.w r3, r3, #1
+ 80020b8: 6753 str r3, [r2, #116] ; 0x74
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 80026ee: f7ff f8f9 bl 80018e4 <HAL_GetTick>
- 80026f2: 6138 str r0, [r7, #16]
+ 80020ba: f7ff fbe1 bl 8001880 <HAL_GetTick>
+ 80020be: 6138 str r0, [r7, #16]
/* Wait till LSI is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
- 80026f4: e008 b.n 8002708 <HAL_RCC_OscConfig+0x24c>
+ 80020c0: e008 b.n 80020d4 <HAL_RCC_OscConfig+0x24c>
{
if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
- 80026f6: f7ff f8f5 bl 80018e4 <HAL_GetTick>
- 80026fa: 4602 mov r2, r0
- 80026fc: 693b ldr r3, [r7, #16]
- 80026fe: 1ad3 subs r3, r2, r3
- 8002700: 2b02 cmp r3, #2
- 8002702: d901 bls.n 8002708 <HAL_RCC_OscConfig+0x24c>
+ 80020c2: f7ff fbdd bl 8001880 <HAL_GetTick>
+ 80020c6: 4602 mov r2, r0
+ 80020c8: 693b ldr r3, [r7, #16]
+ 80020ca: 1ad3 subs r3, r2, r3
+ 80020cc: 2b02 cmp r3, #2
+ 80020ce: d901 bls.n 80020d4 <HAL_RCC_OscConfig+0x24c>
{
return HAL_TIMEOUT;
- 8002704: 2303 movs r3, #3
- 8002706: e143 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 80020d0: 2303 movs r3, #3
+ 80020d2: e143 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
- 8002708: 4b0c ldr r3, [pc, #48] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800270a: 6f5b ldr r3, [r3, #116] ; 0x74
- 800270c: f003 0302 and.w r3, r3, #2
- 8002710: 2b00 cmp r3, #0
- 8002712: d0f0 beq.n 80026f6 <HAL_RCC_OscConfig+0x23a>
- 8002714: e01a b.n 800274c <HAL_RCC_OscConfig+0x290>
+ 80020d4: 4b0c ldr r3, [pc, #48] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 80020d6: 6f5b ldr r3, [r3, #116] ; 0x74
+ 80020d8: f003 0302 and.w r3, r3, #2
+ 80020dc: 2b00 cmp r3, #0
+ 80020de: d0f0 beq.n 80020c2 <HAL_RCC_OscConfig+0x23a>
+ 80020e0: e01a b.n 8002118 <HAL_RCC_OscConfig+0x290>
}
}
else
{
/* Disable the Internal Low Speed oscillator (LSI). */
__HAL_RCC_LSI_DISABLE();
- 8002716: 4b09 ldr r3, [pc, #36] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 8002718: 6f5b ldr r3, [r3, #116] ; 0x74
- 800271a: 4a08 ldr r2, [pc, #32] ; (800273c <HAL_RCC_OscConfig+0x280>)
- 800271c: f023 0301 bic.w r3, r3, #1
- 8002720: 6753 str r3, [r2, #116] ; 0x74
+ 80020e2: 4b09 ldr r3, [pc, #36] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 80020e4: 6f5b ldr r3, [r3, #116] ; 0x74
+ 80020e6: 4a08 ldr r2, [pc, #32] ; (8002108 <HAL_RCC_OscConfig+0x280>)
+ 80020e8: f023 0301 bic.w r3, r3, #1
+ 80020ec: 6753 str r3, [r2, #116] ; 0x74
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002722: f7ff f8df bl 80018e4 <HAL_GetTick>
- 8002726: 6138 str r0, [r7, #16]
+ 80020ee: f7ff fbc7 bl 8001880 <HAL_GetTick>
+ 80020f2: 6138 str r0, [r7, #16]
/* Wait till LSI is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
- 8002728: e00a b.n 8002740 <HAL_RCC_OscConfig+0x284>
+ 80020f4: e00a b.n 800210c <HAL_RCC_OscConfig+0x284>
{
if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
- 800272a: f7ff f8db bl 80018e4 <HAL_GetTick>
- 800272e: 4602 mov r2, r0
- 8002730: 693b ldr r3, [r7, #16]
- 8002732: 1ad3 subs r3, r2, r3
- 8002734: 2b02 cmp r3, #2
- 8002736: d903 bls.n 8002740 <HAL_RCC_OscConfig+0x284>
+ 80020f6: f7ff fbc3 bl 8001880 <HAL_GetTick>
+ 80020fa: 4602 mov r2, r0
+ 80020fc: 693b ldr r3, [r7, #16]
+ 80020fe: 1ad3 subs r3, r2, r3
+ 8002100: 2b02 cmp r3, #2
+ 8002102: d903 bls.n 800210c <HAL_RCC_OscConfig+0x284>
{
return HAL_TIMEOUT;
- 8002738: 2303 movs r3, #3
- 800273a: e129 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
- 800273c: 40023800 .word 0x40023800
+ 8002104: 2303 movs r3, #3
+ 8002106: e129 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
+ 8002108: 40023800 .word 0x40023800
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
- 8002740: 4b95 ldr r3, [pc, #596] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002742: 6f5b ldr r3, [r3, #116] ; 0x74
- 8002744: f003 0302 and.w r3, r3, #2
- 8002748: 2b00 cmp r3, #0
- 800274a: d1ee bne.n 800272a <HAL_RCC_OscConfig+0x26e>
+ 800210c: 4b95 ldr r3, [pc, #596] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 800210e: 6f5b ldr r3, [r3, #116] ; 0x74
+ 8002110: f003 0302 and.w r3, r3, #2
+ 8002114: 2b00 cmp r3, #0
+ 8002116: d1ee bne.n 80020f6 <HAL_RCC_OscConfig+0x26e>
}
}
}
}
/*------------------------------ LSE Configuration -------------------------*/
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
- 800274c: 687b ldr r3, [r7, #4]
- 800274e: 681b ldr r3, [r3, #0]
- 8002750: f003 0304 and.w r3, r3, #4
- 8002754: 2b00 cmp r3, #0
- 8002756: f000 80a4 beq.w 80028a2 <HAL_RCC_OscConfig+0x3e6>
+ 8002118: 687b ldr r3, [r7, #4]
+ 800211a: 681b ldr r3, [r3, #0]
+ 800211c: f003 0304 and.w r3, r3, #4
+ 8002120: 2b00 cmp r3, #0
+ 8002122: f000 80a4 beq.w 800226e <HAL_RCC_OscConfig+0x3e6>
/* Check the parameters */
assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
/* Update LSE configuration in Backup Domain control register */
/* Requires to enable write access to Backup Domain of necessary */
if(__HAL_RCC_PWR_IS_CLK_DISABLED())
- 800275a: 4b8f ldr r3, [pc, #572] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800275c: 6c1b ldr r3, [r3, #64] ; 0x40
- 800275e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8002762: 2b00 cmp r3, #0
- 8002764: d10d bne.n 8002782 <HAL_RCC_OscConfig+0x2c6>
+ 8002126: 4b8f ldr r3, [pc, #572] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002128: 6c1b ldr r3, [r3, #64] ; 0x40
+ 800212a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 800212e: 2b00 cmp r3, #0
+ 8002130: d10d bne.n 800214e <HAL_RCC_OscConfig+0x2c6>
{
/* Enable Power Clock*/
__HAL_RCC_PWR_CLK_ENABLE();
- 8002766: 4b8c ldr r3, [pc, #560] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002768: 6c1b ldr r3, [r3, #64] ; 0x40
- 800276a: 4a8b ldr r2, [pc, #556] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800276c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 8002770: 6413 str r3, [r2, #64] ; 0x40
- 8002772: 4b89 ldr r3, [pc, #548] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002774: 6c1b ldr r3, [r3, #64] ; 0x40
- 8002776: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 800277a: 60fb str r3, [r7, #12]
- 800277c: 68fb ldr r3, [r7, #12]
+ 8002132: 4b8c ldr r3, [pc, #560] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002134: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8002136: 4a8b ldr r2, [pc, #556] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002138: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
+ 800213c: 6413 str r3, [r2, #64] ; 0x40
+ 800213e: 4b89 ldr r3, [pc, #548] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002140: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8002142: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 8002146: 60fb str r3, [r7, #12]
+ 8002148: 68fb ldr r3, [r7, #12]
pwrclkchanged = SET;
- 800277e: 2301 movs r3, #1
- 8002780: 75fb strb r3, [r7, #23]
+ 800214a: 2301 movs r3, #1
+ 800214c: 75fb strb r3, [r7, #23]
}
if(HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
- 8002782: 4b86 ldr r3, [pc, #536] ; (800299c <HAL_RCC_OscConfig+0x4e0>)
- 8002784: 681b ldr r3, [r3, #0]
- 8002786: f403 7380 and.w r3, r3, #256 ; 0x100
- 800278a: 2b00 cmp r3, #0
- 800278c: d118 bne.n 80027c0 <HAL_RCC_OscConfig+0x304>
+ 800214e: 4b86 ldr r3, [pc, #536] ; (8002368 <HAL_RCC_OscConfig+0x4e0>)
+ 8002150: 681b ldr r3, [r3, #0]
+ 8002152: f403 7380 and.w r3, r3, #256 ; 0x100
+ 8002156: 2b00 cmp r3, #0
+ 8002158: d118 bne.n 800218c <HAL_RCC_OscConfig+0x304>
{
/* Enable write access to Backup domain */
PWR->CR1 |= PWR_CR1_DBP;
- 800278e: 4b83 ldr r3, [pc, #524] ; (800299c <HAL_RCC_OscConfig+0x4e0>)
- 8002790: 681b ldr r3, [r3, #0]
- 8002792: 4a82 ldr r2, [pc, #520] ; (800299c <HAL_RCC_OscConfig+0x4e0>)
- 8002794: f443 7380 orr.w r3, r3, #256 ; 0x100
- 8002798: 6013 str r3, [r2, #0]
+ 800215a: 4b83 ldr r3, [pc, #524] ; (8002368 <HAL_RCC_OscConfig+0x4e0>)
+ 800215c: 681b ldr r3, [r3, #0]
+ 800215e: 4a82 ldr r2, [pc, #520] ; (8002368 <HAL_RCC_OscConfig+0x4e0>)
+ 8002160: f443 7380 orr.w r3, r3, #256 ; 0x100
+ 8002164: 6013 str r3, [r2, #0]
/* Wait for Backup domain Write protection disable */
tickstart = HAL_GetTick();
- 800279a: f7ff f8a3 bl 80018e4 <HAL_GetTick>
- 800279e: 6138 str r0, [r7, #16]
+ 8002166: f7ff fb8b bl 8001880 <HAL_GetTick>
+ 800216a: 6138 str r0, [r7, #16]
while(HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
- 80027a0: e008 b.n 80027b4 <HAL_RCC_OscConfig+0x2f8>
+ 800216c: e008 b.n 8002180 <HAL_RCC_OscConfig+0x2f8>
{
if((HAL_GetTick() - tickstart ) > RCC_DBP_TIMEOUT_VALUE)
- 80027a2: f7ff f89f bl 80018e4 <HAL_GetTick>
- 80027a6: 4602 mov r2, r0
- 80027a8: 693b ldr r3, [r7, #16]
- 80027aa: 1ad3 subs r3, r2, r3
- 80027ac: 2b64 cmp r3, #100 ; 0x64
- 80027ae: d901 bls.n 80027b4 <HAL_RCC_OscConfig+0x2f8>
+ 800216e: f7ff fb87 bl 8001880 <HAL_GetTick>
+ 8002172: 4602 mov r2, r0
+ 8002174: 693b ldr r3, [r7, #16]
+ 8002176: 1ad3 subs r3, r2, r3
+ 8002178: 2b64 cmp r3, #100 ; 0x64
+ 800217a: d901 bls.n 8002180 <HAL_RCC_OscConfig+0x2f8>
{
return HAL_TIMEOUT;
- 80027b0: 2303 movs r3, #3
- 80027b2: e0ed b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 800217c: 2303 movs r3, #3
+ 800217e: e0ed b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
- 80027b4: 4b79 ldr r3, [pc, #484] ; (800299c <HAL_RCC_OscConfig+0x4e0>)
- 80027b6: 681b ldr r3, [r3, #0]
- 80027b8: f403 7380 and.w r3, r3, #256 ; 0x100
- 80027bc: 2b00 cmp r3, #0
- 80027be: d0f0 beq.n 80027a2 <HAL_RCC_OscConfig+0x2e6>
+ 8002180: 4b79 ldr r3, [pc, #484] ; (8002368 <HAL_RCC_OscConfig+0x4e0>)
+ 8002182: 681b ldr r3, [r3, #0]
+ 8002184: f403 7380 and.w r3, r3, #256 ; 0x100
+ 8002188: 2b00 cmp r3, #0
+ 800218a: d0f0 beq.n 800216e <HAL_RCC_OscConfig+0x2e6>
}
}
}
/* Set the new LSE configuration -----------------------------------------*/
__HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
- 80027c0: 687b ldr r3, [r7, #4]
- 80027c2: 689b ldr r3, [r3, #8]
- 80027c4: 2b01 cmp r3, #1
- 80027c6: d106 bne.n 80027d6 <HAL_RCC_OscConfig+0x31a>
- 80027c8: 4b73 ldr r3, [pc, #460] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80027ca: 6f1b ldr r3, [r3, #112] ; 0x70
- 80027cc: 4a72 ldr r2, [pc, #456] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80027ce: f043 0301 orr.w r3, r3, #1
- 80027d2: 6713 str r3, [r2, #112] ; 0x70
- 80027d4: e02d b.n 8002832 <HAL_RCC_OscConfig+0x376>
- 80027d6: 687b ldr r3, [r7, #4]
- 80027d8: 689b ldr r3, [r3, #8]
- 80027da: 2b00 cmp r3, #0
- 80027dc: d10c bne.n 80027f8 <HAL_RCC_OscConfig+0x33c>
- 80027de: 4b6e ldr r3, [pc, #440] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80027e0: 6f1b ldr r3, [r3, #112] ; 0x70
- 80027e2: 4a6d ldr r2, [pc, #436] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80027e4: f023 0301 bic.w r3, r3, #1
- 80027e8: 6713 str r3, [r2, #112] ; 0x70
- 80027ea: 4b6b ldr r3, [pc, #428] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80027ec: 6f1b ldr r3, [r3, #112] ; 0x70
- 80027ee: 4a6a ldr r2, [pc, #424] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80027f0: f023 0304 bic.w r3, r3, #4
- 80027f4: 6713 str r3, [r2, #112] ; 0x70
- 80027f6: e01c b.n 8002832 <HAL_RCC_OscConfig+0x376>
- 80027f8: 687b ldr r3, [r7, #4]
- 80027fa: 689b ldr r3, [r3, #8]
- 80027fc: 2b05 cmp r3, #5
- 80027fe: d10c bne.n 800281a <HAL_RCC_OscConfig+0x35e>
- 8002800: 4b65 ldr r3, [pc, #404] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002802: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002804: 4a64 ldr r2, [pc, #400] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002806: f043 0304 orr.w r3, r3, #4
- 800280a: 6713 str r3, [r2, #112] ; 0x70
- 800280c: 4b62 ldr r3, [pc, #392] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800280e: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002810: 4a61 ldr r2, [pc, #388] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002812: f043 0301 orr.w r3, r3, #1
- 8002816: 6713 str r3, [r2, #112] ; 0x70
- 8002818: e00b b.n 8002832 <HAL_RCC_OscConfig+0x376>
- 800281a: 4b5f ldr r3, [pc, #380] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800281c: 6f1b ldr r3, [r3, #112] ; 0x70
- 800281e: 4a5e ldr r2, [pc, #376] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002820: f023 0301 bic.w r3, r3, #1
- 8002824: 6713 str r3, [r2, #112] ; 0x70
- 8002826: 4b5c ldr r3, [pc, #368] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002828: 6f1b ldr r3, [r3, #112] ; 0x70
- 800282a: 4a5b ldr r2, [pc, #364] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800282c: f023 0304 bic.w r3, r3, #4
- 8002830: 6713 str r3, [r2, #112] ; 0x70
+ 800218c: 687b ldr r3, [r7, #4]
+ 800218e: 689b ldr r3, [r3, #8]
+ 8002190: 2b01 cmp r3, #1
+ 8002192: d106 bne.n 80021a2 <HAL_RCC_OscConfig+0x31a>
+ 8002194: 4b73 ldr r3, [pc, #460] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002196: 6f1b ldr r3, [r3, #112] ; 0x70
+ 8002198: 4a72 ldr r2, [pc, #456] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 800219a: f043 0301 orr.w r3, r3, #1
+ 800219e: 6713 str r3, [r2, #112] ; 0x70
+ 80021a0: e02d b.n 80021fe <HAL_RCC_OscConfig+0x376>
+ 80021a2: 687b ldr r3, [r7, #4]
+ 80021a4: 689b ldr r3, [r3, #8]
+ 80021a6: 2b00 cmp r3, #0
+ 80021a8: d10c bne.n 80021c4 <HAL_RCC_OscConfig+0x33c>
+ 80021aa: 4b6e ldr r3, [pc, #440] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021ac: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80021ae: 4a6d ldr r2, [pc, #436] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021b0: f023 0301 bic.w r3, r3, #1
+ 80021b4: 6713 str r3, [r2, #112] ; 0x70
+ 80021b6: 4b6b ldr r3, [pc, #428] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021b8: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80021ba: 4a6a ldr r2, [pc, #424] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021bc: f023 0304 bic.w r3, r3, #4
+ 80021c0: 6713 str r3, [r2, #112] ; 0x70
+ 80021c2: e01c b.n 80021fe <HAL_RCC_OscConfig+0x376>
+ 80021c4: 687b ldr r3, [r7, #4]
+ 80021c6: 689b ldr r3, [r3, #8]
+ 80021c8: 2b05 cmp r3, #5
+ 80021ca: d10c bne.n 80021e6 <HAL_RCC_OscConfig+0x35e>
+ 80021cc: 4b65 ldr r3, [pc, #404] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021ce: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80021d0: 4a64 ldr r2, [pc, #400] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021d2: f043 0304 orr.w r3, r3, #4
+ 80021d6: 6713 str r3, [r2, #112] ; 0x70
+ 80021d8: 4b62 ldr r3, [pc, #392] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021da: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80021dc: 4a61 ldr r2, [pc, #388] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021de: f043 0301 orr.w r3, r3, #1
+ 80021e2: 6713 str r3, [r2, #112] ; 0x70
+ 80021e4: e00b b.n 80021fe <HAL_RCC_OscConfig+0x376>
+ 80021e6: 4b5f ldr r3, [pc, #380] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021e8: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80021ea: 4a5e ldr r2, [pc, #376] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021ec: f023 0301 bic.w r3, r3, #1
+ 80021f0: 6713 str r3, [r2, #112] ; 0x70
+ 80021f2: 4b5c ldr r3, [pc, #368] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021f4: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80021f6: 4a5b ldr r2, [pc, #364] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80021f8: f023 0304 bic.w r3, r3, #4
+ 80021fc: 6713 str r3, [r2, #112] ; 0x70
/* Check the LSE State */
if((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
- 8002832: 687b ldr r3, [r7, #4]
- 8002834: 689b ldr r3, [r3, #8]
- 8002836: 2b00 cmp r3, #0
- 8002838: d015 beq.n 8002866 <HAL_RCC_OscConfig+0x3aa>
+ 80021fe: 687b ldr r3, [r7, #4]
+ 8002200: 689b ldr r3, [r3, #8]
+ 8002202: 2b00 cmp r3, #0
+ 8002204: d015 beq.n 8002232 <HAL_RCC_OscConfig+0x3aa>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 800283a: f7ff f853 bl 80018e4 <HAL_GetTick>
- 800283e: 6138 str r0, [r7, #16]
+ 8002206: f7ff fb3b bl 8001880 <HAL_GetTick>
+ 800220a: 6138 str r0, [r7, #16]
/* Wait till LSE is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
- 8002840: e00a b.n 8002858 <HAL_RCC_OscConfig+0x39c>
+ 800220c: e00a b.n 8002224 <HAL_RCC_OscConfig+0x39c>
{
if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
- 8002842: f7ff f84f bl 80018e4 <HAL_GetTick>
- 8002846: 4602 mov r2, r0
- 8002848: 693b ldr r3, [r7, #16]
- 800284a: 1ad3 subs r3, r2, r3
- 800284c: f241 3288 movw r2, #5000 ; 0x1388
- 8002850: 4293 cmp r3, r2
- 8002852: d901 bls.n 8002858 <HAL_RCC_OscConfig+0x39c>
+ 800220e: f7ff fb37 bl 8001880 <HAL_GetTick>
+ 8002212: 4602 mov r2, r0
+ 8002214: 693b ldr r3, [r7, #16]
+ 8002216: 1ad3 subs r3, r2, r3
+ 8002218: f241 3288 movw r2, #5000 ; 0x1388
+ 800221c: 4293 cmp r3, r2
+ 800221e: d901 bls.n 8002224 <HAL_RCC_OscConfig+0x39c>
{
return HAL_TIMEOUT;
- 8002854: 2303 movs r3, #3
- 8002856: e09b b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8002220: 2303 movs r3, #3
+ 8002222: e09b b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
- 8002858: 4b4f ldr r3, [pc, #316] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800285a: 6f1b ldr r3, [r3, #112] ; 0x70
- 800285c: f003 0302 and.w r3, r3, #2
- 8002860: 2b00 cmp r3, #0
- 8002862: d0ee beq.n 8002842 <HAL_RCC_OscConfig+0x386>
- 8002864: e014 b.n 8002890 <HAL_RCC_OscConfig+0x3d4>
+ 8002224: 4b4f ldr r3, [pc, #316] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002226: 6f1b ldr r3, [r3, #112] ; 0x70
+ 8002228: f003 0302 and.w r3, r3, #2
+ 800222c: 2b00 cmp r3, #0
+ 800222e: d0ee beq.n 800220e <HAL_RCC_OscConfig+0x386>
+ 8002230: e014 b.n 800225c <HAL_RCC_OscConfig+0x3d4>
}
}
else
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002866: f7ff f83d bl 80018e4 <HAL_GetTick>
- 800286a: 6138 str r0, [r7, #16]
+ 8002232: f7ff fb25 bl 8001880 <HAL_GetTick>
+ 8002236: 6138 str r0, [r7, #16]
/* Wait till LSE is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
- 800286c: e00a b.n 8002884 <HAL_RCC_OscConfig+0x3c8>
+ 8002238: e00a b.n 8002250 <HAL_RCC_OscConfig+0x3c8>
{
if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
- 800286e: f7ff f839 bl 80018e4 <HAL_GetTick>
- 8002872: 4602 mov r2, r0
- 8002874: 693b ldr r3, [r7, #16]
- 8002876: 1ad3 subs r3, r2, r3
- 8002878: f241 3288 movw r2, #5000 ; 0x1388
- 800287c: 4293 cmp r3, r2
- 800287e: d901 bls.n 8002884 <HAL_RCC_OscConfig+0x3c8>
+ 800223a: f7ff fb21 bl 8001880 <HAL_GetTick>
+ 800223e: 4602 mov r2, r0
+ 8002240: 693b ldr r3, [r7, #16]
+ 8002242: 1ad3 subs r3, r2, r3
+ 8002244: f241 3288 movw r2, #5000 ; 0x1388
+ 8002248: 4293 cmp r3, r2
+ 800224a: d901 bls.n 8002250 <HAL_RCC_OscConfig+0x3c8>
{
return HAL_TIMEOUT;
- 8002880: 2303 movs r3, #3
- 8002882: e085 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 800224c: 2303 movs r3, #3
+ 800224e: e085 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
- 8002884: 4b44 ldr r3, [pc, #272] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002886: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002888: f003 0302 and.w r3, r3, #2
- 800288c: 2b00 cmp r3, #0
- 800288e: d1ee bne.n 800286e <HAL_RCC_OscConfig+0x3b2>
+ 8002250: 4b44 ldr r3, [pc, #272] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002252: 6f1b ldr r3, [r3, #112] ; 0x70
+ 8002254: f003 0302 and.w r3, r3, #2
+ 8002258: 2b00 cmp r3, #0
+ 800225a: d1ee bne.n 800223a <HAL_RCC_OscConfig+0x3b2>
}
}
}
/* Restore clock configuration if changed */
if(pwrclkchanged == SET)
- 8002890: 7dfb ldrb r3, [r7, #23]
- 8002892: 2b01 cmp r3, #1
- 8002894: d105 bne.n 80028a2 <HAL_RCC_OscConfig+0x3e6>
+ 800225c: 7dfb ldrb r3, [r7, #23]
+ 800225e: 2b01 cmp r3, #1
+ 8002260: d105 bne.n 800226e <HAL_RCC_OscConfig+0x3e6>
{
__HAL_RCC_PWR_CLK_DISABLE();
- 8002896: 4b40 ldr r3, [pc, #256] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002898: 6c1b ldr r3, [r3, #64] ; 0x40
- 800289a: 4a3f ldr r2, [pc, #252] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800289c: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
- 80028a0: 6413 str r3, [r2, #64] ; 0x40
+ 8002262: 4b40 ldr r3, [pc, #256] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002264: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8002266: 4a3f ldr r2, [pc, #252] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002268: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
+ 800226c: 6413 str r3, [r2, #64] ; 0x40
}
}
/*-------------------------------- PLL Configuration -----------------------*/
/* Check the parameters */
assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
- 80028a2: 687b ldr r3, [r7, #4]
- 80028a4: 699b ldr r3, [r3, #24]
- 80028a6: 2b00 cmp r3, #0
- 80028a8: d071 beq.n 800298e <HAL_RCC_OscConfig+0x4d2>
+ 800226e: 687b ldr r3, [r7, #4]
+ 8002270: 699b ldr r3, [r3, #24]
+ 8002272: 2b00 cmp r3, #0
+ 8002274: d071 beq.n 800235a <HAL_RCC_OscConfig+0x4d2>
{
/* Check if the PLL is used as system clock or not */
if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
- 80028aa: 4b3b ldr r3, [pc, #236] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80028ac: 689b ldr r3, [r3, #8]
- 80028ae: f003 030c and.w r3, r3, #12
- 80028b2: 2b08 cmp r3, #8
- 80028b4: d069 beq.n 800298a <HAL_RCC_OscConfig+0x4ce>
+ 8002276: 4b3b ldr r3, [pc, #236] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002278: 689b ldr r3, [r3, #8]
+ 800227a: f003 030c and.w r3, r3, #12
+ 800227e: 2b08 cmp r3, #8
+ 8002280: d069 beq.n 8002356 <HAL_RCC_OscConfig+0x4ce>
{
if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
- 80028b6: 687b ldr r3, [r7, #4]
- 80028b8: 699b ldr r3, [r3, #24]
- 80028ba: 2b02 cmp r3, #2
- 80028bc: d14b bne.n 8002956 <HAL_RCC_OscConfig+0x49a>
+ 8002282: 687b ldr r3, [r7, #4]
+ 8002284: 699b ldr r3, [r3, #24]
+ 8002286: 2b02 cmp r3, #2
+ 8002288: d14b bne.n 8002322 <HAL_RCC_OscConfig+0x49a>
#if defined (RCC_PLLCFGR_PLLR)
assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
#endif
/* Disable the main PLL. */
__HAL_RCC_PLL_DISABLE();
- 80028be: 4b36 ldr r3, [pc, #216] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80028c0: 681b ldr r3, [r3, #0]
- 80028c2: 4a35 ldr r2, [pc, #212] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80028c4: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000
- 80028c8: 6013 str r3, [r2, #0]
+ 800228a: 4b36 ldr r3, [pc, #216] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 800228c: 681b ldr r3, [r3, #0]
+ 800228e: 4a35 ldr r2, [pc, #212] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002290: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000
+ 8002294: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 80028ca: f7ff f80b bl 80018e4 <HAL_GetTick>
- 80028ce: 6138 str r0, [r7, #16]
+ 8002296: f7ff faf3 bl 8001880 <HAL_GetTick>
+ 800229a: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
- 80028d0: e008 b.n 80028e4 <HAL_RCC_OscConfig+0x428>
+ 800229c: e008 b.n 80022b0 <HAL_RCC_OscConfig+0x428>
{
if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
- 80028d2: f7ff f807 bl 80018e4 <HAL_GetTick>
- 80028d6: 4602 mov r2, r0
- 80028d8: 693b ldr r3, [r7, #16]
- 80028da: 1ad3 subs r3, r2, r3
- 80028dc: 2b02 cmp r3, #2
- 80028de: d901 bls.n 80028e4 <HAL_RCC_OscConfig+0x428>
+ 800229e: f7ff faef bl 8001880 <HAL_GetTick>
+ 80022a2: 4602 mov r2, r0
+ 80022a4: 693b ldr r3, [r7, #16]
+ 80022a6: 1ad3 subs r3, r2, r3
+ 80022a8: 2b02 cmp r3, #2
+ 80022aa: d901 bls.n 80022b0 <HAL_RCC_OscConfig+0x428>
{
return HAL_TIMEOUT;
- 80028e0: 2303 movs r3, #3
- 80028e2: e055 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 80022ac: 2303 movs r3, #3
+ 80022ae: e055 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
- 80028e4: 4b2c ldr r3, [pc, #176] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 80028e6: 681b ldr r3, [r3, #0]
- 80028e8: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 80028ec: 2b00 cmp r3, #0
- 80028ee: d1f0 bne.n 80028d2 <HAL_RCC_OscConfig+0x416>
+ 80022b0: 4b2c ldr r3, [pc, #176] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80022b2: 681b ldr r3, [r3, #0]
+ 80022b4: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
+ 80022b8: 2b00 cmp r3, #0
+ 80022ba: d1f0 bne.n 800229e <HAL_RCC_OscConfig+0x416>
}
}
/* Configure the main PLL clock source, multiplication and division factors. */
#if defined (RCC_PLLCFGR_PLLR)
__HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
- 80028f0: 687b ldr r3, [r7, #4]
- 80028f2: 69da ldr r2, [r3, #28]
- 80028f4: 687b ldr r3, [r7, #4]
- 80028f6: 6a1b ldr r3, [r3, #32]
- 80028f8: 431a orrs r2, r3
- 80028fa: 687b ldr r3, [r7, #4]
- 80028fc: 6a5b ldr r3, [r3, #36] ; 0x24
- 80028fe: 019b lsls r3, r3, #6
- 8002900: 431a orrs r2, r3
- 8002902: 687b ldr r3, [r7, #4]
- 8002904: 6a9b ldr r3, [r3, #40] ; 0x28
- 8002906: 085b lsrs r3, r3, #1
- 8002908: 3b01 subs r3, #1
- 800290a: 041b lsls r3, r3, #16
- 800290c: 431a orrs r2, r3
- 800290e: 687b ldr r3, [r7, #4]
- 8002910: 6adb ldr r3, [r3, #44] ; 0x2c
- 8002912: 061b lsls r3, r3, #24
- 8002914: 431a orrs r2, r3
- 8002916: 687b ldr r3, [r7, #4]
- 8002918: 6b1b ldr r3, [r3, #48] ; 0x30
- 800291a: 071b lsls r3, r3, #28
- 800291c: 491e ldr r1, [pc, #120] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800291e: 4313 orrs r3, r2
- 8002920: 604b str r3, [r1, #4]
+ 80022bc: 687b ldr r3, [r7, #4]
+ 80022be: 69da ldr r2, [r3, #28]
+ 80022c0: 687b ldr r3, [r7, #4]
+ 80022c2: 6a1b ldr r3, [r3, #32]
+ 80022c4: 431a orrs r2, r3
+ 80022c6: 687b ldr r3, [r7, #4]
+ 80022c8: 6a5b ldr r3, [r3, #36] ; 0x24
+ 80022ca: 019b lsls r3, r3, #6
+ 80022cc: 431a orrs r2, r3
+ 80022ce: 687b ldr r3, [r7, #4]
+ 80022d0: 6a9b ldr r3, [r3, #40] ; 0x28
+ 80022d2: 085b lsrs r3, r3, #1
+ 80022d4: 3b01 subs r3, #1
+ 80022d6: 041b lsls r3, r3, #16
+ 80022d8: 431a orrs r2, r3
+ 80022da: 687b ldr r3, [r7, #4]
+ 80022dc: 6adb ldr r3, [r3, #44] ; 0x2c
+ 80022de: 061b lsls r3, r3, #24
+ 80022e0: 431a orrs r2, r3
+ 80022e2: 687b ldr r3, [r7, #4]
+ 80022e4: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80022e6: 071b lsls r3, r3, #28
+ 80022e8: 491e ldr r1, [pc, #120] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80022ea: 4313 orrs r3, r2
+ 80022ec: 604b str r3, [r1, #4]
RCC_OscInitStruct->PLL.PLLP,
RCC_OscInitStruct->PLL.PLLQ);
#endif
/* Enable the main PLL. */
__HAL_RCC_PLL_ENABLE();
- 8002922: 4b1d ldr r3, [pc, #116] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002924: 681b ldr r3, [r3, #0]
- 8002926: 4a1c ldr r2, [pc, #112] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002928: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000
- 800292c: 6013 str r3, [r2, #0]
+ 80022ee: 4b1d ldr r3, [pc, #116] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80022f0: 681b ldr r3, [r3, #0]
+ 80022f2: 4a1c ldr r2, [pc, #112] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 80022f4: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000
+ 80022f8: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 800292e: f7fe ffd9 bl 80018e4 <HAL_GetTick>
- 8002932: 6138 str r0, [r7, #16]
+ 80022fa: f7ff fac1 bl 8001880 <HAL_GetTick>
+ 80022fe: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
- 8002934: e008 b.n 8002948 <HAL_RCC_OscConfig+0x48c>
+ 8002300: e008 b.n 8002314 <HAL_RCC_OscConfig+0x48c>
{
if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
- 8002936: f7fe ffd5 bl 80018e4 <HAL_GetTick>
- 800293a: 4602 mov r2, r0
- 800293c: 693b ldr r3, [r7, #16]
- 800293e: 1ad3 subs r3, r2, r3
- 8002940: 2b02 cmp r3, #2
- 8002942: d901 bls.n 8002948 <HAL_RCC_OscConfig+0x48c>
+ 8002302: f7ff fabd bl 8001880 <HAL_GetTick>
+ 8002306: 4602 mov r2, r0
+ 8002308: 693b ldr r3, [r7, #16]
+ 800230a: 1ad3 subs r3, r2, r3
+ 800230c: 2b02 cmp r3, #2
+ 800230e: d901 bls.n 8002314 <HAL_RCC_OscConfig+0x48c>
{
return HAL_TIMEOUT;
- 8002944: 2303 movs r3, #3
- 8002946: e023 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8002310: 2303 movs r3, #3
+ 8002312: e023 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
- 8002948: 4b13 ldr r3, [pc, #76] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800294a: 681b ldr r3, [r3, #0]
- 800294c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 8002950: 2b00 cmp r3, #0
- 8002952: d0f0 beq.n 8002936 <HAL_RCC_OscConfig+0x47a>
- 8002954: e01b b.n 800298e <HAL_RCC_OscConfig+0x4d2>
+ 8002314: 4b13 ldr r3, [pc, #76] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002316: 681b ldr r3, [r3, #0]
+ 8002318: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
+ 800231c: 2b00 cmp r3, #0
+ 800231e: d0f0 beq.n 8002302 <HAL_RCC_OscConfig+0x47a>
+ 8002320: e01b b.n 800235a <HAL_RCC_OscConfig+0x4d2>
}
}
else
{
/* Disable the main PLL. */
__HAL_RCC_PLL_DISABLE();
- 8002956: 4b10 ldr r3, [pc, #64] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 8002958: 681b ldr r3, [r3, #0]
- 800295a: 4a0f ldr r2, [pc, #60] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800295c: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000
- 8002960: 6013 str r3, [r2, #0]
+ 8002322: 4b10 ldr r3, [pc, #64] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002324: 681b ldr r3, [r3, #0]
+ 8002326: 4a0f ldr r2, [pc, #60] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 8002328: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000
+ 800232c: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002962: f7fe ffbf bl 80018e4 <HAL_GetTick>
- 8002966: 6138 str r0, [r7, #16]
+ 800232e: f7ff faa7 bl 8001880 <HAL_GetTick>
+ 8002332: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
- 8002968: e008 b.n 800297c <HAL_RCC_OscConfig+0x4c0>
+ 8002334: e008 b.n 8002348 <HAL_RCC_OscConfig+0x4c0>
{
if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
- 800296a: f7fe ffbb bl 80018e4 <HAL_GetTick>
- 800296e: 4602 mov r2, r0
- 8002970: 693b ldr r3, [r7, #16]
- 8002972: 1ad3 subs r3, r2, r3
- 8002974: 2b02 cmp r3, #2
- 8002976: d901 bls.n 800297c <HAL_RCC_OscConfig+0x4c0>
+ 8002336: f7ff faa3 bl 8001880 <HAL_GetTick>
+ 800233a: 4602 mov r2, r0
+ 800233c: 693b ldr r3, [r7, #16]
+ 800233e: 1ad3 subs r3, r2, r3
+ 8002340: 2b02 cmp r3, #2
+ 8002342: d901 bls.n 8002348 <HAL_RCC_OscConfig+0x4c0>
{
return HAL_TIMEOUT;
- 8002978: 2303 movs r3, #3
- 800297a: e009 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8002344: 2303 movs r3, #3
+ 8002346: e009 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
- 800297c: 4b06 ldr r3, [pc, #24] ; (8002998 <HAL_RCC_OscConfig+0x4dc>)
- 800297e: 681b ldr r3, [r3, #0]
- 8002980: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 8002984: 2b00 cmp r3, #0
- 8002986: d1f0 bne.n 800296a <HAL_RCC_OscConfig+0x4ae>
- 8002988: e001 b.n 800298e <HAL_RCC_OscConfig+0x4d2>
+ 8002348: 4b06 ldr r3, [pc, #24] ; (8002364 <HAL_RCC_OscConfig+0x4dc>)
+ 800234a: 681b ldr r3, [r3, #0]
+ 800234c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
+ 8002350: 2b00 cmp r3, #0
+ 8002352: d1f0 bne.n 8002336 <HAL_RCC_OscConfig+0x4ae>
+ 8002354: e001 b.n 800235a <HAL_RCC_OscConfig+0x4d2>
}
}
}
else
{
return HAL_ERROR;
- 800298a: 2301 movs r3, #1
- 800298c: e000 b.n 8002990 <HAL_RCC_OscConfig+0x4d4>
+ 8002356: 2301 movs r3, #1
+ 8002358: e000 b.n 800235c <HAL_RCC_OscConfig+0x4d4>
}
}
return HAL_OK;
- 800298e: 2300 movs r3, #0
+ 800235a: 2300 movs r3, #0
}
- 8002990: 4618 mov r0, r3
- 8002992: 3718 adds r7, #24
- 8002994: 46bd mov sp, r7
- 8002996: bd80 pop {r7, pc}
- 8002998: 40023800 .word 0x40023800
- 800299c: 40007000 .word 0x40007000
-
-080029a0 <HAL_RCC_ClockConfig>:
+ 800235c: 4618 mov r0, r3
+ 800235e: 3718 adds r7, #24
+ 8002360: 46bd mov sp, r7
+ 8002362: bd80 pop {r7, pc}
+ 8002364: 40023800 .word 0x40023800
+ 8002368: 40007000 .word 0x40007000
+
+0800236c <HAL_RCC_ClockConfig>:
* HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency
* (for more details refer to section above "Initialization/de-initialization functions")
* @retval None
*/
HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
{
- 80029a0: b580 push {r7, lr}
- 80029a2: b084 sub sp, #16
- 80029a4: af00 add r7, sp, #0
- 80029a6: 6078 str r0, [r7, #4]
- 80029a8: 6039 str r1, [r7, #0]
+ 800236c: b580 push {r7, lr}
+ 800236e: b084 sub sp, #16
+ 8002370: af00 add r7, sp, #0
+ 8002372: 6078 str r0, [r7, #4]
+ 8002374: 6039 str r1, [r7, #0]
uint32_t tickstart = 0;
- 80029aa: 2300 movs r3, #0
- 80029ac: 60fb str r3, [r7, #12]
+ 8002376: 2300 movs r3, #0
+ 8002378: 60fb str r3, [r7, #12]
/* Check Null pointer */
if(RCC_ClkInitStruct == NULL)
- 80029ae: 687b ldr r3, [r7, #4]
- 80029b0: 2b00 cmp r3, #0
- 80029b2: d101 bne.n 80029b8 <HAL_RCC_ClockConfig+0x18>
+ 800237a: 687b ldr r3, [r7, #4]
+ 800237c: 2b00 cmp r3, #0
+ 800237e: d101 bne.n 8002384 <HAL_RCC_ClockConfig+0x18>
{
return HAL_ERROR;
- 80029b4: 2301 movs r3, #1
- 80029b6: e0ce b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 8002380: 2301 movs r3, #1
+ 8002382: e0ce b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
/* To correctly read data from FLASH memory, the number of wait states (LATENCY)
must be correctly programmed according to the frequency of the CPU clock
(HCLK) and the supply voltage of the device. */
/* Increasing the CPU frequency */
if(FLatency > __HAL_FLASH_GET_LATENCY())
- 80029b8: 4b69 ldr r3, [pc, #420] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 80029ba: 681b ldr r3, [r3, #0]
- 80029bc: f003 030f and.w r3, r3, #15
- 80029c0: 683a ldr r2, [r7, #0]
- 80029c2: 429a cmp r2, r3
- 80029c4: d910 bls.n 80029e8 <HAL_RCC_ClockConfig+0x48>
+ 8002384: 4b69 ldr r3, [pc, #420] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 8002386: 681b ldr r3, [r3, #0]
+ 8002388: f003 030f and.w r3, r3, #15
+ 800238c: 683a ldr r2, [r7, #0]
+ 800238e: 429a cmp r2, r3
+ 8002390: d910 bls.n 80023b4 <HAL_RCC_ClockConfig+0x48>
{
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
__HAL_FLASH_SET_LATENCY(FLatency);
- 80029c6: 4b66 ldr r3, [pc, #408] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 80029c8: 681b ldr r3, [r3, #0]
- 80029ca: f023 020f bic.w r2, r3, #15
- 80029ce: 4964 ldr r1, [pc, #400] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 80029d0: 683b ldr r3, [r7, #0]
- 80029d2: 4313 orrs r3, r2
- 80029d4: 600b str r3, [r1, #0]
+ 8002392: 4b66 ldr r3, [pc, #408] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 8002394: 681b ldr r3, [r3, #0]
+ 8002396: f023 020f bic.w r2, r3, #15
+ 800239a: 4964 ldr r1, [pc, #400] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 800239c: 683b ldr r3, [r7, #0]
+ 800239e: 4313 orrs r3, r2
+ 80023a0: 600b str r3, [r1, #0]
/* Check that the new number of wait states is taken into account to access the Flash
memory by reading the FLASH_ACR register */
if(__HAL_FLASH_GET_LATENCY() != FLatency)
- 80029d6: 4b62 ldr r3, [pc, #392] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 80029d8: 681b ldr r3, [r3, #0]
- 80029da: f003 030f and.w r3, r3, #15
- 80029de: 683a ldr r2, [r7, #0]
- 80029e0: 429a cmp r2, r3
- 80029e2: d001 beq.n 80029e8 <HAL_RCC_ClockConfig+0x48>
+ 80023a2: 4b62 ldr r3, [pc, #392] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 80023a4: 681b ldr r3, [r3, #0]
+ 80023a6: f003 030f and.w r3, r3, #15
+ 80023aa: 683a ldr r2, [r7, #0]
+ 80023ac: 429a cmp r2, r3
+ 80023ae: d001 beq.n 80023b4 <HAL_RCC_ClockConfig+0x48>
{
return HAL_ERROR;
- 80029e4: 2301 movs r3, #1
- 80029e6: e0b6 b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 80023b0: 2301 movs r3, #1
+ 80023b2: e0b6 b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
}
}
/*-------------------------- HCLK Configuration --------------------------*/
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
- 80029e8: 687b ldr r3, [r7, #4]
- 80029ea: 681b ldr r3, [r3, #0]
- 80029ec: f003 0302 and.w r3, r3, #2
- 80029f0: 2b00 cmp r3, #0
- 80029f2: d020 beq.n 8002a36 <HAL_RCC_ClockConfig+0x96>
+ 80023b4: 687b ldr r3, [r7, #4]
+ 80023b6: 681b ldr r3, [r3, #0]
+ 80023b8: f003 0302 and.w r3, r3, #2
+ 80023bc: 2b00 cmp r3, #0
+ 80023be: d020 beq.n 8002402 <HAL_RCC_ClockConfig+0x96>
{
/* Set the highest APBx dividers in order to ensure that we do not go through
a non-spec phase whatever we decrease or increase HCLK. */
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
- 80029f4: 687b ldr r3, [r7, #4]
- 80029f6: 681b ldr r3, [r3, #0]
- 80029f8: f003 0304 and.w r3, r3, #4
- 80029fc: 2b00 cmp r3, #0
- 80029fe: d005 beq.n 8002a0c <HAL_RCC_ClockConfig+0x6c>
+ 80023c0: 687b ldr r3, [r7, #4]
+ 80023c2: 681b ldr r3, [r3, #0]
+ 80023c4: f003 0304 and.w r3, r3, #4
+ 80023c8: 2b00 cmp r3, #0
+ 80023ca: d005 beq.n 80023d8 <HAL_RCC_ClockConfig+0x6c>
{
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
- 8002a00: 4b58 ldr r3, [pc, #352] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a02: 689b ldr r3, [r3, #8]
- 8002a04: 4a57 ldr r2, [pc, #348] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a06: f443 53e0 orr.w r3, r3, #7168 ; 0x1c00
- 8002a0a: 6093 str r3, [r2, #8]
+ 80023cc: 4b58 ldr r3, [pc, #352] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80023ce: 689b ldr r3, [r3, #8]
+ 80023d0: 4a57 ldr r2, [pc, #348] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80023d2: f443 53e0 orr.w r3, r3, #7168 ; 0x1c00
+ 80023d6: 6093 str r3, [r2, #8]
}
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
- 8002a0c: 687b ldr r3, [r7, #4]
- 8002a0e: 681b ldr r3, [r3, #0]
- 8002a10: f003 0308 and.w r3, r3, #8
- 8002a14: 2b00 cmp r3, #0
- 8002a16: d005 beq.n 8002a24 <HAL_RCC_ClockConfig+0x84>
+ 80023d8: 687b ldr r3, [r7, #4]
+ 80023da: 681b ldr r3, [r3, #0]
+ 80023dc: f003 0308 and.w r3, r3, #8
+ 80023e0: 2b00 cmp r3, #0
+ 80023e2: d005 beq.n 80023f0 <HAL_RCC_ClockConfig+0x84>
{
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
- 8002a18: 4b52 ldr r3, [pc, #328] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a1a: 689b ldr r3, [r3, #8]
- 8002a1c: 4a51 ldr r2, [pc, #324] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a1e: f443 4360 orr.w r3, r3, #57344 ; 0xe000
- 8002a22: 6093 str r3, [r2, #8]
+ 80023e4: 4b52 ldr r3, [pc, #328] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80023e6: 689b ldr r3, [r3, #8]
+ 80023e8: 4a51 ldr r2, [pc, #324] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80023ea: f443 4360 orr.w r3, r3, #57344 ; 0xe000
+ 80023ee: 6093 str r3, [r2, #8]
}
/* Set the new HCLK clock divider */
assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
- 8002a24: 4b4f ldr r3, [pc, #316] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a26: 689b ldr r3, [r3, #8]
- 8002a28: f023 02f0 bic.w r2, r3, #240 ; 0xf0
- 8002a2c: 687b ldr r3, [r7, #4]
- 8002a2e: 689b ldr r3, [r3, #8]
- 8002a30: 494c ldr r1, [pc, #304] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a32: 4313 orrs r3, r2
- 8002a34: 608b str r3, [r1, #8]
+ 80023f0: 4b4f ldr r3, [pc, #316] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80023f2: 689b ldr r3, [r3, #8]
+ 80023f4: f023 02f0 bic.w r2, r3, #240 ; 0xf0
+ 80023f8: 687b ldr r3, [r7, #4]
+ 80023fa: 689b ldr r3, [r3, #8]
+ 80023fc: 494c ldr r1, [pc, #304] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80023fe: 4313 orrs r3, r2
+ 8002400: 608b str r3, [r1, #8]
}
/*------------------------- SYSCLK Configuration ---------------------------*/
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
- 8002a36: 687b ldr r3, [r7, #4]
- 8002a38: 681b ldr r3, [r3, #0]
- 8002a3a: f003 0301 and.w r3, r3, #1
- 8002a3e: 2b00 cmp r3, #0
- 8002a40: d040 beq.n 8002ac4 <HAL_RCC_ClockConfig+0x124>
+ 8002402: 687b ldr r3, [r7, #4]
+ 8002404: 681b ldr r3, [r3, #0]
+ 8002406: f003 0301 and.w r3, r3, #1
+ 800240a: 2b00 cmp r3, #0
+ 800240c: d040 beq.n 8002490 <HAL_RCC_ClockConfig+0x124>
{
assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
/* HSE is selected as System Clock Source */
if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
- 8002a42: 687b ldr r3, [r7, #4]
- 8002a44: 685b ldr r3, [r3, #4]
- 8002a46: 2b01 cmp r3, #1
- 8002a48: d107 bne.n 8002a5a <HAL_RCC_ClockConfig+0xba>
+ 800240e: 687b ldr r3, [r7, #4]
+ 8002410: 685b ldr r3, [r3, #4]
+ 8002412: 2b01 cmp r3, #1
+ 8002414: d107 bne.n 8002426 <HAL_RCC_ClockConfig+0xba>
{
/* Check the HSE ready flag */
if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
- 8002a4a: 4b46 ldr r3, [pc, #280] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a4c: 681b ldr r3, [r3, #0]
- 8002a4e: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 8002a52: 2b00 cmp r3, #0
- 8002a54: d115 bne.n 8002a82 <HAL_RCC_ClockConfig+0xe2>
+ 8002416: 4b46 ldr r3, [pc, #280] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 8002418: 681b ldr r3, [r3, #0]
+ 800241a: f403 3300 and.w r3, r3, #131072 ; 0x20000
+ 800241e: 2b00 cmp r3, #0
+ 8002420: d115 bne.n 800244e <HAL_RCC_ClockConfig+0xe2>
{
return HAL_ERROR;
- 8002a56: 2301 movs r3, #1
- 8002a58: e07d b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 8002422: 2301 movs r3, #1
+ 8002424: e07d b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
}
}
/* PLL is selected as System Clock Source */
else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
- 8002a5a: 687b ldr r3, [r7, #4]
- 8002a5c: 685b ldr r3, [r3, #4]
- 8002a5e: 2b02 cmp r3, #2
- 8002a60: d107 bne.n 8002a72 <HAL_RCC_ClockConfig+0xd2>
+ 8002426: 687b ldr r3, [r7, #4]
+ 8002428: 685b ldr r3, [r3, #4]
+ 800242a: 2b02 cmp r3, #2
+ 800242c: d107 bne.n 800243e <HAL_RCC_ClockConfig+0xd2>
{
/* Check the PLL ready flag */
if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
- 8002a62: 4b40 ldr r3, [pc, #256] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a64: 681b ldr r3, [r3, #0]
- 8002a66: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 8002a6a: 2b00 cmp r3, #0
- 8002a6c: d109 bne.n 8002a82 <HAL_RCC_ClockConfig+0xe2>
+ 800242e: 4b40 ldr r3, [pc, #256] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 8002430: 681b ldr r3, [r3, #0]
+ 8002432: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
+ 8002436: 2b00 cmp r3, #0
+ 8002438: d109 bne.n 800244e <HAL_RCC_ClockConfig+0xe2>
{
return HAL_ERROR;
- 8002a6e: 2301 movs r3, #1
- 8002a70: e071 b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 800243a: 2301 movs r3, #1
+ 800243c: e071 b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
}
/* HSI is selected as System Clock Source */
else
{
/* Check the HSI ready flag */
if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
- 8002a72: 4b3c ldr r3, [pc, #240] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a74: 681b ldr r3, [r3, #0]
- 8002a76: f003 0302 and.w r3, r3, #2
- 8002a7a: 2b00 cmp r3, #0
- 8002a7c: d101 bne.n 8002a82 <HAL_RCC_ClockConfig+0xe2>
+ 800243e: 4b3c ldr r3, [pc, #240] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 8002440: 681b ldr r3, [r3, #0]
+ 8002442: f003 0302 and.w r3, r3, #2
+ 8002446: 2b00 cmp r3, #0
+ 8002448: d101 bne.n 800244e <HAL_RCC_ClockConfig+0xe2>
{
return HAL_ERROR;
- 8002a7e: 2301 movs r3, #1
- 8002a80: e069 b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 800244a: 2301 movs r3, #1
+ 800244c: e069 b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
}
}
__HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
- 8002a82: 4b38 ldr r3, [pc, #224] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a84: 689b ldr r3, [r3, #8]
- 8002a86: f023 0203 bic.w r2, r3, #3
- 8002a8a: 687b ldr r3, [r7, #4]
- 8002a8c: 685b ldr r3, [r3, #4]
- 8002a8e: 4935 ldr r1, [pc, #212] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002a90: 4313 orrs r3, r2
- 8002a92: 608b str r3, [r1, #8]
+ 800244e: 4b38 ldr r3, [pc, #224] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 8002450: 689b ldr r3, [r3, #8]
+ 8002452: f023 0203 bic.w r2, r3, #3
+ 8002456: 687b ldr r3, [r7, #4]
+ 8002458: 685b ldr r3, [r3, #4]
+ 800245a: 4935 ldr r1, [pc, #212] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 800245c: 4313 orrs r3, r2
+ 800245e: 608b str r3, [r1, #8]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002a94: f7fe ff26 bl 80018e4 <HAL_GetTick>
- 8002a98: 60f8 str r0, [r7, #12]
+ 8002460: f7ff fa0e bl 8001880 <HAL_GetTick>
+ 8002464: 60f8 str r0, [r7, #12]
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
- 8002a9a: e00a b.n 8002ab2 <HAL_RCC_ClockConfig+0x112>
+ 8002466: e00a b.n 800247e <HAL_RCC_ClockConfig+0x112>
{
if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
- 8002a9c: f7fe ff22 bl 80018e4 <HAL_GetTick>
- 8002aa0: 4602 mov r2, r0
- 8002aa2: 68fb ldr r3, [r7, #12]
- 8002aa4: 1ad3 subs r3, r2, r3
- 8002aa6: f241 3288 movw r2, #5000 ; 0x1388
- 8002aaa: 4293 cmp r3, r2
- 8002aac: d901 bls.n 8002ab2 <HAL_RCC_ClockConfig+0x112>
+ 8002468: f7ff fa0a bl 8001880 <HAL_GetTick>
+ 800246c: 4602 mov r2, r0
+ 800246e: 68fb ldr r3, [r7, #12]
+ 8002470: 1ad3 subs r3, r2, r3
+ 8002472: f241 3288 movw r2, #5000 ; 0x1388
+ 8002476: 4293 cmp r3, r2
+ 8002478: d901 bls.n 800247e <HAL_RCC_ClockConfig+0x112>
{
return HAL_TIMEOUT;
- 8002aae: 2303 movs r3, #3
- 8002ab0: e051 b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 800247a: 2303 movs r3, #3
+ 800247c: e051 b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
- 8002ab2: 4b2c ldr r3, [pc, #176] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002ab4: 689b ldr r3, [r3, #8]
- 8002ab6: f003 020c and.w r2, r3, #12
- 8002aba: 687b ldr r3, [r7, #4]
- 8002abc: 685b ldr r3, [r3, #4]
- 8002abe: 009b lsls r3, r3, #2
- 8002ac0: 429a cmp r2, r3
- 8002ac2: d1eb bne.n 8002a9c <HAL_RCC_ClockConfig+0xfc>
+ 800247e: 4b2c ldr r3, [pc, #176] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 8002480: 689b ldr r3, [r3, #8]
+ 8002482: f003 020c and.w r2, r3, #12
+ 8002486: 687b ldr r3, [r7, #4]
+ 8002488: 685b ldr r3, [r3, #4]
+ 800248a: 009b lsls r3, r3, #2
+ 800248c: 429a cmp r2, r3
+ 800248e: d1eb bne.n 8002468 <HAL_RCC_ClockConfig+0xfc>
}
}
}
/* Decreasing the number of wait states because of lower CPU frequency */
if(FLatency < __HAL_FLASH_GET_LATENCY())
- 8002ac4: 4b26 ldr r3, [pc, #152] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 8002ac6: 681b ldr r3, [r3, #0]
- 8002ac8: f003 030f and.w r3, r3, #15
- 8002acc: 683a ldr r2, [r7, #0]
- 8002ace: 429a cmp r2, r3
- 8002ad0: d210 bcs.n 8002af4 <HAL_RCC_ClockConfig+0x154>
+ 8002490: 4b26 ldr r3, [pc, #152] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 8002492: 681b ldr r3, [r3, #0]
+ 8002494: f003 030f and.w r3, r3, #15
+ 8002498: 683a ldr r2, [r7, #0]
+ 800249a: 429a cmp r2, r3
+ 800249c: d210 bcs.n 80024c0 <HAL_RCC_ClockConfig+0x154>
{
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
__HAL_FLASH_SET_LATENCY(FLatency);
- 8002ad2: 4b23 ldr r3, [pc, #140] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 8002ad4: 681b ldr r3, [r3, #0]
- 8002ad6: f023 020f bic.w r2, r3, #15
- 8002ada: 4921 ldr r1, [pc, #132] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 8002adc: 683b ldr r3, [r7, #0]
- 8002ade: 4313 orrs r3, r2
- 8002ae0: 600b str r3, [r1, #0]
+ 800249e: 4b23 ldr r3, [pc, #140] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 80024a0: 681b ldr r3, [r3, #0]
+ 80024a2: f023 020f bic.w r2, r3, #15
+ 80024a6: 4921 ldr r1, [pc, #132] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 80024a8: 683b ldr r3, [r7, #0]
+ 80024aa: 4313 orrs r3, r2
+ 80024ac: 600b str r3, [r1, #0]
/* Check that the new number of wait states is taken into account to access the Flash
memory by reading the FLASH_ACR register */
if(__HAL_FLASH_GET_LATENCY() != FLatency)
- 8002ae2: 4b1f ldr r3, [pc, #124] ; (8002b60 <HAL_RCC_ClockConfig+0x1c0>)
- 8002ae4: 681b ldr r3, [r3, #0]
- 8002ae6: f003 030f and.w r3, r3, #15
- 8002aea: 683a ldr r2, [r7, #0]
- 8002aec: 429a cmp r2, r3
- 8002aee: d001 beq.n 8002af4 <HAL_RCC_ClockConfig+0x154>
+ 80024ae: 4b1f ldr r3, [pc, #124] ; (800252c <HAL_RCC_ClockConfig+0x1c0>)
+ 80024b0: 681b ldr r3, [r3, #0]
+ 80024b2: f003 030f and.w r3, r3, #15
+ 80024b6: 683a ldr r2, [r7, #0]
+ 80024b8: 429a cmp r2, r3
+ 80024ba: d001 beq.n 80024c0 <HAL_RCC_ClockConfig+0x154>
{
return HAL_ERROR;
- 8002af0: 2301 movs r3, #1
- 8002af2: e030 b.n 8002b56 <HAL_RCC_ClockConfig+0x1b6>
+ 80024bc: 2301 movs r3, #1
+ 80024be: e030 b.n 8002522 <HAL_RCC_ClockConfig+0x1b6>
}
}
/*-------------------------- PCLK1 Configuration ---------------------------*/
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
- 8002af4: 687b ldr r3, [r7, #4]
- 8002af6: 681b ldr r3, [r3, #0]
- 8002af8: f003 0304 and.w r3, r3, #4
- 8002afc: 2b00 cmp r3, #0
- 8002afe: d008 beq.n 8002b12 <HAL_RCC_ClockConfig+0x172>
+ 80024c0: 687b ldr r3, [r7, #4]
+ 80024c2: 681b ldr r3, [r3, #0]
+ 80024c4: f003 0304 and.w r3, r3, #4
+ 80024c8: 2b00 cmp r3, #0
+ 80024ca: d008 beq.n 80024de <HAL_RCC_ClockConfig+0x172>
{
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
- 8002b00: 4b18 ldr r3, [pc, #96] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002b02: 689b ldr r3, [r3, #8]
- 8002b04: f423 52e0 bic.w r2, r3, #7168 ; 0x1c00
- 8002b08: 687b ldr r3, [r7, #4]
- 8002b0a: 68db ldr r3, [r3, #12]
- 8002b0c: 4915 ldr r1, [pc, #84] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002b0e: 4313 orrs r3, r2
- 8002b10: 608b str r3, [r1, #8]
+ 80024cc: 4b18 ldr r3, [pc, #96] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80024ce: 689b ldr r3, [r3, #8]
+ 80024d0: f423 52e0 bic.w r2, r3, #7168 ; 0x1c00
+ 80024d4: 687b ldr r3, [r7, #4]
+ 80024d6: 68db ldr r3, [r3, #12]
+ 80024d8: 4915 ldr r1, [pc, #84] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80024da: 4313 orrs r3, r2
+ 80024dc: 608b str r3, [r1, #8]
}
/*-------------------------- PCLK2 Configuration ---------------------------*/
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
- 8002b12: 687b ldr r3, [r7, #4]
- 8002b14: 681b ldr r3, [r3, #0]
- 8002b16: f003 0308 and.w r3, r3, #8
- 8002b1a: 2b00 cmp r3, #0
- 8002b1c: d009 beq.n 8002b32 <HAL_RCC_ClockConfig+0x192>
+ 80024de: 687b ldr r3, [r7, #4]
+ 80024e0: 681b ldr r3, [r3, #0]
+ 80024e2: f003 0308 and.w r3, r3, #8
+ 80024e6: 2b00 cmp r3, #0
+ 80024e8: d009 beq.n 80024fe <HAL_RCC_ClockConfig+0x192>
{
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
- 8002b1e: 4b11 ldr r3, [pc, #68] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002b20: 689b ldr r3, [r3, #8]
- 8002b22: f423 4260 bic.w r2, r3, #57344 ; 0xe000
- 8002b26: 687b ldr r3, [r7, #4]
- 8002b28: 691b ldr r3, [r3, #16]
- 8002b2a: 00db lsls r3, r3, #3
- 8002b2c: 490d ldr r1, [pc, #52] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002b2e: 4313 orrs r3, r2
- 8002b30: 608b str r3, [r1, #8]
+ 80024ea: 4b11 ldr r3, [pc, #68] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80024ec: 689b ldr r3, [r3, #8]
+ 80024ee: f423 4260 bic.w r2, r3, #57344 ; 0xe000
+ 80024f2: 687b ldr r3, [r7, #4]
+ 80024f4: 691b ldr r3, [r3, #16]
+ 80024f6: 00db lsls r3, r3, #3
+ 80024f8: 490d ldr r1, [pc, #52] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 80024fa: 4313 orrs r3, r2
+ 80024fc: 608b str r3, [r1, #8]
}
/* Update the SystemCoreClock global variable */
SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos];
- 8002b32: f000 f81d bl 8002b70 <HAL_RCC_GetSysClockFreq>
- 8002b36: 4601 mov r1, r0
- 8002b38: 4b0a ldr r3, [pc, #40] ; (8002b64 <HAL_RCC_ClockConfig+0x1c4>)
- 8002b3a: 689b ldr r3, [r3, #8]
- 8002b3c: 091b lsrs r3, r3, #4
- 8002b3e: f003 030f and.w r3, r3, #15
- 8002b42: 4a09 ldr r2, [pc, #36] ; (8002b68 <HAL_RCC_ClockConfig+0x1c8>)
- 8002b44: 5cd3 ldrb r3, [r2, r3]
- 8002b46: fa21 f303 lsr.w r3, r1, r3
- 8002b4a: 4a08 ldr r2, [pc, #32] ; (8002b6c <HAL_RCC_ClockConfig+0x1cc>)
- 8002b4c: 6013 str r3, [r2, #0]
+ 80024fe: f000 f81d bl 800253c <HAL_RCC_GetSysClockFreq>
+ 8002502: 4601 mov r1, r0
+ 8002504: 4b0a ldr r3, [pc, #40] ; (8002530 <HAL_RCC_ClockConfig+0x1c4>)
+ 8002506: 689b ldr r3, [r3, #8]
+ 8002508: 091b lsrs r3, r3, #4
+ 800250a: f003 030f and.w r3, r3, #15
+ 800250e: 4a09 ldr r2, [pc, #36] ; (8002534 <HAL_RCC_ClockConfig+0x1c8>)
+ 8002510: 5cd3 ldrb r3, [r2, r3]
+ 8002512: fa21 f303 lsr.w r3, r1, r3
+ 8002516: 4a08 ldr r2, [pc, #32] ; (8002538 <HAL_RCC_ClockConfig+0x1cc>)
+ 8002518: 6013 str r3, [r2, #0]
/* Configure the source of time base considering new system clocks settings*/
HAL_InitTick (TICK_INT_PRIORITY);
- 8002b4e: 2000 movs r0, #0
- 8002b50: f7fe fe84 bl 800185c <HAL_InitTick>
+ 800251a: 2000 movs r0, #0
+ 800251c: f7ff f96c bl 80017f8 <HAL_InitTick>
return HAL_OK;
- 8002b54: 2300 movs r3, #0
+ 8002520: 2300 movs r3, #0
}
- 8002b56: 4618 mov r0, r3
- 8002b58: 3710 adds r7, #16
- 8002b5a: 46bd mov sp, r7
- 8002b5c: bd80 pop {r7, pc}
- 8002b5e: bf00 nop
- 8002b60: 40023c00 .word 0x40023c00
- 8002b64: 40023800 .word 0x40023800
- 8002b68: 08005258 .word 0x08005258
- 8002b6c: 20000000 .word 0x20000000
-
-08002b70 <HAL_RCC_GetSysClockFreq>:
+ 8002522: 4618 mov r0, r3
+ 8002524: 3710 adds r7, #16
+ 8002526: 46bd mov sp, r7
+ 8002528: bd80 pop {r7, pc}
+ 800252a: bf00 nop
+ 800252c: 40023c00 .word 0x40023c00
+ 8002530: 40023800 .word 0x40023800
+ 8002534: 08004eb4 .word 0x08004eb4
+ 8002538: 20000004 .word 0x20000004
+
+0800253c <HAL_RCC_GetSysClockFreq>:
*
*
* @retval SYSCLK frequency
*/
uint32_t HAL_RCC_GetSysClockFreq(void)
{
- 8002b70: b5f0 push {r4, r5, r6, r7, lr}
- 8002b72: b085 sub sp, #20
- 8002b74: af00 add r7, sp, #0
+ 800253c: b5f0 push {r4, r5, r6, r7, lr}
+ 800253e: b085 sub sp, #20
+ 8002540: af00 add r7, sp, #0
uint32_t pllm = 0, pllvco = 0, pllp = 0;
- 8002b76: 2300 movs r3, #0
- 8002b78: 607b str r3, [r7, #4]
- 8002b7a: 2300 movs r3, #0
- 8002b7c: 60fb str r3, [r7, #12]
- 8002b7e: 2300 movs r3, #0
- 8002b80: 603b str r3, [r7, #0]
+ 8002542: 2300 movs r3, #0
+ 8002544: 607b str r3, [r7, #4]
+ 8002546: 2300 movs r3, #0
+ 8002548: 60fb str r3, [r7, #12]
+ 800254a: 2300 movs r3, #0
+ 800254c: 603b str r3, [r7, #0]
uint32_t sysclockfreq = 0;
- 8002b82: 2300 movs r3, #0
- 8002b84: 60bb str r3, [r7, #8]
+ 800254e: 2300 movs r3, #0
+ 8002550: 60bb str r3, [r7, #8]
/* Get SYSCLK source -------------------------------------------------------*/
switch (RCC->CFGR & RCC_CFGR_SWS)
- 8002b86: 4b50 ldr r3, [pc, #320] ; (8002cc8 <HAL_RCC_GetSysClockFreq+0x158>)
- 8002b88: 689b ldr r3, [r3, #8]
- 8002b8a: f003 030c and.w r3, r3, #12
- 8002b8e: 2b04 cmp r3, #4
- 8002b90: d007 beq.n 8002ba2 <HAL_RCC_GetSysClockFreq+0x32>
- 8002b92: 2b08 cmp r3, #8
- 8002b94: d008 beq.n 8002ba8 <HAL_RCC_GetSysClockFreq+0x38>
- 8002b96: 2b00 cmp r3, #0
- 8002b98: f040 808d bne.w 8002cb6 <HAL_RCC_GetSysClockFreq+0x146>
+ 8002552: 4b50 ldr r3, [pc, #320] ; (8002694 <HAL_RCC_GetSysClockFreq+0x158>)
+ 8002554: 689b ldr r3, [r3, #8]
+ 8002556: f003 030c and.w r3, r3, #12
+ 800255a: 2b04 cmp r3, #4
+ 800255c: d007 beq.n 800256e <HAL_RCC_GetSysClockFreq+0x32>
+ 800255e: 2b08 cmp r3, #8
+ 8002560: d008 beq.n 8002574 <HAL_RCC_GetSysClockFreq+0x38>
+ 8002562: 2b00 cmp r3, #0
+ 8002564: f040 808d bne.w 8002682 <HAL_RCC_GetSysClockFreq+0x146>
{
case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
{
sysclockfreq = HSI_VALUE;
- 8002b9c: 4b4b ldr r3, [pc, #300] ; (8002ccc <HAL_RCC_GetSysClockFreq+0x15c>)
- 8002b9e: 60bb str r3, [r7, #8]
+ 8002568: 4b4b ldr r3, [pc, #300] ; (8002698 <HAL_RCC_GetSysClockFreq+0x15c>)
+ 800256a: 60bb str r3, [r7, #8]
break;
- 8002ba0: e08c b.n 8002cbc <HAL_RCC_GetSysClockFreq+0x14c>
+ 800256c: e08c b.n 8002688 <HAL_RCC_GetSysClockFreq+0x14c>
}
case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock source */
{
sysclockfreq = HSE_VALUE;
- 8002ba2: 4b4b ldr r3, [pc, #300] ; (8002cd0 <HAL_RCC_GetSysClockFreq+0x160>)
- 8002ba4: 60bb str r3, [r7, #8]
+ 800256e: 4b4b ldr r3, [pc, #300] ; (800269c <HAL_RCC_GetSysClockFreq+0x160>)
+ 8002570: 60bb str r3, [r7, #8]
break;
- 8002ba6: e089 b.n 8002cbc <HAL_RCC_GetSysClockFreq+0x14c>
+ 8002572: e089 b.n 8002688 <HAL_RCC_GetSysClockFreq+0x14c>
}
case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock source */
{
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN
SYSCLK = PLL_VCO / PLLP */
pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM;
- 8002ba8: 4b47 ldr r3, [pc, #284] ; (8002cc8 <HAL_RCC_GetSysClockFreq+0x158>)
- 8002baa: 685b ldr r3, [r3, #4]
- 8002bac: f003 033f and.w r3, r3, #63 ; 0x3f
- 8002bb0: 607b str r3, [r7, #4]
+ 8002574: 4b47 ldr r3, [pc, #284] ; (8002694 <HAL_RCC_GetSysClockFreq+0x158>)
+ 8002576: 685b ldr r3, [r3, #4]
+ 8002578: f003 033f and.w r3, r3, #63 ; 0x3f
+ 800257c: 607b str r3, [r7, #4]
if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLCFGR_PLLSRC_HSI)
- 8002bb2: 4b45 ldr r3, [pc, #276] ; (8002cc8 <HAL_RCC_GetSysClockFreq+0x158>)
- 8002bb4: 685b ldr r3, [r3, #4]
- 8002bb6: f403 0380 and.w r3, r3, #4194304 ; 0x400000
- 8002bba: 2b00 cmp r3, #0
- 8002bbc: d023 beq.n 8002c06 <HAL_RCC_GetSysClockFreq+0x96>
+ 800257e: 4b45 ldr r3, [pc, #276] ; (8002694 <HAL_RCC_GetSysClockFreq+0x158>)
+ 8002580: 685b ldr r3, [r3, #4]
+ 8002582: f403 0380 and.w r3, r3, #4194304 ; 0x400000
+ 8002586: 2b00 cmp r3, #0
+ 8002588: d023 beq.n 80025d2 <HAL_RCC_GetSysClockFreq+0x96>
{
/* HSE used as PLL clock source */
pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm);
- 8002bbe: 4b42 ldr r3, [pc, #264] ; (8002cc8 <HAL_RCC_GetSysClockFreq+0x158>)
- 8002bc0: 685b ldr r3, [r3, #4]
- 8002bc2: 099b lsrs r3, r3, #6
- 8002bc4: f04f 0400 mov.w r4, #0
- 8002bc8: f240 11ff movw r1, #511 ; 0x1ff
- 8002bcc: f04f 0200 mov.w r2, #0
- 8002bd0: ea03 0501 and.w r5, r3, r1
- 8002bd4: ea04 0602 and.w r6, r4, r2
- 8002bd8: 4a3d ldr r2, [pc, #244] ; (8002cd0 <HAL_RCC_GetSysClockFreq+0x160>)
- 8002bda: fb02 f106 mul.w r1, r2, r6
- 8002bde: 2200 movs r2, #0
- 8002be0: fb02 f205 mul.w r2, r2, r5
- 8002be4: 440a add r2, r1
- 8002be6: 493a ldr r1, [pc, #232] ; (8002cd0 <HAL_RCC_GetSysClockFreq+0x160>)
- 8002be8: fba5 0101 umull r0, r1, r5, r1
- 8002bec: 1853 adds r3, r2, r1
- 8002bee: 4619 mov r1, r3
- 8002bf0: 687b ldr r3, [r7, #4]
- 8002bf2: f04f 0400 mov.w r4, #0
- 8002bf6: 461a mov r2, r3
- 8002bf8: 4623 mov r3, r4
- 8002bfa: f7fd fb1d bl 8000238 <__aeabi_uldivmod>
- 8002bfe: 4603 mov r3, r0
- 8002c00: 460c mov r4, r1
- 8002c02: 60fb str r3, [r7, #12]
- 8002c04: e049 b.n 8002c9a <HAL_RCC_GetSysClockFreq+0x12a>
+ 800258a: 4b42 ldr r3, [pc, #264] ; (8002694 <HAL_RCC_GetSysClockFreq+0x158>)
+ 800258c: 685b ldr r3, [r3, #4]
+ 800258e: 099b lsrs r3, r3, #6
+ 8002590: f04f 0400 mov.w r4, #0
+ 8002594: f240 11ff movw r1, #511 ; 0x1ff
+ 8002598: f04f 0200 mov.w r2, #0
+ 800259c: ea03 0501 and.w r5, r3, r1
+ 80025a0: ea04 0602 and.w r6, r4, r2
+ 80025a4: 4a3d ldr r2, [pc, #244] ; (800269c <HAL_RCC_GetSysClockFreq+0x160>)
+ 80025a6: fb02 f106 mul.w r1, r2, r6
+ 80025aa: 2200 movs r2, #0
+ 80025ac: fb02 f205 mul.w r2, r2, r5
+ 80025b0: 440a add r2, r1
+ 80025b2: 493a ldr r1, [pc, #232] ; (800269c <HAL_RCC_GetSysClockFreq+0x160>)
+ 80025b4: fba5 0101 umull r0, r1, r5, r1
+ 80025b8: 1853 adds r3, r2, r1
+ 80025ba: 4619 mov r1, r3
+ 80025bc: 687b ldr r3, [r7, #4]
+ 80025be: f04f 0400 mov.w r4, #0
+ 80025c2: 461a mov r2, r3
+ 80025c4: 4623 mov r3, r4
+ 80025c6: f7fd fe37 bl 8000238 <__aeabi_uldivmod>
+ 80025ca: 4603 mov r3, r0
+ 80025cc: 460c mov r4, r1
+ 80025ce: 60fb str r3, [r7, #12]
+ 80025d0: e049 b.n 8002666 <HAL_RCC_GetSysClockFreq+0x12a>
}
else
{
/* HSI used as PLL clock source */
pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm);
- 8002c06: 4b30 ldr r3, [pc, #192] ; (8002cc8 <HAL_RCC_GetSysClockFreq+0x158>)
- 8002c08: 685b ldr r3, [r3, #4]
- 8002c0a: 099b lsrs r3, r3, #6
- 8002c0c: f04f 0400 mov.w r4, #0
- 8002c10: f240 11ff movw r1, #511 ; 0x1ff
- 8002c14: f04f 0200 mov.w r2, #0
- 8002c18: ea03 0501 and.w r5, r3, r1
- 8002c1c: ea04 0602 and.w r6, r4, r2
- 8002c20: 4629 mov r1, r5
- 8002c22: 4632 mov r2, r6
- 8002c24: f04f 0300 mov.w r3, #0
- 8002c28: f04f 0400 mov.w r4, #0
- 8002c2c: 0154 lsls r4, r2, #5
- 8002c2e: ea44 64d1 orr.w r4, r4, r1, lsr #27
- 8002c32: 014b lsls r3, r1, #5
- 8002c34: 4619 mov r1, r3
- 8002c36: 4622 mov r2, r4
- 8002c38: 1b49 subs r1, r1, r5
- 8002c3a: eb62 0206 sbc.w r2, r2, r6
- 8002c3e: f04f 0300 mov.w r3, #0
- 8002c42: f04f 0400 mov.w r4, #0
- 8002c46: 0194 lsls r4, r2, #6
- 8002c48: ea44 6491 orr.w r4, r4, r1, lsr #26
- 8002c4c: 018b lsls r3, r1, #6
- 8002c4e: 1a5b subs r3, r3, r1
- 8002c50: eb64 0402 sbc.w r4, r4, r2
- 8002c54: f04f 0100 mov.w r1, #0
- 8002c58: f04f 0200 mov.w r2, #0
- 8002c5c: 00e2 lsls r2, r4, #3
- 8002c5e: ea42 7253 orr.w r2, r2, r3, lsr #29
- 8002c62: 00d9 lsls r1, r3, #3
- 8002c64: 460b mov r3, r1
- 8002c66: 4614 mov r4, r2
- 8002c68: 195b adds r3, r3, r5
- 8002c6a: eb44 0406 adc.w r4, r4, r6
- 8002c6e: f04f 0100 mov.w r1, #0
- 8002c72: f04f 0200 mov.w r2, #0
- 8002c76: 02a2 lsls r2, r4, #10
- 8002c78: ea42 5293 orr.w r2, r2, r3, lsr #22
- 8002c7c: 0299 lsls r1, r3, #10
- 8002c7e: 460b mov r3, r1
- 8002c80: 4614 mov r4, r2
- 8002c82: 4618 mov r0, r3
- 8002c84: 4621 mov r1, r4
- 8002c86: 687b ldr r3, [r7, #4]
- 8002c88: f04f 0400 mov.w r4, #0
- 8002c8c: 461a mov r2, r3
- 8002c8e: 4623 mov r3, r4
- 8002c90: f7fd fad2 bl 8000238 <__aeabi_uldivmod>
- 8002c94: 4603 mov r3, r0
- 8002c96: 460c mov r4, r1
- 8002c98: 60fb str r3, [r7, #12]
+ 80025d2: 4b30 ldr r3, [pc, #192] ; (8002694 <HAL_RCC_GetSysClockFreq+0x158>)
+ 80025d4: 685b ldr r3, [r3, #4]
+ 80025d6: 099b lsrs r3, r3, #6
+ 80025d8: f04f 0400 mov.w r4, #0
+ 80025dc: f240 11ff movw r1, #511 ; 0x1ff
+ 80025e0: f04f 0200 mov.w r2, #0
+ 80025e4: ea03 0501 and.w r5, r3, r1
+ 80025e8: ea04 0602 and.w r6, r4, r2
+ 80025ec: 4629 mov r1, r5
+ 80025ee: 4632 mov r2, r6
+ 80025f0: f04f 0300 mov.w r3, #0
+ 80025f4: f04f 0400 mov.w r4, #0
+ 80025f8: 0154 lsls r4, r2, #5
+ 80025fa: ea44 64d1 orr.w r4, r4, r1, lsr #27
+ 80025fe: 014b lsls r3, r1, #5
+ 8002600: 4619 mov r1, r3
+ 8002602: 4622 mov r2, r4
+ 8002604: 1b49 subs r1, r1, r5
+ 8002606: eb62 0206 sbc.w r2, r2, r6
+ 800260a: f04f 0300 mov.w r3, #0
+ 800260e: f04f 0400 mov.w r4, #0
+ 8002612: 0194 lsls r4, r2, #6
+ 8002614: ea44 6491 orr.w r4, r4, r1, lsr #26
+ 8002618: 018b lsls r3, r1, #6
+ 800261a: 1a5b subs r3, r3, r1
+ 800261c: eb64 0402 sbc.w r4, r4, r2
+ 8002620: f04f 0100 mov.w r1, #0
+ 8002624: f04f 0200 mov.w r2, #0
+ 8002628: 00e2 lsls r2, r4, #3
+ 800262a: ea42 7253 orr.w r2, r2, r3, lsr #29
+ 800262e: 00d9 lsls r1, r3, #3
+ 8002630: 460b mov r3, r1
+ 8002632: 4614 mov r4, r2
+ 8002634: 195b adds r3, r3, r5
+ 8002636: eb44 0406 adc.w r4, r4, r6
+ 800263a: f04f 0100 mov.w r1, #0
+ 800263e: f04f 0200 mov.w r2, #0
+ 8002642: 02a2 lsls r2, r4, #10
+ 8002644: ea42 5293 orr.w r2, r2, r3, lsr #22
+ 8002648: 0299 lsls r1, r3, #10
+ 800264a: 460b mov r3, r1
+ 800264c: 4614 mov r4, r2
+ 800264e: 4618 mov r0, r3
+ 8002650: 4621 mov r1, r4
+ 8002652: 687b ldr r3, [r7, #4]
+ 8002654: f04f 0400 mov.w r4, #0
+ 8002658: 461a mov r2, r3
+ 800265a: 4623 mov r3, r4
+ 800265c: f7fd fdec bl 8000238 <__aeabi_uldivmod>
+ 8002660: 4603 mov r3, r0
+ 8002662: 460c mov r4, r1
+ 8002664: 60fb str r3, [r7, #12]
}
pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1 ) *2);
- 8002c9a: 4b0b ldr r3, [pc, #44] ; (8002cc8 <HAL_RCC_GetSysClockFreq+0x158>)
- 8002c9c: 685b ldr r3, [r3, #4]
- 8002c9e: 0c1b lsrs r3, r3, #16
- 8002ca0: f003 0303 and.w r3, r3, #3
- 8002ca4: 3301 adds r3, #1
- 8002ca6: 005b lsls r3, r3, #1
- 8002ca8: 603b str r3, [r7, #0]
+ 8002666: 4b0b ldr r3, [pc, #44] ; (8002694 <HAL_RCC_GetSysClockFreq+0x158>)
+ 8002668: 685b ldr r3, [r3, #4]
+ 800266a: 0c1b lsrs r3, r3, #16
+ 800266c: f003 0303 and.w r3, r3, #3
+ 8002670: 3301 adds r3, #1
+ 8002672: 005b lsls r3, r3, #1
+ 8002674: 603b str r3, [r7, #0]
sysclockfreq = pllvco/pllp;
- 8002caa: 68fa ldr r2, [r7, #12]
- 8002cac: 683b ldr r3, [r7, #0]
- 8002cae: fbb2 f3f3 udiv r3, r2, r3
- 8002cb2: 60bb str r3, [r7, #8]
+ 8002676: 68fa ldr r2, [r7, #12]
+ 8002678: 683b ldr r3, [r7, #0]
+ 800267a: fbb2 f3f3 udiv r3, r2, r3
+ 800267e: 60bb str r3, [r7, #8]
break;
- 8002cb4: e002 b.n 8002cbc <HAL_RCC_GetSysClockFreq+0x14c>
+ 8002680: e002 b.n 8002688 <HAL_RCC_GetSysClockFreq+0x14c>
}
default:
{
sysclockfreq = HSI_VALUE;
- 8002cb6: 4b05 ldr r3, [pc, #20] ; (8002ccc <HAL_RCC_GetSysClockFreq+0x15c>)
- 8002cb8: 60bb str r3, [r7, #8]
+ 8002682: 4b05 ldr r3, [pc, #20] ; (8002698 <HAL_RCC_GetSysClockFreq+0x15c>)
+ 8002684: 60bb str r3, [r7, #8]
break;
- 8002cba: bf00 nop
+ 8002686: bf00 nop
}
}
return sysclockfreq;
- 8002cbc: 68bb ldr r3, [r7, #8]
+ 8002688: 68bb ldr r3, [r7, #8]
}
- 8002cbe: 4618 mov r0, r3
- 8002cc0: 3714 adds r7, #20
- 8002cc2: 46bd mov sp, r7
- 8002cc4: bdf0 pop {r4, r5, r6, r7, pc}
- 8002cc6: bf00 nop
- 8002cc8: 40023800 .word 0x40023800
- 8002ccc: 00f42400 .word 0x00f42400
- 8002cd0: 017d7840 .word 0x017d7840
-
-08002cd4 <HAL_RCC_GetHCLKFreq>:
+ 800268a: 4618 mov r0, r3
+ 800268c: 3714 adds r7, #20
+ 800268e: 46bd mov sp, r7
+ 8002690: bdf0 pop {r4, r5, r6, r7, pc}
+ 8002692: bf00 nop
+ 8002694: 40023800 .word 0x40023800
+ 8002698: 00f42400 .word 0x00f42400
+ 800269c: 017d7840 .word 0x017d7840
+
+080026a0 <HAL_RCC_GetHCLKFreq>:
* right HCLK value. Otherwise, any configuration based on this function will be incorrect.
* @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency.
* @retval HCLK frequency
*/
uint32_t HAL_RCC_GetHCLKFreq(void)
{
- 8002cd4: b480 push {r7}
- 8002cd6: af00 add r7, sp, #0
+ 80026a0: b480 push {r7}
+ 80026a2: af00 add r7, sp, #0
return SystemCoreClock;
- 8002cd8: 4b03 ldr r3, [pc, #12] ; (8002ce8 <HAL_RCC_GetHCLKFreq+0x14>)
- 8002cda: 681b ldr r3, [r3, #0]
+ 80026a4: 4b03 ldr r3, [pc, #12] ; (80026b4 <HAL_RCC_GetHCLKFreq+0x14>)
+ 80026a6: 681b ldr r3, [r3, #0]
}
- 8002cdc: 4618 mov r0, r3
- 8002cde: 46bd mov sp, r7
- 8002ce0: f85d 7b04 ldr.w r7, [sp], #4
- 8002ce4: 4770 bx lr
- 8002ce6: bf00 nop
- 8002ce8: 20000000 .word 0x20000000
-
-08002cec <HAL_RCC_GetPCLK1Freq>:
+ 80026a8: 4618 mov r0, r3
+ 80026aa: 46bd mov sp, r7
+ 80026ac: f85d 7b04 ldr.w r7, [sp], #4
+ 80026b0: 4770 bx lr
+ 80026b2: bf00 nop
+ 80026b4: 20000004 .word 0x20000004
+
+080026b8 <HAL_RCC_GetPCLK1Freq>:
* @note Each time PCLK1 changes, this function must be called to update the
* right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
* @retval PCLK1 frequency
*/
uint32_t HAL_RCC_GetPCLK1Freq(void)
{
- 8002cec: b580 push {r7, lr}
- 8002cee: af00 add r7, sp, #0
+ 80026b8: b580 push {r7, lr}
+ 80026ba: af00 add r7, sp, #0
/* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1)>> RCC_CFGR_PPRE1_Pos]);
- 8002cf0: f7ff fff0 bl 8002cd4 <HAL_RCC_GetHCLKFreq>
- 8002cf4: 4601 mov r1, r0
- 8002cf6: 4b05 ldr r3, [pc, #20] ; (8002d0c <HAL_RCC_GetPCLK1Freq+0x20>)
- 8002cf8: 689b ldr r3, [r3, #8]
- 8002cfa: 0a9b lsrs r3, r3, #10
- 8002cfc: f003 0307 and.w r3, r3, #7
- 8002d00: 4a03 ldr r2, [pc, #12] ; (8002d10 <HAL_RCC_GetPCLK1Freq+0x24>)
- 8002d02: 5cd3 ldrb r3, [r2, r3]
- 8002d04: fa21 f303 lsr.w r3, r1, r3
+ 80026bc: f7ff fff0 bl 80026a0 <HAL_RCC_GetHCLKFreq>
+ 80026c0: 4601 mov r1, r0
+ 80026c2: 4b05 ldr r3, [pc, #20] ; (80026d8 <HAL_RCC_GetPCLK1Freq+0x20>)
+ 80026c4: 689b ldr r3, [r3, #8]
+ 80026c6: 0a9b lsrs r3, r3, #10
+ 80026c8: f003 0307 and.w r3, r3, #7
+ 80026cc: 4a03 ldr r2, [pc, #12] ; (80026dc <HAL_RCC_GetPCLK1Freq+0x24>)
+ 80026ce: 5cd3 ldrb r3, [r2, r3]
+ 80026d0: fa21 f303 lsr.w r3, r1, r3
}
- 8002d08: 4618 mov r0, r3
- 8002d0a: bd80 pop {r7, pc}
- 8002d0c: 40023800 .word 0x40023800
- 8002d10: 08005268 .word 0x08005268
+ 80026d4: 4618 mov r0, r3
+ 80026d6: bd80 pop {r7, pc}
+ 80026d8: 40023800 .word 0x40023800
+ 80026dc: 08004ec4 .word 0x08004ec4
-08002d14 <HAL_RCC_GetPCLK2Freq>:
+080026e0 <HAL_RCC_GetPCLK2Freq>:
* @note Each time PCLK2 changes, this function must be called to update the
* right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
* @retval PCLK2 frequency
*/
uint32_t HAL_RCC_GetPCLK2Freq(void)
{
- 8002d14: b580 push {r7, lr}
- 8002d16: af00 add r7, sp, #0
+ 80026e0: b580 push {r7, lr}
+ 80026e2: af00 add r7, sp, #0
/* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> RCC_CFGR_PPRE2_Pos]);
- 8002d18: f7ff ffdc bl 8002cd4 <HAL_RCC_GetHCLKFreq>
- 8002d1c: 4601 mov r1, r0
- 8002d1e: 4b05 ldr r3, [pc, #20] ; (8002d34 <HAL_RCC_GetPCLK2Freq+0x20>)
- 8002d20: 689b ldr r3, [r3, #8]
- 8002d22: 0b5b lsrs r3, r3, #13
- 8002d24: f003 0307 and.w r3, r3, #7
- 8002d28: 4a03 ldr r2, [pc, #12] ; (8002d38 <HAL_RCC_GetPCLK2Freq+0x24>)
- 8002d2a: 5cd3 ldrb r3, [r2, r3]
- 8002d2c: fa21 f303 lsr.w r3, r1, r3
+ 80026e4: f7ff ffdc bl 80026a0 <HAL_RCC_GetHCLKFreq>
+ 80026e8: 4601 mov r1, r0
+ 80026ea: 4b05 ldr r3, [pc, #20] ; (8002700 <HAL_RCC_GetPCLK2Freq+0x20>)
+ 80026ec: 689b ldr r3, [r3, #8]
+ 80026ee: 0b5b lsrs r3, r3, #13
+ 80026f0: f003 0307 and.w r3, r3, #7
+ 80026f4: 4a03 ldr r2, [pc, #12] ; (8002704 <HAL_RCC_GetPCLK2Freq+0x24>)
+ 80026f6: 5cd3 ldrb r3, [r2, r3]
+ 80026f8: fa21 f303 lsr.w r3, r1, r3
}
- 8002d30: 4618 mov r0, r3
- 8002d32: bd80 pop {r7, pc}
- 8002d34: 40023800 .word 0x40023800
- 8002d38: 08005268 .word 0x08005268
+ 80026fc: 4618 mov r0, r3
+ 80026fe: bd80 pop {r7, pc}
+ 8002700: 40023800 .word 0x40023800
+ 8002704: 08004ec4 .word 0x08004ec4
-08002d3c <HAL_RCCEx_PeriphCLKConfig>:
+08002708 <HAL_RCCEx_PeriphCLKConfig>:
* the backup registers) are set to their reset values.
*
* @retval HAL status
*/
HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
{
- 8002d3c: b580 push {r7, lr}
- 8002d3e: b088 sub sp, #32
- 8002d40: af00 add r7, sp, #0
- 8002d42: 6078 str r0, [r7, #4]
+ 8002708: b580 push {r7, lr}
+ 800270a: b088 sub sp, #32
+ 800270c: af00 add r7, sp, #0
+ 800270e: 6078 str r0, [r7, #4]
uint32_t tickstart = 0;
- 8002d44: 2300 movs r3, #0
- 8002d46: 617b str r3, [r7, #20]
+ 8002710: 2300 movs r3, #0
+ 8002712: 617b str r3, [r7, #20]
uint32_t tmpreg0 = 0;
- 8002d48: 2300 movs r3, #0
- 8002d4a: 613b str r3, [r7, #16]
+ 8002714: 2300 movs r3, #0
+ 8002716: 613b str r3, [r7, #16]
uint32_t tmpreg1 = 0;
- 8002d4c: 2300 movs r3, #0
- 8002d4e: 60fb str r3, [r7, #12]
+ 8002718: 2300 movs r3, #0
+ 800271a: 60fb str r3, [r7, #12]
uint32_t plli2sused = 0;
- 8002d50: 2300 movs r3, #0
- 8002d52: 61fb str r3, [r7, #28]
+ 800271c: 2300 movs r3, #0
+ 800271e: 61fb str r3, [r7, #28]
uint32_t pllsaiused = 0;
- 8002d54: 2300 movs r3, #0
- 8002d56: 61bb str r3, [r7, #24]
+ 8002720: 2300 movs r3, #0
+ 8002722: 61bb str r3, [r7, #24]
/* Check the parameters */
assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection));
/*----------------------------------- I2S configuration ----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S))
- 8002d58: 687b ldr r3, [r7, #4]
- 8002d5a: 681b ldr r3, [r3, #0]
- 8002d5c: f003 0301 and.w r3, r3, #1
- 8002d60: 2b00 cmp r3, #0
- 8002d62: d012 beq.n 8002d8a <HAL_RCCEx_PeriphCLKConfig+0x4e>
+ 8002724: 687b ldr r3, [r7, #4]
+ 8002726: 681b ldr r3, [r3, #0]
+ 8002728: f003 0301 and.w r3, r3, #1
+ 800272c: 2b00 cmp r3, #0
+ 800272e: d012 beq.n 8002756 <HAL_RCCEx_PeriphCLKConfig+0x4e>
{
/* Check the parameters */
assert_param(IS_RCC_I2SCLKSOURCE(PeriphClkInit->I2sClockSelection));
/* Configure I2S Clock source */
__HAL_RCC_I2S_CONFIG(PeriphClkInit->I2sClockSelection);
- 8002d64: 4b69 ldr r3, [pc, #420] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002d66: 689b ldr r3, [r3, #8]
- 8002d68: 4a68 ldr r2, [pc, #416] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002d6a: f423 0300 bic.w r3, r3, #8388608 ; 0x800000
- 8002d6e: 6093 str r3, [r2, #8]
- 8002d70: 4b66 ldr r3, [pc, #408] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002d72: 689a ldr r2, [r3, #8]
- 8002d74: 687b ldr r3, [r7, #4]
- 8002d76: 6b5b ldr r3, [r3, #52] ; 0x34
- 8002d78: 4964 ldr r1, [pc, #400] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002d7a: 4313 orrs r3, r2
- 8002d7c: 608b str r3, [r1, #8]
+ 8002730: 4b69 ldr r3, [pc, #420] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002732: 689b ldr r3, [r3, #8]
+ 8002734: 4a68 ldr r2, [pc, #416] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002736: f423 0300 bic.w r3, r3, #8388608 ; 0x800000
+ 800273a: 6093 str r3, [r2, #8]
+ 800273c: 4b66 ldr r3, [pc, #408] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 800273e: 689a ldr r2, [r3, #8]
+ 8002740: 687b ldr r3, [r7, #4]
+ 8002742: 6b5b ldr r3, [r3, #52] ; 0x34
+ 8002744: 4964 ldr r1, [pc, #400] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002746: 4313 orrs r3, r2
+ 8002748: 608b str r3, [r1, #8]
/* Enable the PLLI2S when it's used as clock source for I2S */
if(PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S)
- 8002d7e: 687b ldr r3, [r7, #4]
- 8002d80: 6b5b ldr r3, [r3, #52] ; 0x34
- 8002d82: 2b00 cmp r3, #0
- 8002d84: d101 bne.n 8002d8a <HAL_RCCEx_PeriphCLKConfig+0x4e>
+ 800274a: 687b ldr r3, [r7, #4]
+ 800274c: 6b5b ldr r3, [r3, #52] ; 0x34
+ 800274e: 2b00 cmp r3, #0
+ 8002750: d101 bne.n 8002756 <HAL_RCCEx_PeriphCLKConfig+0x4e>
{
plli2sused = 1;
- 8002d86: 2301 movs r3, #1
- 8002d88: 61fb str r3, [r7, #28]
+ 8002752: 2301 movs r3, #1
+ 8002754: 61fb str r3, [r7, #28]
}
}
/*------------------------------------ SAI1 configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1))
- 8002d8a: 687b ldr r3, [r7, #4]
- 8002d8c: 681b ldr r3, [r3, #0]
- 8002d8e: f403 2300 and.w r3, r3, #524288 ; 0x80000
- 8002d92: 2b00 cmp r3, #0
- 8002d94: d017 beq.n 8002dc6 <HAL_RCCEx_PeriphCLKConfig+0x8a>
+ 8002756: 687b ldr r3, [r7, #4]
+ 8002758: 681b ldr r3, [r3, #0]
+ 800275a: f403 2300 and.w r3, r3, #524288 ; 0x80000
+ 800275e: 2b00 cmp r3, #0
+ 8002760: d017 beq.n 8002792 <HAL_RCCEx_PeriphCLKConfig+0x8a>
{
/* Check the parameters */
assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection));
/* Configure SAI1 Clock source */
__HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
- 8002d96: 4b5d ldr r3, [pc, #372] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002d98: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8002d9c: f423 1240 bic.w r2, r3, #3145728 ; 0x300000
- 8002da0: 687b ldr r3, [r7, #4]
- 8002da2: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8002da4: 4959 ldr r1, [pc, #356] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002da6: 4313 orrs r3, r2
- 8002da8: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 8002762: 4b5d ldr r3, [pc, #372] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002764: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002768: f423 1240 bic.w r2, r3, #3145728 ; 0x300000
+ 800276c: 687b ldr r3, [r7, #4]
+ 800276e: 6bdb ldr r3, [r3, #60] ; 0x3c
+ 8002770: 4959 ldr r1, [pc, #356] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002772: 4313 orrs r3, r2
+ 8002774: f8c1 308c str.w r3, [r1, #140] ; 0x8c
/* Enable the PLLI2S when it's used as clock source for SAI */
if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)
- 8002dac: 687b ldr r3, [r7, #4]
- 8002dae: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8002db0: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000
- 8002db4: d101 bne.n 8002dba <HAL_RCCEx_PeriphCLKConfig+0x7e>
+ 8002778: 687b ldr r3, [r7, #4]
+ 800277a: 6bdb ldr r3, [r3, #60] ; 0x3c
+ 800277c: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000
+ 8002780: d101 bne.n 8002786 <HAL_RCCEx_PeriphCLKConfig+0x7e>
{
plli2sused = 1;
- 8002db6: 2301 movs r3, #1
- 8002db8: 61fb str r3, [r7, #28]
+ 8002782: 2301 movs r3, #1
+ 8002784: 61fb str r3, [r7, #28]
}
/* Enable the PLLSAI when it's used as clock source for SAI */
if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)
- 8002dba: 687b ldr r3, [r7, #4]
- 8002dbc: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8002dbe: 2b00 cmp r3, #0
- 8002dc0: d101 bne.n 8002dc6 <HAL_RCCEx_PeriphCLKConfig+0x8a>
+ 8002786: 687b ldr r3, [r7, #4]
+ 8002788: 6bdb ldr r3, [r3, #60] ; 0x3c
+ 800278a: 2b00 cmp r3, #0
+ 800278c: d101 bne.n 8002792 <HAL_RCCEx_PeriphCLKConfig+0x8a>
{
pllsaiused = 1;
- 8002dc2: 2301 movs r3, #1
- 8002dc4: 61bb str r3, [r7, #24]
+ 800278e: 2301 movs r3, #1
+ 8002790: 61bb str r3, [r7, #24]
}
}
/*------------------------------------ SAI2 configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2))
- 8002dc6: 687b ldr r3, [r7, #4]
- 8002dc8: 681b ldr r3, [r3, #0]
- 8002dca: f403 1380 and.w r3, r3, #1048576 ; 0x100000
- 8002dce: 2b00 cmp r3, #0
- 8002dd0: d017 beq.n 8002e02 <HAL_RCCEx_PeriphCLKConfig+0xc6>
+ 8002792: 687b ldr r3, [r7, #4]
+ 8002794: 681b ldr r3, [r3, #0]
+ 8002796: f403 1380 and.w r3, r3, #1048576 ; 0x100000
+ 800279a: 2b00 cmp r3, #0
+ 800279c: d017 beq.n 80027ce <HAL_RCCEx_PeriphCLKConfig+0xc6>
{
/* Check the parameters */
assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection));
/* Configure SAI2 Clock source */
__HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection);
- 8002dd2: 4b4e ldr r3, [pc, #312] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002dd4: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8002dd8: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000
- 8002ddc: 687b ldr r3, [r7, #4]
- 8002dde: 6c1b ldr r3, [r3, #64] ; 0x40
- 8002de0: 494a ldr r1, [pc, #296] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002de2: 4313 orrs r3, r2
- 8002de4: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 800279e: 4b4e ldr r3, [pc, #312] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80027a0: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 80027a4: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000
+ 80027a8: 687b ldr r3, [r7, #4]
+ 80027aa: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80027ac: 494a ldr r1, [pc, #296] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80027ae: 4313 orrs r3, r2
+ 80027b0: f8c1 308c str.w r3, [r1, #140] ; 0x8c
/* Enable the PLLI2S when it's used as clock source for SAI */
if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S)
- 8002de8: 687b ldr r3, [r7, #4]
- 8002dea: 6c1b ldr r3, [r3, #64] ; 0x40
- 8002dec: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000
- 8002df0: d101 bne.n 8002df6 <HAL_RCCEx_PeriphCLKConfig+0xba>
+ 80027b4: 687b ldr r3, [r7, #4]
+ 80027b6: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80027b8: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000
+ 80027bc: d101 bne.n 80027c2 <HAL_RCCEx_PeriphCLKConfig+0xba>
{
plli2sused = 1;
- 8002df2: 2301 movs r3, #1
- 8002df4: 61fb str r3, [r7, #28]
+ 80027be: 2301 movs r3, #1
+ 80027c0: 61fb str r3, [r7, #28]
}
/* Enable the PLLSAI when it's used as clock source for SAI */
if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI)
- 8002df6: 687b ldr r3, [r7, #4]
- 8002df8: 6c1b ldr r3, [r3, #64] ; 0x40
- 8002dfa: 2b00 cmp r3, #0
- 8002dfc: d101 bne.n 8002e02 <HAL_RCCEx_PeriphCLKConfig+0xc6>
+ 80027c2: 687b ldr r3, [r7, #4]
+ 80027c4: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80027c6: 2b00 cmp r3, #0
+ 80027c8: d101 bne.n 80027ce <HAL_RCCEx_PeriphCLKConfig+0xc6>
{
pllsaiused = 1;
- 8002dfe: 2301 movs r3, #1
- 8002e00: 61bb str r3, [r7, #24]
+ 80027ca: 2301 movs r3, #1
+ 80027cc: 61bb str r3, [r7, #24]
}
}
/*-------------------------------------- SPDIF-RX Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
- 8002e02: 687b ldr r3, [r7, #4]
- 8002e04: 681b ldr r3, [r3, #0]
- 8002e06: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
- 8002e0a: 2b00 cmp r3, #0
- 8002e0c: d001 beq.n 8002e12 <HAL_RCCEx_PeriphCLKConfig+0xd6>
+ 80027ce: 687b ldr r3, [r7, #4]
+ 80027d0: 681b ldr r3, [r3, #0]
+ 80027d2: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
+ 80027d6: 2b00 cmp r3, #0
+ 80027d8: d001 beq.n 80027de <HAL_RCCEx_PeriphCLKConfig+0xd6>
{
plli2sused = 1;
- 8002e0e: 2301 movs r3, #1
- 8002e10: 61fb str r3, [r7, #28]
+ 80027da: 2301 movs r3, #1
+ 80027dc: 61fb str r3, [r7, #28]
}
/*------------------------------------ RTC configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC))
- 8002e12: 687b ldr r3, [r7, #4]
- 8002e14: 681b ldr r3, [r3, #0]
- 8002e16: f003 0320 and.w r3, r3, #32
- 8002e1a: 2b00 cmp r3, #0
- 8002e1c: f000 808b beq.w 8002f36 <HAL_RCCEx_PeriphCLKConfig+0x1fa>
+ 80027de: 687b ldr r3, [r7, #4]
+ 80027e0: 681b ldr r3, [r3, #0]
+ 80027e2: f003 0320 and.w r3, r3, #32
+ 80027e6: 2b00 cmp r3, #0
+ 80027e8: f000 808b beq.w 8002902 <HAL_RCCEx_PeriphCLKConfig+0x1fa>
{
/* Check for RTC Parameters used to output RTCCLK */
assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
/* Enable Power Clock*/
__HAL_RCC_PWR_CLK_ENABLE();
- 8002e20: 4b3a ldr r3, [pc, #232] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e22: 6c1b ldr r3, [r3, #64] ; 0x40
- 8002e24: 4a39 ldr r2, [pc, #228] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e26: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 8002e2a: 6413 str r3, [r2, #64] ; 0x40
- 8002e2c: 4b37 ldr r3, [pc, #220] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e2e: 6c1b ldr r3, [r3, #64] ; 0x40
- 8002e30: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 8002e34: 60bb str r3, [r7, #8]
- 8002e36: 68bb ldr r3, [r7, #8]
+ 80027ec: 4b3a ldr r3, [pc, #232] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80027ee: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80027f0: 4a39 ldr r2, [pc, #228] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80027f2: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
+ 80027f6: 6413 str r3, [r2, #64] ; 0x40
+ 80027f8: 4b37 ldr r3, [pc, #220] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80027fa: 6c1b ldr r3, [r3, #64] ; 0x40
+ 80027fc: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 8002800: 60bb str r3, [r7, #8]
+ 8002802: 68bb ldr r3, [r7, #8]
/* Enable write access to Backup domain */
PWR->CR1 |= PWR_CR1_DBP;
- 8002e38: 4b35 ldr r3, [pc, #212] ; (8002f10 <HAL_RCCEx_PeriphCLKConfig+0x1d4>)
- 8002e3a: 681b ldr r3, [r3, #0]
- 8002e3c: 4a34 ldr r2, [pc, #208] ; (8002f10 <HAL_RCCEx_PeriphCLKConfig+0x1d4>)
- 8002e3e: f443 7380 orr.w r3, r3, #256 ; 0x100
- 8002e42: 6013 str r3, [r2, #0]
+ 8002804: 4b35 ldr r3, [pc, #212] ; (80028dc <HAL_RCCEx_PeriphCLKConfig+0x1d4>)
+ 8002806: 681b ldr r3, [r3, #0]
+ 8002808: 4a34 ldr r2, [pc, #208] ; (80028dc <HAL_RCCEx_PeriphCLKConfig+0x1d4>)
+ 800280a: f443 7380 orr.w r3, r3, #256 ; 0x100
+ 800280e: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002e44: f7fe fd4e bl 80018e4 <HAL_GetTick>
- 8002e48: 6178 str r0, [r7, #20]
+ 8002810: f7ff f836 bl 8001880 <HAL_GetTick>
+ 8002814: 6178 str r0, [r7, #20]
/* Wait for Backup domain Write protection disable */
while((PWR->CR1 & PWR_CR1_DBP) == RESET)
- 8002e4a: e008 b.n 8002e5e <HAL_RCCEx_PeriphCLKConfig+0x122>
+ 8002816: e008 b.n 800282a <HAL_RCCEx_PeriphCLKConfig+0x122>
{
if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
- 8002e4c: f7fe fd4a bl 80018e4 <HAL_GetTick>
- 8002e50: 4602 mov r2, r0
- 8002e52: 697b ldr r3, [r7, #20]
- 8002e54: 1ad3 subs r3, r2, r3
- 8002e56: 2b64 cmp r3, #100 ; 0x64
- 8002e58: d901 bls.n 8002e5e <HAL_RCCEx_PeriphCLKConfig+0x122>
+ 8002818: f7ff f832 bl 8001880 <HAL_GetTick>
+ 800281c: 4602 mov r2, r0
+ 800281e: 697b ldr r3, [r7, #20]
+ 8002820: 1ad3 subs r3, r2, r3
+ 8002822: 2b64 cmp r3, #100 ; 0x64
+ 8002824: d901 bls.n 800282a <HAL_RCCEx_PeriphCLKConfig+0x122>
{
return HAL_TIMEOUT;
- 8002e5a: 2303 movs r3, #3
- 8002e5c: e38d b.n 800357a <HAL_RCCEx_PeriphCLKConfig+0x83e>
+ 8002826: 2303 movs r3, #3
+ 8002828: e38d b.n 8002f46 <HAL_RCCEx_PeriphCLKConfig+0x83e>
while((PWR->CR1 & PWR_CR1_DBP) == RESET)
- 8002e5e: 4b2c ldr r3, [pc, #176] ; (8002f10 <HAL_RCCEx_PeriphCLKConfig+0x1d4>)
- 8002e60: 681b ldr r3, [r3, #0]
- 8002e62: f403 7380 and.w r3, r3, #256 ; 0x100
- 8002e66: 2b00 cmp r3, #0
- 8002e68: d0f0 beq.n 8002e4c <HAL_RCCEx_PeriphCLKConfig+0x110>
+ 800282a: 4b2c ldr r3, [pc, #176] ; (80028dc <HAL_RCCEx_PeriphCLKConfig+0x1d4>)
+ 800282c: 681b ldr r3, [r3, #0]
+ 800282e: f403 7380 and.w r3, r3, #256 ; 0x100
+ 8002832: 2b00 cmp r3, #0
+ 8002834: d0f0 beq.n 8002818 <HAL_RCCEx_PeriphCLKConfig+0x110>
}
}
/* Reset the Backup domain only if the RTC Clock source selection is modified */
tmpreg0 = (RCC->BDCR & RCC_BDCR_RTCSEL);
- 8002e6a: 4b28 ldr r3, [pc, #160] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e6c: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002e6e: f403 7340 and.w r3, r3, #768 ; 0x300
- 8002e72: 613b str r3, [r7, #16]
+ 8002836: 4b28 ldr r3, [pc, #160] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002838: 6f1b ldr r3, [r3, #112] ; 0x70
+ 800283a: f403 7340 and.w r3, r3, #768 ; 0x300
+ 800283e: 613b str r3, [r7, #16]
if((tmpreg0 != 0x00000000U) && (tmpreg0 != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
- 8002e74: 693b ldr r3, [r7, #16]
- 8002e76: 2b00 cmp r3, #0
- 8002e78: d035 beq.n 8002ee6 <HAL_RCCEx_PeriphCLKConfig+0x1aa>
- 8002e7a: 687b ldr r3, [r7, #4]
- 8002e7c: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002e7e: f403 7340 and.w r3, r3, #768 ; 0x300
- 8002e82: 693a ldr r2, [r7, #16]
- 8002e84: 429a cmp r2, r3
- 8002e86: d02e beq.n 8002ee6 <HAL_RCCEx_PeriphCLKConfig+0x1aa>
+ 8002840: 693b ldr r3, [r7, #16]
+ 8002842: 2b00 cmp r3, #0
+ 8002844: d035 beq.n 80028b2 <HAL_RCCEx_PeriphCLKConfig+0x1aa>
+ 8002846: 687b ldr r3, [r7, #4]
+ 8002848: 6b1b ldr r3, [r3, #48] ; 0x30
+ 800284a: f403 7340 and.w r3, r3, #768 ; 0x300
+ 800284e: 693a ldr r2, [r7, #16]
+ 8002850: 429a cmp r2, r3
+ 8002852: d02e beq.n 80028b2 <HAL_RCCEx_PeriphCLKConfig+0x1aa>
{
/* Store the content of BDCR register before the reset of Backup Domain */
tmpreg0 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
- 8002e88: 4b20 ldr r3, [pc, #128] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e8a: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002e8c: f423 7340 bic.w r3, r3, #768 ; 0x300
- 8002e90: 613b str r3, [r7, #16]
+ 8002854: 4b20 ldr r3, [pc, #128] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002856: 6f1b ldr r3, [r3, #112] ; 0x70
+ 8002858: f423 7340 bic.w r3, r3, #768 ; 0x300
+ 800285c: 613b str r3, [r7, #16]
/* RTC Clock selection can be changed only if the Backup Domain is reset */
__HAL_RCC_BACKUPRESET_FORCE();
- 8002e92: 4b1e ldr r3, [pc, #120] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e94: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002e96: 4a1d ldr r2, [pc, #116] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002e98: f443 3380 orr.w r3, r3, #65536 ; 0x10000
- 8002e9c: 6713 str r3, [r2, #112] ; 0x70
+ 800285e: 4b1e ldr r3, [pc, #120] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002860: 6f1b ldr r3, [r3, #112] ; 0x70
+ 8002862: 4a1d ldr r2, [pc, #116] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002864: f443 3380 orr.w r3, r3, #65536 ; 0x10000
+ 8002868: 6713 str r3, [r2, #112] ; 0x70
__HAL_RCC_BACKUPRESET_RELEASE();
- 8002e9e: 4b1b ldr r3, [pc, #108] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002ea0: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002ea2: 4a1a ldr r2, [pc, #104] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002ea4: f423 3380 bic.w r3, r3, #65536 ; 0x10000
- 8002ea8: 6713 str r3, [r2, #112] ; 0x70
+ 800286a: 4b1b ldr r3, [pc, #108] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 800286c: 6f1b ldr r3, [r3, #112] ; 0x70
+ 800286e: 4a1a ldr r2, [pc, #104] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002870: f423 3380 bic.w r3, r3, #65536 ; 0x10000
+ 8002874: 6713 str r3, [r2, #112] ; 0x70
/* Restore the Content of BDCR register */
RCC->BDCR = tmpreg0;
- 8002eaa: 4a18 ldr r2, [pc, #96] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002eac: 693b ldr r3, [r7, #16]
- 8002eae: 6713 str r3, [r2, #112] ; 0x70
+ 8002876: 4a18 ldr r2, [pc, #96] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 8002878: 693b ldr r3, [r7, #16]
+ 800287a: 6713 str r3, [r2, #112] ; 0x70
/* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */
if (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON))
- 8002eb0: 4b16 ldr r3, [pc, #88] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002eb2: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002eb4: f003 0301 and.w r3, r3, #1
- 8002eb8: 2b01 cmp r3, #1
- 8002eba: d114 bne.n 8002ee6 <HAL_RCCEx_PeriphCLKConfig+0x1aa>
+ 800287c: 4b16 ldr r3, [pc, #88] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 800287e: 6f1b ldr r3, [r3, #112] ; 0x70
+ 8002880: f003 0301 and.w r3, r3, #1
+ 8002884: 2b01 cmp r3, #1
+ 8002886: d114 bne.n 80028b2 <HAL_RCCEx_PeriphCLKConfig+0x1aa>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8002ebc: f7fe fd12 bl 80018e4 <HAL_GetTick>
- 8002ec0: 6178 str r0, [r7, #20]
+ 8002888: f7fe fffa bl 8001880 <HAL_GetTick>
+ 800288c: 6178 str r0, [r7, #20]
/* Wait till LSE is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
- 8002ec2: e00a b.n 8002eda <HAL_RCCEx_PeriphCLKConfig+0x19e>
+ 800288e: e00a b.n 80028a6 <HAL_RCCEx_PeriphCLKConfig+0x19e>
{
if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
- 8002ec4: f7fe fd0e bl 80018e4 <HAL_GetTick>
- 8002ec8: 4602 mov r2, r0
- 8002eca: 697b ldr r3, [r7, #20]
- 8002ecc: 1ad3 subs r3, r2, r3
- 8002ece: f241 3288 movw r2, #5000 ; 0x1388
- 8002ed2: 4293 cmp r3, r2
- 8002ed4: d901 bls.n 8002eda <HAL_RCCEx_PeriphCLKConfig+0x19e>
+ 8002890: f7fe fff6 bl 8001880 <HAL_GetTick>
+ 8002894: 4602 mov r2, r0
+ 8002896: 697b ldr r3, [r7, #20]
+ 8002898: 1ad3 subs r3, r2, r3
+ 800289a: f241 3288 movw r2, #5000 ; 0x1388
+ 800289e: 4293 cmp r3, r2
+ 80028a0: d901 bls.n 80028a6 <HAL_RCCEx_PeriphCLKConfig+0x19e>
{
return HAL_TIMEOUT;
- 8002ed6: 2303 movs r3, #3
- 8002ed8: e34f b.n 800357a <HAL_RCCEx_PeriphCLKConfig+0x83e>
+ 80028a2: 2303 movs r3, #3
+ 80028a4: e34f b.n 8002f46 <HAL_RCCEx_PeriphCLKConfig+0x83e>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
- 8002eda: 4b0c ldr r3, [pc, #48] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002edc: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002ede: f003 0302 and.w r3, r3, #2
- 8002ee2: 2b00 cmp r3, #0
- 8002ee4: d0ee beq.n 8002ec4 <HAL_RCCEx_PeriphCLKConfig+0x188>
+ 80028a6: 4b0c ldr r3, [pc, #48] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80028a8: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80028aa: f003 0302 and.w r3, r3, #2
+ 80028ae: 2b00 cmp r3, #0
+ 80028b0: d0ee beq.n 8002890 <HAL_RCCEx_PeriphCLKConfig+0x188>
}
}
}
}
__HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
- 8002ee6: 687b ldr r3, [r7, #4]
- 8002ee8: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002eea: f403 7340 and.w r3, r3, #768 ; 0x300
- 8002eee: f5b3 7f40 cmp.w r3, #768 ; 0x300
- 8002ef2: d111 bne.n 8002f18 <HAL_RCCEx_PeriphCLKConfig+0x1dc>
- 8002ef4: 4b05 ldr r3, [pc, #20] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002ef6: 689b ldr r3, [r3, #8]
- 8002ef8: f423 12f8 bic.w r2, r3, #2031616 ; 0x1f0000
- 8002efc: 687b ldr r3, [r7, #4]
- 8002efe: 6b19 ldr r1, [r3, #48] ; 0x30
- 8002f00: 4b04 ldr r3, [pc, #16] ; (8002f14 <HAL_RCCEx_PeriphCLKConfig+0x1d8>)
- 8002f02: 400b ands r3, r1
- 8002f04: 4901 ldr r1, [pc, #4] ; (8002f0c <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
- 8002f06: 4313 orrs r3, r2
- 8002f08: 608b str r3, [r1, #8]
- 8002f0a: e00b b.n 8002f24 <HAL_RCCEx_PeriphCLKConfig+0x1e8>
- 8002f0c: 40023800 .word 0x40023800
- 8002f10: 40007000 .word 0x40007000
- 8002f14: 0ffffcff .word 0x0ffffcff
- 8002f18: 4bb3 ldr r3, [pc, #716] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f1a: 689b ldr r3, [r3, #8]
- 8002f1c: 4ab2 ldr r2, [pc, #712] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f1e: f423 13f8 bic.w r3, r3, #2031616 ; 0x1f0000
- 8002f22: 6093 str r3, [r2, #8]
- 8002f24: 4bb0 ldr r3, [pc, #704] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f26: 6f1a ldr r2, [r3, #112] ; 0x70
- 8002f28: 687b ldr r3, [r7, #4]
- 8002f2a: 6b1b ldr r3, [r3, #48] ; 0x30
- 8002f2c: f3c3 030b ubfx r3, r3, #0, #12
- 8002f30: 49ad ldr r1, [pc, #692] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f32: 4313 orrs r3, r2
- 8002f34: 670b str r3, [r1, #112] ; 0x70
+ 80028b2: 687b ldr r3, [r7, #4]
+ 80028b4: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80028b6: f403 7340 and.w r3, r3, #768 ; 0x300
+ 80028ba: f5b3 7f40 cmp.w r3, #768 ; 0x300
+ 80028be: d111 bne.n 80028e4 <HAL_RCCEx_PeriphCLKConfig+0x1dc>
+ 80028c0: 4b05 ldr r3, [pc, #20] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80028c2: 689b ldr r3, [r3, #8]
+ 80028c4: f423 12f8 bic.w r2, r3, #2031616 ; 0x1f0000
+ 80028c8: 687b ldr r3, [r7, #4]
+ 80028ca: 6b19 ldr r1, [r3, #48] ; 0x30
+ 80028cc: 4b04 ldr r3, [pc, #16] ; (80028e0 <HAL_RCCEx_PeriphCLKConfig+0x1d8>)
+ 80028ce: 400b ands r3, r1
+ 80028d0: 4901 ldr r1, [pc, #4] ; (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x1d0>)
+ 80028d2: 4313 orrs r3, r2
+ 80028d4: 608b str r3, [r1, #8]
+ 80028d6: e00b b.n 80028f0 <HAL_RCCEx_PeriphCLKConfig+0x1e8>
+ 80028d8: 40023800 .word 0x40023800
+ 80028dc: 40007000 .word 0x40007000
+ 80028e0: 0ffffcff .word 0x0ffffcff
+ 80028e4: 4bb3 ldr r3, [pc, #716] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80028e6: 689b ldr r3, [r3, #8]
+ 80028e8: 4ab2 ldr r2, [pc, #712] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80028ea: f423 13f8 bic.w r3, r3, #2031616 ; 0x1f0000
+ 80028ee: 6093 str r3, [r2, #8]
+ 80028f0: 4bb0 ldr r3, [pc, #704] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80028f2: 6f1a ldr r2, [r3, #112] ; 0x70
+ 80028f4: 687b ldr r3, [r7, #4]
+ 80028f6: 6b1b ldr r3, [r3, #48] ; 0x30
+ 80028f8: f3c3 030b ubfx r3, r3, #0, #12
+ 80028fc: 49ad ldr r1, [pc, #692] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80028fe: 4313 orrs r3, r2
+ 8002900: 670b str r3, [r1, #112] ; 0x70
}
/*------------------------------------ TIM configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM))
- 8002f36: 687b ldr r3, [r7, #4]
- 8002f38: 681b ldr r3, [r3, #0]
- 8002f3a: f003 0310 and.w r3, r3, #16
- 8002f3e: 2b00 cmp r3, #0
- 8002f40: d010 beq.n 8002f64 <HAL_RCCEx_PeriphCLKConfig+0x228>
+ 8002902: 687b ldr r3, [r7, #4]
+ 8002904: 681b ldr r3, [r3, #0]
+ 8002906: f003 0310 and.w r3, r3, #16
+ 800290a: 2b00 cmp r3, #0
+ 800290c: d010 beq.n 8002930 <HAL_RCCEx_PeriphCLKConfig+0x228>
{
/* Check the parameters */
assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
/* Configure Timer Prescaler */
__HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
- 8002f42: 4ba9 ldr r3, [pc, #676] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f44: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8002f48: 4aa7 ldr r2, [pc, #668] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f4a: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000
- 8002f4e: f8c2 308c str.w r3, [r2, #140] ; 0x8c
- 8002f52: 4ba5 ldr r3, [pc, #660] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f54: f8d3 208c ldr.w r2, [r3, #140] ; 0x8c
- 8002f58: 687b ldr r3, [r7, #4]
- 8002f5a: 6b9b ldr r3, [r3, #56] ; 0x38
- 8002f5c: 49a2 ldr r1, [pc, #648] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f5e: 4313 orrs r3, r2
- 8002f60: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 800290e: 4ba9 ldr r3, [pc, #676] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002910: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002914: 4aa7 ldr r2, [pc, #668] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002916: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000
+ 800291a: f8c2 308c str.w r3, [r2, #140] ; 0x8c
+ 800291e: 4ba5 ldr r3, [pc, #660] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002920: f8d3 208c ldr.w r2, [r3, #140] ; 0x8c
+ 8002924: 687b ldr r3, [r7, #4]
+ 8002926: 6b9b ldr r3, [r3, #56] ; 0x38
+ 8002928: 49a2 ldr r1, [pc, #648] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 800292a: 4313 orrs r3, r2
+ 800292c: f8c1 308c str.w r3, [r1, #140] ; 0x8c
}
/*-------------------------------------- I2C1 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1)
- 8002f64: 687b ldr r3, [r7, #4]
- 8002f66: 681b ldr r3, [r3, #0]
- 8002f68: f403 4380 and.w r3, r3, #16384 ; 0x4000
- 8002f6c: 2b00 cmp r3, #0
- 8002f6e: d00a beq.n 8002f86 <HAL_RCCEx_PeriphCLKConfig+0x24a>
+ 8002930: 687b ldr r3, [r7, #4]
+ 8002932: 681b ldr r3, [r3, #0]
+ 8002934: f403 4380 and.w r3, r3, #16384 ; 0x4000
+ 8002938: 2b00 cmp r3, #0
+ 800293a: d00a beq.n 8002952 <HAL_RCCEx_PeriphCLKConfig+0x24a>
{
/* Check the parameters */
assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection));
/* Configure the I2C1 clock source */
__HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection);
- 8002f70: 4b9d ldr r3, [pc, #628] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f72: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8002f76: f423 3240 bic.w r2, r3, #196608 ; 0x30000
- 8002f7a: 687b ldr r3, [r7, #4]
- 8002f7c: 6e5b ldr r3, [r3, #100] ; 0x64
- 8002f7e: 499a ldr r1, [pc, #616] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f80: 4313 orrs r3, r2
- 8002f82: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 800293c: 4b9d ldr r3, [pc, #628] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 800293e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002942: f423 3240 bic.w r2, r3, #196608 ; 0x30000
+ 8002946: 687b ldr r3, [r7, #4]
+ 8002948: 6e5b ldr r3, [r3, #100] ; 0x64
+ 800294a: 499a ldr r1, [pc, #616] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 800294c: 4313 orrs r3, r2
+ 800294e: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- I2C2 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C2) == RCC_PERIPHCLK_I2C2)
- 8002f86: 687b ldr r3, [r7, #4]
- 8002f88: 681b ldr r3, [r3, #0]
- 8002f8a: f403 4300 and.w r3, r3, #32768 ; 0x8000
- 8002f8e: 2b00 cmp r3, #0
- 8002f90: d00a beq.n 8002fa8 <HAL_RCCEx_PeriphCLKConfig+0x26c>
+ 8002952: 687b ldr r3, [r7, #4]
+ 8002954: 681b ldr r3, [r3, #0]
+ 8002956: f403 4300 and.w r3, r3, #32768 ; 0x8000
+ 800295a: 2b00 cmp r3, #0
+ 800295c: d00a beq.n 8002974 <HAL_RCCEx_PeriphCLKConfig+0x26c>
{
/* Check the parameters */
assert_param(IS_RCC_I2C2CLKSOURCE(PeriphClkInit->I2c2ClockSelection));
/* Configure the I2C2 clock source */
__HAL_RCC_I2C2_CONFIG(PeriphClkInit->I2c2ClockSelection);
- 8002f92: 4b95 ldr r3, [pc, #596] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002f94: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8002f98: f423 2240 bic.w r2, r3, #786432 ; 0xc0000
- 8002f9c: 687b ldr r3, [r7, #4]
- 8002f9e: 6e9b ldr r3, [r3, #104] ; 0x68
- 8002fa0: 4991 ldr r1, [pc, #580] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002fa2: 4313 orrs r3, r2
- 8002fa4: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 800295e: 4b95 ldr r3, [pc, #596] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002960: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002964: f423 2240 bic.w r2, r3, #786432 ; 0xc0000
+ 8002968: 687b ldr r3, [r7, #4]
+ 800296a: 6e9b ldr r3, [r3, #104] ; 0x68
+ 800296c: 4991 ldr r1, [pc, #580] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 800296e: 4313 orrs r3, r2
+ 8002970: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- I2C3 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C3) == RCC_PERIPHCLK_I2C3)
- 8002fa8: 687b ldr r3, [r7, #4]
- 8002faa: 681b ldr r3, [r3, #0]
- 8002fac: f403 3380 and.w r3, r3, #65536 ; 0x10000
- 8002fb0: 2b00 cmp r3, #0
- 8002fb2: d00a beq.n 8002fca <HAL_RCCEx_PeriphCLKConfig+0x28e>
+ 8002974: 687b ldr r3, [r7, #4]
+ 8002976: 681b ldr r3, [r3, #0]
+ 8002978: f403 3380 and.w r3, r3, #65536 ; 0x10000
+ 800297c: 2b00 cmp r3, #0
+ 800297e: d00a beq.n 8002996 <HAL_RCCEx_PeriphCLKConfig+0x28e>
{
/* Check the parameters */
assert_param(IS_RCC_I2C3CLKSOURCE(PeriphClkInit->I2c3ClockSelection));
/* Configure the I2C3 clock source */
__HAL_RCC_I2C3_CONFIG(PeriphClkInit->I2c3ClockSelection);
- 8002fb4: 4b8c ldr r3, [pc, #560] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002fb6: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8002fba: f423 1240 bic.w r2, r3, #3145728 ; 0x300000
- 8002fbe: 687b ldr r3, [r7, #4]
- 8002fc0: 6edb ldr r3, [r3, #108] ; 0x6c
- 8002fc2: 4989 ldr r1, [pc, #548] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002fc4: 4313 orrs r3, r2
- 8002fc6: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002980: 4b8c ldr r3, [pc, #560] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002982: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002986: f423 1240 bic.w r2, r3, #3145728 ; 0x300000
+ 800298a: 687b ldr r3, [r7, #4]
+ 800298c: 6edb ldr r3, [r3, #108] ; 0x6c
+ 800298e: 4989 ldr r1, [pc, #548] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002990: 4313 orrs r3, r2
+ 8002992: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- I2C4 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
- 8002fca: 687b ldr r3, [r7, #4]
- 8002fcc: 681b ldr r3, [r3, #0]
- 8002fce: f403 3300 and.w r3, r3, #131072 ; 0x20000
- 8002fd2: 2b00 cmp r3, #0
- 8002fd4: d00a beq.n 8002fec <HAL_RCCEx_PeriphCLKConfig+0x2b0>
+ 8002996: 687b ldr r3, [r7, #4]
+ 8002998: 681b ldr r3, [r3, #0]
+ 800299a: f403 3300 and.w r3, r3, #131072 ; 0x20000
+ 800299e: 2b00 cmp r3, #0
+ 80029a0: d00a beq.n 80029b8 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
{
/* Check the parameters */
assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
/* Configure the I2C4 clock source */
__HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
- 8002fd6: 4b84 ldr r3, [pc, #528] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002fd8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8002fdc: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000
- 8002fe0: 687b ldr r3, [r7, #4]
- 8002fe2: 6f1b ldr r3, [r3, #112] ; 0x70
- 8002fe4: 4980 ldr r1, [pc, #512] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002fe6: 4313 orrs r3, r2
- 8002fe8: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 80029a2: 4b84 ldr r3, [pc, #528] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80029a4: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 80029a8: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000
+ 80029ac: 687b ldr r3, [r7, #4]
+ 80029ae: 6f1b ldr r3, [r3, #112] ; 0x70
+ 80029b0: 4980 ldr r1, [pc, #512] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80029b2: 4313 orrs r3, r2
+ 80029b4: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- USART1 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1)
- 8002fec: 687b ldr r3, [r7, #4]
- 8002fee: 681b ldr r3, [r3, #0]
- 8002ff0: f003 0340 and.w r3, r3, #64 ; 0x40
- 8002ff4: 2b00 cmp r3, #0
- 8002ff6: d00a beq.n 800300e <HAL_RCCEx_PeriphCLKConfig+0x2d2>
+ 80029b8: 687b ldr r3, [r7, #4]
+ 80029ba: 681b ldr r3, [r3, #0]
+ 80029bc: f003 0340 and.w r3, r3, #64 ; 0x40
+ 80029c0: 2b00 cmp r3, #0
+ 80029c2: d00a beq.n 80029da <HAL_RCCEx_PeriphCLKConfig+0x2d2>
{
/* Check the parameters */
assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection));
/* Configure the USART1 clock source */
__HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection);
- 8002ff8: 4b7b ldr r3, [pc, #492] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8002ffa: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8002ffe: f023 0203 bic.w r2, r3, #3
- 8003002: 687b ldr r3, [r7, #4]
- 8003004: 6c5b ldr r3, [r3, #68] ; 0x44
- 8003006: 4978 ldr r1, [pc, #480] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8003008: 4313 orrs r3, r2
- 800300a: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 80029c4: 4b7b ldr r3, [pc, #492] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80029c6: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 80029ca: f023 0203 bic.w r2, r3, #3
+ 80029ce: 687b ldr r3, [r7, #4]
+ 80029d0: 6c5b ldr r3, [r3, #68] ; 0x44
+ 80029d2: 4978 ldr r1, [pc, #480] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80029d4: 4313 orrs r3, r2
+ 80029d6: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- USART2 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2)
- 800300e: 687b ldr r3, [r7, #4]
- 8003010: 681b ldr r3, [r3, #0]
- 8003012: f003 0380 and.w r3, r3, #128 ; 0x80
- 8003016: 2b00 cmp r3, #0
- 8003018: d00a beq.n 8003030 <HAL_RCCEx_PeriphCLKConfig+0x2f4>
+ 80029da: 687b ldr r3, [r7, #4]
+ 80029dc: 681b ldr r3, [r3, #0]
+ 80029de: f003 0380 and.w r3, r3, #128 ; 0x80
+ 80029e2: 2b00 cmp r3, #0
+ 80029e4: d00a beq.n 80029fc <HAL_RCCEx_PeriphCLKConfig+0x2f4>
{
/* Check the parameters */
assert_param(IS_RCC_USART2CLKSOURCE(PeriphClkInit->Usart2ClockSelection));
/* Configure the USART2 clock source */
__HAL_RCC_USART2_CONFIG(PeriphClkInit->Usart2ClockSelection);
- 800301a: 4b73 ldr r3, [pc, #460] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800301c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003020: f023 020c bic.w r2, r3, #12
- 8003024: 687b ldr r3, [r7, #4]
- 8003026: 6c9b ldr r3, [r3, #72] ; 0x48
- 8003028: 496f ldr r1, [pc, #444] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800302a: 4313 orrs r3, r2
- 800302c: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 80029e6: 4b73 ldr r3, [pc, #460] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80029e8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 80029ec: f023 020c bic.w r2, r3, #12
+ 80029f0: 687b ldr r3, [r7, #4]
+ 80029f2: 6c9b ldr r3, [r3, #72] ; 0x48
+ 80029f4: 496f ldr r1, [pc, #444] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 80029f6: 4313 orrs r3, r2
+ 80029f8: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- USART3 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART3) == RCC_PERIPHCLK_USART3)
- 8003030: 687b ldr r3, [r7, #4]
- 8003032: 681b ldr r3, [r3, #0]
- 8003034: f403 7380 and.w r3, r3, #256 ; 0x100
- 8003038: 2b00 cmp r3, #0
- 800303a: d00a beq.n 8003052 <HAL_RCCEx_PeriphCLKConfig+0x316>
+ 80029fc: 687b ldr r3, [r7, #4]
+ 80029fe: 681b ldr r3, [r3, #0]
+ 8002a00: f403 7380 and.w r3, r3, #256 ; 0x100
+ 8002a04: 2b00 cmp r3, #0
+ 8002a06: d00a beq.n 8002a1e <HAL_RCCEx_PeriphCLKConfig+0x316>
{
/* Check the parameters */
assert_param(IS_RCC_USART3CLKSOURCE(PeriphClkInit->Usart3ClockSelection));
/* Configure the USART3 clock source */
__HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection);
- 800303c: 4b6a ldr r3, [pc, #424] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800303e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003042: f023 0230 bic.w r2, r3, #48 ; 0x30
- 8003046: 687b ldr r3, [r7, #4]
- 8003048: 6cdb ldr r3, [r3, #76] ; 0x4c
- 800304a: 4967 ldr r1, [pc, #412] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800304c: 4313 orrs r3, r2
- 800304e: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002a08: 4b6a ldr r3, [pc, #424] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a0a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002a0e: f023 0230 bic.w r2, r3, #48 ; 0x30
+ 8002a12: 687b ldr r3, [r7, #4]
+ 8002a14: 6cdb ldr r3, [r3, #76] ; 0x4c
+ 8002a16: 4967 ldr r1, [pc, #412] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a18: 4313 orrs r3, r2
+ 8002a1a: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- UART4 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART4) == RCC_PERIPHCLK_UART4)
- 8003052: 687b ldr r3, [r7, #4]
- 8003054: 681b ldr r3, [r3, #0]
- 8003056: f403 7300 and.w r3, r3, #512 ; 0x200
- 800305a: 2b00 cmp r3, #0
- 800305c: d00a beq.n 8003074 <HAL_RCCEx_PeriphCLKConfig+0x338>
+ 8002a1e: 687b ldr r3, [r7, #4]
+ 8002a20: 681b ldr r3, [r3, #0]
+ 8002a22: f403 7300 and.w r3, r3, #512 ; 0x200
+ 8002a26: 2b00 cmp r3, #0
+ 8002a28: d00a beq.n 8002a40 <HAL_RCCEx_PeriphCLKConfig+0x338>
{
/* Check the parameters */
assert_param(IS_RCC_UART4CLKSOURCE(PeriphClkInit->Uart4ClockSelection));
/* Configure the UART4 clock source */
__HAL_RCC_UART4_CONFIG(PeriphClkInit->Uart4ClockSelection);
- 800305e: 4b62 ldr r3, [pc, #392] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8003060: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003064: f023 02c0 bic.w r2, r3, #192 ; 0xc0
- 8003068: 687b ldr r3, [r7, #4]
- 800306a: 6d1b ldr r3, [r3, #80] ; 0x50
- 800306c: 495e ldr r1, [pc, #376] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800306e: 4313 orrs r3, r2
- 8003070: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002a2a: 4b62 ldr r3, [pc, #392] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a2c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002a30: f023 02c0 bic.w r2, r3, #192 ; 0xc0
+ 8002a34: 687b ldr r3, [r7, #4]
+ 8002a36: 6d1b ldr r3, [r3, #80] ; 0x50
+ 8002a38: 495e ldr r1, [pc, #376] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a3a: 4313 orrs r3, r2
+ 8002a3c: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- UART5 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART5) == RCC_PERIPHCLK_UART5)
- 8003074: 687b ldr r3, [r7, #4]
- 8003076: 681b ldr r3, [r3, #0]
- 8003078: f403 6380 and.w r3, r3, #1024 ; 0x400
- 800307c: 2b00 cmp r3, #0
- 800307e: d00a beq.n 8003096 <HAL_RCCEx_PeriphCLKConfig+0x35a>
+ 8002a40: 687b ldr r3, [r7, #4]
+ 8002a42: 681b ldr r3, [r3, #0]
+ 8002a44: f403 6380 and.w r3, r3, #1024 ; 0x400
+ 8002a48: 2b00 cmp r3, #0
+ 8002a4a: d00a beq.n 8002a62 <HAL_RCCEx_PeriphCLKConfig+0x35a>
{
/* Check the parameters */
assert_param(IS_RCC_UART5CLKSOURCE(PeriphClkInit->Uart5ClockSelection));
/* Configure the UART5 clock source */
__HAL_RCC_UART5_CONFIG(PeriphClkInit->Uart5ClockSelection);
- 8003080: 4b59 ldr r3, [pc, #356] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8003082: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003086: f423 7240 bic.w r2, r3, #768 ; 0x300
- 800308a: 687b ldr r3, [r7, #4]
- 800308c: 6d5b ldr r3, [r3, #84] ; 0x54
- 800308e: 4956 ldr r1, [pc, #344] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8003090: 4313 orrs r3, r2
- 8003092: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002a4c: 4b59 ldr r3, [pc, #356] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a4e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002a52: f423 7240 bic.w r2, r3, #768 ; 0x300
+ 8002a56: 687b ldr r3, [r7, #4]
+ 8002a58: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8002a5a: 4956 ldr r1, [pc, #344] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a5c: 4313 orrs r3, r2
+ 8002a5e: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- USART6 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART6) == RCC_PERIPHCLK_USART6)
- 8003096: 687b ldr r3, [r7, #4]
- 8003098: 681b ldr r3, [r3, #0]
- 800309a: f403 6300 and.w r3, r3, #2048 ; 0x800
- 800309e: 2b00 cmp r3, #0
- 80030a0: d00a beq.n 80030b8 <HAL_RCCEx_PeriphCLKConfig+0x37c>
+ 8002a62: 687b ldr r3, [r7, #4]
+ 8002a64: 681b ldr r3, [r3, #0]
+ 8002a66: f403 6300 and.w r3, r3, #2048 ; 0x800
+ 8002a6a: 2b00 cmp r3, #0
+ 8002a6c: d00a beq.n 8002a84 <HAL_RCCEx_PeriphCLKConfig+0x37c>
{
/* Check the parameters */
assert_param(IS_RCC_USART6CLKSOURCE(PeriphClkInit->Usart6ClockSelection));
/* Configure the USART6 clock source */
__HAL_RCC_USART6_CONFIG(PeriphClkInit->Usart6ClockSelection);
- 80030a2: 4b51 ldr r3, [pc, #324] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80030a4: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 80030a8: f423 6240 bic.w r2, r3, #3072 ; 0xc00
- 80030ac: 687b ldr r3, [r7, #4]
- 80030ae: 6d9b ldr r3, [r3, #88] ; 0x58
- 80030b0: 494d ldr r1, [pc, #308] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80030b2: 4313 orrs r3, r2
- 80030b4: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002a6e: 4b51 ldr r3, [pc, #324] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a70: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002a74: f423 6240 bic.w r2, r3, #3072 ; 0xc00
+ 8002a78: 687b ldr r3, [r7, #4]
+ 8002a7a: 6d9b ldr r3, [r3, #88] ; 0x58
+ 8002a7c: 494d ldr r1, [pc, #308] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a7e: 4313 orrs r3, r2
+ 8002a80: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- UART7 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART7) == RCC_PERIPHCLK_UART7)
- 80030b8: 687b ldr r3, [r7, #4]
- 80030ba: 681b ldr r3, [r3, #0]
- 80030bc: f403 5380 and.w r3, r3, #4096 ; 0x1000
- 80030c0: 2b00 cmp r3, #0
- 80030c2: d00a beq.n 80030da <HAL_RCCEx_PeriphCLKConfig+0x39e>
+ 8002a84: 687b ldr r3, [r7, #4]
+ 8002a86: 681b ldr r3, [r3, #0]
+ 8002a88: f403 5380 and.w r3, r3, #4096 ; 0x1000
+ 8002a8c: 2b00 cmp r3, #0
+ 8002a8e: d00a beq.n 8002aa6 <HAL_RCCEx_PeriphCLKConfig+0x39e>
{
/* Check the parameters */
assert_param(IS_RCC_UART7CLKSOURCE(PeriphClkInit->Uart7ClockSelection));
/* Configure the UART7 clock source */
__HAL_RCC_UART7_CONFIG(PeriphClkInit->Uart7ClockSelection);
- 80030c4: 4b48 ldr r3, [pc, #288] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80030c6: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 80030ca: f423 5240 bic.w r2, r3, #12288 ; 0x3000
- 80030ce: 687b ldr r3, [r7, #4]
- 80030d0: 6ddb ldr r3, [r3, #92] ; 0x5c
- 80030d2: 4945 ldr r1, [pc, #276] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80030d4: 4313 orrs r3, r2
- 80030d6: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002a90: 4b48 ldr r3, [pc, #288] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002a92: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002a96: f423 5240 bic.w r2, r3, #12288 ; 0x3000
+ 8002a9a: 687b ldr r3, [r7, #4]
+ 8002a9c: 6ddb ldr r3, [r3, #92] ; 0x5c
+ 8002a9e: 4945 ldr r1, [pc, #276] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002aa0: 4313 orrs r3, r2
+ 8002aa2: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- UART8 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART8) == RCC_PERIPHCLK_UART8)
- 80030da: 687b ldr r3, [r7, #4]
- 80030dc: 681b ldr r3, [r3, #0]
- 80030de: f403 5300 and.w r3, r3, #8192 ; 0x2000
- 80030e2: 2b00 cmp r3, #0
- 80030e4: d00a beq.n 80030fc <HAL_RCCEx_PeriphCLKConfig+0x3c0>
+ 8002aa6: 687b ldr r3, [r7, #4]
+ 8002aa8: 681b ldr r3, [r3, #0]
+ 8002aaa: f403 5300 and.w r3, r3, #8192 ; 0x2000
+ 8002aae: 2b00 cmp r3, #0
+ 8002ab0: d00a beq.n 8002ac8 <HAL_RCCEx_PeriphCLKConfig+0x3c0>
{
/* Check the parameters */
assert_param(IS_RCC_UART8CLKSOURCE(PeriphClkInit->Uart8ClockSelection));
/* Configure the UART8 clock source */
__HAL_RCC_UART8_CONFIG(PeriphClkInit->Uart8ClockSelection);
- 80030e6: 4b40 ldr r3, [pc, #256] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80030e8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 80030ec: f423 4240 bic.w r2, r3, #49152 ; 0xc000
- 80030f0: 687b ldr r3, [r7, #4]
- 80030f2: 6e1b ldr r3, [r3, #96] ; 0x60
- 80030f4: 493c ldr r1, [pc, #240] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80030f6: 4313 orrs r3, r2
- 80030f8: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002ab2: 4b40 ldr r3, [pc, #256] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002ab4: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002ab8: f423 4240 bic.w r2, r3, #49152 ; 0xc000
+ 8002abc: 687b ldr r3, [r7, #4]
+ 8002abe: 6e1b ldr r3, [r3, #96] ; 0x60
+ 8002ac0: 493c ldr r1, [pc, #240] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002ac2: 4313 orrs r3, r2
+ 8002ac4: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*--------------------------------------- CEC Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
- 80030fc: 687b ldr r3, [r7, #4]
- 80030fe: 681b ldr r3, [r3, #0]
- 8003100: f403 0380 and.w r3, r3, #4194304 ; 0x400000
- 8003104: 2b00 cmp r3, #0
- 8003106: d00a beq.n 800311e <HAL_RCCEx_PeriphCLKConfig+0x3e2>
+ 8002ac8: 687b ldr r3, [r7, #4]
+ 8002aca: 681b ldr r3, [r3, #0]
+ 8002acc: f403 0380 and.w r3, r3, #4194304 ; 0x400000
+ 8002ad0: 2b00 cmp r3, #0
+ 8002ad2: d00a beq.n 8002aea <HAL_RCCEx_PeriphCLKConfig+0x3e2>
{
/* Check the parameters */
assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
/* Configure the CEC clock source */
__HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
- 8003108: 4b37 ldr r3, [pc, #220] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800310a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 800310e: f023 6280 bic.w r2, r3, #67108864 ; 0x4000000
- 8003112: 687b ldr r3, [r7, #4]
- 8003114: 6f9b ldr r3, [r3, #120] ; 0x78
- 8003116: 4934 ldr r1, [pc, #208] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 8003118: 4313 orrs r3, r2
- 800311a: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002ad4: 4b37 ldr r3, [pc, #220] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002ad6: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002ada: f023 6280 bic.w r2, r3, #67108864 ; 0x4000000
+ 8002ade: 687b ldr r3, [r7, #4]
+ 8002ae0: 6f9b ldr r3, [r3, #120] ; 0x78
+ 8002ae2: 4934 ldr r1, [pc, #208] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002ae4: 4313 orrs r3, r2
+ 8002ae6: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*-------------------------------------- CK48 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48)
- 800311e: 687b ldr r3, [r7, #4]
- 8003120: 681b ldr r3, [r3, #0]
- 8003122: f403 1300 and.w r3, r3, #2097152 ; 0x200000
- 8003126: 2b00 cmp r3, #0
- 8003128: d011 beq.n 800314e <HAL_RCCEx_PeriphCLKConfig+0x412>
+ 8002aea: 687b ldr r3, [r7, #4]
+ 8002aec: 681b ldr r3, [r3, #0]
+ 8002aee: f403 1300 and.w r3, r3, #2097152 ; 0x200000
+ 8002af2: 2b00 cmp r3, #0
+ 8002af4: d011 beq.n 8002b1a <HAL_RCCEx_PeriphCLKConfig+0x412>
{
/* Check the parameters */
assert_param(IS_RCC_CLK48SOURCE(PeriphClkInit->Clk48ClockSelection));
/* Configure the CLK48 source */
__HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection);
- 800312a: 4b2f ldr r3, [pc, #188] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800312c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003130: f023 6200 bic.w r2, r3, #134217728 ; 0x8000000
- 8003134: 687b ldr r3, [r7, #4]
- 8003136: 6fdb ldr r3, [r3, #124] ; 0x7c
- 8003138: 492b ldr r1, [pc, #172] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800313a: 4313 orrs r3, r2
- 800313c: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002af6: 4b2f ldr r3, [pc, #188] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002af8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002afc: f023 6200 bic.w r2, r3, #134217728 ; 0x8000000
+ 8002b00: 687b ldr r3, [r7, #4]
+ 8002b02: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 8002b04: 492b ldr r1, [pc, #172] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b06: 4313 orrs r3, r2
+ 8002b08: f8c1 3090 str.w r3, [r1, #144] ; 0x90
/* Enable the PLLSAI when it's used as clock source for CK48 */
if(PeriphClkInit->Clk48ClockSelection == RCC_CLK48SOURCE_PLLSAIP)
- 8003140: 687b ldr r3, [r7, #4]
- 8003142: 6fdb ldr r3, [r3, #124] ; 0x7c
- 8003144: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000
- 8003148: d101 bne.n 800314e <HAL_RCCEx_PeriphCLKConfig+0x412>
+ 8002b0c: 687b ldr r3, [r7, #4]
+ 8002b0e: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 8002b10: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000
+ 8002b14: d101 bne.n 8002b1a <HAL_RCCEx_PeriphCLKConfig+0x412>
{
pllsaiused = 1;
- 800314a: 2301 movs r3, #1
- 800314c: 61bb str r3, [r7, #24]
+ 8002b16: 2301 movs r3, #1
+ 8002b18: 61bb str r3, [r7, #24]
}
}
/*-------------------------------------- LTDC Configuration -----------------------------------*/
#if defined(STM32F746xx) || defined(STM32F756xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx) || defined (STM32F750xx)
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC)
- 800314e: 687b ldr r3, [r7, #4]
- 8003150: 681b ldr r3, [r3, #0]
- 8003152: f003 0308 and.w r3, r3, #8
- 8003156: 2b00 cmp r3, #0
- 8003158: d001 beq.n 800315e <HAL_RCCEx_PeriphCLKConfig+0x422>
+ 8002b1a: 687b ldr r3, [r7, #4]
+ 8002b1c: 681b ldr r3, [r3, #0]
+ 8002b1e: f003 0308 and.w r3, r3, #8
+ 8002b22: 2b00 cmp r3, #0
+ 8002b24: d001 beq.n 8002b2a <HAL_RCCEx_PeriphCLKConfig+0x422>
{
pllsaiused = 1;
- 800315a: 2301 movs r3, #1
- 800315c: 61bb str r3, [r7, #24]
+ 8002b26: 2301 movs r3, #1
+ 8002b28: 61bb str r3, [r7, #24]
}
#endif /* STM32F746xx || STM32F756xx || STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx || STM32F750xx */
/*-------------------------------------- LPTIM1 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
- 800315e: 687b ldr r3, [r7, #4]
- 8003160: 681b ldr r3, [r3, #0]
- 8003162: f403 2380 and.w r3, r3, #262144 ; 0x40000
- 8003166: 2b00 cmp r3, #0
- 8003168: d00a beq.n 8003180 <HAL_RCCEx_PeriphCLKConfig+0x444>
+ 8002b2a: 687b ldr r3, [r7, #4]
+ 8002b2c: 681b ldr r3, [r3, #0]
+ 8002b2e: f403 2380 and.w r3, r3, #262144 ; 0x40000
+ 8002b32: 2b00 cmp r3, #0
+ 8002b34: d00a beq.n 8002b4c <HAL_RCCEx_PeriphCLKConfig+0x444>
{
/* Check the parameters */
assert_param(IS_RCC_LPTIM1CLK(PeriphClkInit->Lptim1ClockSelection));
/* Configure the LTPIM1 clock source */
__HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
- 800316a: 4b1f ldr r3, [pc, #124] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800316c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003170: f023 7240 bic.w r2, r3, #50331648 ; 0x3000000
- 8003174: 687b ldr r3, [r7, #4]
- 8003176: 6f5b ldr r3, [r3, #116] ; 0x74
- 8003178: 491b ldr r1, [pc, #108] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800317a: 4313 orrs r3, r2
- 800317c: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002b36: 4b1f ldr r3, [pc, #124] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b38: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002b3c: f023 7240 bic.w r2, r3, #50331648 ; 0x3000000
+ 8002b40: 687b ldr r3, [r7, #4]
+ 8002b42: 6f5b ldr r3, [r3, #116] ; 0x74
+ 8002b44: 491b ldr r1, [pc, #108] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b46: 4313 orrs r3, r2
+ 8002b48: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*------------------------------------- SDMMC1 Configuration ------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC1) == RCC_PERIPHCLK_SDMMC1)
- 8003180: 687b ldr r3, [r7, #4]
- 8003182: 681b ldr r3, [r3, #0]
- 8003184: f403 0300 and.w r3, r3, #8388608 ; 0x800000
- 8003188: 2b00 cmp r3, #0
- 800318a: d00b beq.n 80031a4 <HAL_RCCEx_PeriphCLKConfig+0x468>
+ 8002b4c: 687b ldr r3, [r7, #4]
+ 8002b4e: 681b ldr r3, [r3, #0]
+ 8002b50: f403 0300 and.w r3, r3, #8388608 ; 0x800000
+ 8002b54: 2b00 cmp r3, #0
+ 8002b56: d00b beq.n 8002b70 <HAL_RCCEx_PeriphCLKConfig+0x468>
{
/* Check the parameters */
assert_param(IS_RCC_SDMMC1CLKSOURCE(PeriphClkInit->Sdmmc1ClockSelection));
/* Configure the SDMMC1 clock source */
__HAL_RCC_SDMMC1_CONFIG(PeriphClkInit->Sdmmc1ClockSelection);
- 800318c: 4b16 ldr r3, [pc, #88] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800318e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8003192: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000
- 8003196: 687b ldr r3, [r7, #4]
- 8003198: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80
- 800319c: 4912 ldr r1, [pc, #72] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 800319e: 4313 orrs r3, r2
- 80031a0: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002b58: 4b16 ldr r3, [pc, #88] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b5a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002b5e: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000
+ 8002b62: 687b ldr r3, [r7, #4]
+ 8002b64: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80
+ 8002b68: 4912 ldr r1, [pc, #72] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b6a: 4313 orrs r3, r2
+ 8002b6c: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
#if defined (STM32F765xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx)
/*------------------------------------- SDMMC2 Configuration ------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC2) == RCC_PERIPHCLK_SDMMC2)
- 80031a4: 687b ldr r3, [r7, #4]
- 80031a6: 681b ldr r3, [r3, #0]
- 80031a8: f003 6380 and.w r3, r3, #67108864 ; 0x4000000
- 80031ac: 2b00 cmp r3, #0
- 80031ae: d00b beq.n 80031c8 <HAL_RCCEx_PeriphCLKConfig+0x48c>
+ 8002b70: 687b ldr r3, [r7, #4]
+ 8002b72: 681b ldr r3, [r3, #0]
+ 8002b74: f003 6380 and.w r3, r3, #67108864 ; 0x4000000
+ 8002b78: 2b00 cmp r3, #0
+ 8002b7a: d00b beq.n 8002b94 <HAL_RCCEx_PeriphCLKConfig+0x48c>
{
/* Check the parameters */
assert_param(IS_RCC_SDMMC2CLKSOURCE(PeriphClkInit->Sdmmc2ClockSelection));
/* Configure the SDMMC2 clock source */
__HAL_RCC_SDMMC2_CONFIG(PeriphClkInit->Sdmmc2ClockSelection);
- 80031b0: 4b0d ldr r3, [pc, #52] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80031b2: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 80031b6: f023 5200 bic.w r2, r3, #536870912 ; 0x20000000
- 80031ba: 687b ldr r3, [r7, #4]
- 80031bc: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 80031c0: 4909 ldr r1, [pc, #36] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80031c2: 4313 orrs r3, r2
- 80031c4: f8c1 3090 str.w r3, [r1, #144] ; 0x90
+ 8002b7c: 4b0d ldr r3, [pc, #52] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b7e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8002b82: f023 5200 bic.w r2, r3, #536870912 ; 0x20000000
+ 8002b86: 687b ldr r3, [r7, #4]
+ 8002b88: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002b8c: 4909 ldr r1, [pc, #36] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002b8e: 4313 orrs r3, r2
+ 8002b90: f8c1 3090 str.w r3, [r1, #144] ; 0x90
}
/*------------------------------------- DFSDM1 Configuration -------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
- 80031c8: 687b ldr r3, [r7, #4]
- 80031ca: 681b ldr r3, [r3, #0]
- 80031cc: f003 6300 and.w r3, r3, #134217728 ; 0x8000000
- 80031d0: 2b00 cmp r3, #0
- 80031d2: d00f beq.n 80031f4 <HAL_RCCEx_PeriphCLKConfig+0x4b8>
+ 8002b94: 687b ldr r3, [r7, #4]
+ 8002b96: 681b ldr r3, [r3, #0]
+ 8002b98: f003 6300 and.w r3, r3, #134217728 ; 0x8000000
+ 8002b9c: 2b00 cmp r3, #0
+ 8002b9e: d00f beq.n 8002bc0 <HAL_RCCEx_PeriphCLKConfig+0x4b8>
{
/* Check the parameters */
assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
/* Configure the DFSDM1 interface clock source */
__HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
- 80031d4: 4b04 ldr r3, [pc, #16] ; (80031e8 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
- 80031d6: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 80031da: f023 7200 bic.w r2, r3, #33554432 ; 0x2000000
- 80031de: 687b ldr r3, [r7, #4]
- 80031e0: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 80031e4: e002 b.n 80031ec <HAL_RCCEx_PeriphCLKConfig+0x4b0>
- 80031e6: bf00 nop
- 80031e8: 40023800 .word 0x40023800
- 80031ec: 4985 ldr r1, [pc, #532] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80031ee: 4313 orrs r3, r2
- 80031f0: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 8002ba0: 4b04 ldr r3, [pc, #16] ; (8002bb4 <HAL_RCCEx_PeriphCLKConfig+0x4ac>)
+ 8002ba2: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002ba6: f023 7200 bic.w r2, r3, #33554432 ; 0x2000000
+ 8002baa: 687b ldr r3, [r7, #4]
+ 8002bac: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002bb0: e002 b.n 8002bb8 <HAL_RCCEx_PeriphCLKConfig+0x4b0>
+ 8002bb2: bf00 nop
+ 8002bb4: 40023800 .word 0x40023800
+ 8002bb8: 4985 ldr r1, [pc, #532] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002bba: 4313 orrs r3, r2
+ 8002bbc: f8c1 308c str.w r3, [r1, #140] ; 0x8c
}
/*------------------------------------- DFSDM AUDIO Configuration -------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1_AUDIO) == RCC_PERIPHCLK_DFSDM1_AUDIO)
- 80031f4: 687b ldr r3, [r7, #4]
- 80031f6: 681b ldr r3, [r3, #0]
- 80031f8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
- 80031fc: 2b00 cmp r3, #0
- 80031fe: d00b beq.n 8003218 <HAL_RCCEx_PeriphCLKConfig+0x4dc>
+ 8002bc0: 687b ldr r3, [r7, #4]
+ 8002bc2: 681b ldr r3, [r3, #0]
+ 8002bc4: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
+ 8002bc8: 2b00 cmp r3, #0
+ 8002bca: d00b beq.n 8002be4 <HAL_RCCEx_PeriphCLKConfig+0x4dc>
{
/* Check the parameters */
assert_param(IS_RCC_DFSDM1AUDIOCLKSOURCE(PeriphClkInit->Dfsdm1AudioClockSelection));
/* Configure the DFSDM interface clock source */
__HAL_RCC_DFSDM1AUDIO_CONFIG(PeriphClkInit->Dfsdm1AudioClockSelection);
- 8003200: 4b80 ldr r3, [pc, #512] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003202: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8003206: f023 6280 bic.w r2, r3, #67108864 ; 0x4000000
- 800320a: 687b ldr r3, [r7, #4]
- 800320c: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8003210: 497c ldr r1, [pc, #496] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003212: 4313 orrs r3, r2
- 8003214: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 8002bcc: 4b80 ldr r3, [pc, #512] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002bce: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002bd2: f023 6280 bic.w r2, r3, #67108864 ; 0x4000000
+ 8002bd6: 687b ldr r3, [r7, #4]
+ 8002bd8: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002bdc: 497c ldr r1, [pc, #496] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002bde: 4313 orrs r3, r2
+ 8002be0: f8c1 308c str.w r3, [r1, #140] ; 0x8c
}
#endif /* STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx */
/*-------------------------------------- PLLI2S Configuration ---------------------------------*/
/* PLLI2S is configured when a peripheral will use it as source clock : SAI1, SAI2, I2S or SPDIF-RX */
if((plli2sused == 1) || (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S))
- 8003218: 69fb ldr r3, [r7, #28]
- 800321a: 2b01 cmp r3, #1
- 800321c: d005 beq.n 800322a <HAL_RCCEx_PeriphCLKConfig+0x4ee>
- 800321e: 687b ldr r3, [r7, #4]
- 8003220: 681b ldr r3, [r3, #0]
- 8003222: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000
- 8003226: f040 80d6 bne.w 80033d6 <HAL_RCCEx_PeriphCLKConfig+0x69a>
+ 8002be4: 69fb ldr r3, [r7, #28]
+ 8002be6: 2b01 cmp r3, #1
+ 8002be8: d005 beq.n 8002bf6 <HAL_RCCEx_PeriphCLKConfig+0x4ee>
+ 8002bea: 687b ldr r3, [r7, #4]
+ 8002bec: 681b ldr r3, [r3, #0]
+ 8002bee: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000
+ 8002bf2: f040 80d6 bne.w 8002da2 <HAL_RCCEx_PeriphCLKConfig+0x69a>
{
/* Disable the PLLI2S */
__HAL_RCC_PLLI2S_DISABLE();
- 800322a: 4b76 ldr r3, [pc, #472] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 800322c: 681b ldr r3, [r3, #0]
- 800322e: 4a75 ldr r2, [pc, #468] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003230: f023 6380 bic.w r3, r3, #67108864 ; 0x4000000
- 8003234: 6013 str r3, [r2, #0]
+ 8002bf6: 4b76 ldr r3, [pc, #472] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002bf8: 681b ldr r3, [r3, #0]
+ 8002bfa: 4a75 ldr r2, [pc, #468] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002bfc: f023 6380 bic.w r3, r3, #67108864 ; 0x4000000
+ 8002c00: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8003236: f7fe fb55 bl 80018e4 <HAL_GetTick>
- 800323a: 6178 str r0, [r7, #20]
+ 8002c02: f7fe fe3d bl 8001880 <HAL_GetTick>
+ 8002c06: 6178 str r0, [r7, #20]
/* Wait till PLLI2S is disabled */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET)
- 800323c: e008 b.n 8003250 <HAL_RCCEx_PeriphCLKConfig+0x514>
+ 8002c08: e008 b.n 8002c1c <HAL_RCCEx_PeriphCLKConfig+0x514>
{
if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE)
- 800323e: f7fe fb51 bl 80018e4 <HAL_GetTick>
- 8003242: 4602 mov r2, r0
- 8003244: 697b ldr r3, [r7, #20]
- 8003246: 1ad3 subs r3, r2, r3
- 8003248: 2b64 cmp r3, #100 ; 0x64
- 800324a: d901 bls.n 8003250 <HAL_RCCEx_PeriphCLKConfig+0x514>
+ 8002c0a: f7fe fe39 bl 8001880 <HAL_GetTick>
+ 8002c0e: 4602 mov r2, r0
+ 8002c10: 697b ldr r3, [r7, #20]
+ 8002c12: 1ad3 subs r3, r2, r3
+ 8002c14: 2b64 cmp r3, #100 ; 0x64
+ 8002c16: d901 bls.n 8002c1c <HAL_RCCEx_PeriphCLKConfig+0x514>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
- 800324c: 2303 movs r3, #3
- 800324e: e194 b.n 800357a <HAL_RCCEx_PeriphCLKConfig+0x83e>
+ 8002c18: 2303 movs r3, #3
+ 8002c1a: e194 b.n 8002f46 <HAL_RCCEx_PeriphCLKConfig+0x83e>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET)
- 8003250: 4b6c ldr r3, [pc, #432] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003252: 681b ldr r3, [r3, #0]
- 8003254: f003 6300 and.w r3, r3, #134217728 ; 0x8000000
- 8003258: 2b00 cmp r3, #0
- 800325a: d1f0 bne.n 800323e <HAL_RCCEx_PeriphCLKConfig+0x502>
+ 8002c1c: 4b6c ldr r3, [pc, #432] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002c1e: 681b ldr r3, [r3, #0]
+ 8002c20: f003 6300 and.w r3, r3, #134217728 ; 0x8000000
+ 8002c24: 2b00 cmp r3, #0
+ 8002c26: d1f0 bne.n 8002c0a <HAL_RCCEx_PeriphCLKConfig+0x502>
/* check for common PLLI2S Parameters */
assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN));
/*----------------- In Case of PLLI2S is selected as source clock for I2S -------------------*/
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) && (PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S)))
- 800325c: 687b ldr r3, [r7, #4]
- 800325e: 681b ldr r3, [r3, #0]
- 8003260: f003 0301 and.w r3, r3, #1
- 8003264: 2b00 cmp r3, #0
- 8003266: d021 beq.n 80032ac <HAL_RCCEx_PeriphCLKConfig+0x570>
- 8003268: 687b ldr r3, [r7, #4]
- 800326a: 6b5b ldr r3, [r3, #52] ; 0x34
- 800326c: 2b00 cmp r3, #0
- 800326e: d11d bne.n 80032ac <HAL_RCCEx_PeriphCLKConfig+0x570>
+ 8002c28: 687b ldr r3, [r7, #4]
+ 8002c2a: 681b ldr r3, [r3, #0]
+ 8002c2c: f003 0301 and.w r3, r3, #1
+ 8002c30: 2b00 cmp r3, #0
+ 8002c32: d021 beq.n 8002c78 <HAL_RCCEx_PeriphCLKConfig+0x570>
+ 8002c34: 687b ldr r3, [r7, #4]
+ 8002c36: 6b5b ldr r3, [r3, #52] ; 0x34
+ 8002c38: 2b00 cmp r3, #0
+ 8002c3a: d11d bne.n 8002c78 <HAL_RCCEx_PeriphCLKConfig+0x570>
{
/* check for Parameters */
assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR));
/* Read PLLI2SP and PLLI2SQ value from PLLI2SCFGR register (this value is not needed for I2S configuration) */
tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos);
- 8003270: 4b64 ldr r3, [pc, #400] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003272: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 8003276: 0c1b lsrs r3, r3, #16
- 8003278: f003 0303 and.w r3, r3, #3
- 800327c: 613b str r3, [r7, #16]
+ 8002c3c: 4b64 ldr r3, [pc, #400] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002c3e: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002c42: 0c1b lsrs r3, r3, #16
+ 8002c44: f003 0303 and.w r3, r3, #3
+ 8002c48: 613b str r3, [r7, #16]
tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos);
- 800327e: 4b61 ldr r3, [pc, #388] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003280: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 8003284: 0e1b lsrs r3, r3, #24
- 8003286: f003 030f and.w r3, r3, #15
- 800328a: 60fb str r3, [r7, #12]
+ 8002c4a: 4b61 ldr r3, [pc, #388] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002c4c: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002c50: 0e1b lsrs r3, r3, #24
+ 8002c52: f003 030f and.w r3, r3, #15
+ 8002c56: 60fb str r3, [r7, #12]
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLM) */
/* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , tmpreg0, tmpreg1, PeriphClkInit->PLLI2S.PLLI2SR);
- 800328c: 687b ldr r3, [r7, #4]
- 800328e: 685b ldr r3, [r3, #4]
- 8003290: 019a lsls r2, r3, #6
- 8003292: 693b ldr r3, [r7, #16]
- 8003294: 041b lsls r3, r3, #16
- 8003296: 431a orrs r2, r3
- 8003298: 68fb ldr r3, [r7, #12]
- 800329a: 061b lsls r3, r3, #24
- 800329c: 431a orrs r2, r3
- 800329e: 687b ldr r3, [r7, #4]
- 80032a0: 689b ldr r3, [r3, #8]
- 80032a2: 071b lsls r3, r3, #28
- 80032a4: 4957 ldr r1, [pc, #348] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80032a6: 4313 orrs r3, r2
- 80032a8: f8c1 3084 str.w r3, [r1, #132] ; 0x84
+ 8002c58: 687b ldr r3, [r7, #4]
+ 8002c5a: 685b ldr r3, [r3, #4]
+ 8002c5c: 019a lsls r2, r3, #6
+ 8002c5e: 693b ldr r3, [r7, #16]
+ 8002c60: 041b lsls r3, r3, #16
+ 8002c62: 431a orrs r2, r3
+ 8002c64: 68fb ldr r3, [r7, #12]
+ 8002c66: 061b lsls r3, r3, #24
+ 8002c68: 431a orrs r2, r3
+ 8002c6a: 687b ldr r3, [r7, #4]
+ 8002c6c: 689b ldr r3, [r3, #8]
+ 8002c6e: 071b lsls r3, r3, #28
+ 8002c70: 4957 ldr r1, [pc, #348] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002c72: 4313 orrs r3, r2
+ 8002c74: f8c1 3084 str.w r3, [r1, #132] ; 0x84
}
/*----------------- In Case of PLLI2S is selected as source clock for SAI -------------------*/
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) ||
- 80032ac: 687b ldr r3, [r7, #4]
- 80032ae: 681b ldr r3, [r3, #0]
- 80032b0: f403 2300 and.w r3, r3, #524288 ; 0x80000
- 80032b4: 2b00 cmp r3, #0
- 80032b6: d004 beq.n 80032c2 <HAL_RCCEx_PeriphCLKConfig+0x586>
- 80032b8: 687b ldr r3, [r7, #4]
- 80032ba: 6bdb ldr r3, [r3, #60] ; 0x3c
- 80032bc: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000
- 80032c0: d00a beq.n 80032d8 <HAL_RCCEx_PeriphCLKConfig+0x59c>
+ 8002c78: 687b ldr r3, [r7, #4]
+ 8002c7a: 681b ldr r3, [r3, #0]
+ 8002c7c: f403 2300 and.w r3, r3, #524288 ; 0x80000
+ 8002c80: 2b00 cmp r3, #0
+ 8002c82: d004 beq.n 8002c8e <HAL_RCCEx_PeriphCLKConfig+0x586>
+ 8002c84: 687b ldr r3, [r7, #4]
+ 8002c86: 6bdb ldr r3, [r3, #60] ; 0x3c
+ 8002c88: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000
+ 8002c8c: d00a beq.n 8002ca4 <HAL_RCCEx_PeriphCLKConfig+0x59c>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S)))
- 80032c2: 687b ldr r3, [r7, #4]
- 80032c4: 681b ldr r3, [r3, #0]
- 80032c6: f403 1380 and.w r3, r3, #1048576 ; 0x100000
+ 8002c8e: 687b ldr r3, [r7, #4]
+ 8002c90: 681b ldr r3, [r3, #0]
+ 8002c92: f403 1380 and.w r3, r3, #1048576 ; 0x100000
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) ||
- 80032ca: 2b00 cmp r3, #0
- 80032cc: d02e beq.n 800332c <HAL_RCCEx_PeriphCLKConfig+0x5f0>
+ 8002c96: 2b00 cmp r3, #0
+ 8002c98: d02e beq.n 8002cf8 <HAL_RCCEx_PeriphCLKConfig+0x5f0>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S)))
- 80032ce: 687b ldr r3, [r7, #4]
- 80032d0: 6c1b ldr r3, [r3, #64] ; 0x40
- 80032d2: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000
- 80032d6: d129 bne.n 800332c <HAL_RCCEx_PeriphCLKConfig+0x5f0>
+ 8002c9a: 687b ldr r3, [r7, #4]
+ 8002c9c: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8002c9e: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000
+ 8002ca2: d129 bne.n 8002cf8 <HAL_RCCEx_PeriphCLKConfig+0x5f0>
assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ));
/* Check for PLLI2S/DIVQ parameters */
assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ));
/* Read PLLI2SP and PLLI2SR values from PLLI2SCFGR register (this value is not needed for SAI configuration) */
tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos);
- 80032d8: 4b4a ldr r3, [pc, #296] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80032da: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 80032de: 0c1b lsrs r3, r3, #16
- 80032e0: f003 0303 and.w r3, r3, #3
- 80032e4: 613b str r3, [r7, #16]
+ 8002ca4: 4b4a ldr r3, [pc, #296] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002ca6: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002caa: 0c1b lsrs r3, r3, #16
+ 8002cac: f003 0303 and.w r3, r3, #3
+ 8002cb0: 613b str r3, [r7, #16]
tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos);
- 80032e6: 4b47 ldr r3, [pc, #284] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80032e8: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 80032ec: 0f1b lsrs r3, r3, #28
- 80032ee: f003 0307 and.w r3, r3, #7
- 80032f2: 60fb str r3, [r7, #12]
+ 8002cb2: 4b47 ldr r3, [pc, #284] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002cb4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002cb8: 0f1b lsrs r3, r3, #28
+ 8002cba: f003 0307 and.w r3, r3, #7
+ 8002cbe: 60fb str r3, [r7, #12]
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO Input = PLL_SOURCE/PLLM */
/* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */
/* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, tmpreg0, PeriphClkInit->PLLI2S.PLLI2SQ, tmpreg1);
- 80032f4: 687b ldr r3, [r7, #4]
- 80032f6: 685b ldr r3, [r3, #4]
- 80032f8: 019a lsls r2, r3, #6
- 80032fa: 693b ldr r3, [r7, #16]
- 80032fc: 041b lsls r3, r3, #16
- 80032fe: 431a orrs r2, r3
- 8003300: 687b ldr r3, [r7, #4]
- 8003302: 68db ldr r3, [r3, #12]
- 8003304: 061b lsls r3, r3, #24
- 8003306: 431a orrs r2, r3
- 8003308: 68fb ldr r3, [r7, #12]
- 800330a: 071b lsls r3, r3, #28
- 800330c: 493d ldr r1, [pc, #244] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 800330e: 4313 orrs r3, r2
- 8003310: f8c1 3084 str.w r3, [r1, #132] ; 0x84
+ 8002cc0: 687b ldr r3, [r7, #4]
+ 8002cc2: 685b ldr r3, [r3, #4]
+ 8002cc4: 019a lsls r2, r3, #6
+ 8002cc6: 693b ldr r3, [r7, #16]
+ 8002cc8: 041b lsls r3, r3, #16
+ 8002cca: 431a orrs r2, r3
+ 8002ccc: 687b ldr r3, [r7, #4]
+ 8002cce: 68db ldr r3, [r3, #12]
+ 8002cd0: 061b lsls r3, r3, #24
+ 8002cd2: 431a orrs r2, r3
+ 8002cd4: 68fb ldr r3, [r7, #12]
+ 8002cd6: 071b lsls r3, r3, #28
+ 8002cd8: 493d ldr r1, [pc, #244] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002cda: 4313 orrs r3, r2
+ 8002cdc: f8c1 3084 str.w r3, [r1, #132] ; 0x84
/* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */
__HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ);
- 8003314: 4b3b ldr r3, [pc, #236] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003316: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 800331a: f023 021f bic.w r2, r3, #31
- 800331e: 687b ldr r3, [r7, #4]
- 8003320: 6a5b ldr r3, [r3, #36] ; 0x24
- 8003322: 3b01 subs r3, #1
- 8003324: 4937 ldr r1, [pc, #220] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003326: 4313 orrs r3, r2
- 8003328: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 8002ce0: 4b3b ldr r3, [pc, #236] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002ce2: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002ce6: f023 021f bic.w r2, r3, #31
+ 8002cea: 687b ldr r3, [r7, #4]
+ 8002cec: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8002cee: 3b01 subs r3, #1
+ 8002cf0: 4937 ldr r1, [pc, #220] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002cf2: 4313 orrs r3, r2
+ 8002cf4: f8c1 308c str.w r3, [r1, #140] ; 0x8c
}
/*----------------- In Case of PLLI2S is selected as source clock for SPDIF-RX -------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
- 800332c: 687b ldr r3, [r7, #4]
- 800332e: 681b ldr r3, [r3, #0]
- 8003330: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
- 8003334: 2b00 cmp r3, #0
- 8003336: d01d beq.n 8003374 <HAL_RCCEx_PeriphCLKConfig+0x638>
+ 8002cf8: 687b ldr r3, [r7, #4]
+ 8002cfa: 681b ldr r3, [r3, #0]
+ 8002cfc: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
+ 8002d00: 2b00 cmp r3, #0
+ 8002d02: d01d beq.n 8002d40 <HAL_RCCEx_PeriphCLKConfig+0x638>
{
/* check for Parameters */
assert_param(IS_RCC_PLLI2SP_VALUE(PeriphClkInit->PLLI2S.PLLI2SP));
/* Read PLLI2SR value from PLLI2SCFGR register (this value is not needed for SPDIF-RX configuration) */
tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos);
- 8003338: 4b32 ldr r3, [pc, #200] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 800333a: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 800333e: 0e1b lsrs r3, r3, #24
- 8003340: f003 030f and.w r3, r3, #15
- 8003344: 613b str r3, [r7, #16]
+ 8002d04: 4b32 ldr r3, [pc, #200] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d06: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002d0a: 0e1b lsrs r3, r3, #24
+ 8002d0c: f003 030f and.w r3, r3, #15
+ 8002d10: 613b str r3, [r7, #16]
tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos);
- 8003346: 4b2f ldr r3, [pc, #188] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 8003348: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
- 800334c: 0f1b lsrs r3, r3, #28
- 800334e: f003 0307 and.w r3, r3, #7
- 8003352: 60fb str r3, [r7, #12]
+ 8002d12: 4b2f ldr r3, [pc, #188] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d14: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84
+ 8002d18: 0f1b lsrs r3, r3, #28
+ 8002d1a: f003 0307 and.w r3, r3, #7
+ 8002d1e: 60fb str r3, [r7, #12]
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLM) */
/* SPDIFCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, tmpreg0, tmpreg1);
- 8003354: 687b ldr r3, [r7, #4]
- 8003356: 685b ldr r3, [r3, #4]
- 8003358: 019a lsls r2, r3, #6
- 800335a: 687b ldr r3, [r7, #4]
- 800335c: 691b ldr r3, [r3, #16]
- 800335e: 041b lsls r3, r3, #16
- 8003360: 431a orrs r2, r3
- 8003362: 693b ldr r3, [r7, #16]
- 8003364: 061b lsls r3, r3, #24
- 8003366: 431a orrs r2, r3
- 8003368: 68fb ldr r3, [r7, #12]
- 800336a: 071b lsls r3, r3, #28
- 800336c: 4925 ldr r1, [pc, #148] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 800336e: 4313 orrs r3, r2
- 8003370: f8c1 3084 str.w r3, [r1, #132] ; 0x84
+ 8002d20: 687b ldr r3, [r7, #4]
+ 8002d22: 685b ldr r3, [r3, #4]
+ 8002d24: 019a lsls r2, r3, #6
+ 8002d26: 687b ldr r3, [r7, #4]
+ 8002d28: 691b ldr r3, [r3, #16]
+ 8002d2a: 041b lsls r3, r3, #16
+ 8002d2c: 431a orrs r2, r3
+ 8002d2e: 693b ldr r3, [r7, #16]
+ 8002d30: 061b lsls r3, r3, #24
+ 8002d32: 431a orrs r2, r3
+ 8002d34: 68fb ldr r3, [r7, #12]
+ 8002d36: 071b lsls r3, r3, #28
+ 8002d38: 4925 ldr r1, [pc, #148] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d3a: 4313 orrs r3, r2
+ 8002d3c: f8c1 3084 str.w r3, [r1, #132] ; 0x84
}
/*----------------- In Case of PLLI2S is just selected -----------------*/
if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S)
- 8003374: 687b ldr r3, [r7, #4]
- 8003376: 681b ldr r3, [r3, #0]
- 8003378: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
- 800337c: 2b00 cmp r3, #0
- 800337e: d011 beq.n 80033a4 <HAL_RCCEx_PeriphCLKConfig+0x668>
+ 8002d40: 687b ldr r3, [r7, #4]
+ 8002d42: 681b ldr r3, [r3, #0]
+ 8002d44: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
+ 8002d48: 2b00 cmp r3, #0
+ 8002d4a: d011 beq.n 8002d70 <HAL_RCCEx_PeriphCLKConfig+0x668>
assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ));
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLI2SM) */
/* SPDIFRXCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR);
- 8003380: 687b ldr r3, [r7, #4]
- 8003382: 685b ldr r3, [r3, #4]
- 8003384: 019a lsls r2, r3, #6
- 8003386: 687b ldr r3, [r7, #4]
- 8003388: 691b ldr r3, [r3, #16]
- 800338a: 041b lsls r3, r3, #16
- 800338c: 431a orrs r2, r3
- 800338e: 687b ldr r3, [r7, #4]
- 8003390: 68db ldr r3, [r3, #12]
- 8003392: 061b lsls r3, r3, #24
- 8003394: 431a orrs r2, r3
- 8003396: 687b ldr r3, [r7, #4]
- 8003398: 689b ldr r3, [r3, #8]
- 800339a: 071b lsls r3, r3, #28
- 800339c: 4919 ldr r1, [pc, #100] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 800339e: 4313 orrs r3, r2
- 80033a0: f8c1 3084 str.w r3, [r1, #132] ; 0x84
+ 8002d4c: 687b ldr r3, [r7, #4]
+ 8002d4e: 685b ldr r3, [r3, #4]
+ 8002d50: 019a lsls r2, r3, #6
+ 8002d52: 687b ldr r3, [r7, #4]
+ 8002d54: 691b ldr r3, [r3, #16]
+ 8002d56: 041b lsls r3, r3, #16
+ 8002d58: 431a orrs r2, r3
+ 8002d5a: 687b ldr r3, [r7, #4]
+ 8002d5c: 68db ldr r3, [r3, #12]
+ 8002d5e: 061b lsls r3, r3, #24
+ 8002d60: 431a orrs r2, r3
+ 8002d62: 687b ldr r3, [r7, #4]
+ 8002d64: 689b ldr r3, [r3, #8]
+ 8002d66: 071b lsls r3, r3, #28
+ 8002d68: 4919 ldr r1, [pc, #100] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d6a: 4313 orrs r3, r2
+ 8002d6c: f8c1 3084 str.w r3, [r1, #132] ; 0x84
}
/* Enable the PLLI2S */
__HAL_RCC_PLLI2S_ENABLE();
- 80033a4: 4b17 ldr r3, [pc, #92] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80033a6: 681b ldr r3, [r3, #0]
- 80033a8: 4a16 ldr r2, [pc, #88] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80033aa: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000
- 80033ae: 6013 str r3, [r2, #0]
+ 8002d70: 4b17 ldr r3, [pc, #92] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d72: 681b ldr r3, [r3, #0]
+ 8002d74: 4a16 ldr r2, [pc, #88] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d76: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000
+ 8002d7a: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 80033b0: f7fe fa98 bl 80018e4 <HAL_GetTick>
- 80033b4: 6178 str r0, [r7, #20]
+ 8002d7c: f7fe fd80 bl 8001880 <HAL_GetTick>
+ 8002d80: 6178 str r0, [r7, #20]
/* Wait till PLLI2S is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET)
- 80033b6: e008 b.n 80033ca <HAL_RCCEx_PeriphCLKConfig+0x68e>
+ 8002d82: e008 b.n 8002d96 <HAL_RCCEx_PeriphCLKConfig+0x68e>
{
if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE)
- 80033b8: f7fe fa94 bl 80018e4 <HAL_GetTick>
- 80033bc: 4602 mov r2, r0
- 80033be: 697b ldr r3, [r7, #20]
- 80033c0: 1ad3 subs r3, r2, r3
- 80033c2: 2b64 cmp r3, #100 ; 0x64
- 80033c4: d901 bls.n 80033ca <HAL_RCCEx_PeriphCLKConfig+0x68e>
+ 8002d84: f7fe fd7c bl 8001880 <HAL_GetTick>
+ 8002d88: 4602 mov r2, r0
+ 8002d8a: 697b ldr r3, [r7, #20]
+ 8002d8c: 1ad3 subs r3, r2, r3
+ 8002d8e: 2b64 cmp r3, #100 ; 0x64
+ 8002d90: d901 bls.n 8002d96 <HAL_RCCEx_PeriphCLKConfig+0x68e>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
- 80033c6: 2303 movs r3, #3
- 80033c8: e0d7 b.n 800357a <HAL_RCCEx_PeriphCLKConfig+0x83e>
+ 8002d92: 2303 movs r3, #3
+ 8002d94: e0d7 b.n 8002f46 <HAL_RCCEx_PeriphCLKConfig+0x83e>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET)
- 80033ca: 4b0e ldr r3, [pc, #56] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80033cc: 681b ldr r3, [r3, #0]
- 80033ce: f003 6300 and.w r3, r3, #134217728 ; 0x8000000
- 80033d2: 2b00 cmp r3, #0
- 80033d4: d0f0 beq.n 80033b8 <HAL_RCCEx_PeriphCLKConfig+0x67c>
+ 8002d96: 4b0e ldr r3, [pc, #56] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002d98: 681b ldr r3, [r3, #0]
+ 8002d9a: f003 6300 and.w r3, r3, #134217728 ; 0x8000000
+ 8002d9e: 2b00 cmp r3, #0
+ 8002da0: d0f0 beq.n 8002d84 <HAL_RCCEx_PeriphCLKConfig+0x67c>
}
}
/*-------------------------------------- PLLSAI Configuration ---------------------------------*/
/* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, LTDC or CK48 */
if(pllsaiused == 1)
- 80033d6: 69bb ldr r3, [r7, #24]
- 80033d8: 2b01 cmp r3, #1
- 80033da: f040 80cd bne.w 8003578 <HAL_RCCEx_PeriphCLKConfig+0x83c>
+ 8002da2: 69bb ldr r3, [r7, #24]
+ 8002da4: 2b01 cmp r3, #1
+ 8002da6: f040 80cd bne.w 8002f44 <HAL_RCCEx_PeriphCLKConfig+0x83c>
{
/* Disable PLLSAI Clock */
__HAL_RCC_PLLSAI_DISABLE();
- 80033de: 4b09 ldr r3, [pc, #36] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80033e0: 681b ldr r3, [r3, #0]
- 80033e2: 4a08 ldr r2, [pc, #32] ; (8003404 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
- 80033e4: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
- 80033e8: 6013 str r3, [r2, #0]
+ 8002daa: 4b09 ldr r3, [pc, #36] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002dac: 681b ldr r3, [r3, #0]
+ 8002dae: 4a08 ldr r2, [pc, #32] ; (8002dd0 <HAL_RCCEx_PeriphCLKConfig+0x6c8>)
+ 8002db0: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
+ 8002db4: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 80033ea: f7fe fa7b bl 80018e4 <HAL_GetTick>
- 80033ee: 6178 str r0, [r7, #20]
+ 8002db6: f7fe fd63 bl 8001880 <HAL_GetTick>
+ 8002dba: 6178 str r0, [r7, #20]
/* Wait till PLLSAI is disabled */
while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET)
- 80033f0: e00a b.n 8003408 <HAL_RCCEx_PeriphCLKConfig+0x6cc>
+ 8002dbc: e00a b.n 8002dd4 <HAL_RCCEx_PeriphCLKConfig+0x6cc>
{
if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE)
- 80033f2: f7fe fa77 bl 80018e4 <HAL_GetTick>
- 80033f6: 4602 mov r2, r0
- 80033f8: 697b ldr r3, [r7, #20]
- 80033fa: 1ad3 subs r3, r2, r3
- 80033fc: 2b64 cmp r3, #100 ; 0x64
- 80033fe: d903 bls.n 8003408 <HAL_RCCEx_PeriphCLKConfig+0x6cc>
+ 8002dbe: f7fe fd5f bl 8001880 <HAL_GetTick>
+ 8002dc2: 4602 mov r2, r0
+ 8002dc4: 697b ldr r3, [r7, #20]
+ 8002dc6: 1ad3 subs r3, r2, r3
+ 8002dc8: 2b64 cmp r3, #100 ; 0x64
+ 8002dca: d903 bls.n 8002dd4 <HAL_RCCEx_PeriphCLKConfig+0x6cc>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
- 8003400: 2303 movs r3, #3
- 8003402: e0ba b.n 800357a <HAL_RCCEx_PeriphCLKConfig+0x83e>
- 8003404: 40023800 .word 0x40023800
+ 8002dcc: 2303 movs r3, #3
+ 8002dce: e0ba b.n 8002f46 <HAL_RCCEx_PeriphCLKConfig+0x83e>
+ 8002dd0: 40023800 .word 0x40023800
while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET)
- 8003408: 4b5e ldr r3, [pc, #376] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800340a: 681b ldr r3, [r3, #0]
- 800340c: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
- 8003410: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000
- 8003414: d0ed beq.n 80033f2 <HAL_RCCEx_PeriphCLKConfig+0x6b6>
+ 8002dd4: 4b5e ldr r3, [pc, #376] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002dd6: 681b ldr r3, [r3, #0]
+ 8002dd8: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
+ 8002ddc: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000
+ 8002de0: d0ed beq.n 8002dbe <HAL_RCCEx_PeriphCLKConfig+0x6b6>
/* Check the PLLSAI division factors */
assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN));
/*----------------- In Case of PLLSAI is selected as source clock for SAI -------------------*/
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) ||\
- 8003416: 687b ldr r3, [r7, #4]
- 8003418: 681b ldr r3, [r3, #0]
- 800341a: f403 2300 and.w r3, r3, #524288 ; 0x80000
- 800341e: 2b00 cmp r3, #0
- 8003420: d003 beq.n 800342a <HAL_RCCEx_PeriphCLKConfig+0x6ee>
- 8003422: 687b ldr r3, [r7, #4]
- 8003424: 6bdb ldr r3, [r3, #60] ; 0x3c
- 8003426: 2b00 cmp r3, #0
- 8003428: d009 beq.n 800343e <HAL_RCCEx_PeriphCLKConfig+0x702>
+ 8002de2: 687b ldr r3, [r7, #4]
+ 8002de4: 681b ldr r3, [r3, #0]
+ 8002de6: f403 2300 and.w r3, r3, #524288 ; 0x80000
+ 8002dea: 2b00 cmp r3, #0
+ 8002dec: d003 beq.n 8002df6 <HAL_RCCEx_PeriphCLKConfig+0x6ee>
+ 8002dee: 687b ldr r3, [r7, #4]
+ 8002df0: 6bdb ldr r3, [r3, #60] ; 0x3c
+ 8002df2: 2b00 cmp r3, #0
+ 8002df4: d009 beq.n 8002e0a <HAL_RCCEx_PeriphCLKConfig+0x702>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI)))
- 800342a: 687b ldr r3, [r7, #4]
- 800342c: 681b ldr r3, [r3, #0]
- 800342e: f403 1380 and.w r3, r3, #1048576 ; 0x100000
+ 8002df6: 687b ldr r3, [r7, #4]
+ 8002df8: 681b ldr r3, [r3, #0]
+ 8002dfa: f403 1380 and.w r3, r3, #1048576 ; 0x100000
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) ||\
- 8003432: 2b00 cmp r3, #0
- 8003434: d02e beq.n 8003494 <HAL_RCCEx_PeriphCLKConfig+0x758>
+ 8002dfe: 2b00 cmp r3, #0
+ 8002e00: d02e beq.n 8002e60 <HAL_RCCEx_PeriphCLKConfig+0x758>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI)))
- 8003436: 687b ldr r3, [r7, #4]
- 8003438: 6c1b ldr r3, [r3, #64] ; 0x40
- 800343a: 2b00 cmp r3, #0
- 800343c: d12a bne.n 8003494 <HAL_RCCEx_PeriphCLKConfig+0x758>
+ 8002e02: 687b ldr r3, [r7, #4]
+ 8002e04: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8002e06: 2b00 cmp r3, #0
+ 8002e08: d12a bne.n 8002e60 <HAL_RCCEx_PeriphCLKConfig+0x758>
assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ));
/* check for PLLSAI/DIVQ Parameter */
assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ));
/* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */
tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos);
- 800343e: 4b51 ldr r3, [pc, #324] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 8003440: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 8003444: 0c1b lsrs r3, r3, #16
- 8003446: f003 0303 and.w r3, r3, #3
- 800344a: 613b str r3, [r7, #16]
+ 8002e0a: 4b51 ldr r3, [pc, #324] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e0c: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002e10: 0c1b lsrs r3, r3, #16
+ 8002e12: f003 0303 and.w r3, r3, #3
+ 8002e16: 613b str r3, [r7, #16]
tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLSAICFGR_PLLSAIR_Pos);
- 800344c: 4b4d ldr r3, [pc, #308] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800344e: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 8003452: 0f1b lsrs r3, r3, #28
- 8003454: f003 0307 and.w r3, r3, #7
- 8003458: 60fb str r3, [r7, #12]
+ 8002e18: 4b4d ldr r3, [pc, #308] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e1a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002e1e: 0f1b lsrs r3, r3, #28
+ 8002e20: f003 0307 and.w r3, r3, #7
+ 8002e24: 60fb str r3, [r7, #12]
/* PLLSAI_VCO Input = PLL_SOURCE/PLLM */
/* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */
/* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */
__HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , tmpreg0, PeriphClkInit->PLLSAI.PLLSAIQ, tmpreg1);
- 800345a: 687b ldr r3, [r7, #4]
- 800345c: 695b ldr r3, [r3, #20]
- 800345e: 019a lsls r2, r3, #6
- 8003460: 693b ldr r3, [r7, #16]
- 8003462: 041b lsls r3, r3, #16
- 8003464: 431a orrs r2, r3
- 8003466: 687b ldr r3, [r7, #4]
- 8003468: 699b ldr r3, [r3, #24]
- 800346a: 061b lsls r3, r3, #24
- 800346c: 431a orrs r2, r3
- 800346e: 68fb ldr r3, [r7, #12]
- 8003470: 071b lsls r3, r3, #28
- 8003472: 4944 ldr r1, [pc, #272] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 8003474: 4313 orrs r3, r2
- 8003476: f8c1 3088 str.w r3, [r1, #136] ; 0x88
+ 8002e26: 687b ldr r3, [r7, #4]
+ 8002e28: 695b ldr r3, [r3, #20]
+ 8002e2a: 019a lsls r2, r3, #6
+ 8002e2c: 693b ldr r3, [r7, #16]
+ 8002e2e: 041b lsls r3, r3, #16
+ 8002e30: 431a orrs r2, r3
+ 8002e32: 687b ldr r3, [r7, #4]
+ 8002e34: 699b ldr r3, [r3, #24]
+ 8002e36: 061b lsls r3, r3, #24
+ 8002e38: 431a orrs r2, r3
+ 8002e3a: 68fb ldr r3, [r7, #12]
+ 8002e3c: 071b lsls r3, r3, #28
+ 8002e3e: 4944 ldr r1, [pc, #272] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e40: 4313 orrs r3, r2
+ 8002e42: f8c1 3088 str.w r3, [r1, #136] ; 0x88
/* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */
__HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ);
- 800347a: 4b42 ldr r3, [pc, #264] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800347c: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8003480: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
- 8003484: 687b ldr r3, [r7, #4]
- 8003486: 6a9b ldr r3, [r3, #40] ; 0x28
- 8003488: 3b01 subs r3, #1
- 800348a: 021b lsls r3, r3, #8
- 800348c: 493d ldr r1, [pc, #244] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800348e: 4313 orrs r3, r2
- 8003490: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 8002e46: 4b42 ldr r3, [pc, #264] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e48: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002e4c: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
+ 8002e50: 687b ldr r3, [r7, #4]
+ 8002e52: 6a9b ldr r3, [r3, #40] ; 0x28
+ 8002e54: 3b01 subs r3, #1
+ 8002e56: 021b lsls r3, r3, #8
+ 8002e58: 493d ldr r1, [pc, #244] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e5a: 4313 orrs r3, r2
+ 8002e5c: f8c1 308c str.w r3, [r1, #140] ; 0x8c
}
/*----------------- In Case of PLLSAI is selected as source clock for CLK48 -------------------*/
/* In Case of PLLI2S is selected as source clock for CK48 */
if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48SOURCE_PLLSAIP))
- 8003494: 687b ldr r3, [r7, #4]
- 8003496: 681b ldr r3, [r3, #0]
- 8003498: f403 1300 and.w r3, r3, #2097152 ; 0x200000
- 800349c: 2b00 cmp r3, #0
- 800349e: d022 beq.n 80034e6 <HAL_RCCEx_PeriphCLKConfig+0x7aa>
- 80034a0: 687b ldr r3, [r7, #4]
- 80034a2: 6fdb ldr r3, [r3, #124] ; 0x7c
- 80034a4: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000
- 80034a8: d11d bne.n 80034e6 <HAL_RCCEx_PeriphCLKConfig+0x7aa>
+ 8002e60: 687b ldr r3, [r7, #4]
+ 8002e62: 681b ldr r3, [r3, #0]
+ 8002e64: f403 1300 and.w r3, r3, #2097152 ; 0x200000
+ 8002e68: 2b00 cmp r3, #0
+ 8002e6a: d022 beq.n 8002eb2 <HAL_RCCEx_PeriphCLKConfig+0x7aa>
+ 8002e6c: 687b ldr r3, [r7, #4]
+ 8002e6e: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 8002e70: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000
+ 8002e74: d11d bne.n 8002eb2 <HAL_RCCEx_PeriphCLKConfig+0x7aa>
{
/* check for Parameters */
assert_param(IS_RCC_PLLSAIP_VALUE(PeriphClkInit->PLLSAI.PLLSAIP));
/* Read PLLSAIQ and PLLSAIR value from PLLSAICFGR register (this value is not needed for CK48 configuration) */
tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos);
- 80034aa: 4b36 ldr r3, [pc, #216] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 80034ac: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 80034b0: 0e1b lsrs r3, r3, #24
- 80034b2: f003 030f and.w r3, r3, #15
- 80034b6: 613b str r3, [r7, #16]
+ 8002e76: 4b36 ldr r3, [pc, #216] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e78: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002e7c: 0e1b lsrs r3, r3, #24
+ 8002e7e: f003 030f and.w r3, r3, #15
+ 8002e82: 613b str r3, [r7, #16]
tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos);
- 80034b8: 4b32 ldr r3, [pc, #200] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 80034ba: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 80034be: 0f1b lsrs r3, r3, #28
- 80034c0: f003 0307 and.w r3, r3, #7
- 80034c4: 60fb str r3, [r7, #12]
+ 8002e84: 4b32 ldr r3, [pc, #200] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002e86: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002e8a: 0f1b lsrs r3, r3, #28
+ 8002e8c: f003 0307 and.w r3, r3, #7
+ 8002e90: 60fb str r3, [r7, #12]
/* Configure the PLLSAI division factors */
/* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) x (PLLI2SN/PLLM) */
/* 48CLK = f(PLLSAI clock output) = f(VCO clock) / PLLSAIP */
__HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , PeriphClkInit->PLLSAI.PLLSAIP, tmpreg0, tmpreg1);
- 80034c6: 687b ldr r3, [r7, #4]
- 80034c8: 695b ldr r3, [r3, #20]
- 80034ca: 019a lsls r2, r3, #6
- 80034cc: 687b ldr r3, [r7, #4]
- 80034ce: 6a1b ldr r3, [r3, #32]
- 80034d0: 041b lsls r3, r3, #16
- 80034d2: 431a orrs r2, r3
- 80034d4: 693b ldr r3, [r7, #16]
- 80034d6: 061b lsls r3, r3, #24
- 80034d8: 431a orrs r2, r3
- 80034da: 68fb ldr r3, [r7, #12]
- 80034dc: 071b lsls r3, r3, #28
- 80034de: 4929 ldr r1, [pc, #164] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 80034e0: 4313 orrs r3, r2
- 80034e2: f8c1 3088 str.w r3, [r1, #136] ; 0x88
+ 8002e92: 687b ldr r3, [r7, #4]
+ 8002e94: 695b ldr r3, [r3, #20]
+ 8002e96: 019a lsls r2, r3, #6
+ 8002e98: 687b ldr r3, [r7, #4]
+ 8002e9a: 6a1b ldr r3, [r3, #32]
+ 8002e9c: 041b lsls r3, r3, #16
+ 8002e9e: 431a orrs r2, r3
+ 8002ea0: 693b ldr r3, [r7, #16]
+ 8002ea2: 061b lsls r3, r3, #24
+ 8002ea4: 431a orrs r2, r3
+ 8002ea6: 68fb ldr r3, [r7, #12]
+ 8002ea8: 071b lsls r3, r3, #28
+ 8002eaa: 4929 ldr r1, [pc, #164] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002eac: 4313 orrs r3, r2
+ 8002eae: f8c1 3088 str.w r3, [r1, #136] ; 0x88
}
#if defined(STM32F746xx) || defined(STM32F756xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx) || defined (STM32F750xx)
/*---------------------------- LTDC configuration -------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == (RCC_PERIPHCLK_LTDC))
- 80034e6: 687b ldr r3, [r7, #4]
- 80034e8: 681b ldr r3, [r3, #0]
- 80034ea: f003 0308 and.w r3, r3, #8
- 80034ee: 2b00 cmp r3, #0
- 80034f0: d028 beq.n 8003544 <HAL_RCCEx_PeriphCLKConfig+0x808>
+ 8002eb2: 687b ldr r3, [r7, #4]
+ 8002eb4: 681b ldr r3, [r3, #0]
+ 8002eb6: f003 0308 and.w r3, r3, #8
+ 8002eba: 2b00 cmp r3, #0
+ 8002ebc: d028 beq.n 8002f10 <HAL_RCCEx_PeriphCLKConfig+0x808>
{
assert_param(IS_RCC_PLLSAIR_VALUE(PeriphClkInit->PLLSAI.PLLSAIR));
assert_param(IS_RCC_PLLSAI_DIVR_VALUE(PeriphClkInit->PLLSAIDivR));
/* Read PLLSAIP and PLLSAIQ value from PLLSAICFGR register (these value are not needed for LTDC configuration) */
tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos);
- 80034f2: 4b24 ldr r3, [pc, #144] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 80034f4: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 80034f8: 0e1b lsrs r3, r3, #24
- 80034fa: f003 030f and.w r3, r3, #15
- 80034fe: 613b str r3, [r7, #16]
+ 8002ebe: 4b24 ldr r3, [pc, #144] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002ec0: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002ec4: 0e1b lsrs r3, r3, #24
+ 8002ec6: f003 030f and.w r3, r3, #15
+ 8002eca: 613b str r3, [r7, #16]
tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos);
- 8003500: 4b20 ldr r3, [pc, #128] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 8003502: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
- 8003506: 0c1b lsrs r3, r3, #16
- 8003508: f003 0303 and.w r3, r3, #3
- 800350c: 60fb str r3, [r7, #12]
+ 8002ecc: 4b20 ldr r3, [pc, #128] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002ece: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88
+ 8002ed2: 0c1b lsrs r3, r3, #16
+ 8002ed4: f003 0303 and.w r3, r3, #3
+ 8002ed8: 60fb str r3, [r7, #12]
/* PLLSAI_VCO Input = PLL_SOURCE/PLLM */
/* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */
/* LTDC_CLK(first level) = PLLSAI_VCO Output/PLLSAIR */
__HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , tmpreg1, tmpreg0, PeriphClkInit->PLLSAI.PLLSAIR);
- 800350e: 687b ldr r3, [r7, #4]
- 8003510: 695b ldr r3, [r3, #20]
- 8003512: 019a lsls r2, r3, #6
- 8003514: 68fb ldr r3, [r7, #12]
- 8003516: 041b lsls r3, r3, #16
- 8003518: 431a orrs r2, r3
- 800351a: 693b ldr r3, [r7, #16]
- 800351c: 061b lsls r3, r3, #24
- 800351e: 431a orrs r2, r3
- 8003520: 687b ldr r3, [r7, #4]
- 8003522: 69db ldr r3, [r3, #28]
- 8003524: 071b lsls r3, r3, #28
- 8003526: 4917 ldr r1, [pc, #92] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 8003528: 4313 orrs r3, r2
- 800352a: f8c1 3088 str.w r3, [r1, #136] ; 0x88
+ 8002eda: 687b ldr r3, [r7, #4]
+ 8002edc: 695b ldr r3, [r3, #20]
+ 8002ede: 019a lsls r2, r3, #6
+ 8002ee0: 68fb ldr r3, [r7, #12]
+ 8002ee2: 041b lsls r3, r3, #16
+ 8002ee4: 431a orrs r2, r3
+ 8002ee6: 693b ldr r3, [r7, #16]
+ 8002ee8: 061b lsls r3, r3, #24
+ 8002eea: 431a orrs r2, r3
+ 8002eec: 687b ldr r3, [r7, #4]
+ 8002eee: 69db ldr r3, [r3, #28]
+ 8002ef0: 071b lsls r3, r3, #28
+ 8002ef2: 4917 ldr r1, [pc, #92] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002ef4: 4313 orrs r3, r2
+ 8002ef6: f8c1 3088 str.w r3, [r1, #136] ; 0x88
/* LTDC_CLK = LTDC_CLK(first level)/PLLSAIDIVR */
__HAL_RCC_PLLSAI_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLSAIDivR);
- 800352e: 4b15 ldr r3, [pc, #84] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 8003530: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
- 8003534: f423 3240 bic.w r2, r3, #196608 ; 0x30000
- 8003538: 687b ldr r3, [r7, #4]
- 800353a: 6adb ldr r3, [r3, #44] ; 0x2c
- 800353c: 4911 ldr r1, [pc, #68] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800353e: 4313 orrs r3, r2
- 8003540: f8c1 308c str.w r3, [r1, #140] ; 0x8c
+ 8002efa: 4b15 ldr r3, [pc, #84] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002efc: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c
+ 8002f00: f423 3240 bic.w r2, r3, #196608 ; 0x30000
+ 8002f04: 687b ldr r3, [r7, #4]
+ 8002f06: 6adb ldr r3, [r3, #44] ; 0x2c
+ 8002f08: 4911 ldr r1, [pc, #68] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002f0a: 4313 orrs r3, r2
+ 8002f0c: f8c1 308c str.w r3, [r1, #140] ; 0x8c
}
#endif /* STM32F746xx || STM32F756xx || STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx || STM32F750xx */
/* Enable PLLSAI Clock */
__HAL_RCC_PLLSAI_ENABLE();
- 8003544: 4b0f ldr r3, [pc, #60] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 8003546: 681b ldr r3, [r3, #0]
- 8003548: 4a0e ldr r2, [pc, #56] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800354a: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
- 800354e: 6013 str r3, [r2, #0]
+ 8002f10: 4b0f ldr r3, [pc, #60] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002f12: 681b ldr r3, [r3, #0]
+ 8002f14: 4a0e ldr r2, [pc, #56] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002f16: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
+ 8002f1a: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
- 8003550: f7fe f9c8 bl 80018e4 <HAL_GetTick>
- 8003554: 6178 str r0, [r7, #20]
+ 8002f1c: f7fe fcb0 bl 8001880 <HAL_GetTick>
+ 8002f20: 6178 str r0, [r7, #20]
/* Wait till PLLSAI is ready */
while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET)
- 8003556: e008 b.n 800356a <HAL_RCCEx_PeriphCLKConfig+0x82e>
+ 8002f22: e008 b.n 8002f36 <HAL_RCCEx_PeriphCLKConfig+0x82e>
{
if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE)
- 8003558: f7fe f9c4 bl 80018e4 <HAL_GetTick>
- 800355c: 4602 mov r2, r0
- 800355e: 697b ldr r3, [r7, #20]
- 8003560: 1ad3 subs r3, r2, r3
- 8003562: 2b64 cmp r3, #100 ; 0x64
- 8003564: d901 bls.n 800356a <HAL_RCCEx_PeriphCLKConfig+0x82e>
+ 8002f24: f7fe fcac bl 8001880 <HAL_GetTick>
+ 8002f28: 4602 mov r2, r0
+ 8002f2a: 697b ldr r3, [r7, #20]
+ 8002f2c: 1ad3 subs r3, r2, r3
+ 8002f2e: 2b64 cmp r3, #100 ; 0x64
+ 8002f30: d901 bls.n 8002f36 <HAL_RCCEx_PeriphCLKConfig+0x82e>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
- 8003566: 2303 movs r3, #3
- 8003568: e007 b.n 800357a <HAL_RCCEx_PeriphCLKConfig+0x83e>
+ 8002f32: 2303 movs r3, #3
+ 8002f34: e007 b.n 8002f46 <HAL_RCCEx_PeriphCLKConfig+0x83e>
while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET)
- 800356a: 4b06 ldr r3, [pc, #24] ; (8003584 <HAL_RCCEx_PeriphCLKConfig+0x848>)
- 800356c: 681b ldr r3, [r3, #0]
- 800356e: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
- 8003572: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000
- 8003576: d1ef bne.n 8003558 <HAL_RCCEx_PeriphCLKConfig+0x81c>
+ 8002f36: 4b06 ldr r3, [pc, #24] ; (8002f50 <HAL_RCCEx_PeriphCLKConfig+0x848>)
+ 8002f38: 681b ldr r3, [r3, #0]
+ 8002f3a: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
+ 8002f3e: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000
+ 8002f42: d1ef bne.n 8002f24 <HAL_RCCEx_PeriphCLKConfig+0x81c>
}
}
}
return HAL_OK;
- 8003578: 2300 movs r3, #0
+ 8002f44: 2300 movs r3, #0
}
- 800357a: 4618 mov r0, r3
- 800357c: 3720 adds r7, #32
- 800357e: 46bd mov sp, r7
- 8003580: bd80 pop {r7, pc}
- 8003582: bf00 nop
- 8003584: 40023800 .word 0x40023800
-
-08003588 <HAL_TIM_Base_Init>:
+ 8002f46: 4618 mov r0, r3
+ 8002f48: 3720 adds r7, #32
+ 8002f4a: 46bd mov sp, r7
+ 8002f4c: bd80 pop {r7, pc}
+ 8002f4e: bf00 nop
+ 8002f50: 40023800 .word 0x40023800
+
+08002f54 <HAL_TIM_Base_Init>:
* Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
* @param htim TIM Base handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
{
- 8003588: b580 push {r7, lr}
- 800358a: b082 sub sp, #8
- 800358c: af00 add r7, sp, #0
- 800358e: 6078 str r0, [r7, #4]
+ 8002f54: b580 push {r7, lr}
+ 8002f56: b082 sub sp, #8
+ 8002f58: af00 add r7, sp, #0
+ 8002f5a: 6078 str r0, [r7, #4]
/* Check the TIM handle allocation */
if (htim == NULL)
- 8003590: 687b ldr r3, [r7, #4]
- 8003592: 2b00 cmp r3, #0
- 8003594: d101 bne.n 800359a <HAL_TIM_Base_Init+0x12>
+ 8002f5c: 687b ldr r3, [r7, #4]
+ 8002f5e: 2b00 cmp r3, #0
+ 8002f60: d101 bne.n 8002f66 <HAL_TIM_Base_Init+0x12>
{
return HAL_ERROR;
- 8003596: 2301 movs r3, #1
- 8003598: e01d b.n 80035d6 <HAL_TIM_Base_Init+0x4e>
+ 8002f62: 2301 movs r3, #1
+ 8002f64: e01d b.n 8002fa2 <HAL_TIM_Base_Init+0x4e>
assert_param(IS_TIM_INSTANCE(htim->Instance));
assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
if (htim->State == HAL_TIM_STATE_RESET)
- 800359a: 687b ldr r3, [r7, #4]
- 800359c: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 80035a0: b2db uxtb r3, r3
- 80035a2: 2b00 cmp r3, #0
- 80035a4: d106 bne.n 80035b4 <HAL_TIM_Base_Init+0x2c>
+ 8002f66: 687b ldr r3, [r7, #4]
+ 8002f68: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
+ 8002f6c: b2db uxtb r3, r3
+ 8002f6e: 2b00 cmp r3, #0
+ 8002f70: d106 bne.n 8002f80 <HAL_TIM_Base_Init+0x2c>
{
/* Allocate lock resource and initialize it */
htim->Lock = HAL_UNLOCKED;
- 80035a6: 687b ldr r3, [r7, #4]
- 80035a8: 2200 movs r2, #0
- 80035aa: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 8002f72: 687b ldr r3, [r7, #4]
+ 8002f74: 2200 movs r2, #0
+ 8002f76: f883 203c strb.w r2, [r3, #60] ; 0x3c
}
/* Init the low level hardware : GPIO, CLOCK, NVIC */
htim->Base_MspInitCallback(htim);
#else
/* Init the low level hardware : GPIO, CLOCK, NVIC */
HAL_TIM_Base_MspInit(htim);
- 80035ae: 6878 ldr r0, [r7, #4]
- 80035b0: f7fd ff4a bl 8001448 <HAL_TIM_Base_MspInit>
+ 8002f7a: 6878 ldr r0, [r7, #4]
+ 8002f7c: f7fe fac0 bl 8001500 <HAL_TIM_Base_MspInit>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
- 80035b4: 687b ldr r3, [r7, #4]
- 80035b6: 2202 movs r2, #2
- 80035b8: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 8002f80: 687b ldr r3, [r7, #4]
+ 8002f82: 2202 movs r2, #2
+ 8002f84: f883 203d strb.w r2, [r3, #61] ; 0x3d
/* Set the Time Base configuration */
TIM_Base_SetConfig(htim->Instance, &htim->Init);
- 80035bc: 687b ldr r3, [r7, #4]
- 80035be: 681a ldr r2, [r3, #0]
- 80035c0: 687b ldr r3, [r7, #4]
- 80035c2: 3304 adds r3, #4
- 80035c4: 4619 mov r1, r3
- 80035c6: 4610 mov r0, r2
- 80035c8: f000 fc4c bl 8003e64 <TIM_Base_SetConfig>
+ 8002f88: 687b ldr r3, [r7, #4]
+ 8002f8a: 681a ldr r2, [r3, #0]
+ 8002f8c: 687b ldr r3, [r7, #4]
+ 8002f8e: 3304 adds r3, #4
+ 8002f90: 4619 mov r1, r3
+ 8002f92: 4610 mov r0, r2
+ 8002f94: f000 fc4c bl 8003830 <TIM_Base_SetConfig>
/* Initialize the TIM state*/
htim->State = HAL_TIM_STATE_READY;
- 80035cc: 687b ldr r3, [r7, #4]
- 80035ce: 2201 movs r2, #1
- 80035d0: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 8002f98: 687b ldr r3, [r7, #4]
+ 8002f9a: 2201 movs r2, #1
+ 8002f9c: f883 203d strb.w r2, [r3, #61] ; 0x3d
return HAL_OK;
- 80035d4: 2300 movs r3, #0
+ 8002fa0: 2300 movs r3, #0
}
- 80035d6: 4618 mov r0, r3
- 80035d8: 3708 adds r7, #8
- 80035da: 46bd mov sp, r7
- 80035dc: bd80 pop {r7, pc}
+ 8002fa2: 4618 mov r0, r3
+ 8002fa4: 3708 adds r7, #8
+ 8002fa6: 46bd mov sp, r7
+ 8002fa8: bd80 pop {r7, pc}
...
-080035e0 <HAL_TIM_Base_Start_IT>:
+08002fac <HAL_TIM_Base_Start_IT>:
* @brief Starts the TIM Base generation in interrupt mode.
* @param htim TIM Base handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
{
- 80035e0: b480 push {r7}
- 80035e2: b085 sub sp, #20
- 80035e4: af00 add r7, sp, #0
- 80035e6: 6078 str r0, [r7, #4]
+ 8002fac: b480 push {r7}
+ 8002fae: b085 sub sp, #20
+ 8002fb0: af00 add r7, sp, #0
+ 8002fb2: 6078 str r0, [r7, #4]
/* Check the parameters */
assert_param(IS_TIM_INSTANCE(htim->Instance));
/* Enable the TIM Update interrupt */
__HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
- 80035e8: 687b ldr r3, [r7, #4]
- 80035ea: 681b ldr r3, [r3, #0]
- 80035ec: 68da ldr r2, [r3, #12]
- 80035ee: 687b ldr r3, [r7, #4]
- 80035f0: 681b ldr r3, [r3, #0]
- 80035f2: f042 0201 orr.w r2, r2, #1
- 80035f6: 60da str r2, [r3, #12]
+ 8002fb4: 687b ldr r3, [r7, #4]
+ 8002fb6: 681b ldr r3, [r3, #0]
+ 8002fb8: 68da ldr r2, [r3, #12]
+ 8002fba: 687b ldr r3, [r7, #4]
+ 8002fbc: 681b ldr r3, [r3, #0]
+ 8002fbe: f042 0201 orr.w r2, r2, #1
+ 8002fc2: 60da str r2, [r3, #12]
/* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
- 80035f8: 687b ldr r3, [r7, #4]
- 80035fa: 681b ldr r3, [r3, #0]
- 80035fc: 689a ldr r2, [r3, #8]
- 80035fe: 4b0c ldr r3, [pc, #48] ; (8003630 <HAL_TIM_Base_Start_IT+0x50>)
- 8003600: 4013 ands r3, r2
- 8003602: 60fb str r3, [r7, #12]
+ 8002fc4: 687b ldr r3, [r7, #4]
+ 8002fc6: 681b ldr r3, [r3, #0]
+ 8002fc8: 689a ldr r2, [r3, #8]
+ 8002fca: 4b0c ldr r3, [pc, #48] ; (8002ffc <HAL_TIM_Base_Start_IT+0x50>)
+ 8002fcc: 4013 ands r3, r2
+ 8002fce: 60fb str r3, [r7, #12]
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
- 8003604: 68fb ldr r3, [r7, #12]
- 8003606: 2b06 cmp r3, #6
- 8003608: d00b beq.n 8003622 <HAL_TIM_Base_Start_IT+0x42>
- 800360a: 68fb ldr r3, [r7, #12]
- 800360c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
- 8003610: d007 beq.n 8003622 <HAL_TIM_Base_Start_IT+0x42>
+ 8002fd0: 68fb ldr r3, [r7, #12]
+ 8002fd2: 2b06 cmp r3, #6
+ 8002fd4: d00b beq.n 8002fee <HAL_TIM_Base_Start_IT+0x42>
+ 8002fd6: 68fb ldr r3, [r7, #12]
+ 8002fd8: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
+ 8002fdc: d007 beq.n 8002fee <HAL_TIM_Base_Start_IT+0x42>
{
__HAL_TIM_ENABLE(htim);
- 8003612: 687b ldr r3, [r7, #4]
- 8003614: 681b ldr r3, [r3, #0]
- 8003616: 681a ldr r2, [r3, #0]
- 8003618: 687b ldr r3, [r7, #4]
- 800361a: 681b ldr r3, [r3, #0]
- 800361c: f042 0201 orr.w r2, r2, #1
- 8003620: 601a str r2, [r3, #0]
+ 8002fde: 687b ldr r3, [r7, #4]
+ 8002fe0: 681b ldr r3, [r3, #0]
+ 8002fe2: 681a ldr r2, [r3, #0]
+ 8002fe4: 687b ldr r3, [r7, #4]
+ 8002fe6: 681b ldr r3, [r3, #0]
+ 8002fe8: f042 0201 orr.w r2, r2, #1
+ 8002fec: 601a str r2, [r3, #0]
}
/* Return function status */
return HAL_OK;
- 8003622: 2300 movs r3, #0
+ 8002fee: 2300 movs r3, #0
}
- 8003624: 4618 mov r0, r3
- 8003626: 3714 adds r7, #20
- 8003628: 46bd mov sp, r7
- 800362a: f85d 7b04 ldr.w r7, [sp], #4
- 800362e: 4770 bx lr
- 8003630: 00010007 .word 0x00010007
-
-08003634 <HAL_TIM_PWM_Init>:
+ 8002ff0: 4618 mov r0, r3
+ 8002ff2: 3714 adds r7, #20
+ 8002ff4: 46bd mov sp, r7
+ 8002ff6: f85d 7b04 ldr.w r7, [sp], #4
+ 8002ffa: 4770 bx lr
+ 8002ffc: 00010007 .word 0x00010007
+
+08003000 <HAL_TIM_PWM_Init>:
* Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
* @param htim TIM PWM handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
{
- 8003634: b580 push {r7, lr}
- 8003636: b082 sub sp, #8
- 8003638: af00 add r7, sp, #0
- 800363a: 6078 str r0, [r7, #4]
+ 8003000: b580 push {r7, lr}
+ 8003002: b082 sub sp, #8
+ 8003004: af00 add r7, sp, #0
+ 8003006: 6078 str r0, [r7, #4]
/* Check the TIM handle allocation */
if (htim == NULL)
- 800363c: 687b ldr r3, [r7, #4]
- 800363e: 2b00 cmp r3, #0
- 8003640: d101 bne.n 8003646 <HAL_TIM_PWM_Init+0x12>
+ 8003008: 687b ldr r3, [r7, #4]
+ 800300a: 2b00 cmp r3, #0
+ 800300c: d101 bne.n 8003012 <HAL_TIM_PWM_Init+0x12>
{
return HAL_ERROR;
- 8003642: 2301 movs r3, #1
- 8003644: e01d b.n 8003682 <HAL_TIM_PWM_Init+0x4e>
+ 800300e: 2301 movs r3, #1
+ 8003010: e01d b.n 800304e <HAL_TIM_PWM_Init+0x4e>
assert_param(IS_TIM_INSTANCE(htim->Instance));
assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
if (htim->State == HAL_TIM_STATE_RESET)
- 8003646: 687b ldr r3, [r7, #4]
- 8003648: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 800364c: b2db uxtb r3, r3
- 800364e: 2b00 cmp r3, #0
- 8003650: d106 bne.n 8003660 <HAL_TIM_PWM_Init+0x2c>
+ 8003012: 687b ldr r3, [r7, #4]
+ 8003014: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
+ 8003018: b2db uxtb r3, r3
+ 800301a: 2b00 cmp r3, #0
+ 800301c: d106 bne.n 800302c <HAL_TIM_PWM_Init+0x2c>
{
/* Allocate lock resource and initialize it */
htim->Lock = HAL_UNLOCKED;
- 8003652: 687b ldr r3, [r7, #4]
- 8003654: 2200 movs r2, #0
- 8003656: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 800301e: 687b ldr r3, [r7, #4]
+ 8003020: 2200 movs r2, #0
+ 8003022: f883 203c strb.w r2, [r3, #60] ; 0x3c
}
/* Init the low level hardware : GPIO, CLOCK, NVIC */
htim->PWM_MspInitCallback(htim);
#else
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
HAL_TIM_PWM_MspInit(htim);
- 800365a: 6878 ldr r0, [r7, #4]
- 800365c: f000 f815 bl 800368a <HAL_TIM_PWM_MspInit>
+ 8003026: 6878 ldr r0, [r7, #4]
+ 8003028: f000 f815 bl 8003056 <HAL_TIM_PWM_MspInit>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
- 8003660: 687b ldr r3, [r7, #4]
- 8003662: 2202 movs r2, #2
- 8003664: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 800302c: 687b ldr r3, [r7, #4]
+ 800302e: 2202 movs r2, #2
+ 8003030: f883 203d strb.w r2, [r3, #61] ; 0x3d
/* Init the base time for the PWM */
TIM_Base_SetConfig(htim->Instance, &htim->Init);
- 8003668: 687b ldr r3, [r7, #4]
- 800366a: 681a ldr r2, [r3, #0]
- 800366c: 687b ldr r3, [r7, #4]
- 800366e: 3304 adds r3, #4
- 8003670: 4619 mov r1, r3
- 8003672: 4610 mov r0, r2
- 8003674: f000 fbf6 bl 8003e64 <TIM_Base_SetConfig>
+ 8003034: 687b ldr r3, [r7, #4]
+ 8003036: 681a ldr r2, [r3, #0]
+ 8003038: 687b ldr r3, [r7, #4]
+ 800303a: 3304 adds r3, #4
+ 800303c: 4619 mov r1, r3
+ 800303e: 4610 mov r0, r2
+ 8003040: f000 fbf6 bl 8003830 <TIM_Base_SetConfig>
/* Initialize the TIM state*/
htim->State = HAL_TIM_STATE_READY;
- 8003678: 687b ldr r3, [r7, #4]
- 800367a: 2201 movs r2, #1
- 800367c: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 8003044: 687b ldr r3, [r7, #4]
+ 8003046: 2201 movs r2, #1
+ 8003048: f883 203d strb.w r2, [r3, #61] ; 0x3d
return HAL_OK;
- 8003680: 2300 movs r3, #0
+ 800304c: 2300 movs r3, #0
}
- 8003682: 4618 mov r0, r3
- 8003684: 3708 adds r7, #8
- 8003686: 46bd mov sp, r7
- 8003688: bd80 pop {r7, pc}
+ 800304e: 4618 mov r0, r3
+ 8003050: 3708 adds r7, #8
+ 8003052: 46bd mov sp, r7
+ 8003054: bd80 pop {r7, pc}
-0800368a <HAL_TIM_PWM_MspInit>:
+08003056 <HAL_TIM_PWM_MspInit>:
* @brief Initializes the TIM PWM MSP.
* @param htim TIM PWM handle
* @retval None
*/
__weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim)
{
- 800368a: b480 push {r7}
- 800368c: b083 sub sp, #12
- 800368e: af00 add r7, sp, #0
- 8003690: 6078 str r0, [r7, #4]
+ 8003056: b480 push {r7}
+ 8003058: b083 sub sp, #12
+ 800305a: af00 add r7, sp, #0
+ 800305c: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_PWM_MspInit could be implemented in the user file
*/
}
- 8003692: bf00 nop
- 8003694: 370c adds r7, #12
- 8003696: 46bd mov sp, r7
- 8003698: f85d 7b04 ldr.w r7, [sp], #4
- 800369c: 4770 bx lr
+ 800305e: bf00 nop
+ 8003060: 370c adds r7, #12
+ 8003062: 46bd mov sp, r7
+ 8003064: f85d 7b04 ldr.w r7, [sp], #4
+ 8003068: 4770 bx lr
...
-080036a0 <HAL_TIM_Encoder_Init>:
+0800306c <HAL_TIM_Encoder_Init>:
* @param htim TIM Encoder Interface handle
* @param sConfig TIM Encoder Interface configuration structure
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, TIM_Encoder_InitTypeDef *sConfig)
{
- 80036a0: b580 push {r7, lr}
- 80036a2: b086 sub sp, #24
- 80036a4: af00 add r7, sp, #0
- 80036a6: 6078 str r0, [r7, #4]
- 80036a8: 6039 str r1, [r7, #0]
+ 800306c: b580 push {r7, lr}
+ 800306e: b086 sub sp, #24
+ 8003070: af00 add r7, sp, #0
+ 8003072: 6078 str r0, [r7, #4]
+ 8003074: 6039 str r1, [r7, #0]
uint32_t tmpsmcr;
uint32_t tmpccmr1;
uint32_t tmpccer;
/* Check the TIM handle allocation */
if (htim == NULL)
- 80036aa: 687b ldr r3, [r7, #4]
- 80036ac: 2b00 cmp r3, #0
- 80036ae: d101 bne.n 80036b4 <HAL_TIM_Encoder_Init+0x14>
+ 8003076: 687b ldr r3, [r7, #4]
+ 8003078: 2b00 cmp r3, #0
+ 800307a: d101 bne.n 8003080 <HAL_TIM_Encoder_Init+0x14>
{
return HAL_ERROR;
- 80036b0: 2301 movs r3, #1
- 80036b2: e07b b.n 80037ac <HAL_TIM_Encoder_Init+0x10c>
+ 800307c: 2301 movs r3, #1
+ 800307e: e07b b.n 8003178 <HAL_TIM_Encoder_Init+0x10c>
assert_param(IS_TIM_IC_PRESCALER(sConfig->IC1Prescaler));
assert_param(IS_TIM_IC_PRESCALER(sConfig->IC2Prescaler));
assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter));
assert_param(IS_TIM_IC_FILTER(sConfig->IC2Filter));
if (htim->State == HAL_TIM_STATE_RESET)
- 80036b4: 687b ldr r3, [r7, #4]
- 80036b6: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
- 80036ba: b2db uxtb r3, r3
- 80036bc: 2b00 cmp r3, #0
- 80036be: d106 bne.n 80036ce <HAL_TIM_Encoder_Init+0x2e>
+ 8003080: 687b ldr r3, [r7, #4]
+ 8003082: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
+ 8003086: b2db uxtb r3, r3
+ 8003088: 2b00 cmp r3, #0
+ 800308a: d106 bne.n 800309a <HAL_TIM_Encoder_Init+0x2e>
{
/* Allocate lock resource and initialize it */
htim->Lock = HAL_UNLOCKED;
- 80036c0: 687b ldr r3, [r7, #4]
- 80036c2: 2200 movs r2, #0
- 80036c4: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 800308c: 687b ldr r3, [r7, #4]
+ 800308e: 2200 movs r2, #0
+ 8003090: f883 203c strb.w r2, [r3, #60] ; 0x3c
}
/* Init the low level hardware : GPIO, CLOCK, NVIC */
htim->Encoder_MspInitCallback(htim);
#else
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
HAL_TIM_Encoder_MspInit(htim);
- 80036c8: 6878 ldr r0, [r7, #4]
- 80036ca: f7fd fe2d bl 8001328 <HAL_TIM_Encoder_MspInit>
+ 8003094: 6878 ldr r0, [r7, #4]
+ 8003096: f7fe f9a3 bl 80013e0 <HAL_TIM_Encoder_MspInit>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
- 80036ce: 687b ldr r3, [r7, #4]
- 80036d0: 2202 movs r2, #2
- 80036d2: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 800309a: 687b ldr r3, [r7, #4]
+ 800309c: 2202 movs r2, #2
+ 800309e: f883 203d strb.w r2, [r3, #61] ; 0x3d
/* Reset the SMS and ECE bits */
htim->Instance->SMCR &= ~(TIM_SMCR_SMS | TIM_SMCR_ECE);
- 80036d6: 687b ldr r3, [r7, #4]
- 80036d8: 681b ldr r3, [r3, #0]
- 80036da: 6899 ldr r1, [r3, #8]
- 80036dc: 687b ldr r3, [r7, #4]
- 80036de: 681a ldr r2, [r3, #0]
- 80036e0: 4b34 ldr r3, [pc, #208] ; (80037b4 <HAL_TIM_Encoder_Init+0x114>)
- 80036e2: 400b ands r3, r1
- 80036e4: 6093 str r3, [r2, #8]
+ 80030a2: 687b ldr r3, [r7, #4]
+ 80030a4: 681b ldr r3, [r3, #0]
+ 80030a6: 6899 ldr r1, [r3, #8]
+ 80030a8: 687b ldr r3, [r7, #4]
+ 80030aa: 681a ldr r2, [r3, #0]
+ 80030ac: 4b34 ldr r3, [pc, #208] ; (8003180 <HAL_TIM_Encoder_Init+0x114>)
+ 80030ae: 400b ands r3, r1
+ 80030b0: 6093 str r3, [r2, #8]
/* Configure the Time base in the Encoder Mode */
TIM_Base_SetConfig(htim->Instance, &htim->Init);
- 80036e6: 687b ldr r3, [r7, #4]
- 80036e8: 681a ldr r2, [r3, #0]
- 80036ea: 687b ldr r3, [r7, #4]
- 80036ec: 3304 adds r3, #4
- 80036ee: 4619 mov r1, r3
- 80036f0: 4610 mov r0, r2
- 80036f2: f000 fbb7 bl 8003e64 <TIM_Base_SetConfig>
+ 80030b2: 687b ldr r3, [r7, #4]
+ 80030b4: 681a ldr r2, [r3, #0]
+ 80030b6: 687b ldr r3, [r7, #4]
+ 80030b8: 3304 adds r3, #4
+ 80030ba: 4619 mov r1, r3
+ 80030bc: 4610 mov r0, r2
+ 80030be: f000 fbb7 bl 8003830 <TIM_Base_SetConfig>
/* Get the TIMx SMCR register value */
tmpsmcr = htim->Instance->SMCR;
- 80036f6: 687b ldr r3, [r7, #4]
- 80036f8: 681b ldr r3, [r3, #0]
- 80036fa: 689b ldr r3, [r3, #8]
- 80036fc: 617b str r3, [r7, #20]
+ 80030c2: 687b ldr r3, [r7, #4]
+ 80030c4: 681b ldr r3, [r3, #0]
+ 80030c6: 689b ldr r3, [r3, #8]
+ 80030c8: 617b str r3, [r7, #20]
/* Get the TIMx CCMR1 register value */
tmpccmr1 = htim->Instance->CCMR1;
- 80036fe: 687b ldr r3, [r7, #4]
- 8003700: 681b ldr r3, [r3, #0]
- 8003702: 699b ldr r3, [r3, #24]
- 8003704: 613b str r3, [r7, #16]
+ 80030ca: 687b ldr r3, [r7, #4]
+ 80030cc: 681b ldr r3, [r3, #0]
+ 80030ce: 699b ldr r3, [r3, #24]
+ 80030d0: 613b str r3, [r7, #16]
/* Get the TIMx CCER register value */
tmpccer = htim->Instance->CCER;
- 8003706: 687b ldr r3, [r7, #4]
- 8003708: 681b ldr r3, [r3, #0]
- 800370a: 6a1b ldr r3, [r3, #32]
- 800370c: 60fb str r3, [r7, #12]
+ 80030d2: 687b ldr r3, [r7, #4]
+ 80030d4: 681b ldr r3, [r3, #0]
+ 80030d6: 6a1b ldr r3, [r3, #32]
+ 80030d8: 60fb str r3, [r7, #12]
/* Set the encoder Mode */
tmpsmcr |= sConfig->EncoderMode;
- 800370e: 683b ldr r3, [r7, #0]
- 8003710: 681b ldr r3, [r3, #0]
- 8003712: 697a ldr r2, [r7, #20]
- 8003714: 4313 orrs r3, r2
- 8003716: 617b str r3, [r7, #20]
+ 80030da: 683b ldr r3, [r7, #0]
+ 80030dc: 681b ldr r3, [r3, #0]
+ 80030de: 697a ldr r2, [r7, #20]
+ 80030e0: 4313 orrs r3, r2
+ 80030e2: 617b str r3, [r7, #20]
/* Select the Capture Compare 1 and the Capture Compare 2 as input */
tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S);
- 8003718: 693a ldr r2, [r7, #16]
- 800371a: 4b27 ldr r3, [pc, #156] ; (80037b8 <HAL_TIM_Encoder_Init+0x118>)
- 800371c: 4013 ands r3, r2
- 800371e: 613b str r3, [r7, #16]
+ 80030e4: 693a ldr r2, [r7, #16]
+ 80030e6: 4b27 ldr r3, [pc, #156] ; (8003184 <HAL_TIM_Encoder_Init+0x118>)
+ 80030e8: 4013 ands r3, r2
+ 80030ea: 613b str r3, [r7, #16]
tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U));
- 8003720: 683b ldr r3, [r7, #0]
- 8003722: 689a ldr r2, [r3, #8]
- 8003724: 683b ldr r3, [r7, #0]
- 8003726: 699b ldr r3, [r3, #24]
- 8003728: 021b lsls r3, r3, #8
- 800372a: 4313 orrs r3, r2
- 800372c: 693a ldr r2, [r7, #16]
- 800372e: 4313 orrs r3, r2
- 8003730: 613b str r3, [r7, #16]
+ 80030ec: 683b ldr r3, [r7, #0]
+ 80030ee: 689a ldr r2, [r3, #8]
+ 80030f0: 683b ldr r3, [r7, #0]
+ 80030f2: 699b ldr r3, [r3, #24]
+ 80030f4: 021b lsls r3, r3, #8
+ 80030f6: 4313 orrs r3, r2
+ 80030f8: 693a ldr r2, [r7, #16]
+ 80030fa: 4313 orrs r3, r2
+ 80030fc: 613b str r3, [r7, #16]
/* Set the Capture Compare 1 and the Capture Compare 2 prescalers and filters */
tmpccmr1 &= ~(TIM_CCMR1_IC1PSC | TIM_CCMR1_IC2PSC);
- 8003732: 693a ldr r2, [r7, #16]
- 8003734: 4b21 ldr r3, [pc, #132] ; (80037bc <HAL_TIM_Encoder_Init+0x11c>)
- 8003736: 4013 ands r3, r2
- 8003738: 613b str r3, [r7, #16]
+ 80030fe: 693a ldr r2, [r7, #16]
+ 8003100: 4b21 ldr r3, [pc, #132] ; (8003188 <HAL_TIM_Encoder_Init+0x11c>)
+ 8003102: 4013 ands r3, r2
+ 8003104: 613b str r3, [r7, #16]
tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F);
- 800373a: 693a ldr r2, [r7, #16]
- 800373c: 4b20 ldr r3, [pc, #128] ; (80037c0 <HAL_TIM_Encoder_Init+0x120>)
- 800373e: 4013 ands r3, r2
- 8003740: 613b str r3, [r7, #16]
+ 8003106: 693a ldr r2, [r7, #16]
+ 8003108: 4b20 ldr r3, [pc, #128] ; (800318c <HAL_TIM_Encoder_Init+0x120>)
+ 800310a: 4013 ands r3, r2
+ 800310c: 613b str r3, [r7, #16]
tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U);
- 8003742: 683b ldr r3, [r7, #0]
- 8003744: 68da ldr r2, [r3, #12]
- 8003746: 683b ldr r3, [r7, #0]
- 8003748: 69db ldr r3, [r3, #28]
- 800374a: 021b lsls r3, r3, #8
- 800374c: 4313 orrs r3, r2
- 800374e: 693a ldr r2, [r7, #16]
- 8003750: 4313 orrs r3, r2
- 8003752: 613b str r3, [r7, #16]
+ 800310e: 683b ldr r3, [r7, #0]
+ 8003110: 68da ldr r2, [r3, #12]
+ 8003112: 683b ldr r3, [r7, #0]
+ 8003114: 69db ldr r3, [r3, #28]
+ 8003116: 021b lsls r3, r3, #8
+ 8003118: 4313 orrs r3, r2
+ 800311a: 693a ldr r2, [r7, #16]
+ 800311c: 4313 orrs r3, r2
+ 800311e: 613b str r3, [r7, #16]
tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U);
- 8003754: 683b ldr r3, [r7, #0]
- 8003756: 691b ldr r3, [r3, #16]
- 8003758: 011a lsls r2, r3, #4
- 800375a: 683b ldr r3, [r7, #0]
- 800375c: 6a1b ldr r3, [r3, #32]
- 800375e: 031b lsls r3, r3, #12
- 8003760: 4313 orrs r3, r2
- 8003762: 693a ldr r2, [r7, #16]
- 8003764: 4313 orrs r3, r2
- 8003766: 613b str r3, [r7, #16]
+ 8003120: 683b ldr r3, [r7, #0]
+ 8003122: 691b ldr r3, [r3, #16]
+ 8003124: 011a lsls r2, r3, #4
+ 8003126: 683b ldr r3, [r7, #0]
+ 8003128: 6a1b ldr r3, [r3, #32]
+ 800312a: 031b lsls r3, r3, #12
+ 800312c: 4313 orrs r3, r2
+ 800312e: 693a ldr r2, [r7, #16]
+ 8003130: 4313 orrs r3, r2
+ 8003132: 613b str r3, [r7, #16]
/* Set the TI1 and the TI2 Polarities */
tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P);
- 8003768: 68fb ldr r3, [r7, #12]
- 800376a: f023 0322 bic.w r3, r3, #34 ; 0x22
- 800376e: 60fb str r3, [r7, #12]
+ 8003134: 68fb ldr r3, [r7, #12]
+ 8003136: f023 0322 bic.w r3, r3, #34 ; 0x22
+ 800313a: 60fb str r3, [r7, #12]
tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP);
- 8003770: 68fb ldr r3, [r7, #12]
- 8003772: f023 0388 bic.w r3, r3, #136 ; 0x88
- 8003776: 60fb str r3, [r7, #12]
+ 800313c: 68fb ldr r3, [r7, #12]
+ 800313e: f023 0388 bic.w r3, r3, #136 ; 0x88
+ 8003142: 60fb str r3, [r7, #12]
tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U);
- 8003778: 683b ldr r3, [r7, #0]
- 800377a: 685a ldr r2, [r3, #4]
- 800377c: 683b ldr r3, [r7, #0]
- 800377e: 695b ldr r3, [r3, #20]
- 8003780: 011b lsls r3, r3, #4
- 8003782: 4313 orrs r3, r2
- 8003784: 68fa ldr r2, [r7, #12]
- 8003786: 4313 orrs r3, r2
- 8003788: 60fb str r3, [r7, #12]
+ 8003144: 683b ldr r3, [r7, #0]
+ 8003146: 685a ldr r2, [r3, #4]
+ 8003148: 683b ldr r3, [r7, #0]
+ 800314a: 695b ldr r3, [r3, #20]
+ 800314c: 011b lsls r3, r3, #4
+ 800314e: 4313 orrs r3, r2
+ 8003150: 68fa ldr r2, [r7, #12]
+ 8003152: 4313 orrs r3, r2
+ 8003154: 60fb str r3, [r7, #12]
/* Write to TIMx SMCR */
htim->Instance->SMCR = tmpsmcr;
- 800378a: 687b ldr r3, [r7, #4]
- 800378c: 681b ldr r3, [r3, #0]
- 800378e: 697a ldr r2, [r7, #20]
- 8003790: 609a str r2, [r3, #8]
+ 8003156: 687b ldr r3, [r7, #4]
+ 8003158: 681b ldr r3, [r3, #0]
+ 800315a: 697a ldr r2, [r7, #20]
+ 800315c: 609a str r2, [r3, #8]
/* Write to TIMx CCMR1 */
htim->Instance->CCMR1 = tmpccmr1;
- 8003792: 687b ldr r3, [r7, #4]
- 8003794: 681b ldr r3, [r3, #0]
- 8003796: 693a ldr r2, [r7, #16]
- 8003798: 619a str r2, [r3, #24]
+ 800315e: 687b ldr r3, [r7, #4]
+ 8003160: 681b ldr r3, [r3, #0]
+ 8003162: 693a ldr r2, [r7, #16]
+ 8003164: 619a str r2, [r3, #24]
/* Write to TIMx CCER */
htim->Instance->CCER = tmpccer;
- 800379a: 687b ldr r3, [r7, #4]
- 800379c: 681b ldr r3, [r3, #0]
- 800379e: 68fa ldr r2, [r7, #12]
- 80037a0: 621a str r2, [r3, #32]
+ 8003166: 687b ldr r3, [r7, #4]
+ 8003168: 681b ldr r3, [r3, #0]
+ 800316a: 68fa ldr r2, [r7, #12]
+ 800316c: 621a str r2, [r3, #32]
/* Initialize the TIM state*/
htim->State = HAL_TIM_STATE_READY;
- 80037a2: 687b ldr r3, [r7, #4]
- 80037a4: 2201 movs r2, #1
- 80037a6: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 800316e: 687b ldr r3, [r7, #4]
+ 8003170: 2201 movs r2, #1
+ 8003172: f883 203d strb.w r2, [r3, #61] ; 0x3d
return HAL_OK;
- 80037aa: 2300 movs r3, #0
+ 8003176: 2300 movs r3, #0
}
- 80037ac: 4618 mov r0, r3
- 80037ae: 3718 adds r7, #24
- 80037b0: 46bd mov sp, r7
- 80037b2: bd80 pop {r7, pc}
- 80037b4: fffebff8 .word 0xfffebff8
- 80037b8: fffffcfc .word 0xfffffcfc
- 80037bc: fffff3f3 .word 0xfffff3f3
- 80037c0: ffff0f0f .word 0xffff0f0f
-
-080037c4 <HAL_TIM_Encoder_Start>:
+ 8003178: 4618 mov r0, r3
+ 800317a: 3718 adds r7, #24
+ 800317c: 46bd mov sp, r7
+ 800317e: bd80 pop {r7, pc}
+ 8003180: fffebff8 .word 0xfffebff8
+ 8003184: fffffcfc .word 0xfffffcfc
+ 8003188: fffff3f3 .word 0xfffff3f3
+ 800318c: ffff0f0f .word 0xffff0f0f
+
+08003190 <HAL_TIM_Encoder_Start>:
* @arg TIM_CHANNEL_2: TIM Channel 2 selected
* @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
{
- 80037c4: b580 push {r7, lr}
- 80037c6: b082 sub sp, #8
- 80037c8: af00 add r7, sp, #0
- 80037ca: 6078 str r0, [r7, #4]
- 80037cc: 6039 str r1, [r7, #0]
+ 8003190: b580 push {r7, lr}
+ 8003192: b082 sub sp, #8
+ 8003194: af00 add r7, sp, #0
+ 8003196: 6078 str r0, [r7, #4]
+ 8003198: 6039 str r1, [r7, #0]
/* Check the parameters */
assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
/* Enable the encoder interface channels */
switch (Channel)
- 80037ce: 683b ldr r3, [r7, #0]
- 80037d0: 2b00 cmp r3, #0
- 80037d2: d002 beq.n 80037da <HAL_TIM_Encoder_Start+0x16>
- 80037d4: 2b04 cmp r3, #4
- 80037d6: d008 beq.n 80037ea <HAL_TIM_Encoder_Start+0x26>
- 80037d8: e00f b.n 80037fa <HAL_TIM_Encoder_Start+0x36>
+ 800319a: 683b ldr r3, [r7, #0]
+ 800319c: 2b00 cmp r3, #0
+ 800319e: d002 beq.n 80031a6 <HAL_TIM_Encoder_Start+0x16>
+ 80031a0: 2b04 cmp r3, #4
+ 80031a2: d008 beq.n 80031b6 <HAL_TIM_Encoder_Start+0x26>
+ 80031a4: e00f b.n 80031c6 <HAL_TIM_Encoder_Start+0x36>
{
case TIM_CHANNEL_1:
{
TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE);
- 80037da: 687b ldr r3, [r7, #4]
- 80037dc: 681b ldr r3, [r3, #0]
- 80037de: 2201 movs r2, #1
- 80037e0: 2100 movs r1, #0
- 80037e2: 4618 mov r0, r3
- 80037e4: f000 fed6 bl 8004594 <TIM_CCxChannelCmd>
+ 80031a6: 687b ldr r3, [r7, #4]
+ 80031a8: 681b ldr r3, [r3, #0]
+ 80031aa: 2201 movs r2, #1
+ 80031ac: 2100 movs r1, #0
+ 80031ae: 4618 mov r0, r3
+ 80031b0: f000 fed6 bl 8003f60 <TIM_CCxChannelCmd>
break;
- 80037e8: e016 b.n 8003818 <HAL_TIM_Encoder_Start+0x54>
+ 80031b4: e016 b.n 80031e4 <HAL_TIM_Encoder_Start+0x54>
}
case TIM_CHANNEL_2:
{
TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE);
- 80037ea: 687b ldr r3, [r7, #4]
- 80037ec: 681b ldr r3, [r3, #0]
- 80037ee: 2201 movs r2, #1
- 80037f0: 2104 movs r1, #4
- 80037f2: 4618 mov r0, r3
- 80037f4: f000 fece bl 8004594 <TIM_CCxChannelCmd>
+ 80031b6: 687b ldr r3, [r7, #4]
+ 80031b8: 681b ldr r3, [r3, #0]
+ 80031ba: 2201 movs r2, #1
+ 80031bc: 2104 movs r1, #4
+ 80031be: 4618 mov r0, r3
+ 80031c0: f000 fece bl 8003f60 <TIM_CCxChannelCmd>
break;
- 80037f8: e00e b.n 8003818 <HAL_TIM_Encoder_Start+0x54>
+ 80031c4: e00e b.n 80031e4 <HAL_TIM_Encoder_Start+0x54>
}
default :
{
TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE);
- 80037fa: 687b ldr r3, [r7, #4]
- 80037fc: 681b ldr r3, [r3, #0]
- 80037fe: 2201 movs r2, #1
- 8003800: 2100 movs r1, #0
- 8003802: 4618 mov r0, r3
- 8003804: f000 fec6 bl 8004594 <TIM_CCxChannelCmd>
+ 80031c6: 687b ldr r3, [r7, #4]
+ 80031c8: 681b ldr r3, [r3, #0]
+ 80031ca: 2201 movs r2, #1
+ 80031cc: 2100 movs r1, #0
+ 80031ce: 4618 mov r0, r3
+ 80031d0: f000 fec6 bl 8003f60 <TIM_CCxChannelCmd>
TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE);
- 8003808: 687b ldr r3, [r7, #4]
- 800380a: 681b ldr r3, [r3, #0]
- 800380c: 2201 movs r2, #1
- 800380e: 2104 movs r1, #4
- 8003810: 4618 mov r0, r3
- 8003812: f000 febf bl 8004594 <TIM_CCxChannelCmd>
+ 80031d4: 687b ldr r3, [r7, #4]
+ 80031d6: 681b ldr r3, [r3, #0]
+ 80031d8: 2201 movs r2, #1
+ 80031da: 2104 movs r1, #4
+ 80031dc: 4618 mov r0, r3
+ 80031de: f000 febf bl 8003f60 <TIM_CCxChannelCmd>
break;
- 8003816: bf00 nop
+ 80031e2: bf00 nop
}
}
/* Enable the Peripheral */
__HAL_TIM_ENABLE(htim);
- 8003818: 687b ldr r3, [r7, #4]
- 800381a: 681b ldr r3, [r3, #0]
- 800381c: 681a ldr r2, [r3, #0]
- 800381e: 687b ldr r3, [r7, #4]
- 8003820: 681b ldr r3, [r3, #0]
- 8003822: f042 0201 orr.w r2, r2, #1
- 8003826: 601a str r2, [r3, #0]
+ 80031e4: 687b ldr r3, [r7, #4]
+ 80031e6: 681b ldr r3, [r3, #0]
+ 80031e8: 681a ldr r2, [r3, #0]
+ 80031ea: 687b ldr r3, [r7, #4]
+ 80031ec: 681b ldr r3, [r3, #0]
+ 80031ee: f042 0201 orr.w r2, r2, #1
+ 80031f2: 601a str r2, [r3, #0]
/* Return function status */
return HAL_OK;
- 8003828: 2300 movs r3, #0
+ 80031f4: 2300 movs r3, #0
}
- 800382a: 4618 mov r0, r3
- 800382c: 3708 adds r7, #8
- 800382e: 46bd mov sp, r7
- 8003830: bd80 pop {r7, pc}
+ 80031f6: 4618 mov r0, r3
+ 80031f8: 3708 adds r7, #8
+ 80031fa: 46bd mov sp, r7
+ 80031fc: bd80 pop {r7, pc}
-08003832 <HAL_TIM_IRQHandler>:
+080031fe <HAL_TIM_IRQHandler>:
* @brief This function handles TIM interrupts requests.
* @param htim TIM handle
* @retval None
*/
void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
{
- 8003832: b580 push {r7, lr}
- 8003834: b082 sub sp, #8
- 8003836: af00 add r7, sp, #0
- 8003838: 6078 str r0, [r7, #4]
+ 80031fe: b580 push {r7, lr}
+ 8003200: b082 sub sp, #8
+ 8003202: af00 add r7, sp, #0
+ 8003204: 6078 str r0, [r7, #4]
/* Capture compare 1 event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
- 800383a: 687b ldr r3, [r7, #4]
- 800383c: 681b ldr r3, [r3, #0]
- 800383e: 691b ldr r3, [r3, #16]
- 8003840: f003 0302 and.w r3, r3, #2
- 8003844: 2b02 cmp r3, #2
- 8003846: d122 bne.n 800388e <HAL_TIM_IRQHandler+0x5c>
+ 8003206: 687b ldr r3, [r7, #4]
+ 8003208: 681b ldr r3, [r3, #0]
+ 800320a: 691b ldr r3, [r3, #16]
+ 800320c: f003 0302 and.w r3, r3, #2
+ 8003210: 2b02 cmp r3, #2
+ 8003212: d122 bne.n 800325a <HAL_TIM_IRQHandler+0x5c>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
- 8003848: 687b ldr r3, [r7, #4]
- 800384a: 681b ldr r3, [r3, #0]
- 800384c: 68db ldr r3, [r3, #12]
- 800384e: f003 0302 and.w r3, r3, #2
- 8003852: 2b02 cmp r3, #2
- 8003854: d11b bne.n 800388e <HAL_TIM_IRQHandler+0x5c>
+ 8003214: 687b ldr r3, [r7, #4]
+ 8003216: 681b ldr r3, [r3, #0]
+ 8003218: 68db ldr r3, [r3, #12]
+ 800321a: f003 0302 and.w r3, r3, #2
+ 800321e: 2b02 cmp r3, #2
+ 8003220: d11b bne.n 800325a <HAL_TIM_IRQHandler+0x5c>
{
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
- 8003856: 687b ldr r3, [r7, #4]
- 8003858: 681b ldr r3, [r3, #0]
- 800385a: f06f 0202 mvn.w r2, #2
- 800385e: 611a str r2, [r3, #16]
+ 8003222: 687b ldr r3, [r7, #4]
+ 8003224: 681b ldr r3, [r3, #0]
+ 8003226: f06f 0202 mvn.w r2, #2
+ 800322a: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
- 8003860: 687b ldr r3, [r7, #4]
- 8003862: 2201 movs r2, #1
- 8003864: 771a strb r2, [r3, #28]
+ 800322c: 687b ldr r3, [r7, #4]
+ 800322e: 2201 movs r2, #1
+ 8003230: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
- 8003866: 687b ldr r3, [r7, #4]
- 8003868: 681b ldr r3, [r3, #0]
- 800386a: 699b ldr r3, [r3, #24]
- 800386c: f003 0303 and.w r3, r3, #3
- 8003870: 2b00 cmp r3, #0
- 8003872: d003 beq.n 800387c <HAL_TIM_IRQHandler+0x4a>
+ 8003232: 687b ldr r3, [r7, #4]
+ 8003234: 681b ldr r3, [r3, #0]
+ 8003236: 699b ldr r3, [r3, #24]
+ 8003238: f003 0303 and.w r3, r3, #3
+ 800323c: 2b00 cmp r3, #0
+ 800323e: d003 beq.n 8003248 <HAL_TIM_IRQHandler+0x4a>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
- 8003874: 6878 ldr r0, [r7, #4]
- 8003876: f000 fad7 bl 8003e28 <HAL_TIM_IC_CaptureCallback>
- 800387a: e005 b.n 8003888 <HAL_TIM_IRQHandler+0x56>
+ 8003240: 6878 ldr r0, [r7, #4]
+ 8003242: f000 fad7 bl 80037f4 <HAL_TIM_IC_CaptureCallback>
+ 8003246: e005 b.n 8003254 <HAL_TIM_IRQHandler+0x56>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
- 800387c: 6878 ldr r0, [r7, #4]
- 800387e: f000 fac9 bl 8003e14 <HAL_TIM_OC_DelayElapsedCallback>
+ 8003248: 6878 ldr r0, [r7, #4]
+ 800324a: f000 fac9 bl 80037e0 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
- 8003882: 6878 ldr r0, [r7, #4]
- 8003884: f000 fada bl 8003e3c <HAL_TIM_PWM_PulseFinishedCallback>
+ 800324e: 6878 ldr r0, [r7, #4]
+ 8003250: f000 fada bl 8003808 <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 8003888: 687b ldr r3, [r7, #4]
- 800388a: 2200 movs r2, #0
- 800388c: 771a strb r2, [r3, #28]
+ 8003254: 687b ldr r3, [r7, #4]
+ 8003256: 2200 movs r2, #0
+ 8003258: 771a strb r2, [r3, #28]
}
}
}
/* Capture compare 2 event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
- 800388e: 687b ldr r3, [r7, #4]
- 8003890: 681b ldr r3, [r3, #0]
- 8003892: 691b ldr r3, [r3, #16]
- 8003894: f003 0304 and.w r3, r3, #4
- 8003898: 2b04 cmp r3, #4
- 800389a: d122 bne.n 80038e2 <HAL_TIM_IRQHandler+0xb0>
+ 800325a: 687b ldr r3, [r7, #4]
+ 800325c: 681b ldr r3, [r3, #0]
+ 800325e: 691b ldr r3, [r3, #16]
+ 8003260: f003 0304 and.w r3, r3, #4
+ 8003264: 2b04 cmp r3, #4
+ 8003266: d122 bne.n 80032ae <HAL_TIM_IRQHandler+0xb0>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
- 800389c: 687b ldr r3, [r7, #4]
- 800389e: 681b ldr r3, [r3, #0]
- 80038a0: 68db ldr r3, [r3, #12]
- 80038a2: f003 0304 and.w r3, r3, #4
- 80038a6: 2b04 cmp r3, #4
- 80038a8: d11b bne.n 80038e2 <HAL_TIM_IRQHandler+0xb0>
+ 8003268: 687b ldr r3, [r7, #4]
+ 800326a: 681b ldr r3, [r3, #0]
+ 800326c: 68db ldr r3, [r3, #12]
+ 800326e: f003 0304 and.w r3, r3, #4
+ 8003272: 2b04 cmp r3, #4
+ 8003274: d11b bne.n 80032ae <HAL_TIM_IRQHandler+0xb0>
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
- 80038aa: 687b ldr r3, [r7, #4]
- 80038ac: 681b ldr r3, [r3, #0]
- 80038ae: f06f 0204 mvn.w r2, #4
- 80038b2: 611a str r2, [r3, #16]
+ 8003276: 687b ldr r3, [r7, #4]
+ 8003278: 681b ldr r3, [r3, #0]
+ 800327a: f06f 0204 mvn.w r2, #4
+ 800327e: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
- 80038b4: 687b ldr r3, [r7, #4]
- 80038b6: 2202 movs r2, #2
- 80038b8: 771a strb r2, [r3, #28]
+ 8003280: 687b ldr r3, [r7, #4]
+ 8003282: 2202 movs r2, #2
+ 8003284: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
- 80038ba: 687b ldr r3, [r7, #4]
- 80038bc: 681b ldr r3, [r3, #0]
- 80038be: 699b ldr r3, [r3, #24]
- 80038c0: f403 7340 and.w r3, r3, #768 ; 0x300
- 80038c4: 2b00 cmp r3, #0
- 80038c6: d003 beq.n 80038d0 <HAL_TIM_IRQHandler+0x9e>
+ 8003286: 687b ldr r3, [r7, #4]
+ 8003288: 681b ldr r3, [r3, #0]
+ 800328a: 699b ldr r3, [r3, #24]
+ 800328c: f403 7340 and.w r3, r3, #768 ; 0x300
+ 8003290: 2b00 cmp r3, #0
+ 8003292: d003 beq.n 800329c <HAL_TIM_IRQHandler+0x9e>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
- 80038c8: 6878 ldr r0, [r7, #4]
- 80038ca: f000 faad bl 8003e28 <HAL_TIM_IC_CaptureCallback>
- 80038ce: e005 b.n 80038dc <HAL_TIM_IRQHandler+0xaa>
+ 8003294: 6878 ldr r0, [r7, #4]
+ 8003296: f000 faad bl 80037f4 <HAL_TIM_IC_CaptureCallback>
+ 800329a: e005 b.n 80032a8 <HAL_TIM_IRQHandler+0xaa>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
- 80038d0: 6878 ldr r0, [r7, #4]
- 80038d2: f000 fa9f bl 8003e14 <HAL_TIM_OC_DelayElapsedCallback>
+ 800329c: 6878 ldr r0, [r7, #4]
+ 800329e: f000 fa9f bl 80037e0 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
- 80038d6: 6878 ldr r0, [r7, #4]
- 80038d8: f000 fab0 bl 8003e3c <HAL_TIM_PWM_PulseFinishedCallback>
+ 80032a2: 6878 ldr r0, [r7, #4]
+ 80032a4: f000 fab0 bl 8003808 <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 80038dc: 687b ldr r3, [r7, #4]
- 80038de: 2200 movs r2, #0
- 80038e0: 771a strb r2, [r3, #28]
+ 80032a8: 687b ldr r3, [r7, #4]
+ 80032aa: 2200 movs r2, #0
+ 80032ac: 771a strb r2, [r3, #28]
}
}
/* Capture compare 3 event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
- 80038e2: 687b ldr r3, [r7, #4]
- 80038e4: 681b ldr r3, [r3, #0]
- 80038e6: 691b ldr r3, [r3, #16]
- 80038e8: f003 0308 and.w r3, r3, #8
- 80038ec: 2b08 cmp r3, #8
- 80038ee: d122 bne.n 8003936 <HAL_TIM_IRQHandler+0x104>
+ 80032ae: 687b ldr r3, [r7, #4]
+ 80032b0: 681b ldr r3, [r3, #0]
+ 80032b2: 691b ldr r3, [r3, #16]
+ 80032b4: f003 0308 and.w r3, r3, #8
+ 80032b8: 2b08 cmp r3, #8
+ 80032ba: d122 bne.n 8003302 <HAL_TIM_IRQHandler+0x104>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
- 80038f0: 687b ldr r3, [r7, #4]
- 80038f2: 681b ldr r3, [r3, #0]
- 80038f4: 68db ldr r3, [r3, #12]
- 80038f6: f003 0308 and.w r3, r3, #8
- 80038fa: 2b08 cmp r3, #8
- 80038fc: d11b bne.n 8003936 <HAL_TIM_IRQHandler+0x104>
+ 80032bc: 687b ldr r3, [r7, #4]
+ 80032be: 681b ldr r3, [r3, #0]
+ 80032c0: 68db ldr r3, [r3, #12]
+ 80032c2: f003 0308 and.w r3, r3, #8
+ 80032c6: 2b08 cmp r3, #8
+ 80032c8: d11b bne.n 8003302 <HAL_TIM_IRQHandler+0x104>
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
- 80038fe: 687b ldr r3, [r7, #4]
- 8003900: 681b ldr r3, [r3, #0]
- 8003902: f06f 0208 mvn.w r2, #8
- 8003906: 611a str r2, [r3, #16]
+ 80032ca: 687b ldr r3, [r7, #4]
+ 80032cc: 681b ldr r3, [r3, #0]
+ 80032ce: f06f 0208 mvn.w r2, #8
+ 80032d2: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
- 8003908: 687b ldr r3, [r7, #4]
- 800390a: 2204 movs r2, #4
- 800390c: 771a strb r2, [r3, #28]
+ 80032d4: 687b ldr r3, [r7, #4]
+ 80032d6: 2204 movs r2, #4
+ 80032d8: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
- 800390e: 687b ldr r3, [r7, #4]
- 8003910: 681b ldr r3, [r3, #0]
- 8003912: 69db ldr r3, [r3, #28]
- 8003914: f003 0303 and.w r3, r3, #3
- 8003918: 2b00 cmp r3, #0
- 800391a: d003 beq.n 8003924 <HAL_TIM_IRQHandler+0xf2>
+ 80032da: 687b ldr r3, [r7, #4]
+ 80032dc: 681b ldr r3, [r3, #0]
+ 80032de: 69db ldr r3, [r3, #28]
+ 80032e0: f003 0303 and.w r3, r3, #3
+ 80032e4: 2b00 cmp r3, #0
+ 80032e6: d003 beq.n 80032f0 <HAL_TIM_IRQHandler+0xf2>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
- 800391c: 6878 ldr r0, [r7, #4]
- 800391e: f000 fa83 bl 8003e28 <HAL_TIM_IC_CaptureCallback>
- 8003922: e005 b.n 8003930 <HAL_TIM_IRQHandler+0xfe>
+ 80032e8: 6878 ldr r0, [r7, #4]
+ 80032ea: f000 fa83 bl 80037f4 <HAL_TIM_IC_CaptureCallback>
+ 80032ee: e005 b.n 80032fc <HAL_TIM_IRQHandler+0xfe>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
- 8003924: 6878 ldr r0, [r7, #4]
- 8003926: f000 fa75 bl 8003e14 <HAL_TIM_OC_DelayElapsedCallback>
+ 80032f0: 6878 ldr r0, [r7, #4]
+ 80032f2: f000 fa75 bl 80037e0 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
- 800392a: 6878 ldr r0, [r7, #4]
- 800392c: f000 fa86 bl 8003e3c <HAL_TIM_PWM_PulseFinishedCallback>
+ 80032f6: 6878 ldr r0, [r7, #4]
+ 80032f8: f000 fa86 bl 8003808 <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 8003930: 687b ldr r3, [r7, #4]
- 8003932: 2200 movs r2, #0
- 8003934: 771a strb r2, [r3, #28]
+ 80032fc: 687b ldr r3, [r7, #4]
+ 80032fe: 2200 movs r2, #0
+ 8003300: 771a strb r2, [r3, #28]
}
}
/* Capture compare 4 event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
- 8003936: 687b ldr r3, [r7, #4]
- 8003938: 681b ldr r3, [r3, #0]
- 800393a: 691b ldr r3, [r3, #16]
- 800393c: f003 0310 and.w r3, r3, #16
- 8003940: 2b10 cmp r3, #16
- 8003942: d122 bne.n 800398a <HAL_TIM_IRQHandler+0x158>
+ 8003302: 687b ldr r3, [r7, #4]
+ 8003304: 681b ldr r3, [r3, #0]
+ 8003306: 691b ldr r3, [r3, #16]
+ 8003308: f003 0310 and.w r3, r3, #16
+ 800330c: 2b10 cmp r3, #16
+ 800330e: d122 bne.n 8003356 <HAL_TIM_IRQHandler+0x158>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
- 8003944: 687b ldr r3, [r7, #4]
- 8003946: 681b ldr r3, [r3, #0]
- 8003948: 68db ldr r3, [r3, #12]
- 800394a: f003 0310 and.w r3, r3, #16
- 800394e: 2b10 cmp r3, #16
- 8003950: d11b bne.n 800398a <HAL_TIM_IRQHandler+0x158>
+ 8003310: 687b ldr r3, [r7, #4]
+ 8003312: 681b ldr r3, [r3, #0]
+ 8003314: 68db ldr r3, [r3, #12]
+ 8003316: f003 0310 and.w r3, r3, #16
+ 800331a: 2b10 cmp r3, #16
+ 800331c: d11b bne.n 8003356 <HAL_TIM_IRQHandler+0x158>
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
- 8003952: 687b ldr r3, [r7, #4]
- 8003954: 681b ldr r3, [r3, #0]
- 8003956: f06f 0210 mvn.w r2, #16
- 800395a: 611a str r2, [r3, #16]
+ 800331e: 687b ldr r3, [r7, #4]
+ 8003320: 681b ldr r3, [r3, #0]
+ 8003322: f06f 0210 mvn.w r2, #16
+ 8003326: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
- 800395c: 687b ldr r3, [r7, #4]
- 800395e: 2208 movs r2, #8
- 8003960: 771a strb r2, [r3, #28]
+ 8003328: 687b ldr r3, [r7, #4]
+ 800332a: 2208 movs r2, #8
+ 800332c: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
- 8003962: 687b ldr r3, [r7, #4]
- 8003964: 681b ldr r3, [r3, #0]
- 8003966: 69db ldr r3, [r3, #28]
- 8003968: f403 7340 and.w r3, r3, #768 ; 0x300
- 800396c: 2b00 cmp r3, #0
- 800396e: d003 beq.n 8003978 <HAL_TIM_IRQHandler+0x146>
+ 800332e: 687b ldr r3, [r7, #4]
+ 8003330: 681b ldr r3, [r3, #0]
+ 8003332: 69db ldr r3, [r3, #28]
+ 8003334: f403 7340 and.w r3, r3, #768 ; 0x300
+ 8003338: 2b00 cmp r3, #0
+ 800333a: d003 beq.n 8003344 <HAL_TIM_IRQHandler+0x146>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
- 8003970: 6878 ldr r0, [r7, #4]
- 8003972: f000 fa59 bl 8003e28 <HAL_TIM_IC_CaptureCallback>
- 8003976: e005 b.n 8003984 <HAL_TIM_IRQHandler+0x152>
+ 800333c: 6878 ldr r0, [r7, #4]
+ 800333e: f000 fa59 bl 80037f4 <HAL_TIM_IC_CaptureCallback>
+ 8003342: e005 b.n 8003350 <HAL_TIM_IRQHandler+0x152>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
- 8003978: 6878 ldr r0, [r7, #4]
- 800397a: f000 fa4b bl 8003e14 <HAL_TIM_OC_DelayElapsedCallback>
+ 8003344: 6878 ldr r0, [r7, #4]
+ 8003346: f000 fa4b bl 80037e0 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
- 800397e: 6878 ldr r0, [r7, #4]
- 8003980: f000 fa5c bl 8003e3c <HAL_TIM_PWM_PulseFinishedCallback>
+ 800334a: 6878 ldr r0, [r7, #4]
+ 800334c: f000 fa5c bl 8003808 <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
- 8003984: 687b ldr r3, [r7, #4]
- 8003986: 2200 movs r2, #0
- 8003988: 771a strb r2, [r3, #28]
+ 8003350: 687b ldr r3, [r7, #4]
+ 8003352: 2200 movs r2, #0
+ 8003354: 771a strb r2, [r3, #28]
}
}
/* TIM Update event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
- 800398a: 687b ldr r3, [r7, #4]
- 800398c: 681b ldr r3, [r3, #0]
- 800398e: 691b ldr r3, [r3, #16]
- 8003990: f003 0301 and.w r3, r3, #1
- 8003994: 2b01 cmp r3, #1
- 8003996: d10e bne.n 80039b6 <HAL_TIM_IRQHandler+0x184>
+ 8003356: 687b ldr r3, [r7, #4]
+ 8003358: 681b ldr r3, [r3, #0]
+ 800335a: 691b ldr r3, [r3, #16]
+ 800335c: f003 0301 and.w r3, r3, #1
+ 8003360: 2b01 cmp r3, #1
+ 8003362: d10e bne.n 8003382 <HAL_TIM_IRQHandler+0x184>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
- 8003998: 687b ldr r3, [r7, #4]
- 800399a: 681b ldr r3, [r3, #0]
- 800399c: 68db ldr r3, [r3, #12]
- 800399e: f003 0301 and.w r3, r3, #1
- 80039a2: 2b01 cmp r3, #1
- 80039a4: d107 bne.n 80039b6 <HAL_TIM_IRQHandler+0x184>
+ 8003364: 687b ldr r3, [r7, #4]
+ 8003366: 681b ldr r3, [r3, #0]
+ 8003368: 68db ldr r3, [r3, #12]
+ 800336a: f003 0301 and.w r3, r3, #1
+ 800336e: 2b01 cmp r3, #1
+ 8003370: d107 bne.n 8003382 <HAL_TIM_IRQHandler+0x184>
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
- 80039a6: 687b ldr r3, [r7, #4]
- 80039a8: 681b ldr r3, [r3, #0]
- 80039aa: f06f 0201 mvn.w r2, #1
- 80039ae: 611a str r2, [r3, #16]
+ 8003372: 687b ldr r3, [r7, #4]
+ 8003374: 681b ldr r3, [r3, #0]
+ 8003376: f06f 0201 mvn.w r2, #1
+ 800337a: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->PeriodElapsedCallback(htim);
#else
HAL_TIM_PeriodElapsedCallback(htim);
- 80039b0: 6878 ldr r0, [r7, #4]
- 80039b2: f7fd fbc1 bl 8001138 <HAL_TIM_PeriodElapsedCallback>
+ 800337c: 6878 ldr r0, [r7, #4]
+ 800337e: f7fd feeb bl 8001158 <HAL_TIM_PeriodElapsedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Break input event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET)
- 80039b6: 687b ldr r3, [r7, #4]
- 80039b8: 681b ldr r3, [r3, #0]
- 80039ba: 691b ldr r3, [r3, #16]
- 80039bc: f003 0380 and.w r3, r3, #128 ; 0x80
- 80039c0: 2b80 cmp r3, #128 ; 0x80
- 80039c2: d10e bne.n 80039e2 <HAL_TIM_IRQHandler+0x1b0>
+ 8003382: 687b ldr r3, [r7, #4]
+ 8003384: 681b ldr r3, [r3, #0]
+ 8003386: 691b ldr r3, [r3, #16]
+ 8003388: f003 0380 and.w r3, r3, #128 ; 0x80
+ 800338c: 2b80 cmp r3, #128 ; 0x80
+ 800338e: d10e bne.n 80033ae <HAL_TIM_IRQHandler+0x1b0>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET)
- 80039c4: 687b ldr r3, [r7, #4]
- 80039c6: 681b ldr r3, [r3, #0]
- 80039c8: 68db ldr r3, [r3, #12]
- 80039ca: f003 0380 and.w r3, r3, #128 ; 0x80
- 80039ce: 2b80 cmp r3, #128 ; 0x80
- 80039d0: d107 bne.n 80039e2 <HAL_TIM_IRQHandler+0x1b0>
+ 8003390: 687b ldr r3, [r7, #4]
+ 8003392: 681b ldr r3, [r3, #0]
+ 8003394: 68db ldr r3, [r3, #12]
+ 8003396: f003 0380 and.w r3, r3, #128 ; 0x80
+ 800339a: 2b80 cmp r3, #128 ; 0x80
+ 800339c: d107 bne.n 80033ae <HAL_TIM_IRQHandler+0x1b0>
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK);
- 80039d2: 687b ldr r3, [r7, #4]
- 80039d4: 681b ldr r3, [r3, #0]
- 80039d6: f06f 0280 mvn.w r2, #128 ; 0x80
- 80039da: 611a str r2, [r3, #16]
+ 800339e: 687b ldr r3, [r7, #4]
+ 80033a0: 681b ldr r3, [r3, #0]
+ 80033a2: f06f 0280 mvn.w r2, #128 ; 0x80
+ 80033a6: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->BreakCallback(htim);
#else
HAL_TIMEx_BreakCallback(htim);
- 80039dc: 6878 ldr r0, [r7, #4]
- 80039de: f000 fe65 bl 80046ac <HAL_TIMEx_BreakCallback>
+ 80033a8: 6878 ldr r0, [r7, #4]
+ 80033aa: f000 fe65 bl 8004078 <HAL_TIMEx_BreakCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Break2 input event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK2) != RESET)
- 80039e2: 687b ldr r3, [r7, #4]
- 80039e4: 681b ldr r3, [r3, #0]
- 80039e6: 691b ldr r3, [r3, #16]
- 80039e8: f403 7380 and.w r3, r3, #256 ; 0x100
- 80039ec: f5b3 7f80 cmp.w r3, #256 ; 0x100
- 80039f0: d10e bne.n 8003a10 <HAL_TIM_IRQHandler+0x1de>
+ 80033ae: 687b ldr r3, [r7, #4]
+ 80033b0: 681b ldr r3, [r3, #0]
+ 80033b2: 691b ldr r3, [r3, #16]
+ 80033b4: f403 7380 and.w r3, r3, #256 ; 0x100
+ 80033b8: f5b3 7f80 cmp.w r3, #256 ; 0x100
+ 80033bc: d10e bne.n 80033dc <HAL_TIM_IRQHandler+0x1de>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET)
- 80039f2: 687b ldr r3, [r7, #4]
- 80039f4: 681b ldr r3, [r3, #0]
- 80039f6: 68db ldr r3, [r3, #12]
- 80039f8: f003 0380 and.w r3, r3, #128 ; 0x80
- 80039fc: 2b80 cmp r3, #128 ; 0x80
- 80039fe: d107 bne.n 8003a10 <HAL_TIM_IRQHandler+0x1de>
+ 80033be: 687b ldr r3, [r7, #4]
+ 80033c0: 681b ldr r3, [r3, #0]
+ 80033c2: 68db ldr r3, [r3, #12]
+ 80033c4: f003 0380 and.w r3, r3, #128 ; 0x80
+ 80033c8: 2b80 cmp r3, #128 ; 0x80
+ 80033ca: d107 bne.n 80033dc <HAL_TIM_IRQHandler+0x1de>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
- 8003a00: 687b ldr r3, [r7, #4]
- 8003a02: 681b ldr r3, [r3, #0]
- 8003a04: f46f 7280 mvn.w r2, #256 ; 0x100
- 8003a08: 611a str r2, [r3, #16]
+ 80033cc: 687b ldr r3, [r7, #4]
+ 80033ce: 681b ldr r3, [r3, #0]
+ 80033d0: f46f 7280 mvn.w r2, #256 ; 0x100
+ 80033d4: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->Break2Callback(htim);
#else
HAL_TIMEx_Break2Callback(htim);
- 8003a0a: 6878 ldr r0, [r7, #4]
- 8003a0c: f000 fe58 bl 80046c0 <HAL_TIMEx_Break2Callback>
+ 80033d6: 6878 ldr r0, [r7, #4]
+ 80033d8: f000 fe58 bl 800408c <HAL_TIMEx_Break2Callback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Trigger detection event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
- 8003a10: 687b ldr r3, [r7, #4]
- 8003a12: 681b ldr r3, [r3, #0]
- 8003a14: 691b ldr r3, [r3, #16]
- 8003a16: f003 0340 and.w r3, r3, #64 ; 0x40
- 8003a1a: 2b40 cmp r3, #64 ; 0x40
- 8003a1c: d10e bne.n 8003a3c <HAL_TIM_IRQHandler+0x20a>
+ 80033dc: 687b ldr r3, [r7, #4]
+ 80033de: 681b ldr r3, [r3, #0]
+ 80033e0: 691b ldr r3, [r3, #16]
+ 80033e2: f003 0340 and.w r3, r3, #64 ; 0x40
+ 80033e6: 2b40 cmp r3, #64 ; 0x40
+ 80033e8: d10e bne.n 8003408 <HAL_TIM_IRQHandler+0x20a>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
- 8003a1e: 687b ldr r3, [r7, #4]
- 8003a20: 681b ldr r3, [r3, #0]
- 8003a22: 68db ldr r3, [r3, #12]
- 8003a24: f003 0340 and.w r3, r3, #64 ; 0x40
- 8003a28: 2b40 cmp r3, #64 ; 0x40
- 8003a2a: d107 bne.n 8003a3c <HAL_TIM_IRQHandler+0x20a>
+ 80033ea: 687b ldr r3, [r7, #4]
+ 80033ec: 681b ldr r3, [r3, #0]
+ 80033ee: 68db ldr r3, [r3, #12]
+ 80033f0: f003 0340 and.w r3, r3, #64 ; 0x40
+ 80033f4: 2b40 cmp r3, #64 ; 0x40
+ 80033f6: d107 bne.n 8003408 <HAL_TIM_IRQHandler+0x20a>
{
__HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
- 8003a2c: 687b ldr r3, [r7, #4]
- 8003a2e: 681b ldr r3, [r3, #0]
- 8003a30: f06f 0240 mvn.w r2, #64 ; 0x40
- 8003a34: 611a str r2, [r3, #16]
+ 80033f8: 687b ldr r3, [r7, #4]
+ 80033fa: 681b ldr r3, [r3, #0]
+ 80033fc: f06f 0240 mvn.w r2, #64 ; 0x40
+ 8003400: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->TriggerCallback(htim);
#else
HAL_TIM_TriggerCallback(htim);
- 8003a36: 6878 ldr r0, [r7, #4]
- 8003a38: f000 fa0a bl 8003e50 <HAL_TIM_TriggerCallback>
+ 8003402: 6878 ldr r0, [r7, #4]
+ 8003404: f000 fa0a bl 800381c <HAL_TIM_TriggerCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM commutation event */
if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET)
- 8003a3c: 687b ldr r3, [r7, #4]
- 8003a3e: 681b ldr r3, [r3, #0]
- 8003a40: 691b ldr r3, [r3, #16]
- 8003a42: f003 0320 and.w r3, r3, #32
- 8003a46: 2b20 cmp r3, #32
- 8003a48: d10e bne.n 8003a68 <HAL_TIM_IRQHandler+0x236>
+ 8003408: 687b ldr r3, [r7, #4]
+ 800340a: 681b ldr r3, [r3, #0]
+ 800340c: 691b ldr r3, [r3, #16]
+ 800340e: f003 0320 and.w r3, r3, #32
+ 8003412: 2b20 cmp r3, #32
+ 8003414: d10e bne.n 8003434 <HAL_TIM_IRQHandler+0x236>
{
if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET)
- 8003a4a: 687b ldr r3, [r7, #4]
- 8003a4c: 681b ldr r3, [r3, #0]
- 8003a4e: 68db ldr r3, [r3, #12]
- 8003a50: f003 0320 and.w r3, r3, #32
- 8003a54: 2b20 cmp r3, #32
- 8003a56: d107 bne.n 8003a68 <HAL_TIM_IRQHandler+0x236>
+ 8003416: 687b ldr r3, [r7, #4]
+ 8003418: 681b ldr r3, [r3, #0]
+ 800341a: 68db ldr r3, [r3, #12]
+ 800341c: f003 0320 and.w r3, r3, #32
+ 8003420: 2b20 cmp r3, #32
+ 8003422: d107 bne.n 8003434 <HAL_TIM_IRQHandler+0x236>
{
__HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM);
- 8003a58: 687b ldr r3, [r7, #4]
- 8003a5a: 681b ldr r3, [r3, #0]
- 8003a5c: f06f 0220 mvn.w r2, #32
- 8003a60: 611a str r2, [r3, #16]
+ 8003424: 687b ldr r3, [r7, #4]
+ 8003426: 681b ldr r3, [r3, #0]
+ 8003428: f06f 0220 mvn.w r2, #32
+ 800342c: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->CommutationCallback(htim);
#else
HAL_TIMEx_CommutCallback(htim);
- 8003a62: 6878 ldr r0, [r7, #4]
- 8003a64: f000 fe18 bl 8004698 <HAL_TIMEx_CommutCallback>
+ 800342e: 6878 ldr r0, [r7, #4]
+ 8003430: f000 fe18 bl 8004064 <HAL_TIMEx_CommutCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
}
- 8003a68: bf00 nop
- 8003a6a: 3708 adds r7, #8
- 8003a6c: 46bd mov sp, r7
- 8003a6e: bd80 pop {r7, pc}
+ 8003434: bf00 nop
+ 8003436: 3708 adds r7, #8
+ 8003438: 46bd mov sp, r7
+ 800343a: bd80 pop {r7, pc}
-08003a70 <HAL_TIM_PWM_ConfigChannel>:
+0800343c <HAL_TIM_PWM_ConfigChannel>:
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
TIM_OC_InitTypeDef *sConfig,
uint32_t Channel)
{
- 8003a70: b580 push {r7, lr}
- 8003a72: b084 sub sp, #16
- 8003a74: af00 add r7, sp, #0
- 8003a76: 60f8 str r0, [r7, #12]
- 8003a78: 60b9 str r1, [r7, #8]
- 8003a7a: 607a str r2, [r7, #4]
+ 800343c: b580 push {r7, lr}
+ 800343e: b084 sub sp, #16
+ 8003440: af00 add r7, sp, #0
+ 8003442: 60f8 str r0, [r7, #12]
+ 8003444: 60b9 str r1, [r7, #8]
+ 8003446: 607a str r2, [r7, #4]
assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
/* Process Locked */
__HAL_LOCK(htim);
- 8003a7c: 68fb ldr r3, [r7, #12]
- 8003a7e: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
- 8003a82: 2b01 cmp r3, #1
- 8003a84: d101 bne.n 8003a8a <HAL_TIM_PWM_ConfigChannel+0x1a>
- 8003a86: 2302 movs r3, #2
- 8003a88: e105 b.n 8003c96 <HAL_TIM_PWM_ConfigChannel+0x226>
- 8003a8a: 68fb ldr r3, [r7, #12]
- 8003a8c: 2201 movs r2, #1
- 8003a8e: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 8003448: 68fb ldr r3, [r7, #12]
+ 800344a: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
+ 800344e: 2b01 cmp r3, #1
+ 8003450: d101 bne.n 8003456 <HAL_TIM_PWM_ConfigChannel+0x1a>
+ 8003452: 2302 movs r3, #2
+ 8003454: e105 b.n 8003662 <HAL_TIM_PWM_ConfigChannel+0x226>
+ 8003456: 68fb ldr r3, [r7, #12]
+ 8003458: 2201 movs r2, #1
+ 800345a: f883 203c strb.w r2, [r3, #60] ; 0x3c
htim->State = HAL_TIM_STATE_BUSY;
- 8003a92: 68fb ldr r3, [r7, #12]
- 8003a94: 2202 movs r2, #2
- 8003a96: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 800345e: 68fb ldr r3, [r7, #12]
+ 8003460: 2202 movs r2, #2
+ 8003462: f883 203d strb.w r2, [r3, #61] ; 0x3d
switch (Channel)
- 8003a9a: 687b ldr r3, [r7, #4]
- 8003a9c: 2b14 cmp r3, #20
- 8003a9e: f200 80f0 bhi.w 8003c82 <HAL_TIM_PWM_ConfigChannel+0x212>
- 8003aa2: a201 add r2, pc, #4 ; (adr r2, 8003aa8 <HAL_TIM_PWM_ConfigChannel+0x38>)
- 8003aa4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8003aa8: 08003afd .word 0x08003afd
- 8003aac: 08003c83 .word 0x08003c83
- 8003ab0: 08003c83 .word 0x08003c83
- 8003ab4: 08003c83 .word 0x08003c83
- 8003ab8: 08003b3d .word 0x08003b3d
- 8003abc: 08003c83 .word 0x08003c83
- 8003ac0: 08003c83 .word 0x08003c83
- 8003ac4: 08003c83 .word 0x08003c83
- 8003ac8: 08003b7f .word 0x08003b7f
- 8003acc: 08003c83 .word 0x08003c83
- 8003ad0: 08003c83 .word 0x08003c83
- 8003ad4: 08003c83 .word 0x08003c83
- 8003ad8: 08003bbf .word 0x08003bbf
- 8003adc: 08003c83 .word 0x08003c83
- 8003ae0: 08003c83 .word 0x08003c83
- 8003ae4: 08003c83 .word 0x08003c83
- 8003ae8: 08003c01 .word 0x08003c01
- 8003aec: 08003c83 .word 0x08003c83
- 8003af0: 08003c83 .word 0x08003c83
- 8003af4: 08003c83 .word 0x08003c83
- 8003af8: 08003c41 .word 0x08003c41
+ 8003466: 687b ldr r3, [r7, #4]
+ 8003468: 2b14 cmp r3, #20
+ 800346a: f200 80f0 bhi.w 800364e <HAL_TIM_PWM_ConfigChannel+0x212>
+ 800346e: a201 add r2, pc, #4 ; (adr r2, 8003474 <HAL_TIM_PWM_ConfigChannel+0x38>)
+ 8003470: f852 f023 ldr.w pc, [r2, r3, lsl #2]
+ 8003474: 080034c9 .word 0x080034c9
+ 8003478: 0800364f .word 0x0800364f
+ 800347c: 0800364f .word 0x0800364f
+ 8003480: 0800364f .word 0x0800364f
+ 8003484: 08003509 .word 0x08003509
+ 8003488: 0800364f .word 0x0800364f
+ 800348c: 0800364f .word 0x0800364f
+ 8003490: 0800364f .word 0x0800364f
+ 8003494: 0800354b .word 0x0800354b
+ 8003498: 0800364f .word 0x0800364f
+ 800349c: 0800364f .word 0x0800364f
+ 80034a0: 0800364f .word 0x0800364f
+ 80034a4: 0800358b .word 0x0800358b
+ 80034a8: 0800364f .word 0x0800364f
+ 80034ac: 0800364f .word 0x0800364f
+ 80034b0: 0800364f .word 0x0800364f
+ 80034b4: 080035cd .word 0x080035cd
+ 80034b8: 0800364f .word 0x0800364f
+ 80034bc: 0800364f .word 0x0800364f
+ 80034c0: 0800364f .word 0x0800364f
+ 80034c4: 0800360d .word 0x0800360d
{
/* Check the parameters */
assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
/* Configure the Channel 1 in PWM mode */
TIM_OC1_SetConfig(htim->Instance, sConfig);
- 8003afc: 68fb ldr r3, [r7, #12]
- 8003afe: 681b ldr r3, [r3, #0]
- 8003b00: 68b9 ldr r1, [r7, #8]
- 8003b02: 4618 mov r0, r3
- 8003b04: f000 fa4e bl 8003fa4 <TIM_OC1_SetConfig>
+ 80034c8: 68fb ldr r3, [r7, #12]
+ 80034ca: 681b ldr r3, [r3, #0]
+ 80034cc: 68b9 ldr r1, [r7, #8]
+ 80034ce: 4618 mov r0, r3
+ 80034d0: f000 fa4e bl 8003970 <TIM_OC1_SetConfig>
/* Set the Preload enable bit for channel1 */
htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
- 8003b08: 68fb ldr r3, [r7, #12]
- 8003b0a: 681b ldr r3, [r3, #0]
- 8003b0c: 699a ldr r2, [r3, #24]
- 8003b0e: 68fb ldr r3, [r7, #12]
- 8003b10: 681b ldr r3, [r3, #0]
- 8003b12: f042 0208 orr.w r2, r2, #8
- 8003b16: 619a str r2, [r3, #24]
+ 80034d4: 68fb ldr r3, [r7, #12]
+ 80034d6: 681b ldr r3, [r3, #0]
+ 80034d8: 699a ldr r2, [r3, #24]
+ 80034da: 68fb ldr r3, [r7, #12]
+ 80034dc: 681b ldr r3, [r3, #0]
+ 80034de: f042 0208 orr.w r2, r2, #8
+ 80034e2: 619a str r2, [r3, #24]
/* Configure the Output Fast mode */
htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
- 8003b18: 68fb ldr r3, [r7, #12]
- 8003b1a: 681b ldr r3, [r3, #0]
- 8003b1c: 699a ldr r2, [r3, #24]
- 8003b1e: 68fb ldr r3, [r7, #12]
- 8003b20: 681b ldr r3, [r3, #0]
- 8003b22: f022 0204 bic.w r2, r2, #4
- 8003b26: 619a str r2, [r3, #24]
+ 80034e4: 68fb ldr r3, [r7, #12]
+ 80034e6: 681b ldr r3, [r3, #0]
+ 80034e8: 699a ldr r2, [r3, #24]
+ 80034ea: 68fb ldr r3, [r7, #12]
+ 80034ec: 681b ldr r3, [r3, #0]
+ 80034ee: f022 0204 bic.w r2, r2, #4
+ 80034f2: 619a str r2, [r3, #24]
htim->Instance->CCMR1 |= sConfig->OCFastMode;
- 8003b28: 68fb ldr r3, [r7, #12]
- 8003b2a: 681b ldr r3, [r3, #0]
- 8003b2c: 6999 ldr r1, [r3, #24]
- 8003b2e: 68bb ldr r3, [r7, #8]
- 8003b30: 691a ldr r2, [r3, #16]
- 8003b32: 68fb ldr r3, [r7, #12]
- 8003b34: 681b ldr r3, [r3, #0]
- 8003b36: 430a orrs r2, r1
- 8003b38: 619a str r2, [r3, #24]
+ 80034f4: 68fb ldr r3, [r7, #12]
+ 80034f6: 681b ldr r3, [r3, #0]
+ 80034f8: 6999 ldr r1, [r3, #24]
+ 80034fa: 68bb ldr r3, [r7, #8]
+ 80034fc: 691a ldr r2, [r3, #16]
+ 80034fe: 68fb ldr r3, [r7, #12]
+ 8003500: 681b ldr r3, [r3, #0]
+ 8003502: 430a orrs r2, r1
+ 8003504: 619a str r2, [r3, #24]
break;
- 8003b3a: e0a3 b.n 8003c84 <HAL_TIM_PWM_ConfigChannel+0x214>
+ 8003506: e0a3 b.n 8003650 <HAL_TIM_PWM_ConfigChannel+0x214>
{
/* Check the parameters */
assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
/* Configure the Channel 2 in PWM mode */
TIM_OC2_SetConfig(htim->Instance, sConfig);
- 8003b3c: 68fb ldr r3, [r7, #12]
- 8003b3e: 681b ldr r3, [r3, #0]
- 8003b40: 68b9 ldr r1, [r7, #8]
- 8003b42: 4618 mov r0, r3
- 8003b44: f000 faa0 bl 8004088 <TIM_OC2_SetConfig>
+ 8003508: 68fb ldr r3, [r7, #12]
+ 800350a: 681b ldr r3, [r3, #0]
+ 800350c: 68b9 ldr r1, [r7, #8]
+ 800350e: 4618 mov r0, r3
+ 8003510: f000 faa0 bl 8003a54 <TIM_OC2_SetConfig>
/* Set the Preload enable bit for channel2 */
htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
- 8003b48: 68fb ldr r3, [r7, #12]
- 8003b4a: 681b ldr r3, [r3, #0]
- 8003b4c: 699a ldr r2, [r3, #24]
- 8003b4e: 68fb ldr r3, [r7, #12]
- 8003b50: 681b ldr r3, [r3, #0]
- 8003b52: f442 6200 orr.w r2, r2, #2048 ; 0x800
- 8003b56: 619a str r2, [r3, #24]
+ 8003514: 68fb ldr r3, [r7, #12]
+ 8003516: 681b ldr r3, [r3, #0]
+ 8003518: 699a ldr r2, [r3, #24]
+ 800351a: 68fb ldr r3, [r7, #12]
+ 800351c: 681b ldr r3, [r3, #0]
+ 800351e: f442 6200 orr.w r2, r2, #2048 ; 0x800
+ 8003522: 619a str r2, [r3, #24]
/* Configure the Output Fast mode */
htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
- 8003b58: 68fb ldr r3, [r7, #12]
- 8003b5a: 681b ldr r3, [r3, #0]
- 8003b5c: 699a ldr r2, [r3, #24]
- 8003b5e: 68fb ldr r3, [r7, #12]
- 8003b60: 681b ldr r3, [r3, #0]
- 8003b62: f422 6280 bic.w r2, r2, #1024 ; 0x400
- 8003b66: 619a str r2, [r3, #24]
+ 8003524: 68fb ldr r3, [r7, #12]
+ 8003526: 681b ldr r3, [r3, #0]
+ 8003528: 699a ldr r2, [r3, #24]
+ 800352a: 68fb ldr r3, [r7, #12]
+ 800352c: 681b ldr r3, [r3, #0]
+ 800352e: f422 6280 bic.w r2, r2, #1024 ; 0x400
+ 8003532: 619a str r2, [r3, #24]
htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
- 8003b68: 68fb ldr r3, [r7, #12]
- 8003b6a: 681b ldr r3, [r3, #0]
- 8003b6c: 6999 ldr r1, [r3, #24]
- 8003b6e: 68bb ldr r3, [r7, #8]
- 8003b70: 691b ldr r3, [r3, #16]
- 8003b72: 021a lsls r2, r3, #8
- 8003b74: 68fb ldr r3, [r7, #12]
- 8003b76: 681b ldr r3, [r3, #0]
- 8003b78: 430a orrs r2, r1
- 8003b7a: 619a str r2, [r3, #24]
+ 8003534: 68fb ldr r3, [r7, #12]
+ 8003536: 681b ldr r3, [r3, #0]
+ 8003538: 6999 ldr r1, [r3, #24]
+ 800353a: 68bb ldr r3, [r7, #8]
+ 800353c: 691b ldr r3, [r3, #16]
+ 800353e: 021a lsls r2, r3, #8
+ 8003540: 68fb ldr r3, [r7, #12]
+ 8003542: 681b ldr r3, [r3, #0]
+ 8003544: 430a orrs r2, r1
+ 8003546: 619a str r2, [r3, #24]
break;
- 8003b7c: e082 b.n 8003c84 <HAL_TIM_PWM_ConfigChannel+0x214>
+ 8003548: e082 b.n 8003650 <HAL_TIM_PWM_ConfigChannel+0x214>
{
/* Check the parameters */
assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
/* Configure the Channel 3 in PWM mode */
TIM_OC3_SetConfig(htim->Instance, sConfig);
- 8003b7e: 68fb ldr r3, [r7, #12]
- 8003b80: 681b ldr r3, [r3, #0]
- 8003b82: 68b9 ldr r1, [r7, #8]
- 8003b84: 4618 mov r0, r3
- 8003b86: f000 faf7 bl 8004178 <TIM_OC3_SetConfig>
+ 800354a: 68fb ldr r3, [r7, #12]
+ 800354c: 681b ldr r3, [r3, #0]
+ 800354e: 68b9 ldr r1, [r7, #8]
+ 8003550: 4618 mov r0, r3
+ 8003552: f000 faf7 bl 8003b44 <TIM_OC3_SetConfig>
/* Set the Preload enable bit for channel3 */
htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
- 8003b8a: 68fb ldr r3, [r7, #12]
- 8003b8c: 681b ldr r3, [r3, #0]
- 8003b8e: 69da ldr r2, [r3, #28]
- 8003b90: 68fb ldr r3, [r7, #12]
- 8003b92: 681b ldr r3, [r3, #0]
- 8003b94: f042 0208 orr.w r2, r2, #8
- 8003b98: 61da str r2, [r3, #28]
+ 8003556: 68fb ldr r3, [r7, #12]
+ 8003558: 681b ldr r3, [r3, #0]
+ 800355a: 69da ldr r2, [r3, #28]
+ 800355c: 68fb ldr r3, [r7, #12]
+ 800355e: 681b ldr r3, [r3, #0]
+ 8003560: f042 0208 orr.w r2, r2, #8
+ 8003564: 61da str r2, [r3, #28]
/* Configure the Output Fast mode */
htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
- 8003b9a: 68fb ldr r3, [r7, #12]
- 8003b9c: 681b ldr r3, [r3, #0]
- 8003b9e: 69da ldr r2, [r3, #28]
- 8003ba0: 68fb ldr r3, [r7, #12]
- 8003ba2: 681b ldr r3, [r3, #0]
- 8003ba4: f022 0204 bic.w r2, r2, #4
- 8003ba8: 61da str r2, [r3, #28]
+ 8003566: 68fb ldr r3, [r7, #12]
+ 8003568: 681b ldr r3, [r3, #0]
+ 800356a: 69da ldr r2, [r3, #28]
+ 800356c: 68fb ldr r3, [r7, #12]
+ 800356e: 681b ldr r3, [r3, #0]
+ 8003570: f022 0204 bic.w r2, r2, #4
+ 8003574: 61da str r2, [r3, #28]
htim->Instance->CCMR2 |= sConfig->OCFastMode;
- 8003baa: 68fb ldr r3, [r7, #12]
- 8003bac: 681b ldr r3, [r3, #0]
- 8003bae: 69d9 ldr r1, [r3, #28]
- 8003bb0: 68bb ldr r3, [r7, #8]
- 8003bb2: 691a ldr r2, [r3, #16]
- 8003bb4: 68fb ldr r3, [r7, #12]
- 8003bb6: 681b ldr r3, [r3, #0]
- 8003bb8: 430a orrs r2, r1
- 8003bba: 61da str r2, [r3, #28]
+ 8003576: 68fb ldr r3, [r7, #12]
+ 8003578: 681b ldr r3, [r3, #0]
+ 800357a: 69d9 ldr r1, [r3, #28]
+ 800357c: 68bb ldr r3, [r7, #8]
+ 800357e: 691a ldr r2, [r3, #16]
+ 8003580: 68fb ldr r3, [r7, #12]
+ 8003582: 681b ldr r3, [r3, #0]
+ 8003584: 430a orrs r2, r1
+ 8003586: 61da str r2, [r3, #28]
break;
- 8003bbc: e062 b.n 8003c84 <HAL_TIM_PWM_ConfigChannel+0x214>
+ 8003588: e062 b.n 8003650 <HAL_TIM_PWM_ConfigChannel+0x214>
{
/* Check the parameters */
assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
/* Configure the Channel 4 in PWM mode */
TIM_OC4_SetConfig(htim->Instance, sConfig);
- 8003bbe: 68fb ldr r3, [r7, #12]
- 8003bc0: 681b ldr r3, [r3, #0]
- 8003bc2: 68b9 ldr r1, [r7, #8]
- 8003bc4: 4618 mov r0, r3
- 8003bc6: f000 fb4d bl 8004264 <TIM_OC4_SetConfig>
+ 800358a: 68fb ldr r3, [r7, #12]
+ 800358c: 681b ldr r3, [r3, #0]
+ 800358e: 68b9 ldr r1, [r7, #8]
+ 8003590: 4618 mov r0, r3
+ 8003592: f000 fb4d bl 8003c30 <TIM_OC4_SetConfig>
/* Set the Preload enable bit for channel4 */
htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
- 8003bca: 68fb ldr r3, [r7, #12]
- 8003bcc: 681b ldr r3, [r3, #0]
- 8003bce: 69da ldr r2, [r3, #28]
- 8003bd0: 68fb ldr r3, [r7, #12]
- 8003bd2: 681b ldr r3, [r3, #0]
- 8003bd4: f442 6200 orr.w r2, r2, #2048 ; 0x800
- 8003bd8: 61da str r2, [r3, #28]
+ 8003596: 68fb ldr r3, [r7, #12]
+ 8003598: 681b ldr r3, [r3, #0]
+ 800359a: 69da ldr r2, [r3, #28]
+ 800359c: 68fb ldr r3, [r7, #12]
+ 800359e: 681b ldr r3, [r3, #0]
+ 80035a0: f442 6200 orr.w r2, r2, #2048 ; 0x800
+ 80035a4: 61da str r2, [r3, #28]
/* Configure the Output Fast mode */
htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
- 8003bda: 68fb ldr r3, [r7, #12]
- 8003bdc: 681b ldr r3, [r3, #0]
- 8003bde: 69da ldr r2, [r3, #28]
- 8003be0: 68fb ldr r3, [r7, #12]
- 8003be2: 681b ldr r3, [r3, #0]
- 8003be4: f422 6280 bic.w r2, r2, #1024 ; 0x400
- 8003be8: 61da str r2, [r3, #28]
+ 80035a6: 68fb ldr r3, [r7, #12]
+ 80035a8: 681b ldr r3, [r3, #0]
+ 80035aa: 69da ldr r2, [r3, #28]
+ 80035ac: 68fb ldr r3, [r7, #12]
+ 80035ae: 681b ldr r3, [r3, #0]
+ 80035b0: f422 6280 bic.w r2, r2, #1024 ; 0x400
+ 80035b4: 61da str r2, [r3, #28]
htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
- 8003bea: 68fb ldr r3, [r7, #12]
- 8003bec: 681b ldr r3, [r3, #0]
- 8003bee: 69d9 ldr r1, [r3, #28]
- 8003bf0: 68bb ldr r3, [r7, #8]
- 8003bf2: 691b ldr r3, [r3, #16]
- 8003bf4: 021a lsls r2, r3, #8
- 8003bf6: 68fb ldr r3, [r7, #12]
- 8003bf8: 681b ldr r3, [r3, #0]
- 8003bfa: 430a orrs r2, r1
- 8003bfc: 61da str r2, [r3, #28]
+ 80035b6: 68fb ldr r3, [r7, #12]
+ 80035b8: 681b ldr r3, [r3, #0]
+ 80035ba: 69d9 ldr r1, [r3, #28]
+ 80035bc: 68bb ldr r3, [r7, #8]
+ 80035be: 691b ldr r3, [r3, #16]
+ 80035c0: 021a lsls r2, r3, #8
+ 80035c2: 68fb ldr r3, [r7, #12]
+ 80035c4: 681b ldr r3, [r3, #0]
+ 80035c6: 430a orrs r2, r1
+ 80035c8: 61da str r2, [r3, #28]
break;
- 8003bfe: e041 b.n 8003c84 <HAL_TIM_PWM_ConfigChannel+0x214>
+ 80035ca: e041 b.n 8003650 <HAL_TIM_PWM_ConfigChannel+0x214>
{
/* Check the parameters */
assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
/* Configure the Channel 5 in PWM mode */
TIM_OC5_SetConfig(htim->Instance, sConfig);
- 8003c00: 68fb ldr r3, [r7, #12]
- 8003c02: 681b ldr r3, [r3, #0]
- 8003c04: 68b9 ldr r1, [r7, #8]
- 8003c06: 4618 mov r0, r3
- 8003c08: f000 fb84 bl 8004314 <TIM_OC5_SetConfig>
+ 80035cc: 68fb ldr r3, [r7, #12]
+ 80035ce: 681b ldr r3, [r3, #0]
+ 80035d0: 68b9 ldr r1, [r7, #8]
+ 80035d2: 4618 mov r0, r3
+ 80035d4: f000 fb84 bl 8003ce0 <TIM_OC5_SetConfig>
/* Set the Preload enable bit for channel5*/
htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
- 8003c0c: 68fb ldr r3, [r7, #12]
- 8003c0e: 681b ldr r3, [r3, #0]
- 8003c10: 6d5a ldr r2, [r3, #84] ; 0x54
- 8003c12: 68fb ldr r3, [r7, #12]
- 8003c14: 681b ldr r3, [r3, #0]
- 8003c16: f042 0208 orr.w r2, r2, #8
- 8003c1a: 655a str r2, [r3, #84] ; 0x54
+ 80035d8: 68fb ldr r3, [r7, #12]
+ 80035da: 681b ldr r3, [r3, #0]
+ 80035dc: 6d5a ldr r2, [r3, #84] ; 0x54
+ 80035de: 68fb ldr r3, [r7, #12]
+ 80035e0: 681b ldr r3, [r3, #0]
+ 80035e2: f042 0208 orr.w r2, r2, #8
+ 80035e6: 655a str r2, [r3, #84] ; 0x54
/* Configure the Output Fast mode */
htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
- 8003c1c: 68fb ldr r3, [r7, #12]
- 8003c1e: 681b ldr r3, [r3, #0]
- 8003c20: 6d5a ldr r2, [r3, #84] ; 0x54
- 8003c22: 68fb ldr r3, [r7, #12]
- 8003c24: 681b ldr r3, [r3, #0]
- 8003c26: f022 0204 bic.w r2, r2, #4
- 8003c2a: 655a str r2, [r3, #84] ; 0x54
+ 80035e8: 68fb ldr r3, [r7, #12]
+ 80035ea: 681b ldr r3, [r3, #0]
+ 80035ec: 6d5a ldr r2, [r3, #84] ; 0x54
+ 80035ee: 68fb ldr r3, [r7, #12]
+ 80035f0: 681b ldr r3, [r3, #0]
+ 80035f2: f022 0204 bic.w r2, r2, #4
+ 80035f6: 655a str r2, [r3, #84] ; 0x54
htim->Instance->CCMR3 |= sConfig->OCFastMode;
- 8003c2c: 68fb ldr r3, [r7, #12]
- 8003c2e: 681b ldr r3, [r3, #0]
- 8003c30: 6d59 ldr r1, [r3, #84] ; 0x54
- 8003c32: 68bb ldr r3, [r7, #8]
- 8003c34: 691a ldr r2, [r3, #16]
- 8003c36: 68fb ldr r3, [r7, #12]
- 8003c38: 681b ldr r3, [r3, #0]
- 8003c3a: 430a orrs r2, r1
- 8003c3c: 655a str r2, [r3, #84] ; 0x54
+ 80035f8: 68fb ldr r3, [r7, #12]
+ 80035fa: 681b ldr r3, [r3, #0]
+ 80035fc: 6d59 ldr r1, [r3, #84] ; 0x54
+ 80035fe: 68bb ldr r3, [r7, #8]
+ 8003600: 691a ldr r2, [r3, #16]
+ 8003602: 68fb ldr r3, [r7, #12]
+ 8003604: 681b ldr r3, [r3, #0]
+ 8003606: 430a orrs r2, r1
+ 8003608: 655a str r2, [r3, #84] ; 0x54
break;
- 8003c3e: e021 b.n 8003c84 <HAL_TIM_PWM_ConfigChannel+0x214>
+ 800360a: e021 b.n 8003650 <HAL_TIM_PWM_ConfigChannel+0x214>
{
/* Check the parameters */
assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
/* Configure the Channel 6 in PWM mode */
TIM_OC6_SetConfig(htim->Instance, sConfig);
- 8003c40: 68fb ldr r3, [r7, #12]
- 8003c42: 681b ldr r3, [r3, #0]
- 8003c44: 68b9 ldr r1, [r7, #8]
- 8003c46: 4618 mov r0, r3
- 8003c48: f000 fbb6 bl 80043b8 <TIM_OC6_SetConfig>
+ 800360c: 68fb ldr r3, [r7, #12]
+ 800360e: 681b ldr r3, [r3, #0]
+ 8003610: 68b9 ldr r1, [r7, #8]
+ 8003612: 4618 mov r0, r3
+ 8003614: f000 fbb6 bl 8003d84 <TIM_OC6_SetConfig>
/* Set the Preload enable bit for channel6 */
htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
- 8003c4c: 68fb ldr r3, [r7, #12]
- 8003c4e: 681b ldr r3, [r3, #0]
- 8003c50: 6d5a ldr r2, [r3, #84] ; 0x54
- 8003c52: 68fb ldr r3, [r7, #12]
- 8003c54: 681b ldr r3, [r3, #0]
- 8003c56: f442 6200 orr.w r2, r2, #2048 ; 0x800
- 8003c5a: 655a str r2, [r3, #84] ; 0x54
+ 8003618: 68fb ldr r3, [r7, #12]
+ 800361a: 681b ldr r3, [r3, #0]
+ 800361c: 6d5a ldr r2, [r3, #84] ; 0x54
+ 800361e: 68fb ldr r3, [r7, #12]
+ 8003620: 681b ldr r3, [r3, #0]
+ 8003622: f442 6200 orr.w r2, r2, #2048 ; 0x800
+ 8003626: 655a str r2, [r3, #84] ; 0x54
/* Configure the Output Fast mode */
htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
- 8003c5c: 68fb ldr r3, [r7, #12]
- 8003c5e: 681b ldr r3, [r3, #0]
- 8003c60: 6d5a ldr r2, [r3, #84] ; 0x54
- 8003c62: 68fb ldr r3, [r7, #12]
- 8003c64: 681b ldr r3, [r3, #0]
- 8003c66: f422 6280 bic.w r2, r2, #1024 ; 0x400
- 8003c6a: 655a str r2, [r3, #84] ; 0x54
+ 8003628: 68fb ldr r3, [r7, #12]
+ 800362a: 681b ldr r3, [r3, #0]
+ 800362c: 6d5a ldr r2, [r3, #84] ; 0x54
+ 800362e: 68fb ldr r3, [r7, #12]
+ 8003630: 681b ldr r3, [r3, #0]
+ 8003632: f422 6280 bic.w r2, r2, #1024 ; 0x400
+ 8003636: 655a str r2, [r3, #84] ; 0x54
htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
- 8003c6c: 68fb ldr r3, [r7, #12]
- 8003c6e: 681b ldr r3, [r3, #0]
- 8003c70: 6d59 ldr r1, [r3, #84] ; 0x54
- 8003c72: 68bb ldr r3, [r7, #8]
- 8003c74: 691b ldr r3, [r3, #16]
- 8003c76: 021a lsls r2, r3, #8
- 8003c78: 68fb ldr r3, [r7, #12]
- 8003c7a: 681b ldr r3, [r3, #0]
- 8003c7c: 430a orrs r2, r1
- 8003c7e: 655a str r2, [r3, #84] ; 0x54
+ 8003638: 68fb ldr r3, [r7, #12]
+ 800363a: 681b ldr r3, [r3, #0]
+ 800363c: 6d59 ldr r1, [r3, #84] ; 0x54
+ 800363e: 68bb ldr r3, [r7, #8]
+ 8003640: 691b ldr r3, [r3, #16]
+ 8003642: 021a lsls r2, r3, #8
+ 8003644: 68fb ldr r3, [r7, #12]
+ 8003646: 681b ldr r3, [r3, #0]
+ 8003648: 430a orrs r2, r1
+ 800364a: 655a str r2, [r3, #84] ; 0x54
break;
- 8003c80: e000 b.n 8003c84 <HAL_TIM_PWM_ConfigChannel+0x214>
+ 800364c: e000 b.n 8003650 <HAL_TIM_PWM_ConfigChannel+0x214>
}
default:
break;
- 8003c82: bf00 nop
+ 800364e: bf00 nop
}
htim->State = HAL_TIM_STATE_READY;
- 8003c84: 68fb ldr r3, [r7, #12]
- 8003c86: 2201 movs r2, #1
- 8003c88: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 8003650: 68fb ldr r3, [r7, #12]
+ 8003652: 2201 movs r2, #1
+ 8003654: f883 203d strb.w r2, [r3, #61] ; 0x3d
__HAL_UNLOCK(htim);
- 8003c8c: 68fb ldr r3, [r7, #12]
- 8003c8e: 2200 movs r2, #0
- 8003c90: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 8003658: 68fb ldr r3, [r7, #12]
+ 800365a: 2200 movs r2, #0
+ 800365c: f883 203c strb.w r2, [r3, #60] ; 0x3c
return HAL_OK;
- 8003c94: 2300 movs r3, #0
+ 8003660: 2300 movs r3, #0
}
- 8003c96: 4618 mov r0, r3
- 8003c98: 3710 adds r7, #16
- 8003c9a: 46bd mov sp, r7
- 8003c9c: bd80 pop {r7, pc}
- 8003c9e: bf00 nop
+ 8003662: 4618 mov r0, r3
+ 8003664: 3710 adds r7, #16
+ 8003666: 46bd mov sp, r7
+ 8003668: bd80 pop {r7, pc}
+ 800366a: bf00 nop
-08003ca0 <HAL_TIM_ConfigClockSource>:
+0800366c <HAL_TIM_ConfigClockSource>:
* @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
* contains the clock source information for the TIM peripheral.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig)
{
- 8003ca0: b580 push {r7, lr}
- 8003ca2: b084 sub sp, #16
- 8003ca4: af00 add r7, sp, #0
- 8003ca6: 6078 str r0, [r7, #4]
- 8003ca8: 6039 str r1, [r7, #0]
+ 800366c: b580 push {r7, lr}
+ 800366e: b084 sub sp, #16
+ 8003670: af00 add r7, sp, #0
+ 8003672: 6078 str r0, [r7, #4]
+ 8003674: 6039 str r1, [r7, #0]
uint32_t tmpsmcr;
/* Process Locked */
__HAL_LOCK(htim);
- 8003caa: 687b ldr r3, [r7, #4]
- 8003cac: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
- 8003cb0: 2b01 cmp r3, #1
- 8003cb2: d101 bne.n 8003cb8 <HAL_TIM_ConfigClockSource+0x18>
- 8003cb4: 2302 movs r3, #2
- 8003cb6: e0a6 b.n 8003e06 <HAL_TIM_ConfigClockSource+0x166>
- 8003cb8: 687b ldr r3, [r7, #4]
- 8003cba: 2201 movs r2, #1
- 8003cbc: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 8003676: 687b ldr r3, [r7, #4]
+ 8003678: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
+ 800367c: 2b01 cmp r3, #1
+ 800367e: d101 bne.n 8003684 <HAL_TIM_ConfigClockSource+0x18>
+ 8003680: 2302 movs r3, #2
+ 8003682: e0a6 b.n 80037d2 <HAL_TIM_ConfigClockSource+0x166>
+ 8003684: 687b ldr r3, [r7, #4]
+ 8003686: 2201 movs r2, #1
+ 8003688: f883 203c strb.w r2, [r3, #60] ; 0x3c
htim->State = HAL_TIM_STATE_BUSY;
- 8003cc0: 687b ldr r3, [r7, #4]
- 8003cc2: 2202 movs r2, #2
- 8003cc4: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 800368c: 687b ldr r3, [r7, #4]
+ 800368e: 2202 movs r2, #2
+ 8003690: f883 203d strb.w r2, [r3, #61] ; 0x3d
/* Check the parameters */
assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
/* Reset the SMS, TS, ECE, ETPS and ETRF bits */
tmpsmcr = htim->Instance->SMCR;
- 8003cc8: 687b ldr r3, [r7, #4]
- 8003cca: 681b ldr r3, [r3, #0]
- 8003ccc: 689b ldr r3, [r3, #8]
- 8003cce: 60fb str r3, [r7, #12]
+ 8003694: 687b ldr r3, [r7, #4]
+ 8003696: 681b ldr r3, [r3, #0]
+ 8003698: 689b ldr r3, [r3, #8]
+ 800369a: 60fb str r3, [r7, #12]
tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
- 8003cd0: 68fa ldr r2, [r7, #12]
- 8003cd2: 4b4f ldr r3, [pc, #316] ; (8003e10 <HAL_TIM_ConfigClockSource+0x170>)
- 8003cd4: 4013 ands r3, r2
- 8003cd6: 60fb str r3, [r7, #12]
+ 800369c: 68fa ldr r2, [r7, #12]
+ 800369e: 4b4f ldr r3, [pc, #316] ; (80037dc <HAL_TIM_ConfigClockSource+0x170>)
+ 80036a0: 4013 ands r3, r2
+ 80036a2: 60fb str r3, [r7, #12]
tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
- 8003cd8: 68fb ldr r3, [r7, #12]
- 8003cda: f423 437f bic.w r3, r3, #65280 ; 0xff00
- 8003cde: 60fb str r3, [r7, #12]
+ 80036a4: 68fb ldr r3, [r7, #12]
+ 80036a6: f423 437f bic.w r3, r3, #65280 ; 0xff00
+ 80036aa: 60fb str r3, [r7, #12]
htim->Instance->SMCR = tmpsmcr;
- 8003ce0: 687b ldr r3, [r7, #4]
- 8003ce2: 681b ldr r3, [r3, #0]
- 8003ce4: 68fa ldr r2, [r7, #12]
- 8003ce6: 609a str r2, [r3, #8]
+ 80036ac: 687b ldr r3, [r7, #4]
+ 80036ae: 681b ldr r3, [r3, #0]
+ 80036b0: 68fa ldr r2, [r7, #12]
+ 80036b2: 609a str r2, [r3, #8]
switch (sClockSourceConfig->ClockSource)
- 8003ce8: 683b ldr r3, [r7, #0]
- 8003cea: 681b ldr r3, [r3, #0]
- 8003cec: 2b40 cmp r3, #64 ; 0x40
- 8003cee: d067 beq.n 8003dc0 <HAL_TIM_ConfigClockSource+0x120>
- 8003cf0: 2b40 cmp r3, #64 ; 0x40
- 8003cf2: d80b bhi.n 8003d0c <HAL_TIM_ConfigClockSource+0x6c>
- 8003cf4: 2b10 cmp r3, #16
- 8003cf6: d073 beq.n 8003de0 <HAL_TIM_ConfigClockSource+0x140>
- 8003cf8: 2b10 cmp r3, #16
- 8003cfa: d802 bhi.n 8003d02 <HAL_TIM_ConfigClockSource+0x62>
- 8003cfc: 2b00 cmp r3, #0
- 8003cfe: d06f beq.n 8003de0 <HAL_TIM_ConfigClockSource+0x140>
+ 80036b4: 683b ldr r3, [r7, #0]
+ 80036b6: 681b ldr r3, [r3, #0]
+ 80036b8: 2b40 cmp r3, #64 ; 0x40
+ 80036ba: d067 beq.n 800378c <HAL_TIM_ConfigClockSource+0x120>
+ 80036bc: 2b40 cmp r3, #64 ; 0x40
+ 80036be: d80b bhi.n 80036d8 <HAL_TIM_ConfigClockSource+0x6c>
+ 80036c0: 2b10 cmp r3, #16
+ 80036c2: d073 beq.n 80037ac <HAL_TIM_ConfigClockSource+0x140>
+ 80036c4: 2b10 cmp r3, #16
+ 80036c6: d802 bhi.n 80036ce <HAL_TIM_ConfigClockSource+0x62>
+ 80036c8: 2b00 cmp r3, #0
+ 80036ca: d06f beq.n 80037ac <HAL_TIM_ConfigClockSource+0x140>
TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
break;
}
default:
break;
- 8003d00: e078 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 80036cc: e078 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
switch (sClockSourceConfig->ClockSource)
- 8003d02: 2b20 cmp r3, #32
- 8003d04: d06c beq.n 8003de0 <HAL_TIM_ConfigClockSource+0x140>
- 8003d06: 2b30 cmp r3, #48 ; 0x30
- 8003d08: d06a beq.n 8003de0 <HAL_TIM_ConfigClockSource+0x140>
+ 80036ce: 2b20 cmp r3, #32
+ 80036d0: d06c beq.n 80037ac <HAL_TIM_ConfigClockSource+0x140>
+ 80036d2: 2b30 cmp r3, #48 ; 0x30
+ 80036d4: d06a beq.n 80037ac <HAL_TIM_ConfigClockSource+0x140>
break;
- 8003d0a: e073 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 80036d6: e073 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
switch (sClockSourceConfig->ClockSource)
- 8003d0c: 2b70 cmp r3, #112 ; 0x70
- 8003d0e: d00d beq.n 8003d2c <HAL_TIM_ConfigClockSource+0x8c>
- 8003d10: 2b70 cmp r3, #112 ; 0x70
- 8003d12: d804 bhi.n 8003d1e <HAL_TIM_ConfigClockSource+0x7e>
- 8003d14: 2b50 cmp r3, #80 ; 0x50
- 8003d16: d033 beq.n 8003d80 <HAL_TIM_ConfigClockSource+0xe0>
- 8003d18: 2b60 cmp r3, #96 ; 0x60
- 8003d1a: d041 beq.n 8003da0 <HAL_TIM_ConfigClockSource+0x100>
+ 80036d8: 2b70 cmp r3, #112 ; 0x70
+ 80036da: d00d beq.n 80036f8 <HAL_TIM_ConfigClockSource+0x8c>
+ 80036dc: 2b70 cmp r3, #112 ; 0x70
+ 80036de: d804 bhi.n 80036ea <HAL_TIM_ConfigClockSource+0x7e>
+ 80036e0: 2b50 cmp r3, #80 ; 0x50
+ 80036e2: d033 beq.n 800374c <HAL_TIM_ConfigClockSource+0xe0>
+ 80036e4: 2b60 cmp r3, #96 ; 0x60
+ 80036e6: d041 beq.n 800376c <HAL_TIM_ConfigClockSource+0x100>
break;
- 8003d1c: e06a b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 80036e8: e06a b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
switch (sClockSourceConfig->ClockSource)
- 8003d1e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
- 8003d22: d066 beq.n 8003df2 <HAL_TIM_ConfigClockSource+0x152>
- 8003d24: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
- 8003d28: d017 beq.n 8003d5a <HAL_TIM_ConfigClockSource+0xba>
+ 80036ea: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
+ 80036ee: d066 beq.n 80037be <HAL_TIM_ConfigClockSource+0x152>
+ 80036f0: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
+ 80036f4: d017 beq.n 8003726 <HAL_TIM_ConfigClockSource+0xba>
break;
- 8003d2a: e063 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 80036f6: e063 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
TIM_ETR_SetConfig(htim->Instance,
- 8003d2c: 687b ldr r3, [r7, #4]
- 8003d2e: 6818 ldr r0, [r3, #0]
- 8003d30: 683b ldr r3, [r7, #0]
- 8003d32: 6899 ldr r1, [r3, #8]
- 8003d34: 683b ldr r3, [r7, #0]
- 8003d36: 685a ldr r2, [r3, #4]
- 8003d38: 683b ldr r3, [r7, #0]
- 8003d3a: 68db ldr r3, [r3, #12]
- 8003d3c: f000 fc0a bl 8004554 <TIM_ETR_SetConfig>
+ 80036f8: 687b ldr r3, [r7, #4]
+ 80036fa: 6818 ldr r0, [r3, #0]
+ 80036fc: 683b ldr r3, [r7, #0]
+ 80036fe: 6899 ldr r1, [r3, #8]
+ 8003700: 683b ldr r3, [r7, #0]
+ 8003702: 685a ldr r2, [r3, #4]
+ 8003704: 683b ldr r3, [r7, #0]
+ 8003706: 68db ldr r3, [r3, #12]
+ 8003708: f000 fc0a bl 8003f20 <TIM_ETR_SetConfig>
tmpsmcr = htim->Instance->SMCR;
- 8003d40: 687b ldr r3, [r7, #4]
- 8003d42: 681b ldr r3, [r3, #0]
- 8003d44: 689b ldr r3, [r3, #8]
- 8003d46: 60fb str r3, [r7, #12]
+ 800370c: 687b ldr r3, [r7, #4]
+ 800370e: 681b ldr r3, [r3, #0]
+ 8003710: 689b ldr r3, [r3, #8]
+ 8003712: 60fb str r3, [r7, #12]
tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
- 8003d48: 68fb ldr r3, [r7, #12]
- 8003d4a: f043 0377 orr.w r3, r3, #119 ; 0x77
- 8003d4e: 60fb str r3, [r7, #12]
+ 8003714: 68fb ldr r3, [r7, #12]
+ 8003716: f043 0377 orr.w r3, r3, #119 ; 0x77
+ 800371a: 60fb str r3, [r7, #12]
htim->Instance->SMCR = tmpsmcr;
- 8003d50: 687b ldr r3, [r7, #4]
- 8003d52: 681b ldr r3, [r3, #0]
- 8003d54: 68fa ldr r2, [r7, #12]
- 8003d56: 609a str r2, [r3, #8]
+ 800371c: 687b ldr r3, [r7, #4]
+ 800371e: 681b ldr r3, [r3, #0]
+ 8003720: 68fa ldr r2, [r7, #12]
+ 8003722: 609a str r2, [r3, #8]
break;
- 8003d58: e04c b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 8003724: e04c b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
TIM_ETR_SetConfig(htim->Instance,
- 8003d5a: 687b ldr r3, [r7, #4]
- 8003d5c: 6818 ldr r0, [r3, #0]
- 8003d5e: 683b ldr r3, [r7, #0]
- 8003d60: 6899 ldr r1, [r3, #8]
- 8003d62: 683b ldr r3, [r7, #0]
- 8003d64: 685a ldr r2, [r3, #4]
- 8003d66: 683b ldr r3, [r7, #0]
- 8003d68: 68db ldr r3, [r3, #12]
- 8003d6a: f000 fbf3 bl 8004554 <TIM_ETR_SetConfig>
+ 8003726: 687b ldr r3, [r7, #4]
+ 8003728: 6818 ldr r0, [r3, #0]
+ 800372a: 683b ldr r3, [r7, #0]
+ 800372c: 6899 ldr r1, [r3, #8]
+ 800372e: 683b ldr r3, [r7, #0]
+ 8003730: 685a ldr r2, [r3, #4]
+ 8003732: 683b ldr r3, [r7, #0]
+ 8003734: 68db ldr r3, [r3, #12]
+ 8003736: f000 fbf3 bl 8003f20 <TIM_ETR_SetConfig>
htim->Instance->SMCR |= TIM_SMCR_ECE;
- 8003d6e: 687b ldr r3, [r7, #4]
- 8003d70: 681b ldr r3, [r3, #0]
- 8003d72: 689a ldr r2, [r3, #8]
- 8003d74: 687b ldr r3, [r7, #4]
- 8003d76: 681b ldr r3, [r3, #0]
- 8003d78: f442 4280 orr.w r2, r2, #16384 ; 0x4000
- 8003d7c: 609a str r2, [r3, #8]
+ 800373a: 687b ldr r3, [r7, #4]
+ 800373c: 681b ldr r3, [r3, #0]
+ 800373e: 689a ldr r2, [r3, #8]
+ 8003740: 687b ldr r3, [r7, #4]
+ 8003742: 681b ldr r3, [r3, #0]
+ 8003744: f442 4280 orr.w r2, r2, #16384 ; 0x4000
+ 8003748: 609a str r2, [r3, #8]
break;
- 8003d7e: e039 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 800374a: e039 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
TIM_TI1_ConfigInputStage(htim->Instance,
- 8003d80: 687b ldr r3, [r7, #4]
- 8003d82: 6818 ldr r0, [r3, #0]
- 8003d84: 683b ldr r3, [r7, #0]
- 8003d86: 6859 ldr r1, [r3, #4]
- 8003d88: 683b ldr r3, [r7, #0]
- 8003d8a: 68db ldr r3, [r3, #12]
- 8003d8c: 461a mov r2, r3
- 8003d8e: f000 fb67 bl 8004460 <TIM_TI1_ConfigInputStage>
+ 800374c: 687b ldr r3, [r7, #4]
+ 800374e: 6818 ldr r0, [r3, #0]
+ 8003750: 683b ldr r3, [r7, #0]
+ 8003752: 6859 ldr r1, [r3, #4]
+ 8003754: 683b ldr r3, [r7, #0]
+ 8003756: 68db ldr r3, [r3, #12]
+ 8003758: 461a mov r2, r3
+ 800375a: f000 fb67 bl 8003e2c <TIM_TI1_ConfigInputStage>
TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
- 8003d92: 687b ldr r3, [r7, #4]
- 8003d94: 681b ldr r3, [r3, #0]
- 8003d96: 2150 movs r1, #80 ; 0x50
- 8003d98: 4618 mov r0, r3
- 8003d9a: f000 fbc0 bl 800451e <TIM_ITRx_SetConfig>
+ 800375e: 687b ldr r3, [r7, #4]
+ 8003760: 681b ldr r3, [r3, #0]
+ 8003762: 2150 movs r1, #80 ; 0x50
+ 8003764: 4618 mov r0, r3
+ 8003766: f000 fbc0 bl 8003eea <TIM_ITRx_SetConfig>
break;
- 8003d9e: e029 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 800376a: e029 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
TIM_TI2_ConfigInputStage(htim->Instance,
- 8003da0: 687b ldr r3, [r7, #4]
- 8003da2: 6818 ldr r0, [r3, #0]
- 8003da4: 683b ldr r3, [r7, #0]
- 8003da6: 6859 ldr r1, [r3, #4]
- 8003da8: 683b ldr r3, [r7, #0]
- 8003daa: 68db ldr r3, [r3, #12]
- 8003dac: 461a mov r2, r3
- 8003dae: f000 fb86 bl 80044be <TIM_TI2_ConfigInputStage>
+ 800376c: 687b ldr r3, [r7, #4]
+ 800376e: 6818 ldr r0, [r3, #0]
+ 8003770: 683b ldr r3, [r7, #0]
+ 8003772: 6859 ldr r1, [r3, #4]
+ 8003774: 683b ldr r3, [r7, #0]
+ 8003776: 68db ldr r3, [r3, #12]
+ 8003778: 461a mov r2, r3
+ 800377a: f000 fb86 bl 8003e8a <TIM_TI2_ConfigInputStage>
TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
- 8003db2: 687b ldr r3, [r7, #4]
- 8003db4: 681b ldr r3, [r3, #0]
- 8003db6: 2160 movs r1, #96 ; 0x60
- 8003db8: 4618 mov r0, r3
- 8003dba: f000 fbb0 bl 800451e <TIM_ITRx_SetConfig>
+ 800377e: 687b ldr r3, [r7, #4]
+ 8003780: 681b ldr r3, [r3, #0]
+ 8003782: 2160 movs r1, #96 ; 0x60
+ 8003784: 4618 mov r0, r3
+ 8003786: f000 fbb0 bl 8003eea <TIM_ITRx_SetConfig>
break;
- 8003dbe: e019 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 800378a: e019 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
TIM_TI1_ConfigInputStage(htim->Instance,
- 8003dc0: 687b ldr r3, [r7, #4]
- 8003dc2: 6818 ldr r0, [r3, #0]
- 8003dc4: 683b ldr r3, [r7, #0]
- 8003dc6: 6859 ldr r1, [r3, #4]
- 8003dc8: 683b ldr r3, [r7, #0]
- 8003dca: 68db ldr r3, [r3, #12]
- 8003dcc: 461a mov r2, r3
- 8003dce: f000 fb47 bl 8004460 <TIM_TI1_ConfigInputStage>
+ 800378c: 687b ldr r3, [r7, #4]
+ 800378e: 6818 ldr r0, [r3, #0]
+ 8003790: 683b ldr r3, [r7, #0]
+ 8003792: 6859 ldr r1, [r3, #4]
+ 8003794: 683b ldr r3, [r7, #0]
+ 8003796: 68db ldr r3, [r3, #12]
+ 8003798: 461a mov r2, r3
+ 800379a: f000 fb47 bl 8003e2c <TIM_TI1_ConfigInputStage>
TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
- 8003dd2: 687b ldr r3, [r7, #4]
- 8003dd4: 681b ldr r3, [r3, #0]
- 8003dd6: 2140 movs r1, #64 ; 0x40
- 8003dd8: 4618 mov r0, r3
- 8003dda: f000 fba0 bl 800451e <TIM_ITRx_SetConfig>
+ 800379e: 687b ldr r3, [r7, #4]
+ 80037a0: 681b ldr r3, [r3, #0]
+ 80037a2: 2140 movs r1, #64 ; 0x40
+ 80037a4: 4618 mov r0, r3
+ 80037a6: f000 fba0 bl 8003eea <TIM_ITRx_SetConfig>
break;
- 8003dde: e009 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 80037aa: e009 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
- 8003de0: 687b ldr r3, [r7, #4]
- 8003de2: 681a ldr r2, [r3, #0]
- 8003de4: 683b ldr r3, [r7, #0]
- 8003de6: 681b ldr r3, [r3, #0]
- 8003de8: 4619 mov r1, r3
- 8003dea: 4610 mov r0, r2
- 8003dec: f000 fb97 bl 800451e <TIM_ITRx_SetConfig>
+ 80037ac: 687b ldr r3, [r7, #4]
+ 80037ae: 681a ldr r2, [r3, #0]
+ 80037b0: 683b ldr r3, [r7, #0]
+ 80037b2: 681b ldr r3, [r3, #0]
+ 80037b4: 4619 mov r1, r3
+ 80037b6: 4610 mov r0, r2
+ 80037b8: f000 fb97 bl 8003eea <TIM_ITRx_SetConfig>
break;
- 8003df0: e000 b.n 8003df4 <HAL_TIM_ConfigClockSource+0x154>
+ 80037bc: e000 b.n 80037c0 <HAL_TIM_ConfigClockSource+0x154>
break;
- 8003df2: bf00 nop
+ 80037be: bf00 nop
}
htim->State = HAL_TIM_STATE_READY;
- 8003df4: 687b ldr r3, [r7, #4]
- 8003df6: 2201 movs r2, #1
- 8003df8: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 80037c0: 687b ldr r3, [r7, #4]
+ 80037c2: 2201 movs r2, #1
+ 80037c4: f883 203d strb.w r2, [r3, #61] ; 0x3d
__HAL_UNLOCK(htim);
- 8003dfc: 687b ldr r3, [r7, #4]
- 8003dfe: 2200 movs r2, #0
- 8003e00: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 80037c8: 687b ldr r3, [r7, #4]
+ 80037ca: 2200 movs r2, #0
+ 80037cc: f883 203c strb.w r2, [r3, #60] ; 0x3c
return HAL_OK;
- 8003e04: 2300 movs r3, #0
+ 80037d0: 2300 movs r3, #0
}
- 8003e06: 4618 mov r0, r3
- 8003e08: 3710 adds r7, #16
- 8003e0a: 46bd mov sp, r7
- 8003e0c: bd80 pop {r7, pc}
- 8003e0e: bf00 nop
- 8003e10: fffeff88 .word 0xfffeff88
-
-08003e14 <HAL_TIM_OC_DelayElapsedCallback>:
+ 80037d2: 4618 mov r0, r3
+ 80037d4: 3710 adds r7, #16
+ 80037d6: 46bd mov sp, r7
+ 80037d8: bd80 pop {r7, pc}
+ 80037da: bf00 nop
+ 80037dc: fffeff88 .word 0xfffeff88
+
+080037e0 <HAL_TIM_OC_DelayElapsedCallback>:
* @brief Output Compare callback in non-blocking mode
* @param htim TIM OC handle
* @retval None
*/
__weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
{
- 8003e14: b480 push {r7}
- 8003e16: b083 sub sp, #12
- 8003e18: af00 add r7, sp, #0
- 8003e1a: 6078 str r0, [r7, #4]
+ 80037e0: b480 push {r7}
+ 80037e2: b083 sub sp, #12
+ 80037e4: af00 add r7, sp, #0
+ 80037e6: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
*/
}
- 8003e1c: bf00 nop
- 8003e1e: 370c adds r7, #12
- 8003e20: 46bd mov sp, r7
- 8003e22: f85d 7b04 ldr.w r7, [sp], #4
- 8003e26: 4770 bx lr
+ 80037e8: bf00 nop
+ 80037ea: 370c adds r7, #12
+ 80037ec: 46bd mov sp, r7
+ 80037ee: f85d 7b04 ldr.w r7, [sp], #4
+ 80037f2: 4770 bx lr
-08003e28 <HAL_TIM_IC_CaptureCallback>:
+080037f4 <HAL_TIM_IC_CaptureCallback>:
* @brief Input Capture callback in non-blocking mode
* @param htim TIM IC handle
* @retval None
*/
__weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
{
- 8003e28: b480 push {r7}
- 8003e2a: b083 sub sp, #12
- 8003e2c: af00 add r7, sp, #0
- 8003e2e: 6078 str r0, [r7, #4]
+ 80037f4: b480 push {r7}
+ 80037f6: b083 sub sp, #12
+ 80037f8: af00 add r7, sp, #0
+ 80037fa: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_IC_CaptureCallback could be implemented in the user file
*/
}
- 8003e30: bf00 nop
- 8003e32: 370c adds r7, #12
- 8003e34: 46bd mov sp, r7
- 8003e36: f85d 7b04 ldr.w r7, [sp], #4
- 8003e3a: 4770 bx lr
+ 80037fc: bf00 nop
+ 80037fe: 370c adds r7, #12
+ 8003800: 46bd mov sp, r7
+ 8003802: f85d 7b04 ldr.w r7, [sp], #4
+ 8003806: 4770 bx lr
-08003e3c <HAL_TIM_PWM_PulseFinishedCallback>:
+08003808 <HAL_TIM_PWM_PulseFinishedCallback>:
* @brief PWM Pulse finished callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
{
- 8003e3c: b480 push {r7}
- 8003e3e: b083 sub sp, #12
- 8003e40: af00 add r7, sp, #0
- 8003e42: 6078 str r0, [r7, #4]
+ 8003808: b480 push {r7}
+ 800380a: b083 sub sp, #12
+ 800380c: af00 add r7, sp, #0
+ 800380e: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
*/
}
- 8003e44: bf00 nop
- 8003e46: 370c adds r7, #12
- 8003e48: 46bd mov sp, r7
- 8003e4a: f85d 7b04 ldr.w r7, [sp], #4
- 8003e4e: 4770 bx lr
+ 8003810: bf00 nop
+ 8003812: 370c adds r7, #12
+ 8003814: 46bd mov sp, r7
+ 8003816: f85d 7b04 ldr.w r7, [sp], #4
+ 800381a: 4770 bx lr
-08003e50 <HAL_TIM_TriggerCallback>:
+0800381c <HAL_TIM_TriggerCallback>:
* @brief Hall Trigger detection callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
{
- 8003e50: b480 push {r7}
- 8003e52: b083 sub sp, #12
- 8003e54: af00 add r7, sp, #0
- 8003e56: 6078 str r0, [r7, #4]
+ 800381c: b480 push {r7}
+ 800381e: b083 sub sp, #12
+ 8003820: af00 add r7, sp, #0
+ 8003822: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_TriggerCallback could be implemented in the user file
*/
}
- 8003e58: bf00 nop
- 8003e5a: 370c adds r7, #12
- 8003e5c: 46bd mov sp, r7
- 8003e5e: f85d 7b04 ldr.w r7, [sp], #4
- 8003e62: 4770 bx lr
+ 8003824: bf00 nop
+ 8003826: 370c adds r7, #12
+ 8003828: 46bd mov sp, r7
+ 800382a: f85d 7b04 ldr.w r7, [sp], #4
+ 800382e: 4770 bx lr
-08003e64 <TIM_Base_SetConfig>:
+08003830 <TIM_Base_SetConfig>:
* @param TIMx TIM peripheral
* @param Structure TIM Base configuration structure
* @retval None
*/
void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
{
- 8003e64: b480 push {r7}
- 8003e66: b085 sub sp, #20
- 8003e68: af00 add r7, sp, #0
- 8003e6a: 6078 str r0, [r7, #4]
- 8003e6c: 6039 str r1, [r7, #0]
+ 8003830: b480 push {r7}
+ 8003832: b085 sub sp, #20
+ 8003834: af00 add r7, sp, #0
+ 8003836: 6078 str r0, [r7, #4]
+ 8003838: 6039 str r1, [r7, #0]
uint32_t tmpcr1;
tmpcr1 = TIMx->CR1;
- 8003e6e: 687b ldr r3, [r7, #4]
- 8003e70: 681b ldr r3, [r3, #0]
- 8003e72: 60fb str r3, [r7, #12]
+ 800383a: 687b ldr r3, [r7, #4]
+ 800383c: 681b ldr r3, [r3, #0]
+ 800383e: 60fb str r3, [r7, #12]
/* Set TIM Time Base Unit parameters ---------------------------------------*/
if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
- 8003e74: 687b ldr r3, [r7, #4]
- 8003e76: 4a40 ldr r2, [pc, #256] ; (8003f78 <TIM_Base_SetConfig+0x114>)
- 8003e78: 4293 cmp r3, r2
- 8003e7a: d013 beq.n 8003ea4 <TIM_Base_SetConfig+0x40>
- 8003e7c: 687b ldr r3, [r7, #4]
- 8003e7e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8003e82: d00f beq.n 8003ea4 <TIM_Base_SetConfig+0x40>
- 8003e84: 687b ldr r3, [r7, #4]
- 8003e86: 4a3d ldr r2, [pc, #244] ; (8003f7c <TIM_Base_SetConfig+0x118>)
- 8003e88: 4293 cmp r3, r2
- 8003e8a: d00b beq.n 8003ea4 <TIM_Base_SetConfig+0x40>
- 8003e8c: 687b ldr r3, [r7, #4]
- 8003e8e: 4a3c ldr r2, [pc, #240] ; (8003f80 <TIM_Base_SetConfig+0x11c>)
- 8003e90: 4293 cmp r3, r2
- 8003e92: d007 beq.n 8003ea4 <TIM_Base_SetConfig+0x40>
- 8003e94: 687b ldr r3, [r7, #4]
- 8003e96: 4a3b ldr r2, [pc, #236] ; (8003f84 <TIM_Base_SetConfig+0x120>)
- 8003e98: 4293 cmp r3, r2
- 8003e9a: d003 beq.n 8003ea4 <TIM_Base_SetConfig+0x40>
- 8003e9c: 687b ldr r3, [r7, #4]
- 8003e9e: 4a3a ldr r2, [pc, #232] ; (8003f88 <TIM_Base_SetConfig+0x124>)
- 8003ea0: 4293 cmp r3, r2
- 8003ea2: d108 bne.n 8003eb6 <TIM_Base_SetConfig+0x52>
+ 8003840: 687b ldr r3, [r7, #4]
+ 8003842: 4a40 ldr r2, [pc, #256] ; (8003944 <TIM_Base_SetConfig+0x114>)
+ 8003844: 4293 cmp r3, r2
+ 8003846: d013 beq.n 8003870 <TIM_Base_SetConfig+0x40>
+ 8003848: 687b ldr r3, [r7, #4]
+ 800384a: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
+ 800384e: d00f beq.n 8003870 <TIM_Base_SetConfig+0x40>
+ 8003850: 687b ldr r3, [r7, #4]
+ 8003852: 4a3d ldr r2, [pc, #244] ; (8003948 <TIM_Base_SetConfig+0x118>)
+ 8003854: 4293 cmp r3, r2
+ 8003856: d00b beq.n 8003870 <TIM_Base_SetConfig+0x40>
+ 8003858: 687b ldr r3, [r7, #4]
+ 800385a: 4a3c ldr r2, [pc, #240] ; (800394c <TIM_Base_SetConfig+0x11c>)
+ 800385c: 4293 cmp r3, r2
+ 800385e: d007 beq.n 8003870 <TIM_Base_SetConfig+0x40>
+ 8003860: 687b ldr r3, [r7, #4]
+ 8003862: 4a3b ldr r2, [pc, #236] ; (8003950 <TIM_Base_SetConfig+0x120>)
+ 8003864: 4293 cmp r3, r2
+ 8003866: d003 beq.n 8003870 <TIM_Base_SetConfig+0x40>
+ 8003868: 687b ldr r3, [r7, #4]
+ 800386a: 4a3a ldr r2, [pc, #232] ; (8003954 <TIM_Base_SetConfig+0x124>)
+ 800386c: 4293 cmp r3, r2
+ 800386e: d108 bne.n 8003882 <TIM_Base_SetConfig+0x52>
{
/* Select the Counter Mode */
tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
- 8003ea4: 68fb ldr r3, [r7, #12]
- 8003ea6: f023 0370 bic.w r3, r3, #112 ; 0x70
- 8003eaa: 60fb str r3, [r7, #12]
+ 8003870: 68fb ldr r3, [r7, #12]
+ 8003872: f023 0370 bic.w r3, r3, #112 ; 0x70
+ 8003876: 60fb str r3, [r7, #12]
tmpcr1 |= Structure->CounterMode;
- 8003eac: 683b ldr r3, [r7, #0]
- 8003eae: 685b ldr r3, [r3, #4]
- 8003eb0: 68fa ldr r2, [r7, #12]
- 8003eb2: 4313 orrs r3, r2
- 8003eb4: 60fb str r3, [r7, #12]
+ 8003878: 683b ldr r3, [r7, #0]
+ 800387a: 685b ldr r3, [r3, #4]
+ 800387c: 68fa ldr r2, [r7, #12]
+ 800387e: 4313 orrs r3, r2
+ 8003880: 60fb str r3, [r7, #12]
}
if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
- 8003eb6: 687b ldr r3, [r7, #4]
- 8003eb8: 4a2f ldr r2, [pc, #188] ; (8003f78 <TIM_Base_SetConfig+0x114>)
- 8003eba: 4293 cmp r3, r2
- 8003ebc: d02b beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ebe: 687b ldr r3, [r7, #4]
- 8003ec0: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
- 8003ec4: d027 beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ec6: 687b ldr r3, [r7, #4]
- 8003ec8: 4a2c ldr r2, [pc, #176] ; (8003f7c <TIM_Base_SetConfig+0x118>)
- 8003eca: 4293 cmp r3, r2
- 8003ecc: d023 beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ece: 687b ldr r3, [r7, #4]
- 8003ed0: 4a2b ldr r2, [pc, #172] ; (8003f80 <TIM_Base_SetConfig+0x11c>)
- 8003ed2: 4293 cmp r3, r2
- 8003ed4: d01f beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ed6: 687b ldr r3, [r7, #4]
- 8003ed8: 4a2a ldr r2, [pc, #168] ; (8003f84 <TIM_Base_SetConfig+0x120>)
- 8003eda: 4293 cmp r3, r2
- 8003edc: d01b beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ede: 687b ldr r3, [r7, #4]
- 8003ee0: 4a29 ldr r2, [pc, #164] ; (8003f88 <TIM_Base_SetConfig+0x124>)
- 8003ee2: 4293 cmp r3, r2
- 8003ee4: d017 beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ee6: 687b ldr r3, [r7, #4]
- 8003ee8: 4a28 ldr r2, [pc, #160] ; (8003f8c <TIM_Base_SetConfig+0x128>)
- 8003eea: 4293 cmp r3, r2
- 8003eec: d013 beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003eee: 687b ldr r3, [r7, #4]
- 8003ef0: 4a27 ldr r2, [pc, #156] ; (8003f90 <TIM_Base_SetConfig+0x12c>)
- 8003ef2: 4293 cmp r3, r2
- 8003ef4: d00f beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003ef6: 687b ldr r3, [r7, #4]
- 8003ef8: 4a26 ldr r2, [pc, #152] ; (8003f94 <TIM_Base_SetConfig+0x130>)
- 8003efa: 4293 cmp r3, r2
- 8003efc: d00b beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003efe: 687b ldr r3, [r7, #4]
- 8003f00: 4a25 ldr r2, [pc, #148] ; (8003f98 <TIM_Base_SetConfig+0x134>)
- 8003f02: 4293 cmp r3, r2
- 8003f04: d007 beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003f06: 687b ldr r3, [r7, #4]
- 8003f08: 4a24 ldr r2, [pc, #144] ; (8003f9c <TIM_Base_SetConfig+0x138>)
- 8003f0a: 4293 cmp r3, r2
- 8003f0c: d003 beq.n 8003f16 <TIM_Base_SetConfig+0xb2>
- 8003f0e: 687b ldr r3, [r7, #4]
- 8003f10: 4a23 ldr r2, [pc, #140] ; (8003fa0 <TIM_Base_SetConfig+0x13c>)
- 8003f12: 4293 cmp r3, r2
- 8003f14: d108 bne.n 8003f28 <TIM_Base_SetConfig+0xc4>
+ 8003882: 687b ldr r3, [r7, #4]
+ 8003884: 4a2f ldr r2, [pc, #188] ; (8003944 <TIM_Base_SetConfig+0x114>)
+ 8003886: 4293 cmp r3, r2
+ 8003888: d02b beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 800388a: 687b ldr r3, [r7, #4]
+ 800388c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
+ 8003890: d027 beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 8003892: 687b ldr r3, [r7, #4]
+ 8003894: 4a2c ldr r2, [pc, #176] ; (8003948 <TIM_Base_SetConfig+0x118>)
+ 8003896: 4293 cmp r3, r2
+ 8003898: d023 beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 800389a: 687b ldr r3, [r7, #4]
+ 800389c: 4a2b ldr r2, [pc, #172] ; (800394c <TIM_Base_SetConfig+0x11c>)
+ 800389e: 4293 cmp r3, r2
+ 80038a0: d01f beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038a2: 687b ldr r3, [r7, #4]
+ 80038a4: 4a2a ldr r2, [pc, #168] ; (8003950 <TIM_Base_SetConfig+0x120>)
+ 80038a6: 4293 cmp r3, r2
+ 80038a8: d01b beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038aa: 687b ldr r3, [r7, #4]
+ 80038ac: 4a29 ldr r2, [pc, #164] ; (8003954 <TIM_Base_SetConfig+0x124>)
+ 80038ae: 4293 cmp r3, r2
+ 80038b0: d017 beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038b2: 687b ldr r3, [r7, #4]
+ 80038b4: 4a28 ldr r2, [pc, #160] ; (8003958 <TIM_Base_SetConfig+0x128>)
+ 80038b6: 4293 cmp r3, r2
+ 80038b8: d013 beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038ba: 687b ldr r3, [r7, #4]
+ 80038bc: 4a27 ldr r2, [pc, #156] ; (800395c <TIM_Base_SetConfig+0x12c>)
+ 80038be: 4293 cmp r3, r2
+ 80038c0: d00f beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038c2: 687b ldr r3, [r7, #4]
+ 80038c4: 4a26 ldr r2, [pc, #152] ; (8003960 <TIM_Base_SetConfig+0x130>)
+ 80038c6: 4293 cmp r3, r2
+ 80038c8: d00b beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038ca: 687b ldr r3, [r7, #4]
+ 80038cc: 4a25 ldr r2, [pc, #148] ; (8003964 <TIM_Base_SetConfig+0x134>)
+ 80038ce: 4293 cmp r3, r2
+ 80038d0: d007 beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038d2: 687b ldr r3, [r7, #4]
+ 80038d4: 4a24 ldr r2, [pc, #144] ; (8003968 <TIM_Base_SetConfig+0x138>)
+ 80038d6: 4293 cmp r3, r2
+ 80038d8: d003 beq.n 80038e2 <TIM_Base_SetConfig+0xb2>
+ 80038da: 687b ldr r3, [r7, #4]
+ 80038dc: 4a23 ldr r2, [pc, #140] ; (800396c <TIM_Base_SetConfig+0x13c>)
+ 80038de: 4293 cmp r3, r2
+ 80038e0: d108 bne.n 80038f4 <TIM_Base_SetConfig+0xc4>
{
/* Set the clock division */
tmpcr1 &= ~TIM_CR1_CKD;
- 8003f16: 68fb ldr r3, [r7, #12]
- 8003f18: f423 7340 bic.w r3, r3, #768 ; 0x300
- 8003f1c: 60fb str r3, [r7, #12]
+ 80038e2: 68fb ldr r3, [r7, #12]
+ 80038e4: f423 7340 bic.w r3, r3, #768 ; 0x300
+ 80038e8: 60fb str r3, [r7, #12]
tmpcr1 |= (uint32_t)Structure->ClockDivision;
- 8003f1e: 683b ldr r3, [r7, #0]
- 8003f20: 68db ldr r3, [r3, #12]
- 8003f22: 68fa ldr r2, [r7, #12]
- 8003f24: 4313 orrs r3, r2
- 8003f26: 60fb str r3, [r7, #12]
+ 80038ea: 683b ldr r3, [r7, #0]
+ 80038ec: 68db ldr r3, [r3, #12]
+ 80038ee: 68fa ldr r2, [r7, #12]
+ 80038f0: 4313 orrs r3, r2
+ 80038f2: 60fb str r3, [r7, #12]
}
/* Set the auto-reload preload */
MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
- 8003f28: 68fb ldr r3, [r7, #12]
- 8003f2a: f023 0280 bic.w r2, r3, #128 ; 0x80
- 8003f2e: 683b ldr r3, [r7, #0]
- 8003f30: 695b ldr r3, [r3, #20]
- 8003f32: 4313 orrs r3, r2
- 8003f34: 60fb str r3, [r7, #12]
+ 80038f4: 68fb ldr r3, [r7, #12]
+ 80038f6: f023 0280 bic.w r2, r3, #128 ; 0x80
+ 80038fa: 683b ldr r3, [r7, #0]
+ 80038fc: 695b ldr r3, [r3, #20]
+ 80038fe: 4313 orrs r3, r2
+ 8003900: 60fb str r3, [r7, #12]
TIMx->CR1 = tmpcr1;
- 8003f36: 687b ldr r3, [r7, #4]
- 8003f38: 68fa ldr r2, [r7, #12]
- 8003f3a: 601a str r2, [r3, #0]
+ 8003902: 687b ldr r3, [r7, #4]
+ 8003904: 68fa ldr r2, [r7, #12]
+ 8003906: 601a str r2, [r3, #0]
/* Set the Autoreload value */
TIMx->ARR = (uint32_t)Structure->Period ;
- 8003f3c: 683b ldr r3, [r7, #0]
- 8003f3e: 689a ldr r2, [r3, #8]
- 8003f40: 687b ldr r3, [r7, #4]
- 8003f42: 62da str r2, [r3, #44] ; 0x2c
+ 8003908: 683b ldr r3, [r7, #0]
+ 800390a: 689a ldr r2, [r3, #8]
+ 800390c: 687b ldr r3, [r7, #4]
+ 800390e: 62da str r2, [r3, #44] ; 0x2c
/* Set the Prescaler value */
TIMx->PSC = Structure->Prescaler;
- 8003f44: 683b ldr r3, [r7, #0]
- 8003f46: 681a ldr r2, [r3, #0]
- 8003f48: 687b ldr r3, [r7, #4]
- 8003f4a: 629a str r2, [r3, #40] ; 0x28
+ 8003910: 683b ldr r3, [r7, #0]
+ 8003912: 681a ldr r2, [r3, #0]
+ 8003914: 687b ldr r3, [r7, #4]
+ 8003916: 629a str r2, [r3, #40] ; 0x28
if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
- 8003f4c: 687b ldr r3, [r7, #4]
- 8003f4e: 4a0a ldr r2, [pc, #40] ; (8003f78 <TIM_Base_SetConfig+0x114>)
- 8003f50: 4293 cmp r3, r2
- 8003f52: d003 beq.n 8003f5c <TIM_Base_SetConfig+0xf8>
- 8003f54: 687b ldr r3, [r7, #4]
- 8003f56: 4a0c ldr r2, [pc, #48] ; (8003f88 <TIM_Base_SetConfig+0x124>)
- 8003f58: 4293 cmp r3, r2
- 8003f5a: d103 bne.n 8003f64 <TIM_Base_SetConfig+0x100>
+ 8003918: 687b ldr r3, [r7, #4]
+ 800391a: 4a0a ldr r2, [pc, #40] ; (8003944 <TIM_Base_SetConfig+0x114>)
+ 800391c: 4293 cmp r3, r2
+ 800391e: d003 beq.n 8003928 <TIM_Base_SetConfig+0xf8>
+ 8003920: 687b ldr r3, [r7, #4]
+ 8003922: 4a0c ldr r2, [pc, #48] ; (8003954 <TIM_Base_SetConfig+0x124>)
+ 8003924: 4293 cmp r3, r2
+ 8003926: d103 bne.n 8003930 <TIM_Base_SetConfig+0x100>
{
/* Set the Repetition Counter value */
TIMx->RCR = Structure->RepetitionCounter;
- 8003f5c: 683b ldr r3, [r7, #0]
- 8003f5e: 691a ldr r2, [r3, #16]
- 8003f60: 687b ldr r3, [r7, #4]
- 8003f62: 631a str r2, [r3, #48] ; 0x30
+ 8003928: 683b ldr r3, [r7, #0]
+ 800392a: 691a ldr r2, [r3, #16]
+ 800392c: 687b ldr r3, [r7, #4]
+ 800392e: 631a str r2, [r3, #48] ; 0x30
}
/* Generate an update event to reload the Prescaler
and the repetition counter (only for advanced timer) value immediately */
TIMx->EGR = TIM_EGR_UG;
- 8003f64: 687b ldr r3, [r7, #4]
- 8003f66: 2201 movs r2, #1
- 8003f68: 615a str r2, [r3, #20]
+ 8003930: 687b ldr r3, [r7, #4]
+ 8003932: 2201 movs r2, #1
+ 8003934: 615a str r2, [r3, #20]
}
- 8003f6a: bf00 nop
- 8003f6c: 3714 adds r7, #20
- 8003f6e: 46bd mov sp, r7
- 8003f70: f85d 7b04 ldr.w r7, [sp], #4
- 8003f74: 4770 bx lr
- 8003f76: bf00 nop
- 8003f78: 40010000 .word 0x40010000
- 8003f7c: 40000400 .word 0x40000400
- 8003f80: 40000800 .word 0x40000800
- 8003f84: 40000c00 .word 0x40000c00
- 8003f88: 40010400 .word 0x40010400
- 8003f8c: 40014000 .word 0x40014000
- 8003f90: 40014400 .word 0x40014400
- 8003f94: 40014800 .word 0x40014800
- 8003f98: 40001800 .word 0x40001800
- 8003f9c: 40001c00 .word 0x40001c00
- 8003fa0: 40002000 .word 0x40002000
-
-08003fa4 <TIM_OC1_SetConfig>:
+ 8003936: bf00 nop
+ 8003938: 3714 adds r7, #20
+ 800393a: 46bd mov sp, r7
+ 800393c: f85d 7b04 ldr.w r7, [sp], #4
+ 8003940: 4770 bx lr
+ 8003942: bf00 nop
+ 8003944: 40010000 .word 0x40010000
+ 8003948: 40000400 .word 0x40000400
+ 800394c: 40000800 .word 0x40000800
+ 8003950: 40000c00 .word 0x40000c00
+ 8003954: 40010400 .word 0x40010400
+ 8003958: 40014000 .word 0x40014000
+ 800395c: 40014400 .word 0x40014400
+ 8003960: 40014800 .word 0x40014800
+ 8003964: 40001800 .word 0x40001800
+ 8003968: 40001c00 .word 0x40001c00
+ 800396c: 40002000 .word 0x40002000
+
+08003970 <TIM_OC1_SetConfig>:
* @param TIMx to select the TIM peripheral
* @param OC_Config The ouput configuration structure
* @retval None
*/
static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
{
- 8003fa4: b480 push {r7}
- 8003fa6: b087 sub sp, #28
- 8003fa8: af00 add r7, sp, #0
- 8003faa: 6078 str r0, [r7, #4]
- 8003fac: 6039 str r1, [r7, #0]
+ 8003970: b480 push {r7}
+ 8003972: b087 sub sp, #28
+ 8003974: af00 add r7, sp, #0
+ 8003976: 6078 str r0, [r7, #4]
+ 8003978: 6039 str r1, [r7, #0]
uint32_t tmpccmrx;
uint32_t tmpccer;
uint32_t tmpcr2;
/* Disable the Channel 1: Reset the CC1E Bit */
TIMx->CCER &= ~TIM_CCER_CC1E;
- 8003fae: 687b ldr r3, [r7, #4]
- 8003fb0: 6a1b ldr r3, [r3, #32]
- 8003fb2: f023 0201 bic.w r2, r3, #1
- 8003fb6: 687b ldr r3, [r7, #4]
- 8003fb8: 621a str r2, [r3, #32]
+ 800397a: 687b ldr r3, [r7, #4]
+ 800397c: 6a1b ldr r3, [r3, #32]
+ 800397e: f023 0201 bic.w r2, r3, #1
+ 8003982: 687b ldr r3, [r7, #4]
+ 8003984: 621a str r2, [r3, #32]
/* Get the TIMx CCER register value */
tmpccer = TIMx->CCER;
- 8003fba: 687b ldr r3, [r7, #4]
- 8003fbc: 6a1b ldr r3, [r3, #32]
- 8003fbe: 617b str r3, [r7, #20]
+ 8003986: 687b ldr r3, [r7, #4]
+ 8003988: 6a1b ldr r3, [r3, #32]
+ 800398a: 617b str r3, [r7, #20]
/* Get the TIMx CR2 register value */
tmpcr2 = TIMx->CR2;
- 8003fc0: 687b ldr r3, [r7, #4]
- 8003fc2: 685b ldr r3, [r3, #4]
- 8003fc4: 613b str r3, [r7, #16]
+ 800398c: 687b ldr r3, [r7, #4]
+ 800398e: 685b ldr r3, [r3, #4]
+ 8003990: 613b str r3, [r7, #16]
/* Get the TIMx CCMR1 register value */
tmpccmrx = TIMx->CCMR1;
- 8003fc6: 687b ldr r3, [r7, #4]
- 8003fc8: 699b ldr r3, [r3, #24]
- 8003fca: 60fb str r3, [r7, #12]
+ 8003992: 687b ldr r3, [r7, #4]
+ 8003994: 699b ldr r3, [r3, #24]
+ 8003996: 60fb str r3, [r7, #12]
/* Reset the Output Compare Mode Bits */
tmpccmrx &= ~TIM_CCMR1_OC1M;
- 8003fcc: 68fa ldr r2, [r7, #12]
- 8003fce: 4b2b ldr r3, [pc, #172] ; (800407c <TIM_OC1_SetConfig+0xd8>)
- 8003fd0: 4013 ands r3, r2
- 8003fd2: 60fb str r3, [r7, #12]
+ 8003998: 68fa ldr r2, [r7, #12]
+ 800399a: 4b2b ldr r3, [pc, #172] ; (8003a48 <TIM_OC1_SetConfig+0xd8>)
+ 800399c: 4013 ands r3, r2
+ 800399e: 60fb str r3, [r7, #12]
tmpccmrx &= ~TIM_CCMR1_CC1S;
- 8003fd4: 68fb ldr r3, [r7, #12]
- 8003fd6: f023 0303 bic.w r3, r3, #3
- 8003fda: 60fb str r3, [r7, #12]
+ 80039a0: 68fb ldr r3, [r7, #12]
+ 80039a2: f023 0303 bic.w r3, r3, #3
+ 80039a6: 60fb str r3, [r7, #12]
/* Select the Output Compare Mode */
tmpccmrx |= OC_Config->OCMode;
- 8003fdc: 683b ldr r3, [r7, #0]
- 8003fde: 681b ldr r3, [r3, #0]
- 8003fe0: 68fa ldr r2, [r7, #12]
- 8003fe2: 4313 orrs r3, r2
- 8003fe4: 60fb str r3, [r7, #12]
+ 80039a8: 683b ldr r3, [r7, #0]
+ 80039aa: 681b ldr r3, [r3, #0]
+ 80039ac: 68fa ldr r2, [r7, #12]
+ 80039ae: 4313 orrs r3, r2
+ 80039b0: 60fb str r3, [r7, #12]
/* Reset the Output Polarity level */
tmpccer &= ~TIM_CCER_CC1P;
- 8003fe6: 697b ldr r3, [r7, #20]
- 8003fe8: f023 0302 bic.w r3, r3, #2
- 8003fec: 617b str r3, [r7, #20]
+ 80039b2: 697b ldr r3, [r7, #20]
+ 80039b4: f023 0302 bic.w r3, r3, #2
+ 80039b8: 617b str r3, [r7, #20]
/* Set the Output Compare Polarity */
tmpccer |= OC_Config->OCPolarity;
- 8003fee: 683b ldr r3, [r7, #0]
- 8003ff0: 689b ldr r3, [r3, #8]
- 8003ff2: 697a ldr r2, [r7, #20]
- 8003ff4: 4313 orrs r3, r2
- 8003ff6: 617b str r3, [r7, #20]
+ 80039ba: 683b ldr r3, [r7, #0]
+ 80039bc: 689b ldr r3, [r3, #8]
+ 80039be: 697a ldr r2, [r7, #20]
+ 80039c0: 4313 orrs r3, r2
+ 80039c2: 617b str r3, [r7, #20]
if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
- 8003ff8: 687b ldr r3, [r7, #4]
- 8003ffa: 4a21 ldr r2, [pc, #132] ; (8004080 <TIM_OC1_SetConfig+0xdc>)
- 8003ffc: 4293 cmp r3, r2
- 8003ffe: d003 beq.n 8004008 <TIM_OC1_SetConfig+0x64>
- 8004000: 687b ldr r3, [r7, #4]
- 8004002: 4a20 ldr r2, [pc, #128] ; (8004084 <TIM_OC1_SetConfig+0xe0>)
- 8004004: 4293 cmp r3, r2
- 8004006: d10c bne.n 8004022 <TIM_OC1_SetConfig+0x7e>
+ 80039c4: 687b ldr r3, [r7, #4]
+ 80039c6: 4a21 ldr r2, [pc, #132] ; (8003a4c <TIM_OC1_SetConfig+0xdc>)
+ 80039c8: 4293 cmp r3, r2
+ 80039ca: d003 beq.n 80039d4 <TIM_OC1_SetConfig+0x64>
+ 80039cc: 687b ldr r3, [r7, #4]
+ 80039ce: 4a20 ldr r2, [pc, #128] ; (8003a50 <TIM_OC1_SetConfig+0xe0>)
+ 80039d0: 4293 cmp r3, r2
+ 80039d2: d10c bne.n 80039ee <TIM_OC1_SetConfig+0x7e>
{
/* Check parameters */
assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
/* Reset the Output N Polarity level */
tmpccer &= ~TIM_CCER_CC1NP;
- 8004008: 697b ldr r3, [r7, #20]
- 800400a: f023 0308 bic.w r3, r3, #8
- 800400e: 617b str r3, [r7, #20]
+ 80039d4: 697b ldr r3, [r7, #20]
+ 80039d6: f023 0308 bic.w r3, r3, #8
+ 80039da: 617b str r3, [r7, #20]
/* Set the Output N Polarity */
tmpccer |= OC_Config->OCNPolarity;
- 8004010: 683b ldr r3, [r7, #0]
- 8004012: 68db ldr r3, [r3, #12]
- 8004014: 697a ldr r2, [r7, #20]
- 8004016: 4313 orrs r3, r2
- 8004018: 617b str r3, [r7, #20]
+ 80039dc: 683b ldr r3, [r7, #0]
+ 80039de: 68db ldr r3, [r3, #12]
+ 80039e0: 697a ldr r2, [r7, #20]
+ 80039e2: 4313 orrs r3, r2
+ 80039e4: 617b str r3, [r7, #20]
/* Reset the Output N State */
tmpccer &= ~TIM_CCER_CC1NE;
- 800401a: 697b ldr r3, [r7, #20]
- 800401c: f023 0304 bic.w r3, r3, #4
- 8004020: 617b str r3, [r7, #20]
+ 80039e6: 697b ldr r3, [r7, #20]
+ 80039e8: f023 0304 bic.w r3, r3, #4
+ 80039ec: 617b str r3, [r7, #20]
}
if (IS_TIM_BREAK_INSTANCE(TIMx))
- 8004022: 687b ldr r3, [r7, #4]
- 8004024: 4a16 ldr r2, [pc, #88] ; (8004080 <TIM_OC1_SetConfig+0xdc>)
- 8004026: 4293 cmp r3, r2
- 8004028: d003 beq.n 8004032 <TIM_OC1_SetConfig+0x8e>
- 800402a: 687b ldr r3, [r7, #4]
- 800402c: 4a15 ldr r2, [pc, #84] ; (8004084 <TIM_OC1_SetConfig+0xe0>)
- 800402e: 4293 cmp r3, r2
- 8004030: d111 bne.n 8004056 <TIM_OC1_SetConfig+0xb2>
+ 80039ee: 687b ldr r3, [r7, #4]
+ 80039f0: 4a16 ldr r2, [pc, #88] ; (8003a4c <TIM_OC1_SetConfig+0xdc>)
+ 80039f2: 4293 cmp r3, r2
+ 80039f4: d003 beq.n 80039fe <TIM_OC1_SetConfig+0x8e>
+ 80039f6: 687b ldr r3, [r7, #4]
+ 80039f8: 4a15 ldr r2, [pc, #84] ; (8003a50 <TIM_OC1_SetConfig+0xe0>)
+ 80039fa: 4293 cmp r3, r2
+ 80039fc: d111 bne.n 8003a22 <TIM_OC1_SetConfig+0xb2>
/* Check parameters */
assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
/* Reset the Output Compare and Output Compare N IDLE State */
tmpcr2 &= ~TIM_CR2_OIS1;
- 8004032: 693b ldr r3, [r7, #16]
- 8004034: f423 7380 bic.w r3, r3, #256 ; 0x100
- 8004038: 613b str r3, [r7, #16]
+ 80039fe: 693b ldr r3, [r7, #16]
+ 8003a00: f423 7380 bic.w r3, r3, #256 ; 0x100
+ 8003a04: 613b str r3, [r7, #16]
tmpcr2 &= ~TIM_CR2_OIS1N;
- 800403a: 693b ldr r3, [r7, #16]
- 800403c: f423 7300 bic.w r3, r3, #512 ; 0x200
- 8004040: 613b str r3, [r7, #16]
+ 8003a06: 693b ldr r3, [r7, #16]
+ 8003a08: f423 7300 bic.w r3, r3, #512 ; 0x200
+ 8003a0c: 613b str r3, [r7, #16]
/* Set the Output Idle state */
tmpcr2 |= OC_Config->OCIdleState;
- 8004042: 683b ldr r3, [r7, #0]
- 8004044: 695b ldr r3, [r3, #20]
- 8004046: 693a ldr r2, [r7, #16]
- 8004048: 4313 orrs r3, r2
- 800404a: 613b str r3, [r7, #16]
+ 8003a0e: 683b ldr r3, [r7, #0]
+ 8003a10: 695b ldr r3, [r3, #20]
+ 8003a12: 693a ldr r2, [r7, #16]
+ 8003a14: 4313 orrs r3, r2
+ 8003a16: 613b str r3, [r7, #16]
/* Set the Output N Idle state */
tmpcr2 |= OC_Config->OCNIdleState;
- 800404c: 683b ldr r3, [r7, #0]
- 800404e: 699b ldr r3, [r3, #24]
- 8004050: 693a ldr r2, [r7, #16]
- 8004052: 4313 orrs r3, r2
- 8004054: 613b str r3, [r7, #16]
+ 8003a18: 683b ldr r3, [r7, #0]
+ 8003a1a: 699b ldr r3, [r3, #24]
+ 8003a1c: 693a ldr r2, [r7, #16]
+ 8003a1e: 4313 orrs r3, r2
+ 8003a20: 613b str r3, [r7, #16]
}
/* Write to TIMx CR2 */
TIMx->CR2 = tmpcr2;
- 8004056: 687b ldr r3, [r7, #4]
- 8004058: 693a ldr r2, [r7, #16]
- 800405a: 605a str r2, [r3, #4]
+ 8003a22: 687b ldr r3, [r7, #4]
+ 8003a24: 693a ldr r2, [r7, #16]
+ 8003a26: 605a str r2, [r3, #4]
/* Write to TIMx CCMR1 */
TIMx->CCMR1 = tmpccmrx;
- 800405c: 687b ldr r3, [r7, #4]
- 800405e: 68fa ldr r2, [r7, #12]
- 8004060: 619a str r2, [r3, #24]
+ 8003a28: 687b ldr r3, [r7, #4]
+ 8003a2a: 68fa ldr r2, [r7, #12]
+ 8003a2c: 619a str r2, [r3, #24]
/* Set the Capture Compare Register value */
TIMx->CCR1 = OC_Config->Pulse;
- 8004062: 683b ldr r3, [r7, #0]
- 8004064: 685a ldr r2, [r3, #4]
- 8004066: 687b ldr r3, [r7, #4]
- 8004068: 635a str r2, [r3, #52] ; 0x34
+ 8003a2e: 683b ldr r3, [r7, #0]
+ 8003a30: 685a ldr r2, [r3, #4]
+ 8003a32: 687b ldr r3, [r7, #4]
+ 8003a34: 635a str r2, [r3, #52] ; 0x34
/* Write to TIMx CCER */
TIMx->CCER = tmpccer;
- 800406a: 687b ldr r3, [r7, #4]
- 800406c: 697a ldr r2, [r7, #20]
- 800406e: 621a str r2, [r3, #32]
+ 8003a36: 687b ldr r3, [r7, #4]
+ 8003a38: 697a ldr r2, [r7, #20]
+ 8003a3a: 621a str r2, [r3, #32]
}
- 8004070: bf00 nop
- 8004072: 371c adds r7, #28
- 8004074: 46bd mov sp, r7
- 8004076: f85d 7b04 ldr.w r7, [sp], #4
- 800407a: 4770 bx lr
- 800407c: fffeff8f .word 0xfffeff8f
- 8004080: 40010000 .word 0x40010000
- 8004084: 40010400 .word 0x40010400
-
-08004088 <TIM_OC2_SetConfig>:
+ 8003a3c: bf00 nop
+ 8003a3e: 371c adds r7, #28
+ 8003a40: 46bd mov sp, r7
+ 8003a42: f85d 7b04 ldr.w r7, [sp], #4
+ 8003a46: 4770 bx lr
+ 8003a48: fffeff8f .word 0xfffeff8f
+ 8003a4c: 40010000 .word 0x40010000
+ 8003a50: 40010400 .word 0x40010400
+
+08003a54 <TIM_OC2_SetConfig>:
* @param TIMx to select the TIM peripheral
* @param OC_Config The ouput configuration structure
* @retval None
*/
void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
{
- 8004088: b480 push {r7}
- 800408a: b087 sub sp, #28
- 800408c: af00 add r7, sp, #0
- 800408e: 6078 str r0, [r7, #4]
- 8004090: 6039 str r1, [r7, #0]
+ 8003a54: b480 push {r7}
+ 8003a56: b087 sub sp, #28
+ 8003a58: af00 add r7, sp, #0
+ 8003a5a: 6078 str r0, [r7, #4]
+ 8003a5c: 6039 str r1, [r7, #0]
uint32_t tmpccmrx;
uint32_t tmpccer;
uint32_t tmpcr2;
/* Disable the Channel 2: Reset the CC2E Bit */
TIMx->CCER &= ~TIM_CCER_CC2E;
- 8004092: 687b ldr r3, [r7, #4]
- 8004094: 6a1b ldr r3, [r3, #32]
- 8004096: f023 0210 bic.w r2, r3, #16
- 800409a: 687b ldr r3, [r7, #4]
- 800409c: 621a str r2, [r3, #32]
+ 8003a5e: 687b ldr r3, [r7, #4]
+ 8003a60: 6a1b ldr r3, [r3, #32]
+ 8003a62: f023 0210 bic.w r2, r3, #16
+ 8003a66: 687b ldr r3, [r7, #4]
+ 8003a68: 621a str r2, [r3, #32]
/* Get the TIMx CCER register value */
tmpccer = TIMx->CCER;
- 800409e: 687b ldr r3, [r7, #4]
- 80040a0: 6a1b ldr r3, [r3, #32]
- 80040a2: 617b str r3, [r7, #20]
+ 8003a6a: 687b ldr r3, [r7, #4]
+ 8003a6c: 6a1b ldr r3, [r3, #32]
+ 8003a6e: 617b str r3, [r7, #20]
/* Get the TIMx CR2 register value */
tmpcr2 = TIMx->CR2;
- 80040a4: 687b ldr r3, [r7, #4]
- 80040a6: 685b ldr r3, [r3, #4]
- 80040a8: 613b str r3, [r7, #16]
+ 8003a70: 687b ldr r3, [r7, #4]
+ 8003a72: 685b ldr r3, [r3, #4]
+ 8003a74: 613b str r3, [r7, #16]
/* Get the TIMx CCMR1 register value */
tmpccmrx = TIMx->CCMR1;
- 80040aa: 687b ldr r3, [r7, #4]
- 80040ac: 699b ldr r3, [r3, #24]
- 80040ae: 60fb str r3, [r7, #12]
+ 8003a76: 687b ldr r3, [r7, #4]
+ 8003a78: 699b ldr r3, [r3, #24]
+ 8003a7a: 60fb str r3, [r7, #12]
/* Reset the Output Compare mode and Capture/Compare selection Bits */
tmpccmrx &= ~TIM_CCMR1_OC2M;
- 80040b0: 68fa ldr r2, [r7, #12]
- 80040b2: 4b2e ldr r3, [pc, #184] ; (800416c <TIM_OC2_SetConfig+0xe4>)
- 80040b4: 4013 ands r3, r2
- 80040b6: 60fb str r3, [r7, #12]
+ 8003a7c: 68fa ldr r2, [r7, #12]
+ 8003a7e: 4b2e ldr r3, [pc, #184] ; (8003b38 <TIM_OC2_SetConfig+0xe4>)
+ 8003a80: 4013 ands r3, r2
+ 8003a82: 60fb str r3, [r7, #12]
tmpccmrx &= ~TIM_CCMR1_CC2S;
- 80040b8: 68fb ldr r3, [r7, #12]
- 80040ba: f423 7340 bic.w r3, r3, #768 ; 0x300
- 80040be: 60fb str r3, [r7, #12]
+ 8003a84: 68fb ldr r3, [r7, #12]
+ 8003a86: f423 7340 bic.w r3, r3, #768 ; 0x300
+ 8003a8a: 60fb str r3, [r7, #12]
/* Select the Output Compare Mode */
tmpccmrx |= (OC_Config->OCMode << 8U);
- 80040c0: 683b ldr r3, [r7, #0]
- 80040c2: 681b ldr r3, [r3, #0]
- 80040c4: 021b lsls r3, r3, #8
- 80040c6: 68fa ldr r2, [r7, #12]
- 80040c8: 4313 orrs r3, r2
- 80040ca: 60fb str r3, [r7, #12]
+ 8003a8c: 683b ldr r3, [r7, #0]
+ 8003a8e: 681b ldr r3, [r3, #0]
+ 8003a90: 021b lsls r3, r3, #8
+ 8003a92: 68fa ldr r2, [r7, #12]
+ 8003a94: 4313 orrs r3, r2
+ 8003a96: 60fb str r3, [r7, #12]
/* Reset the Output Polarity level */
tmpccer &= ~TIM_CCER_CC2P;
- 80040cc: 697b ldr r3, [r7, #20]
- 80040ce: f023 0320 bic.w r3, r3, #32
- 80040d2: 617b str r3, [r7, #20]
+ 8003a98: 697b ldr r3, [r7, #20]
+ 8003a9a: f023 0320 bic.w r3, r3, #32
+ 8003a9e: 617b str r3, [r7, #20]
/* Set the Output Compare Polarity */
tmpccer |= (OC_Config->OCPolarity << 4U);
- 80040d4: 683b ldr r3, [r7, #0]
- 80040d6: 689b ldr r3, [r3, #8]
- 80040d8: 011b lsls r3, r3, #4
- 80040da: 697a ldr r2, [r7, #20]
- 80040dc: 4313 orrs r3, r2
- 80040de: 617b str r3, [r7, #20]
+ 8003aa0: 683b ldr r3, [r7, #0]
+ 8003aa2: 689b ldr r3, [r3, #8]
+ 8003aa4: 011b lsls r3, r3, #4
+ 8003aa6: 697a ldr r2, [r7, #20]
+ 8003aa8: 4313 orrs r3, r2
+ 8003aaa: 617b str r3, [r7, #20]
if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
- 80040e0: 687b ldr r3, [r7, #4]
- 80040e2: 4a23 ldr r2, [pc, #140] ; (8004170 <TIM_OC2_SetConfig+0xe8>)
- 80040e4: 4293 cmp r3, r2
- 80040e6: d003 beq.n 80040f0 <TIM_OC2_SetConfig+0x68>
- 80040e8: 687b ldr r3, [r7, #4]
- 80040ea: 4a22 ldr r2, [pc, #136] ; (8004174 <TIM_OC2_SetConfig+0xec>)
- 80040ec: 4293 cmp r3, r2
- 80040ee: d10d bne.n 800410c <TIM_OC2_SetConfig+0x84>
+ 8003aac: 687b ldr r3, [r7, #4]
+ 8003aae: 4a23 ldr r2, [pc, #140] ; (8003b3c <TIM_OC2_SetConfig+0xe8>)
+ 8003ab0: 4293 cmp r3, r2
+ 8003ab2: d003 beq.n 8003abc <TIM_OC2_SetConfig+0x68>
+ 8003ab4: 687b ldr r3, [r7, #4]
+ 8003ab6: 4a22 ldr r2, [pc, #136] ; (8003b40 <TIM_OC2_SetConfig+0xec>)
+ 8003ab8: 4293 cmp r3, r2
+ 8003aba: d10d bne.n 8003ad8 <TIM_OC2_SetConfig+0x84>
{
assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
/* Reset the Output N Polarity level */
tmpccer &= ~TIM_CCER_CC2NP;
- 80040f0: 697b ldr r3, [r7, #20]
- 80040f2: f023 0380 bic.w r3, r3, #128 ; 0x80
- 80040f6: 617b str r3, [r7, #20]
+ 8003abc: 697b ldr r3, [r7, #20]
+ 8003abe: f023 0380 bic.w r3, r3, #128 ; 0x80
+ 8003ac2: 617b str r3, [r7, #20]
/* Set the Output N Polarity */
tmpccer |= (OC_Config->OCNPolarity << 4U);
- 80040f8: 683b ldr r3, [r7, #0]
- 80040fa: 68db ldr r3, [r3, #12]
- 80040fc: 011b lsls r3, r3, #4
- 80040fe: 697a ldr r2, [r7, #20]
- 8004100: 4313 orrs r3, r2
- 8004102: 617b str r3, [r7, #20]
+ 8003ac4: 683b ldr r3, [r7, #0]
+ 8003ac6: 68db ldr r3, [r3, #12]
+ 8003ac8: 011b lsls r3, r3, #4
+ 8003aca: 697a ldr r2, [r7, #20]
+ 8003acc: 4313 orrs r3, r2
+ 8003ace: 617b str r3, [r7, #20]
/* Reset the Output N State */
tmpccer &= ~TIM_CCER_CC2NE;
- 8004104: 697b ldr r3, [r7, #20]
- 8004106: f023 0340 bic.w r3, r3, #64 ; 0x40
- 800410a: 617b str r3, [r7, #20]
+ 8003ad0: 697b ldr r3, [r7, #20]
+ 8003ad2: f023 0340 bic.w r3, r3, #64 ; 0x40
+ 8003ad6: 617b str r3, [r7, #20]
}
if (IS_TIM_BREAK_INSTANCE(TIMx))
- 800410c: 687b ldr r3, [r7, #4]
- 800410e: 4a18 ldr r2, [pc, #96] ; (8004170 <TIM_OC2_SetConfig+0xe8>)
- 8004110: 4293 cmp r3, r2
- 8004112: d003 beq.n 800411c <TIM_OC2_SetConfig+0x94>
- 8004114: 687b ldr r3, [r7, #4]
- 8004116: 4a17 ldr r2, [pc, #92] ; (8004174 <TIM_OC2_SetConfig+0xec>)
- 8004118: 4293 cmp r3, r2
- 800411a: d113 bne.n 8004144 <TIM_OC2_SetConfig+0xbc>
+ 8003ad8: 687b ldr r3, [r7, #4]
+ 8003ada: 4a18 ldr r2, [pc, #96] ; (8003b3c <TIM_OC2_SetConfig+0xe8>)
+ 8003adc: 4293 cmp r3, r2
+ 8003ade: d003 beq.n 8003ae8 <TIM_OC2_SetConfig+0x94>
+ 8003ae0: 687b ldr r3, [r7, #4]
+ 8003ae2: 4a17 ldr r2, [pc, #92] ; (8003b40 <TIM_OC2_SetConfig+0xec>)
+ 8003ae4: 4293 cmp r3, r2
+ 8003ae6: d113 bne.n 8003b10 <TIM_OC2_SetConfig+0xbc>
/* Check parameters */
assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
/* Reset the Output Compare and Output Compare N IDLE State */
tmpcr2 &= ~TIM_CR2_OIS2;
- 800411c: 693b ldr r3, [r7, #16]
- 800411e: f423 6380 bic.w r3, r3, #1024 ; 0x400
- 8004122: 613b str r3, [r7, #16]
+ 8003ae8: 693b ldr r3, [r7, #16]
+ 8003aea: f423 6380 bic.w r3, r3, #1024 ; 0x400
+ 8003aee: 613b str r3, [r7, #16]
tmpcr2 &= ~TIM_CR2_OIS2N;
- 8004124: 693b ldr r3, [r7, #16]
- 8004126: f423 6300 bic.w r3, r3, #2048 ; 0x800
- 800412a: 613b str r3, [r7, #16]
+ 8003af0: 693b ldr r3, [r7, #16]
+ 8003af2: f423 6300 bic.w r3, r3, #2048 ; 0x800
+ 8003af6: 613b str r3, [r7, #16]
/* Set the Output Idle state */
tmpcr2 |= (OC_Config->OCIdleState << 2U);
- 800412c: 683b ldr r3, [r7, #0]
- 800412e: 695b ldr r3, [r3, #20]
- 8004130: 009b lsls r3, r3, #2
- 8004132: 693a ldr r2, [r7, #16]
- 8004134: 4313 orrs r3, r2
- 8004136: 613b str r3, [r7, #16]
+ 8003af8: 683b ldr r3, [r7, #0]
+ 8003afa: 695b ldr r3, [r3, #20]
+ 8003afc: 009b lsls r3, r3, #2
+ 8003afe: 693a ldr r2, [r7, #16]
+ 8003b00: 4313 orrs r3, r2
+ 8003b02: 613b str r3, [r7, #16]
/* Set the Output N Idle state */
tmpcr2 |= (OC_Config->OCNIdleState << 2U);
- 8004138: 683b ldr r3, [r7, #0]
- 800413a: 699b ldr r3, [r3, #24]
- 800413c: 009b lsls r3, r3, #2
- 800413e: 693a ldr r2, [r7, #16]
- 8004140: 4313 orrs r3, r2
- 8004142: 613b str r3, [r7, #16]
+ 8003b04: 683b ldr r3, [r7, #0]
+ 8003b06: 699b ldr r3, [r3, #24]
+ 8003b08: 009b lsls r3, r3, #2
+ 8003b0a: 693a ldr r2, [r7, #16]
+ 8003b0c: 4313 orrs r3, r2
+ 8003b0e: 613b str r3, [r7, #16]
}
/* Write to TIMx CR2 */
TIMx->CR2 = tmpcr2;
- 8004144: 687b ldr r3, [r7, #4]
- 8004146: 693a ldr r2, [r7, #16]
- 8004148: 605a str r2, [r3, #4]
+ 8003b10: 687b ldr r3, [r7, #4]
+ 8003b12: 693a ldr r2, [r7, #16]
+ 8003b14: 605a str r2, [r3, #4]
/* Write to TIMx CCMR1 */
TIMx->CCMR1 = tmpccmrx;
- 800414a: 687b ldr r3, [r7, #4]
- 800414c: 68fa ldr r2, [r7, #12]
- 800414e: 619a str r2, [r3, #24]
+ 8003b16: 687b ldr r3, [r7, #4]
+ 8003b18: 68fa ldr r2, [r7, #12]
+ 8003b1a: 619a str r2, [r3, #24]
/* Set the Capture Compare Register value */
TIMx->CCR2 = OC_Config->Pulse;
- 8004150: 683b ldr r3, [r7, #0]
- 8004152: 685a ldr r2, [r3, #4]
- 8004154: 687b ldr r3, [r7, #4]
- 8004156: 639a str r2, [r3, #56] ; 0x38
+ 8003b1c: 683b ldr r3, [r7, #0]
+ 8003b1e: 685a ldr r2, [r3, #4]
+ 8003b20: 687b ldr r3, [r7, #4]
+ 8003b22: 639a str r2, [r3, #56] ; 0x38
/* Write to TIMx CCER */
TIMx->CCER = tmpccer;
- 8004158: 687b ldr r3, [r7, #4]
- 800415a: 697a ldr r2, [r7, #20]
- 800415c: 621a str r2, [r3, #32]
+ 8003b24: 687b ldr r3, [r7, #4]
+ 8003b26: 697a ldr r2, [r7, #20]
+ 8003b28: 621a str r2, [r3, #32]
}
- 800415e: bf00 nop
- 8004160: 371c adds r7, #28
- 8004162: 46bd mov sp, r7
- 8004164: f85d 7b04 ldr.w r7, [sp], #4
- 8004168: 4770 bx lr
- 800416a: bf00 nop
- 800416c: feff8fff .word 0xfeff8fff
- 8004170: 40010000 .word 0x40010000
- 8004174: 40010400 .word 0x40010400
-
-08004178 <TIM_OC3_SetConfig>:
+ 8003b2a: bf00 nop
+ 8003b2c: 371c adds r7, #28
+ 8003b2e: 46bd mov sp, r7
+ 8003b30: f85d 7b04 ldr.w r7, [sp], #4
+ 8003b34: 4770 bx lr
+ 8003b36: bf00 nop
+ 8003b38: feff8fff .word 0xfeff8fff
+ 8003b3c: 40010000 .word 0x40010000
+ 8003b40: 40010400 .word 0x40010400
+
+08003b44 <TIM_OC3_SetConfig>:
* @param TIMx to select the TIM peripheral
* @param OC_Config The ouput configuration structure
* @retval None
*/
static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
{
- 8004178: b480 push {r7}
- 800417a: b087 sub sp, #28
- 800417c: af00 add r7, sp, #0
- 800417e: 6078 str r0, [r7, #4]
- 8004180: 6039 str r1, [r7, #0]
+ 8003b44: b480 push {r7}
+ 8003b46: b087 sub sp, #28
+ 8003b48: af00 add r7, sp, #0
+ 8003b4a: 6078 str r0, [r7, #4]
+ 8003b4c: 6039 str r1, [r7, #0]
uint32_t tmpccmrx;
uint32_t tmpccer;
uint32_t tmpcr2;
/* Disable the Channel 3: Reset the CC2E Bit */
TIMx->CCER &= ~TIM_CCER_CC3E;
- 8004182: 687b ldr r3, [r7, #4]
- 8004184: 6a1b ldr r3, [r3, #32]
- 8004186: f423 7280 bic.w r2, r3, #256 ; 0x100
- 800418a: 687b ldr r3, [r7, #4]
- 800418c: 621a str r2, [r3, #32]
+ 8003b4e: 687b ldr r3, [r7, #4]
+ 8003b50: 6a1b ldr r3, [r3, #32]
+ 8003b52: f423 7280 bic.w r2, r3, #256 ; 0x100
+ 8003b56: 687b ldr r3, [r7, #4]
+ 8003b58: 621a str r2, [r3, #32]
/* Get the TIMx CCER register value */
tmpccer = TIMx->CCER;
- 800418e: 687b ldr r3, [r7, #4]
- 8004190: 6a1b ldr r3, [r3, #32]
- 8004192: 617b str r3, [r7, #20]
+ 8003b5a: 687b ldr r3, [r7, #4]
+ 8003b5c: 6a1b ldr r3, [r3, #32]
+ 8003b5e: 617b str r3, [r7, #20]
/* Get the TIMx CR2 register value */
tmpcr2 = TIMx->CR2;
- 8004194: 687b ldr r3, [r7, #4]
- 8004196: 685b ldr r3, [r3, #4]
- 8004198: 613b str r3, [r7, #16]
+ 8003b60: 687b ldr r3, [r7, #4]
+ 8003b62: 685b ldr r3, [r3, #4]
+ 8003b64: 613b str r3, [r7, #16]
/* Get the TIMx CCMR2 register value */
tmpccmrx = TIMx->CCMR2;
- 800419a: 687b ldr r3, [r7, #4]
- 800419c: 69db ldr r3, [r3, #28]
- 800419e: 60fb str r3, [r7, #12]
+ 8003b66: 687b ldr r3, [r7, #4]
+ 8003b68: 69db ldr r3, [r3, #28]
+ 8003b6a: 60fb str r3, [r7, #12]
/* Reset the Output Compare mode and Capture/Compare selection Bits */
tmpccmrx &= ~TIM_CCMR2_OC3M;
- 80041a0: 68fa ldr r2, [r7, #12]
- 80041a2: 4b2d ldr r3, [pc, #180] ; (8004258 <TIM_OC3_SetConfig+0xe0>)
- 80041a4: 4013 ands r3, r2
- 80041a6: 60fb str r3, [r7, #12]
+ 8003b6c: 68fa ldr r2, [r7, #12]
+ 8003b6e: 4b2d ldr r3, [pc, #180] ; (8003c24 <TIM_OC3_SetConfig+0xe0>)
+ 8003b70: 4013 ands r3, r2
+ 8003b72: 60fb str r3, [r7, #12]
tmpccmrx &= ~TIM_CCMR2_CC3S;
- 80041a8: 68fb ldr r3, [r7, #12]
- 80041aa: f023 0303 bic.w r3, r3, #3
- 80041ae: 60fb str r3, [r7, #12]
+ 8003b74: 68fb ldr r3, [r7, #12]
+ 8003b76: f023 0303 bic.w r3, r3, #3
+ 8003b7a: 60fb str r3, [r7, #12]
/* Select the Output Compare Mode */
tmpccmrx |= OC_Config->OCMode;
- 80041b0: 683b ldr r3, [r7, #0]
- 80041b2: 681b ldr r3, [r3, #0]
- 80041b4: 68fa ldr r2, [r7, #12]
- 80041b6: 4313 orrs r3, r2
- 80041b8: 60fb str r3, [r7, #12]
+ 8003b7c: 683b ldr r3, [r7, #0]
+ 8003b7e: 681b ldr r3, [r3, #0]
+ 8003b80: 68fa ldr r2, [r7, #12]
+ 8003b82: 4313 orrs r3, r2
+ 8003b84: 60fb str r3, [r7, #12]
/* Reset the Output Polarity level */
tmpccer &= ~TIM_CCER_CC3P;
- 80041ba: 697b ldr r3, [r7, #20]
- 80041bc: f423 7300 bic.w r3, r3, #512 ; 0x200
- 80041c0: 617b str r3, [r7, #20]
+ 8003b86: 697b ldr r3, [r7, #20]
+ 8003b88: f423 7300 bic.w r3, r3, #512 ; 0x200
+ 8003b8c: 617b str r3, [r7, #20]
/* Set the Output Compare Polarity */
tmpccer |= (OC_Config->OCPolarity << 8U);
- 80041c2: 683b ldr r3, [r7, #0]
- 80041c4: 689b ldr r3, [r3, #8]
- 80041c6: 021b lsls r3, r3, #8
- 80041c8: 697a ldr r2, [r7, #20]
- 80041ca: 4313 orrs r3, r2
- 80041cc: 617b str r3, [r7, #20]
+ 8003b8e: 683b ldr r3, [r7, #0]
+ 8003b90: 689b ldr r3, [r3, #8]
+ 8003b92: 021b lsls r3, r3, #8
+ 8003b94: 697a ldr r2, [r7, #20]
+ 8003b96: 4313 orrs r3, r2
+ 8003b98: 617b str r3, [r7, #20]
if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
- 80041ce: 687b ldr r3, [r7, #4]
- 80041d0: 4a22 ldr r2, [pc, #136] ; (800425c <TIM_OC3_SetConfig+0xe4>)
- 80041d2: 4293 cmp r3, r2
- 80041d4: d003 beq.n 80041de <TIM_OC3_SetConfig+0x66>
- 80041d6: 687b ldr r3, [r7, #4]
- 80041d8: 4a21 ldr r2, [pc, #132] ; (8004260 <TIM_OC3_SetConfig+0xe8>)
- 80041da: 4293 cmp r3, r2
- 80041dc: d10d bne.n 80041fa <TIM_OC3_SetConfig+0x82>
+ 8003b9a: 687b ldr r3, [r7, #4]
+ 8003b9c: 4a22 ldr r2, [pc, #136] ; (8003c28 <TIM_OC3_SetConfig+0xe4>)
+ 8003b9e: 4293 cmp r3, r2
+ 8003ba0: d003 beq.n 8003baa <TIM_OC3_SetConfig+0x66>
+ 8003ba2: 687b ldr r3, [r7, #4]
+ 8003ba4: 4a21 ldr r2, [pc, #132] ; (8003c2c <TIM_OC3_SetConfig+0xe8>)
+ 8003ba6: 4293 cmp r3, r2
+ 8003ba8: d10d bne.n 8003bc6 <TIM_OC3_SetConfig+0x82>
{
assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
/* Reset the Output N Polarity level */
tmpccer &= ~TIM_CCER_CC3NP;
- 80041de: 697b ldr r3, [r7, #20]
- 80041e0: f423 6300 bic.w r3, r3, #2048 ; 0x800
- 80041e4: 617b str r3, [r7, #20]
+ 8003baa: 697b ldr r3, [r7, #20]
+ 8003bac: f423 6300 bic.w r3, r3, #2048 ; 0x800
+ 8003bb0: 617b str r3, [r7, #20]
/* Set the Output N Polarity */
tmpccer |= (OC_Config->OCNPolarity << 8U);
- 80041e6: 683b ldr r3, [r7, #0]
- 80041e8: 68db ldr r3, [r3, #12]
- 80041ea: 021b lsls r3, r3, #8
- 80041ec: 697a ldr r2, [r7, #20]
- 80041ee: 4313 orrs r3, r2
- 80041f0: 617b str r3, [r7, #20]
+ 8003bb2: 683b ldr r3, [r7, #0]
+ 8003bb4: 68db ldr r3, [r3, #12]
+ 8003bb6: 021b lsls r3, r3, #8
+ 8003bb8: 697a ldr r2, [r7, #20]
+ 8003bba: 4313 orrs r3, r2
+ 8003bbc: 617b str r3, [r7, #20]
/* Reset the Output N State */
tmpccer &= ~TIM_CCER_CC3NE;
- 80041f2: 697b ldr r3, [r7, #20]
- 80041f4: f423 6380 bic.w r3, r3, #1024 ; 0x400
- 80041f8: 617b str r3, [r7, #20]
+ 8003bbe: 697b ldr r3, [r7, #20]
+ 8003bc0: f423 6380 bic.w r3, r3, #1024 ; 0x400
+ 8003bc4: 617b str r3, [r7, #20]
}
if (IS_TIM_BREAK_INSTANCE(TIMx))
- 80041fa: 687b ldr r3, [r7, #4]
- 80041fc: 4a17 ldr r2, [pc, #92] ; (800425c <TIM_OC3_SetConfig+0xe4>)
- 80041fe: 4293 cmp r3, r2
- 8004200: d003 beq.n 800420a <TIM_OC3_SetConfig+0x92>
- 8004202: 687b ldr r3, [r7, #4]
- 8004204: 4a16 ldr r2, [pc, #88] ; (8004260 <TIM_OC3_SetConfig+0xe8>)
- 8004206: 4293 cmp r3, r2
- 8004208: d113 bne.n 8004232 <TIM_OC3_SetConfig+0xba>
+ 8003bc6: 687b ldr r3, [r7, #4]
+ 8003bc8: 4a17 ldr r2, [pc, #92] ; (8003c28 <TIM_OC3_SetConfig+0xe4>)
+ 8003bca: 4293 cmp r3, r2
+ 8003bcc: d003 beq.n 8003bd6 <TIM_OC3_SetConfig+0x92>
+ 8003bce: 687b ldr r3, [r7, #4]
+ 8003bd0: 4a16 ldr r2, [pc, #88] ; (8003c2c <TIM_OC3_SetConfig+0xe8>)
+ 8003bd2: 4293 cmp r3, r2
+ 8003bd4: d113 bne.n 8003bfe <TIM_OC3_SetConfig+0xba>
/* Check parameters */
assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
/* Reset the Output Compare and Output Compare N IDLE State */
tmpcr2 &= ~TIM_CR2_OIS3;
- 800420a: 693b ldr r3, [r7, #16]
- 800420c: f423 5380 bic.w r3, r3, #4096 ; 0x1000
- 8004210: 613b str r3, [r7, #16]
+ 8003bd6: 693b ldr r3, [r7, #16]
+ 8003bd8: f423 5380 bic.w r3, r3, #4096 ; 0x1000
+ 8003bdc: 613b str r3, [r7, #16]
tmpcr2 &= ~TIM_CR2_OIS3N;
- 8004212: 693b ldr r3, [r7, #16]
- 8004214: f423 5300 bic.w r3, r3, #8192 ; 0x2000
- 8004218: 613b str r3, [r7, #16]
+ 8003bde: 693b ldr r3, [r7, #16]
+ 8003be0: f423 5300 bic.w r3, r3, #8192 ; 0x2000
+ 8003be4: 613b str r3, [r7, #16]
/* Set the Output Idle state */
tmpcr2 |= (OC_Config->OCIdleState << 4U);
- 800421a: 683b ldr r3, [r7, #0]
- 800421c: 695b ldr r3, [r3, #20]
- 800421e: 011b lsls r3, r3, #4
- 8004220: 693a ldr r2, [r7, #16]
- 8004222: 4313 orrs r3, r2
- 8004224: 613b str r3, [r7, #16]
+ 8003be6: 683b ldr r3, [r7, #0]
+ 8003be8: 695b ldr r3, [r3, #20]
+ 8003bea: 011b lsls r3, r3, #4
+ 8003bec: 693a ldr r2, [r7, #16]
+ 8003bee: 4313 orrs r3, r2
+ 8003bf0: 613b str r3, [r7, #16]
/* Set the Output N Idle state */
tmpcr2 |= (OC_Config->OCNIdleState << 4U);
- 8004226: 683b ldr r3, [r7, #0]
- 8004228: 699b ldr r3, [r3, #24]
- 800422a: 011b lsls r3, r3, #4
- 800422c: 693a ldr r2, [r7, #16]
- 800422e: 4313 orrs r3, r2
- 8004230: 613b str r3, [r7, #16]
+ 8003bf2: 683b ldr r3, [r7, #0]
+ 8003bf4: 699b ldr r3, [r3, #24]
+ 8003bf6: 011b lsls r3, r3, #4
+ 8003bf8: 693a ldr r2, [r7, #16]
+ 8003bfa: 4313 orrs r3, r2
+ 8003bfc: 613b str r3, [r7, #16]
}
/* Write to TIMx CR2 */
TIMx->CR2 = tmpcr2;
- 8004232: 687b ldr r3, [r7, #4]
- 8004234: 693a ldr r2, [r7, #16]
- 8004236: 605a str r2, [r3, #4]
+ 8003bfe: 687b ldr r3, [r7, #4]
+ 8003c00: 693a ldr r2, [r7, #16]
+ 8003c02: 605a str r2, [r3, #4]
/* Write to TIMx CCMR2 */
TIMx->CCMR2 = tmpccmrx;
- 8004238: 687b ldr r3, [r7, #4]
- 800423a: 68fa ldr r2, [r7, #12]
- 800423c: 61da str r2, [r3, #28]
+ 8003c04: 687b ldr r3, [r7, #4]
+ 8003c06: 68fa ldr r2, [r7, #12]
+ 8003c08: 61da str r2, [r3, #28]
/* Set the Capture Compare Register value */
TIMx->CCR3 = OC_Config->Pulse;
- 800423e: 683b ldr r3, [r7, #0]
- 8004240: 685a ldr r2, [r3, #4]
- 8004242: 687b ldr r3, [r7, #4]
- 8004244: 63da str r2, [r3, #60] ; 0x3c
+ 8003c0a: 683b ldr r3, [r7, #0]
+ 8003c0c: 685a ldr r2, [r3, #4]
+ 8003c0e: 687b ldr r3, [r7, #4]
+ 8003c10: 63da str r2, [r3, #60] ; 0x3c
/* Write to TIMx CCER */
TIMx->CCER = tmpccer;
- 8004246: 687b ldr r3, [r7, #4]
- 8004248: 697a ldr r2, [r7, #20]
- 800424a: 621a str r2, [r3, #32]
+ 8003c12: 687b ldr r3, [r7, #4]
+ 8003c14: 697a ldr r2, [r7, #20]
+ 8003c16: 621a str r2, [r3, #32]
}
- 800424c: bf00 nop
- 800424e: 371c adds r7, #28
- 8004250: 46bd mov sp, r7
- 8004252: f85d 7b04 ldr.w r7, [sp], #4
- 8004256: 4770 bx lr
- 8004258: fffeff8f .word 0xfffeff8f
- 800425c: 40010000 .word 0x40010000
- 8004260: 40010400 .word 0x40010400
-
-08004264 <TIM_OC4_SetConfig>:
+ 8003c18: bf00 nop
+ 8003c1a: 371c adds r7, #28
+ 8003c1c: 46bd mov sp, r7
+ 8003c1e: f85d 7b04 ldr.w r7, [sp], #4
+ 8003c22: 4770 bx lr
+ 8003c24: fffeff8f .word 0xfffeff8f
+ 8003c28: 40010000 .word 0x40010000
+ 8003c2c: 40010400 .word 0x40010400
+
+08003c30 <TIM_OC4_SetConfig>:
* @param TIMx to select the TIM peripheral
* @param OC_Config The ouput configuration structure
* @retval None
*/
static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
{
- 8004264: b480 push {r7}
- 8004266: b087 sub sp, #28
- 8004268: af00 add r7, sp, #0
- 800426a: 6078 str r0, [r7, #4]
- 800426c: 6039 str r1, [r7, #0]
+ 8003c30: b480 push {r7}
+ 8003c32: b087 sub sp, #28
+ 8003c34: af00 add r7, sp, #0
+ 8003c36: 6078 str r0, [r7, #4]
+ 8003c38: 6039 str r1, [r7, #0]
uint32_t tmpccmrx;
uint32_t tmpccer;
uint32_t tmpcr2;
/* Disable the Channel 4: Reset the CC4E Bit */
TIMx->CCER &= ~TIM_CCER_CC4E;
- 800426e: 687b ldr r3, [r7, #4]
- 8004270: 6a1b ldr r3, [r3, #32]
- 8004272: f423 5280 bic.w r2, r3, #4096 ; 0x1000
- 8004276: 687b ldr r3, [r7, #4]
- 8004278: 621a str r2, [r3, #32]
+ 8003c3a: 687b ldr r3, [r7, #4]
+ 8003c3c: 6a1b ldr r3, [r3, #32]
+ 8003c3e: f423 5280 bic.w r2, r3, #4096 ; 0x1000
+ 8003c42: 687b ldr r3, [r7, #4]
+ 8003c44: 621a str r2, [r3, #32]
/* Get the TIMx CCER register value */
tmpccer = TIMx->CCER;
- 800427a: 687b ldr r3, [r7, #4]
- 800427c: 6a1b ldr r3, [r3, #32]
- 800427e: 613b str r3, [r7, #16]
+ 8003c46: 687b ldr r3, [r7, #4]
+ 8003c48: 6a1b ldr r3, [r3, #32]
+ 8003c4a: 613b str r3, [r7, #16]
/* Get the TIMx CR2 register value */
tmpcr2 = TIMx->CR2;
- 8004280: 687b ldr r3, [r7, #4]
- 8004282: 685b ldr r3, [r3, #4]
- 8004284: 617b str r3, [r7, #20]
+ 8003c4c: 687b ldr r3, [r7, #4]
+ 8003c4e: 685b ldr r3, [r3, #4]
+ 8003c50: 617b str r3, [r7, #20]
/* Get the TIMx CCMR2 register value */
tmpccmrx = TIMx->CCMR2;
- 8004286: 687b ldr r3, [r7, #4]
- 8004288: 69db ldr r3, [r3, #28]
- 800428a: 60fb str r3, [r7, #12]
+ 8003c52: 687b ldr r3, [r7, #4]
+ 8003c54: 69db ldr r3, [r3, #28]
+ 8003c56: 60fb str r3, [r7, #12]
/* Reset the Output Compare mode and Capture/Compare selection Bits */
tmpccmrx &= ~TIM_CCMR2_OC4M;
- 800428c: 68fa ldr r2, [r7, #12]
- 800428e: 4b1e ldr r3, [pc, #120] ; (8004308 <TIM_OC4_SetConfig+0xa4>)
- 8004290: 4013 ands r3, r2
- 8004292: 60fb str r3, [r7, #12]
+ 8003c58: 68fa ldr r2, [r7, #12]
+ 8003c5a: 4b1e ldr r3, [pc, #120] ; (8003cd4 <TIM_OC4_SetConfig+0xa4>)
+ 8003c5c: 4013 ands r3, r2
+ 8003c5e: 60fb str r3, [r7, #12]
tmpccmrx &= ~TIM_CCMR2_CC4S;
- 8004294: 68fb ldr r3, [r7, #12]
- 8004296: f423 7340 bic.w r3, r3, #768 ; 0x300
- 800429a: 60fb str r3, [r7, #12]
+ 8003c60: 68fb ldr r3, [r7, #12]
+ 8003c62: f423 7340 bic.w r3, r3, #768 ; 0x300
+ 8003c66: 60fb str r3, [r7, #12]
/* Select the Output Compare Mode */
tmpccmrx |= (OC_Config->OCMode << 8U);
- 800429c: 683b ldr r3, [r7, #0]
- 800429e: 681b ldr r3, [r3, #0]
- 80042a0: 021b lsls r3, r3, #8
- 80042a2: 68fa ldr r2, [r7, #12]
- 80042a4: 4313 orrs r3, r2
- 80042a6: 60fb str r3, [r7, #12]
+ 8003c68: 683b ldr r3, [r7, #0]
+ 8003c6a: 681b ldr r3, [r3, #0]
+ 8003c6c: 021b lsls r3, r3, #8
+ 8003c6e: 68fa ldr r2, [r7, #12]
+ 8003c70: 4313 orrs r3, r2
+ 8003c72: 60fb str r3, [r7, #12]
/* Reset the Output Polarity level */
tmpccer &= ~TIM_CCER_CC4P;
- 80042a8: 693b ldr r3, [r7, #16]
- 80042aa: f423 5300 bic.w r3, r3, #8192 ; 0x2000
- 80042ae: 613b str r3, [r7, #16]
+ 8003c74: 693b ldr r3, [r7, #16]
+ 8003c76: f423 5300 bic.w r3, r3, #8192 ; 0x2000
+ 8003c7a: 613b str r3, [r7, #16]
/* Set the Output Compare Polarity */
tmpccer |= (OC_Config->OCPolarity << 12U);
- 80042b0: 683b ldr r3, [r7, #0]
- 80042b2: 689b ldr r3, [r3, #8]
- 80042b4: 031b lsls r3, r3, #12
- 80042b6: 693a ldr r2, [r7, #16]
- 80042b8: 4313 orrs r3, r2
- 80042ba: 613b str r3, [r7, #16]
+ 8003c7c: 683b ldr r3, [r7, #0]
+ 8003c7e: 689b ldr r3, [r3, #8]
+ 8003c80: 031b lsls r3, r3, #12
+ 8003c82: 693a ldr r2, [r7, #16]
+ 8003c84: 4313 orrs r3, r2
+ 8003c86: 613b str r3, [r7, #16]
if (IS_TIM_BREAK_INSTANCE(TIMx))
- 80042bc: 687b ldr r3, [r7, #4]
- 80042be: 4a13 ldr r2, [pc, #76] ; (800430c <TIM_OC4_SetConfig+0xa8>)
- 80042c0: 4293 cmp r3, r2
- 80042c2: d003 beq.n 80042cc <TIM_OC4_SetConfig+0x68>
- 80042c4: 687b ldr r3, [r7, #4]
- 80042c6: 4a12 ldr r2, [pc, #72] ; (8004310 <TIM_OC4_SetConfig+0xac>)
- 80042c8: 4293 cmp r3, r2
- 80042ca: d109 bne.n 80042e0 <TIM_OC4_SetConfig+0x7c>
+ 8003c88: 687b ldr r3, [r7, #4]
+ 8003c8a: 4a13 ldr r2, [pc, #76] ; (8003cd8 <TIM_OC4_SetConfig+0xa8>)
+ 8003c8c: 4293 cmp r3, r2
+ 8003c8e: d003 beq.n 8003c98 <TIM_OC4_SetConfig+0x68>
+ 8003c90: 687b ldr r3, [r7, #4]
+ 8003c92: 4a12 ldr r2, [pc, #72] ; (8003cdc <TIM_OC4_SetConfig+0xac>)
+ 8003c94: 4293 cmp r3, r2
+ 8003c96: d109 bne.n 8003cac <TIM_OC4_SetConfig+0x7c>
{
/* Check parameters */
assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
/* Reset the Output Compare IDLE State */
tmpcr2 &= ~TIM_CR2_OIS4;
- 80042cc: 697b ldr r3, [r7, #20]
- 80042ce: f423 4380 bic.w r3, r3, #16384 ; 0x4000
- 80042d2: 617b str r3, [r7, #20]
+ 8003c98: 697b ldr r3, [r7, #20]
+ 8003c9a: f423 4380 bic.w r3, r3, #16384 ; 0x4000
+ 8003c9e: 617b str r3, [r7, #20]
/* Set the Output Idle state */
tmpcr2 |= (OC_Config->OCIdleState << 6U);
- 80042d4: 683b ldr r3, [r7, #0]
- 80042d6: 695b ldr r3, [r3, #20]
- 80042d8: 019b lsls r3, r3, #6
- 80042da: 697a ldr r2, [r7, #20]
- 80042dc: 4313 orrs r3, r2
- 80042de: 617b str r3, [r7, #20]
+ 8003ca0: 683b ldr r3, [r7, #0]
+ 8003ca2: 695b ldr r3, [r3, #20]
+ 8003ca4: 019b lsls r3, r3, #6
+ 8003ca6: 697a ldr r2, [r7, #20]
+ 8003ca8: 4313 orrs r3, r2
+ 8003caa: 617b str r3, [r7, #20]
}
/* Write to TIMx CR2 */
TIMx->CR2 = tmpcr2;
- 80042e0: 687b ldr r3, [r7, #4]
- 80042e2: 697a ldr r2, [r7, #20]
- 80042e4: 605a str r2, [r3, #4]
+ 8003cac: 687b ldr r3, [r7, #4]
+ 8003cae: 697a ldr r2, [r7, #20]
+ 8003cb0: 605a str r2, [r3, #4]
/* Write to TIMx CCMR2 */
TIMx->CCMR2 = tmpccmrx;
- 80042e6: 687b ldr r3, [r7, #4]
- 80042e8: 68fa ldr r2, [r7, #12]
- 80042ea: 61da str r2, [r3, #28]
+ 8003cb2: 687b ldr r3, [r7, #4]
+ 8003cb4: 68fa ldr r2, [r7, #12]
+ 8003cb6: 61da str r2, [r3, #28]
/* Set the Capture Compare Register value */
TIMx->CCR4 = OC_Config->Pulse;
- 80042ec: 683b ldr r3, [r7, #0]
- 80042ee: 685a ldr r2, [r3, #4]
- 80042f0: 687b ldr r3, [r7, #4]
- 80042f2: 641a str r2, [r3, #64] ; 0x40
+ 8003cb8: 683b ldr r3, [r7, #0]
+ 8003cba: 685a ldr r2, [r3, #4]
+ 8003cbc: 687b ldr r3, [r7, #4]
+ 8003cbe: 641a str r2, [r3, #64] ; 0x40
/* Write to TIMx CCER */
TIMx->CCER = tmpccer;
- 80042f4: 687b ldr r3, [r7, #4]
- 80042f6: 693a ldr r2, [r7, #16]
- 80042f8: 621a str r2, [r3, #32]
+ 8003cc0: 687b ldr r3, [r7, #4]
+ 8003cc2: 693a ldr r2, [r7, #16]
+ 8003cc4: 621a str r2, [r3, #32]
}
- 80042fa: bf00 nop
- 80042fc: 371c adds r7, #28
- 80042fe: 46bd mov sp, r7
- 8004300: f85d 7b04 ldr.w r7, [sp], #4
- 8004304: 4770 bx lr
- 8004306: bf00 nop
- 8004308: feff8fff .word 0xfeff8fff
- 800430c: 40010000 .word 0x40010000
- 8004310: 40010400 .word 0x40010400
-
-08004314 <TIM_OC5_SetConfig>:
+ 8003cc6: bf00 nop
+ 8003cc8: 371c adds r7, #28
+ 8003cca: 46bd mov sp, r7
+ 8003ccc: f85d 7b04 ldr.w r7, [sp], #4
+ 8003cd0: 4770 bx lr
+ 8003cd2: bf00 nop
+ 8003cd4: feff8fff .word 0xfeff8fff
+ 8003cd8: 40010000 .word 0x40010000
+ 8003cdc: 40010400 .word 0x40010400
+
+08003ce0 <TIM_OC5_SetConfig>:
* @param OC_Config The ouput configuration structure
* @retval None
*/
static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
TIM_OC_InitTypeDef *OC_Config)
{
- 8004314: b480 push {r7}
- 8004316: b087 sub sp, #28
- 8004318: af00 add r7, sp, #0
- 800431a: 6078 str r0, [r7, #4]
- 800431c: 6039 str r1, [r7, #0]
+ 8003ce0: b480 push {r7}
+ 8003ce2: b087 sub sp, #28
+ 8003ce4: af00 add r7, sp, #0
+ 8003ce6: 6078 str r0, [r7, #4]
+ 8003ce8: 6039 str r1, [r7, #0]
uint32_t tmpccmrx;
uint32_t tmpccer;
uint32_t tmpcr2;
/* Disable the output: Reset the CCxE Bit */
TIMx->CCER &= ~TIM_CCER_CC5E;
- 800431e: 687b ldr r3, [r7, #4]
- 8004320: 6a1b ldr r3, [r3, #32]
- 8004322: f423 3280 bic.w r2, r3, #65536 ; 0x10000
- 8004326: 687b ldr r3, [r7, #4]
- 8004328: 621a str r2, [r3, #32]
+ 8003cea: 687b ldr r3, [r7, #4]
+ 8003cec: 6a1b ldr r3, [r3, #32]
+ 8003cee: f423 3280 bic.w r2, r3, #65536 ; 0x10000
+ 8003cf2: 687b ldr r3, [r7, #4]
+ 8003cf4: 621a str r2, [r3, #32]
/* Get the TIMx CCER register value */
tmpccer = TIMx->CCER;
- 800432a: 687b ldr r3, [r7, #4]
- 800432c: 6a1b ldr r3, [r3, #32]
- 800432e: 613b str r3, [r7, #16]
+ 8003cf6: 687b ldr r3, [r7, #4]
+ 8003cf8: 6a1b ldr r3, [r3, #32]
+ 8003cfa: 613b str r3, [r7, #16]
/* Get the TIMx CR2 register value */
tmpcr2 = TIMx->CR2;
- 8004330: 687b ldr r3, [r7, #4]
- 8004332: 685b ldr r3, [r3, #4]
- 8004334: 617b str r3, [r7, #20]
+ 8003cfc: 687b ldr r3, [r7, #4]
+ 8003cfe: 685b ldr r3, [r3, #4]
+ 8003d00: 617b str r3, [r7, #20]
/* Get the TIMx CCMR1 register value */
tmpccmrx = TIMx->CCMR3;
- 8004336: 687b ldr r3, [r7, #4]
- 8004338: 6d5b ldr r3, [r3, #84] ; 0x54
- 800433a: 60fb str r3, [r7, #12]
+ 8003d02: 687b ldr r3, [r7, #4]
+ 8003d04: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8003d06: 60fb str r3, [r7, #12]
/* Reset the Output Compare Mode Bits */
tmpccmrx &= ~(TIM_CCMR3_OC5M);
- 800433c: 68fa ldr r2, [r7, #12]
- 800433e: 4b1b ldr r3, [pc, #108] ; (80043ac <TIM_OC5_SetConfig+0x98>)
- 8004340: 4013 ands r3, r2
- 8004342: 60fb str r3, [r7, #12]
+ 8003d08: 68fa ldr r2, [r7, #12]
+ 8003d0a: 4b1b ldr r3, [pc, #108] ; (8003d78 <TIM_OC5_SetConfig+0x98>)
+ 8003d0c: 4013 ands r3, r2
+ 8003d0e: 60fb str r3, [r7, #12]
/* Select the Output Compare Mode */
tmpccmrx |= OC_Config->OCMode;
- 8004344: 683b ldr r3, [r7, #0]
- 8004346: 681b ldr r3, [r3, #0]
- 8004348: 68fa ldr r2, [r7, #12]
- 800434a: 4313 orrs r3, r2
- 800434c: 60fb str r3, [r7, #12]
+ 8003d10: 683b ldr r3, [r7, #0]
+ 8003d12: 681b ldr r3, [r3, #0]
+ 8003d14: 68fa ldr r2, [r7, #12]
+ 8003d16: 4313 orrs r3, r2
+ 8003d18: 60fb str r3, [r7, #12]
/* Reset the Output Polarity level */
tmpccer &= ~TIM_CCER_CC5P;
- 800434e: 693b ldr r3, [r7, #16]
- 8004350: f423 3300 bic.w r3, r3, #131072 ; 0x20000
- 8004354: 613b str r3, [r7, #16]
+ 8003d1a: 693b ldr r3, [r7, #16]
+ 8003d1c: f423 3300 bic.w r3, r3, #131072 ; 0x20000
+ 8003d20: 613b str r3, [r7, #16]
/* Set the Output Compare Polarity */
tmpccer |= (OC_Config->OCPolarity << 16U);
- 8004356: 683b ldr r3, [r7, #0]
- 8004358: 689b ldr r3, [r3, #8]
- 800435a: 041b lsls r3, r3, #16
- 800435c: 693a ldr r2, [r7, #16]
- 800435e: 4313 orrs r3, r2
- 8004360: 613b str r3, [r7, #16]
+ 8003d22: 683b ldr r3, [r7, #0]
+ 8003d24: 689b ldr r3, [r3, #8]
+ 8003d26: 041b lsls r3, r3, #16
+ 8003d28: 693a ldr r2, [r7, #16]
+ 8003d2a: 4313 orrs r3, r2
+ 8003d2c: 613b str r3, [r7, #16]
if (IS_TIM_BREAK_INSTANCE(TIMx))
- 8004362: 687b ldr r3, [r7, #4]
- 8004364: 4a12 ldr r2, [pc, #72] ; (80043b0 <TIM_OC5_SetConfig+0x9c>)
- 8004366: 4293 cmp r3, r2
- 8004368: d003 beq.n 8004372 <TIM_OC5_SetConfig+0x5e>
- 800436a: 687b ldr r3, [r7, #4]
- 800436c: 4a11 ldr r2, [pc, #68] ; (80043b4 <TIM_OC5_SetConfig+0xa0>)
- 800436e: 4293 cmp r3, r2
- 8004370: d109 bne.n 8004386 <TIM_OC5_SetConfig+0x72>
+ 8003d2e: 687b ldr r3, [r7, #4]
+ 8003d30: 4a12 ldr r2, [pc, #72] ; (8003d7c <TIM_OC5_SetConfig+0x9c>)
+ 8003d32: 4293 cmp r3, r2
+ 8003d34: d003 beq.n 8003d3e <TIM_OC5_SetConfig+0x5e>
+ 8003d36: 687b ldr r3, [r7, #4]
+ 8003d38: 4a11 ldr r2, [pc, #68] ; (8003d80 <TIM_OC5_SetConfig+0xa0>)
+ 8003d3a: 4293 cmp r3, r2
+ 8003d3c: d109 bne.n 8003d52 <TIM_OC5_SetConfig+0x72>
{
/* Reset the Output Compare IDLE State */
tmpcr2 &= ~TIM_CR2_OIS5;
- 8004372: 697b ldr r3, [r7, #20]
- 8004374: f423 3380 bic.w r3, r3, #65536 ; 0x10000
- 8004378: 617b str r3, [r7, #20]
+ 8003d3e: 697b ldr r3, [r7, #20]
+ 8003d40: f423 3380 bic.w r3, r3, #65536 ; 0x10000
+ 8003d44: 617b str r3, [r7, #20]
/* Set the Output Idle state */
tmpcr2 |= (OC_Config->OCIdleState << 8U);
- 800437a: 683b ldr r3, [r7, #0]
- 800437c: 695b ldr r3, [r3, #20]
- 800437e: 021b lsls r3, r3, #8
- 8004380: 697a ldr r2, [r7, #20]
- 8004382: 4313 orrs r3, r2
- 8004384: 617b str r3, [r7, #20]
+ 8003d46: 683b ldr r3, [r7, #0]
+ 8003d48: 695b ldr r3, [r3, #20]
+ 8003d4a: 021b lsls r3, r3, #8
+ 8003d4c: 697a ldr r2, [r7, #20]
+ 8003d4e: 4313 orrs r3, r2
+ 8003d50: 617b str r3, [r7, #20]
}
/* Write to TIMx CR2 */
TIMx->CR2 = tmpcr2;
- 8004386: 687b ldr r3, [r7, #4]
- 8004388: 697a ldr r2, [r7, #20]
- 800438a: 605a str r2, [r3, #4]
+ 8003d52: 687b ldr r3, [r7, #4]
+ 8003d54: 697a ldr r2, [r7, #20]
+ 8003d56: 605a str r2, [r3, #4]
/* Write to TIMx CCMR3 */
TIMx->CCMR3 = tmpccmrx;
- 800438c: 687b ldr r3, [r7, #4]
- 800438e: 68fa ldr r2, [r7, #12]
- 8004390: 655a str r2, [r3, #84] ; 0x54
+ 8003d58: 687b ldr r3, [r7, #4]
+ 8003d5a: 68fa ldr r2, [r7, #12]
+ 8003d5c: 655a str r2, [r3, #84] ; 0x54
/* Set the Capture Compare Register value */
TIMx->CCR5 = OC_Config->Pulse;
- 8004392: 683b ldr r3, [r7, #0]
- 8004394: 685a ldr r2, [r3, #4]
- 8004396: 687b ldr r3, [r7, #4]
- 8004398: 659a str r2, [r3, #88] ; 0x58
+ 8003d5e: 683b ldr r3, [r7, #0]
+ 8003d60: 685a ldr r2, [r3, #4]
+ 8003d62: 687b ldr r3, [r7, #4]
+ 8003d64: 659a str r2, [r3, #88] ; 0x58
/* Write to TIMx CCER */
TIMx->CCER = tmpccer;
- 800439a: 687b ldr r3, [r7, #4]
- 800439c: 693a ldr r2, [r7, #16]
- 800439e: 621a str r2, [r3, #32]
+ 8003d66: 687b ldr r3, [r7, #4]
+ 8003d68: 693a ldr r2, [r7, #16]
+ 8003d6a: 621a str r2, [r3, #32]
}
- 80043a0: bf00 nop
- 80043a2: 371c adds r7, #28
- 80043a4: 46bd mov sp, r7
- 80043a6: f85d 7b04 ldr.w r7, [sp], #4
- 80043aa: 4770 bx lr
- 80043ac: fffeff8f .word 0xfffeff8f
- 80043b0: 40010000 .word 0x40010000
- 80043b4: 40010400 .word 0x40010400
-
-080043b8 <TIM_OC6_SetConfig>:
+ 8003d6c: bf00 nop
+ 8003d6e: 371c adds r7, #28
+ 8003d70: 46bd mov sp, r7
+ 8003d72: f85d 7b04 ldr.w r7, [sp], #4
+ 8003d76: 4770 bx lr
+ 8003d78: fffeff8f .word 0xfffeff8f
+ 8003d7c: 40010000 .word 0x40010000
+ 8003d80: 40010400 .word 0x40010400
+
+08003d84 <TIM_OC6_SetConfig>:
* @param OC_Config The ouput configuration structure
* @retval None
*/
static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
TIM_OC_InitTypeDef *OC_Config)
{
- 80043b8: b480 push {r7}
- 80043ba: b087 sub sp, #28
- 80043bc: af00 add r7, sp, #0
- 80043be: 6078 str r0, [r7, #4]
- 80043c0: 6039 str r1, [r7, #0]
+ 8003d84: b480 push {r7}
+ 8003d86: b087 sub sp, #28
+ 8003d88: af00 add r7, sp, #0
+ 8003d8a: 6078 str r0, [r7, #4]
+ 8003d8c: 6039 str r1, [r7, #0]
uint32_t tmpccmrx;
uint32_t tmpccer;
uint32_t tmpcr2;
/* Disable the output: Reset the CCxE Bit */
TIMx->CCER &= ~TIM_CCER_CC6E;
- 80043c2: 687b ldr r3, [r7, #4]
- 80043c4: 6a1b ldr r3, [r3, #32]
- 80043c6: f423 1280 bic.w r2, r3, #1048576 ; 0x100000
- 80043ca: 687b ldr r3, [r7, #4]
- 80043cc: 621a str r2, [r3, #32]
+ 8003d8e: 687b ldr r3, [r7, #4]
+ 8003d90: 6a1b ldr r3, [r3, #32]
+ 8003d92: f423 1280 bic.w r2, r3, #1048576 ; 0x100000
+ 8003d96: 687b ldr r3, [r7, #4]
+ 8003d98: 621a str r2, [r3, #32]
/* Get the TIMx CCER register value */
tmpccer = TIMx->CCER;
- 80043ce: 687b ldr r3, [r7, #4]
- 80043d0: 6a1b ldr r3, [r3, #32]
- 80043d2: 613b str r3, [r7, #16]
+ 8003d9a: 687b ldr r3, [r7, #4]
+ 8003d9c: 6a1b ldr r3, [r3, #32]
+ 8003d9e: 613b str r3, [r7, #16]
/* Get the TIMx CR2 register value */
tmpcr2 = TIMx->CR2;
- 80043d4: 687b ldr r3, [r7, #4]
- 80043d6: 685b ldr r3, [r3, #4]
- 80043d8: 617b str r3, [r7, #20]
+ 8003da0: 687b ldr r3, [r7, #4]
+ 8003da2: 685b ldr r3, [r3, #4]
+ 8003da4: 617b str r3, [r7, #20]
/* Get the TIMx CCMR1 register value */
tmpccmrx = TIMx->CCMR3;
- 80043da: 687b ldr r3, [r7, #4]
- 80043dc: 6d5b ldr r3, [r3, #84] ; 0x54
- 80043de: 60fb str r3, [r7, #12]
+ 8003da6: 687b ldr r3, [r7, #4]
+ 8003da8: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8003daa: 60fb str r3, [r7, #12]
/* Reset the Output Compare Mode Bits */
tmpccmrx &= ~(TIM_CCMR3_OC6M);
- 80043e0: 68fa ldr r2, [r7, #12]
- 80043e2: 4b1c ldr r3, [pc, #112] ; (8004454 <TIM_OC6_SetConfig+0x9c>)
- 80043e4: 4013 ands r3, r2
- 80043e6: 60fb str r3, [r7, #12]
+ 8003dac: 68fa ldr r2, [r7, #12]
+ 8003dae: 4b1c ldr r3, [pc, #112] ; (8003e20 <TIM_OC6_SetConfig+0x9c>)
+ 8003db0: 4013 ands r3, r2
+ 8003db2: 60fb str r3, [r7, #12]
/* Select the Output Compare Mode */
tmpccmrx |= (OC_Config->OCMode << 8U);
- 80043e8: 683b ldr r3, [r7, #0]
- 80043ea: 681b ldr r3, [r3, #0]
- 80043ec: 021b lsls r3, r3, #8
- 80043ee: 68fa ldr r2, [r7, #12]
- 80043f0: 4313 orrs r3, r2
- 80043f2: 60fb str r3, [r7, #12]
+ 8003db4: 683b ldr r3, [r7, #0]
+ 8003db6: 681b ldr r3, [r3, #0]
+ 8003db8: 021b lsls r3, r3, #8
+ 8003dba: 68fa ldr r2, [r7, #12]
+ 8003dbc: 4313 orrs r3, r2
+ 8003dbe: 60fb str r3, [r7, #12]
/* Reset the Output Polarity level */
tmpccer &= (uint32_t)~TIM_CCER_CC6P;
- 80043f4: 693b ldr r3, [r7, #16]
- 80043f6: f423 1300 bic.w r3, r3, #2097152 ; 0x200000
- 80043fa: 613b str r3, [r7, #16]
+ 8003dc0: 693b ldr r3, [r7, #16]
+ 8003dc2: f423 1300 bic.w r3, r3, #2097152 ; 0x200000
+ 8003dc6: 613b str r3, [r7, #16]
/* Set the Output Compare Polarity */
tmpccer |= (OC_Config->OCPolarity << 20U);
- 80043fc: 683b ldr r3, [r7, #0]
- 80043fe: 689b ldr r3, [r3, #8]
- 8004400: 051b lsls r3, r3, #20
- 8004402: 693a ldr r2, [r7, #16]
- 8004404: 4313 orrs r3, r2
- 8004406: 613b str r3, [r7, #16]
+ 8003dc8: 683b ldr r3, [r7, #0]
+ 8003dca: 689b ldr r3, [r3, #8]
+ 8003dcc: 051b lsls r3, r3, #20
+ 8003dce: 693a ldr r2, [r7, #16]
+ 8003dd0: 4313 orrs r3, r2
+ 8003dd2: 613b str r3, [r7, #16]
if (IS_TIM_BREAK_INSTANCE(TIMx))
- 8004408: 687b ldr r3, [r7, #4]
- 800440a: 4a13 ldr r2, [pc, #76] ; (8004458 <TIM_OC6_SetConfig+0xa0>)
- 800440c: 4293 cmp r3, r2
- 800440e: d003 beq.n 8004418 <TIM_OC6_SetConfig+0x60>
- 8004410: 687b ldr r3, [r7, #4]
- 8004412: 4a12 ldr r2, [pc, #72] ; (800445c <TIM_OC6_SetConfig+0xa4>)
- 8004414: 4293 cmp r3, r2
- 8004416: d109 bne.n 800442c <TIM_OC6_SetConfig+0x74>
+ 8003dd4: 687b ldr r3, [r7, #4]
+ 8003dd6: 4a13 ldr r2, [pc, #76] ; (8003e24 <TIM_OC6_SetConfig+0xa0>)
+ 8003dd8: 4293 cmp r3, r2
+ 8003dda: d003 beq.n 8003de4 <TIM_OC6_SetConfig+0x60>
+ 8003ddc: 687b ldr r3, [r7, #4]
+ 8003dde: 4a12 ldr r2, [pc, #72] ; (8003e28 <TIM_OC6_SetConfig+0xa4>)
+ 8003de0: 4293 cmp r3, r2
+ 8003de2: d109 bne.n 8003df8 <TIM_OC6_SetConfig+0x74>
{
/* Reset the Output Compare IDLE State */
tmpcr2 &= ~TIM_CR2_OIS6;
- 8004418: 697b ldr r3, [r7, #20]
- 800441a: f423 2380 bic.w r3, r3, #262144 ; 0x40000
- 800441e: 617b str r3, [r7, #20]
+ 8003de4: 697b ldr r3, [r7, #20]
+ 8003de6: f423 2380 bic.w r3, r3, #262144 ; 0x40000
+ 8003dea: 617b str r3, [r7, #20]
/* Set the Output Idle state */
tmpcr2 |= (OC_Config->OCIdleState << 10U);
- 8004420: 683b ldr r3, [r7, #0]
- 8004422: 695b ldr r3, [r3, #20]
- 8004424: 029b lsls r3, r3, #10
- 8004426: 697a ldr r2, [r7, #20]
- 8004428: 4313 orrs r3, r2
- 800442a: 617b str r3, [r7, #20]
+ 8003dec: 683b ldr r3, [r7, #0]
+ 8003dee: 695b ldr r3, [r3, #20]
+ 8003df0: 029b lsls r3, r3, #10
+ 8003df2: 697a ldr r2, [r7, #20]
+ 8003df4: 4313 orrs r3, r2
+ 8003df6: 617b str r3, [r7, #20]
}
/* Write to TIMx CR2 */
TIMx->CR2 = tmpcr2;
- 800442c: 687b ldr r3, [r7, #4]
- 800442e: 697a ldr r2, [r7, #20]
- 8004430: 605a str r2, [r3, #4]
+ 8003df8: 687b ldr r3, [r7, #4]
+ 8003dfa: 697a ldr r2, [r7, #20]
+ 8003dfc: 605a str r2, [r3, #4]
/* Write to TIMx CCMR3 */
TIMx->CCMR3 = tmpccmrx;
- 8004432: 687b ldr r3, [r7, #4]
- 8004434: 68fa ldr r2, [r7, #12]
- 8004436: 655a str r2, [r3, #84] ; 0x54
+ 8003dfe: 687b ldr r3, [r7, #4]
+ 8003e00: 68fa ldr r2, [r7, #12]
+ 8003e02: 655a str r2, [r3, #84] ; 0x54
/* Set the Capture Compare Register value */
TIMx->CCR6 = OC_Config->Pulse;
- 8004438: 683b ldr r3, [r7, #0]
- 800443a: 685a ldr r2, [r3, #4]
- 800443c: 687b ldr r3, [r7, #4]
- 800443e: 65da str r2, [r3, #92] ; 0x5c
+ 8003e04: 683b ldr r3, [r7, #0]
+ 8003e06: 685a ldr r2, [r3, #4]
+ 8003e08: 687b ldr r3, [r7, #4]
+ 8003e0a: 65da str r2, [r3, #92] ; 0x5c
/* Write to TIMx CCER */
TIMx->CCER = tmpccer;
- 8004440: 687b ldr r3, [r7, #4]
- 8004442: 693a ldr r2, [r7, #16]
- 8004444: 621a str r2, [r3, #32]
+ 8003e0c: 687b ldr r3, [r7, #4]
+ 8003e0e: 693a ldr r2, [r7, #16]
+ 8003e10: 621a str r2, [r3, #32]
}
- 8004446: bf00 nop
- 8004448: 371c adds r7, #28
- 800444a: 46bd mov sp, r7
- 800444c: f85d 7b04 ldr.w r7, [sp], #4
- 8004450: 4770 bx lr
- 8004452: bf00 nop
- 8004454: feff8fff .word 0xfeff8fff
- 8004458: 40010000 .word 0x40010000
- 800445c: 40010400 .word 0x40010400
-
-08004460 <TIM_TI1_ConfigInputStage>:
+ 8003e12: bf00 nop
+ 8003e14: 371c adds r7, #28
+ 8003e16: 46bd mov sp, r7
+ 8003e18: f85d 7b04 ldr.w r7, [sp], #4
+ 8003e1c: 4770 bx lr
+ 8003e1e: bf00 nop
+ 8003e20: feff8fff .word 0xfeff8fff
+ 8003e24: 40010000 .word 0x40010000
+ 8003e28: 40010400 .word 0x40010400
+
+08003e2c <TIM_TI1_ConfigInputStage>:
* @param TIM_ICFilter Specifies the Input Capture Filter.
* This parameter must be a value between 0x00 and 0x0F.
* @retval None
*/
static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
{
- 8004460: b480 push {r7}
- 8004462: b087 sub sp, #28
- 8004464: af00 add r7, sp, #0
- 8004466: 60f8 str r0, [r7, #12]
- 8004468: 60b9 str r1, [r7, #8]
- 800446a: 607a str r2, [r7, #4]
+ 8003e2c: b480 push {r7}
+ 8003e2e: b087 sub sp, #28
+ 8003e30: af00 add r7, sp, #0
+ 8003e32: 60f8 str r0, [r7, #12]
+ 8003e34: 60b9 str r1, [r7, #8]
+ 8003e36: 607a str r2, [r7, #4]
uint32_t tmpccmr1;
uint32_t tmpccer;
/* Disable the Channel 1: Reset the CC1E Bit */
tmpccer = TIMx->CCER;
- 800446c: 68fb ldr r3, [r7, #12]
- 800446e: 6a1b ldr r3, [r3, #32]
- 8004470: 617b str r3, [r7, #20]
+ 8003e38: 68fb ldr r3, [r7, #12]
+ 8003e3a: 6a1b ldr r3, [r3, #32]
+ 8003e3c: 617b str r3, [r7, #20]
TIMx->CCER &= ~TIM_CCER_CC1E;
- 8004472: 68fb ldr r3, [r7, #12]
- 8004474: 6a1b ldr r3, [r3, #32]
- 8004476: f023 0201 bic.w r2, r3, #1
- 800447a: 68fb ldr r3, [r7, #12]
- 800447c: 621a str r2, [r3, #32]
+ 8003e3e: 68fb ldr r3, [r7, #12]
+ 8003e40: 6a1b ldr r3, [r3, #32]
+ 8003e42: f023 0201 bic.w r2, r3, #1
+ 8003e46: 68fb ldr r3, [r7, #12]
+ 8003e48: 621a str r2, [r3, #32]
tmpccmr1 = TIMx->CCMR1;
- 800447e: 68fb ldr r3, [r7, #12]
- 8004480: 699b ldr r3, [r3, #24]
- 8004482: 613b str r3, [r7, #16]
+ 8003e4a: 68fb ldr r3, [r7, #12]
+ 8003e4c: 699b ldr r3, [r3, #24]
+ 8003e4e: 613b str r3, [r7, #16]
/* Set the filter */
tmpccmr1 &= ~TIM_CCMR1_IC1F;
- 8004484: 693b ldr r3, [r7, #16]
- 8004486: f023 03f0 bic.w r3, r3, #240 ; 0xf0
- 800448a: 613b str r3, [r7, #16]
+ 8003e50: 693b ldr r3, [r7, #16]
+ 8003e52: f023 03f0 bic.w r3, r3, #240 ; 0xf0
+ 8003e56: 613b str r3, [r7, #16]
tmpccmr1 |= (TIM_ICFilter << 4U);
- 800448c: 687b ldr r3, [r7, #4]
- 800448e: 011b lsls r3, r3, #4
- 8004490: 693a ldr r2, [r7, #16]
- 8004492: 4313 orrs r3, r2
- 8004494: 613b str r3, [r7, #16]
+ 8003e58: 687b ldr r3, [r7, #4]
+ 8003e5a: 011b lsls r3, r3, #4
+ 8003e5c: 693a ldr r2, [r7, #16]
+ 8003e5e: 4313 orrs r3, r2
+ 8003e60: 613b str r3, [r7, #16]
/* Select the Polarity and set the CC1E Bit */
tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
- 8004496: 697b ldr r3, [r7, #20]
- 8004498: f023 030a bic.w r3, r3, #10
- 800449c: 617b str r3, [r7, #20]
+ 8003e62: 697b ldr r3, [r7, #20]
+ 8003e64: f023 030a bic.w r3, r3, #10
+ 8003e68: 617b str r3, [r7, #20]
tmpccer |= TIM_ICPolarity;
- 800449e: 697a ldr r2, [r7, #20]
- 80044a0: 68bb ldr r3, [r7, #8]
- 80044a2: 4313 orrs r3, r2
- 80044a4: 617b str r3, [r7, #20]
+ 8003e6a: 697a ldr r2, [r7, #20]
+ 8003e6c: 68bb ldr r3, [r7, #8]
+ 8003e6e: 4313 orrs r3, r2
+ 8003e70: 617b str r3, [r7, #20]
/* Write to TIMx CCMR1 and CCER registers */
TIMx->CCMR1 = tmpccmr1;
- 80044a6: 68fb ldr r3, [r7, #12]
- 80044a8: 693a ldr r2, [r7, #16]
- 80044aa: 619a str r2, [r3, #24]
+ 8003e72: 68fb ldr r3, [r7, #12]
+ 8003e74: 693a ldr r2, [r7, #16]
+ 8003e76: 619a str r2, [r3, #24]
TIMx->CCER = tmpccer;
- 80044ac: 68fb ldr r3, [r7, #12]
- 80044ae: 697a ldr r2, [r7, #20]
- 80044b0: 621a str r2, [r3, #32]
+ 8003e78: 68fb ldr r3, [r7, #12]
+ 8003e7a: 697a ldr r2, [r7, #20]
+ 8003e7c: 621a str r2, [r3, #32]
}
- 80044b2: bf00 nop
- 80044b4: 371c adds r7, #28
- 80044b6: 46bd mov sp, r7
- 80044b8: f85d 7b04 ldr.w r7, [sp], #4
- 80044bc: 4770 bx lr
+ 8003e7e: bf00 nop
+ 8003e80: 371c adds r7, #28
+ 8003e82: 46bd mov sp, r7
+ 8003e84: f85d 7b04 ldr.w r7, [sp], #4
+ 8003e88: 4770 bx lr
-080044be <TIM_TI2_ConfigInputStage>:
+08003e8a <TIM_TI2_ConfigInputStage>:
* @param TIM_ICFilter Specifies the Input Capture Filter.
* This parameter must be a value between 0x00 and 0x0F.
* @retval None
*/
static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
{
- 80044be: b480 push {r7}
- 80044c0: b087 sub sp, #28
- 80044c2: af00 add r7, sp, #0
- 80044c4: 60f8 str r0, [r7, #12]
- 80044c6: 60b9 str r1, [r7, #8]
- 80044c8: 607a str r2, [r7, #4]
+ 8003e8a: b480 push {r7}
+ 8003e8c: b087 sub sp, #28
+ 8003e8e: af00 add r7, sp, #0
+ 8003e90: 60f8 str r0, [r7, #12]
+ 8003e92: 60b9 str r1, [r7, #8]
+ 8003e94: 607a str r2, [r7, #4]
uint32_t tmpccmr1;
uint32_t tmpccer;
/* Disable the Channel 2: Reset the CC2E Bit */
TIMx->CCER &= ~TIM_CCER_CC2E;
- 80044ca: 68fb ldr r3, [r7, #12]
- 80044cc: 6a1b ldr r3, [r3, #32]
- 80044ce: f023 0210 bic.w r2, r3, #16
- 80044d2: 68fb ldr r3, [r7, #12]
- 80044d4: 621a str r2, [r3, #32]
+ 8003e96: 68fb ldr r3, [r7, #12]
+ 8003e98: 6a1b ldr r3, [r3, #32]
+ 8003e9a: f023 0210 bic.w r2, r3, #16
+ 8003e9e: 68fb ldr r3, [r7, #12]
+ 8003ea0: 621a str r2, [r3, #32]
tmpccmr1 = TIMx->CCMR1;
- 80044d6: 68fb ldr r3, [r7, #12]
- 80044d8: 699b ldr r3, [r3, #24]
- 80044da: 617b str r3, [r7, #20]
+ 8003ea2: 68fb ldr r3, [r7, #12]
+ 8003ea4: 699b ldr r3, [r3, #24]
+ 8003ea6: 617b str r3, [r7, #20]
tmpccer = TIMx->CCER;
- 80044dc: 68fb ldr r3, [r7, #12]
- 80044de: 6a1b ldr r3, [r3, #32]
- 80044e0: 613b str r3, [r7, #16]
+ 8003ea8: 68fb ldr r3, [r7, #12]
+ 8003eaa: 6a1b ldr r3, [r3, #32]
+ 8003eac: 613b str r3, [r7, #16]
/* Set the filter */
tmpccmr1 &= ~TIM_CCMR1_IC2F;
- 80044e2: 697b ldr r3, [r7, #20]
- 80044e4: f423 4370 bic.w r3, r3, #61440 ; 0xf000
- 80044e8: 617b str r3, [r7, #20]
+ 8003eae: 697b ldr r3, [r7, #20]
+ 8003eb0: f423 4370 bic.w r3, r3, #61440 ; 0xf000
+ 8003eb4: 617b str r3, [r7, #20]
tmpccmr1 |= (TIM_ICFilter << 12U);
- 80044ea: 687b ldr r3, [r7, #4]
- 80044ec: 031b lsls r3, r3, #12
- 80044ee: 697a ldr r2, [r7, #20]
- 80044f0: 4313 orrs r3, r2
- 80044f2: 617b str r3, [r7, #20]
+ 8003eb6: 687b ldr r3, [r7, #4]
+ 8003eb8: 031b lsls r3, r3, #12
+ 8003eba: 697a ldr r2, [r7, #20]
+ 8003ebc: 4313 orrs r3, r2
+ 8003ebe: 617b str r3, [r7, #20]
/* Select the Polarity and set the CC2E Bit */
tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
- 80044f4: 693b ldr r3, [r7, #16]
- 80044f6: f023 03a0 bic.w r3, r3, #160 ; 0xa0
- 80044fa: 613b str r3, [r7, #16]
+ 8003ec0: 693b ldr r3, [r7, #16]
+ 8003ec2: f023 03a0 bic.w r3, r3, #160 ; 0xa0
+ 8003ec6: 613b str r3, [r7, #16]
tmpccer |= (TIM_ICPolarity << 4U);
- 80044fc: 68bb ldr r3, [r7, #8]
- 80044fe: 011b lsls r3, r3, #4
- 8004500: 693a ldr r2, [r7, #16]
- 8004502: 4313 orrs r3, r2
- 8004504: 613b str r3, [r7, #16]
+ 8003ec8: 68bb ldr r3, [r7, #8]
+ 8003eca: 011b lsls r3, r3, #4
+ 8003ecc: 693a ldr r2, [r7, #16]
+ 8003ece: 4313 orrs r3, r2
+ 8003ed0: 613b str r3, [r7, #16]
/* Write to TIMx CCMR1 and CCER registers */
TIMx->CCMR1 = tmpccmr1 ;
- 8004506: 68fb ldr r3, [r7, #12]
- 8004508: 697a ldr r2, [r7, #20]
- 800450a: 619a str r2, [r3, #24]
+ 8003ed2: 68fb ldr r3, [r7, #12]
+ 8003ed4: 697a ldr r2, [r7, #20]
+ 8003ed6: 619a str r2, [r3, #24]
TIMx->CCER = tmpccer;
- 800450c: 68fb ldr r3, [r7, #12]
- 800450e: 693a ldr r2, [r7, #16]
- 8004510: 621a str r2, [r3, #32]
+ 8003ed8: 68fb ldr r3, [r7, #12]
+ 8003eda: 693a ldr r2, [r7, #16]
+ 8003edc: 621a str r2, [r3, #32]
}
- 8004512: bf00 nop
- 8004514: 371c adds r7, #28
- 8004516: 46bd mov sp, r7
- 8004518: f85d 7b04 ldr.w r7, [sp], #4
- 800451c: 4770 bx lr
+ 8003ede: bf00 nop
+ 8003ee0: 371c adds r7, #28
+ 8003ee2: 46bd mov sp, r7
+ 8003ee4: f85d 7b04 ldr.w r7, [sp], #4
+ 8003ee8: 4770 bx lr
-0800451e <TIM_ITRx_SetConfig>:
+08003eea <TIM_ITRx_SetConfig>:
* @arg TIM_TS_TI2FP2: Filtered Timer Input 2
* @arg TIM_TS_ETRF: External Trigger input
* @retval None
*/
static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
{
- 800451e: b480 push {r7}
- 8004520: b085 sub sp, #20
- 8004522: af00 add r7, sp, #0
- 8004524: 6078 str r0, [r7, #4]
- 8004526: 6039 str r1, [r7, #0]
+ 8003eea: b480 push {r7}
+ 8003eec: b085 sub sp, #20
+ 8003eee: af00 add r7, sp, #0
+ 8003ef0: 6078 str r0, [r7, #4]
+ 8003ef2: 6039 str r1, [r7, #0]
uint32_t tmpsmcr;
/* Get the TIMx SMCR register value */
tmpsmcr = TIMx->SMCR;
- 8004528: 687b ldr r3, [r7, #4]
- 800452a: 689b ldr r3, [r3, #8]
- 800452c: 60fb str r3, [r7, #12]
+ 8003ef4: 687b ldr r3, [r7, #4]
+ 8003ef6: 689b ldr r3, [r3, #8]
+ 8003ef8: 60fb str r3, [r7, #12]
/* Reset the TS Bits */
tmpsmcr &= ~TIM_SMCR_TS;
- 800452e: 68fb ldr r3, [r7, #12]
- 8004530: f023 0370 bic.w r3, r3, #112 ; 0x70
- 8004534: 60fb str r3, [r7, #12]
+ 8003efa: 68fb ldr r3, [r7, #12]
+ 8003efc: f023 0370 bic.w r3, r3, #112 ; 0x70
+ 8003f00: 60fb str r3, [r7, #12]
/* Set the Input Trigger source and the slave mode*/
tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
- 8004536: 683a ldr r2, [r7, #0]
- 8004538: 68fb ldr r3, [r7, #12]
- 800453a: 4313 orrs r3, r2
- 800453c: f043 0307 orr.w r3, r3, #7
- 8004540: 60fb str r3, [r7, #12]
+ 8003f02: 683a ldr r2, [r7, #0]
+ 8003f04: 68fb ldr r3, [r7, #12]
+ 8003f06: 4313 orrs r3, r2
+ 8003f08: f043 0307 orr.w r3, r3, #7
+ 8003f0c: 60fb str r3, [r7, #12]
/* Write to TIMx SMCR */
TIMx->SMCR = tmpsmcr;
- 8004542: 687b ldr r3, [r7, #4]
- 8004544: 68fa ldr r2, [r7, #12]
- 8004546: 609a str r2, [r3, #8]
+ 8003f0e: 687b ldr r3, [r7, #4]
+ 8003f10: 68fa ldr r2, [r7, #12]
+ 8003f12: 609a str r2, [r3, #8]
}
- 8004548: bf00 nop
- 800454a: 3714 adds r7, #20
- 800454c: 46bd mov sp, r7
- 800454e: f85d 7b04 ldr.w r7, [sp], #4
- 8004552: 4770 bx lr
+ 8003f14: bf00 nop
+ 8003f16: 3714 adds r7, #20
+ 8003f18: 46bd mov sp, r7
+ 8003f1a: f85d 7b04 ldr.w r7, [sp], #4
+ 8003f1e: 4770 bx lr
-08004554 <TIM_ETR_SetConfig>:
+08003f20 <TIM_ETR_SetConfig>:
* This parameter must be a value between 0x00 and 0x0F
* @retval None
*/
void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
{
- 8004554: b480 push {r7}
- 8004556: b087 sub sp, #28
- 8004558: af00 add r7, sp, #0
- 800455a: 60f8 str r0, [r7, #12]
- 800455c: 60b9 str r1, [r7, #8]
- 800455e: 607a str r2, [r7, #4]
- 8004560: 603b str r3, [r7, #0]
+ 8003f20: b480 push {r7}
+ 8003f22: b087 sub sp, #28
+ 8003f24: af00 add r7, sp, #0
+ 8003f26: 60f8 str r0, [r7, #12]
+ 8003f28: 60b9 str r1, [r7, #8]
+ 8003f2a: 607a str r2, [r7, #4]
+ 8003f2c: 603b str r3, [r7, #0]
uint32_t tmpsmcr;
tmpsmcr = TIMx->SMCR;
- 8004562: 68fb ldr r3, [r7, #12]
- 8004564: 689b ldr r3, [r3, #8]
- 8004566: 617b str r3, [r7, #20]
+ 8003f2e: 68fb ldr r3, [r7, #12]
+ 8003f30: 689b ldr r3, [r3, #8]
+ 8003f32: 617b str r3, [r7, #20]
/* Reset the ETR Bits */
tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
- 8004568: 697b ldr r3, [r7, #20]
- 800456a: f423 437f bic.w r3, r3, #65280 ; 0xff00
- 800456e: 617b str r3, [r7, #20]
+ 8003f34: 697b ldr r3, [r7, #20]
+ 8003f36: f423 437f bic.w r3, r3, #65280 ; 0xff00
+ 8003f3a: 617b str r3, [r7, #20]
/* Set the Prescaler, the Filter value and the Polarity */
tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
- 8004570: 683b ldr r3, [r7, #0]
- 8004572: 021a lsls r2, r3, #8
- 8004574: 687b ldr r3, [r7, #4]
- 8004576: 431a orrs r2, r3
- 8004578: 68bb ldr r3, [r7, #8]
- 800457a: 4313 orrs r3, r2
- 800457c: 697a ldr r2, [r7, #20]
- 800457e: 4313 orrs r3, r2
- 8004580: 617b str r3, [r7, #20]
+ 8003f3c: 683b ldr r3, [r7, #0]
+ 8003f3e: 021a lsls r2, r3, #8
+ 8003f40: 687b ldr r3, [r7, #4]
+ 8003f42: 431a orrs r2, r3
+ 8003f44: 68bb ldr r3, [r7, #8]
+ 8003f46: 4313 orrs r3, r2
+ 8003f48: 697a ldr r2, [r7, #20]
+ 8003f4a: 4313 orrs r3, r2
+ 8003f4c: 617b str r3, [r7, #20]
/* Write to TIMx SMCR */
TIMx->SMCR = tmpsmcr;
- 8004582: 68fb ldr r3, [r7, #12]
- 8004584: 697a ldr r2, [r7, #20]
- 8004586: 609a str r2, [r3, #8]
+ 8003f4e: 68fb ldr r3, [r7, #12]
+ 8003f50: 697a ldr r2, [r7, #20]
+ 8003f52: 609a str r2, [r3, #8]
}
- 8004588: bf00 nop
- 800458a: 371c adds r7, #28
- 800458c: 46bd mov sp, r7
- 800458e: f85d 7b04 ldr.w r7, [sp], #4
- 8004592: 4770 bx lr
+ 8003f54: bf00 nop
+ 8003f56: 371c adds r7, #28
+ 8003f58: 46bd mov sp, r7
+ 8003f5a: f85d 7b04 ldr.w r7, [sp], #4
+ 8003f5e: 4770 bx lr
-08004594 <TIM_CCxChannelCmd>:
+08003f60 <TIM_CCxChannelCmd>:
* @param ChannelState specifies the TIM Channel CCxE bit new state.
* This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
* @retval None
*/
void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
{
- 8004594: b480 push {r7}
- 8004596: b087 sub sp, #28
- 8004598: af00 add r7, sp, #0
- 800459a: 60f8 str r0, [r7, #12]
- 800459c: 60b9 str r1, [r7, #8]
- 800459e: 607a str r2, [r7, #4]
+ 8003f60: b480 push {r7}
+ 8003f62: b087 sub sp, #28
+ 8003f64: af00 add r7, sp, #0
+ 8003f66: 60f8 str r0, [r7, #12]
+ 8003f68: 60b9 str r1, [r7, #8]
+ 8003f6a: 607a str r2, [r7, #4]
/* Check the parameters */
assert_param(IS_TIM_CC1_INSTANCE(TIMx));
assert_param(IS_TIM_CHANNELS(Channel));
tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
- 80045a0: 68bb ldr r3, [r7, #8]
- 80045a2: f003 031f and.w r3, r3, #31
- 80045a6: 2201 movs r2, #1
- 80045a8: fa02 f303 lsl.w r3, r2, r3
- 80045ac: 617b str r3, [r7, #20]
+ 8003f6c: 68bb ldr r3, [r7, #8]
+ 8003f6e: f003 031f and.w r3, r3, #31
+ 8003f72: 2201 movs r2, #1
+ 8003f74: fa02 f303 lsl.w r3, r2, r3
+ 8003f78: 617b str r3, [r7, #20]
/* Reset the CCxE Bit */
TIMx->CCER &= ~tmp;
- 80045ae: 68fb ldr r3, [r7, #12]
- 80045b0: 6a1a ldr r2, [r3, #32]
- 80045b2: 697b ldr r3, [r7, #20]
- 80045b4: 43db mvns r3, r3
- 80045b6: 401a ands r2, r3
- 80045b8: 68fb ldr r3, [r7, #12]
- 80045ba: 621a str r2, [r3, #32]
+ 8003f7a: 68fb ldr r3, [r7, #12]
+ 8003f7c: 6a1a ldr r2, [r3, #32]
+ 8003f7e: 697b ldr r3, [r7, #20]
+ 8003f80: 43db mvns r3, r3
+ 8003f82: 401a ands r2, r3
+ 8003f84: 68fb ldr r3, [r7, #12]
+ 8003f86: 621a str r2, [r3, #32]
/* Set or reset the CCxE Bit */
TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
- 80045bc: 68fb ldr r3, [r7, #12]
- 80045be: 6a1a ldr r2, [r3, #32]
- 80045c0: 68bb ldr r3, [r7, #8]
- 80045c2: f003 031f and.w r3, r3, #31
- 80045c6: 6879 ldr r1, [r7, #4]
- 80045c8: fa01 f303 lsl.w r3, r1, r3
- 80045cc: 431a orrs r2, r3
- 80045ce: 68fb ldr r3, [r7, #12]
- 80045d0: 621a str r2, [r3, #32]
+ 8003f88: 68fb ldr r3, [r7, #12]
+ 8003f8a: 6a1a ldr r2, [r3, #32]
+ 8003f8c: 68bb ldr r3, [r7, #8]
+ 8003f8e: f003 031f and.w r3, r3, #31
+ 8003f92: 6879 ldr r1, [r7, #4]
+ 8003f94: fa01 f303 lsl.w r3, r1, r3
+ 8003f98: 431a orrs r2, r3
+ 8003f9a: 68fb ldr r3, [r7, #12]
+ 8003f9c: 621a str r2, [r3, #32]
}
- 80045d2: bf00 nop
- 80045d4: 371c adds r7, #28
- 80045d6: 46bd mov sp, r7
- 80045d8: f85d 7b04 ldr.w r7, [sp], #4
- 80045dc: 4770 bx lr
+ 8003f9e: bf00 nop
+ 8003fa0: 371c adds r7, #28
+ 8003fa2: 46bd mov sp, r7
+ 8003fa4: f85d 7b04 ldr.w r7, [sp], #4
+ 8003fa8: 4770 bx lr
...
-080045e0 <HAL_TIMEx_MasterConfigSynchronization>:
+08003fac <HAL_TIMEx_MasterConfigSynchronization>:
* mode.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
TIM_MasterConfigTypeDef *sMasterConfig)
{
- 80045e0: b480 push {r7}
- 80045e2: b085 sub sp, #20
- 80045e4: af00 add r7, sp, #0
- 80045e6: 6078 str r0, [r7, #4]
- 80045e8: 6039 str r1, [r7, #0]
+ 8003fac: b480 push {r7}
+ 8003fae: b085 sub sp, #20
+ 8003fb0: af00 add r7, sp, #0
+ 8003fb2: 6078 str r0, [r7, #4]
+ 8003fb4: 6039 str r1, [r7, #0]
assert_param(IS_TIM_SYNCHRO_INSTANCE(htim->Instance));
assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
/* Check input state */
__HAL_LOCK(htim);
- 80045ea: 687b ldr r3, [r7, #4]
- 80045ec: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
- 80045f0: 2b01 cmp r3, #1
- 80045f2: d101 bne.n 80045f8 <HAL_TIMEx_MasterConfigSynchronization+0x18>
- 80045f4: 2302 movs r3, #2
- 80045f6: e045 b.n 8004684 <HAL_TIMEx_MasterConfigSynchronization+0xa4>
- 80045f8: 687b ldr r3, [r7, #4]
- 80045fa: 2201 movs r2, #1
- 80045fc: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 8003fb6: 687b ldr r3, [r7, #4]
+ 8003fb8: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
+ 8003fbc: 2b01 cmp r3, #1
+ 8003fbe: d101 bne.n 8003fc4 <HAL_TIMEx_MasterConfigSynchronization+0x18>
+ 8003fc0: 2302 movs r3, #2
+ 8003fc2: e045 b.n 8004050 <HAL_TIMEx_MasterConfigSynchronization+0xa4>
+ 8003fc4: 687b ldr r3, [r7, #4]
+ 8003fc6: 2201 movs r2, #1
+ 8003fc8: f883 203c strb.w r2, [r3, #60] ; 0x3c
/* Change the handler state */
htim->State = HAL_TIM_STATE_BUSY;
- 8004600: 687b ldr r3, [r7, #4]
- 8004602: 2202 movs r2, #2
- 8004604: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 8003fcc: 687b ldr r3, [r7, #4]
+ 8003fce: 2202 movs r2, #2
+ 8003fd0: f883 203d strb.w r2, [r3, #61] ; 0x3d
/* Get the TIMx CR2 register value */
tmpcr2 = htim->Instance->CR2;
- 8004608: 687b ldr r3, [r7, #4]
- 800460a: 681b ldr r3, [r3, #0]
- 800460c: 685b ldr r3, [r3, #4]
- 800460e: 60fb str r3, [r7, #12]
+ 8003fd4: 687b ldr r3, [r7, #4]
+ 8003fd6: 681b ldr r3, [r3, #0]
+ 8003fd8: 685b ldr r3, [r3, #4]
+ 8003fda: 60fb str r3, [r7, #12]
/* Get the TIMx SMCR register value */
tmpsmcr = htim->Instance->SMCR;
- 8004610: 687b ldr r3, [r7, #4]
- 8004612: 681b ldr r3, [r3, #0]
- 8004614: 689b ldr r3, [r3, #8]
- 8004616: 60bb str r3, [r7, #8]
+ 8003fdc: 687b ldr r3, [r7, #4]
+ 8003fde: 681b ldr r3, [r3, #0]
+ 8003fe0: 689b ldr r3, [r3, #8]
+ 8003fe2: 60bb str r3, [r7, #8]
/* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
- 8004618: 687b ldr r3, [r7, #4]
- 800461a: 681b ldr r3, [r3, #0]
- 800461c: 4a1c ldr r2, [pc, #112] ; (8004690 <HAL_TIMEx_MasterConfigSynchronization+0xb0>)
- 800461e: 4293 cmp r3, r2
- 8004620: d004 beq.n 800462c <HAL_TIMEx_MasterConfigSynchronization+0x4c>
- 8004622: 687b ldr r3, [r7, #4]
- 8004624: 681b ldr r3, [r3, #0]
- 8004626: 4a1b ldr r2, [pc, #108] ; (8004694 <HAL_TIMEx_MasterConfigSynchronization+0xb4>)
- 8004628: 4293 cmp r3, r2
- 800462a: d108 bne.n 800463e <HAL_TIMEx_MasterConfigSynchronization+0x5e>
+ 8003fe4: 687b ldr r3, [r7, #4]
+ 8003fe6: 681b ldr r3, [r3, #0]
+ 8003fe8: 4a1c ldr r2, [pc, #112] ; (800405c <HAL_TIMEx_MasterConfigSynchronization+0xb0>)
+ 8003fea: 4293 cmp r3, r2
+ 8003fec: d004 beq.n 8003ff8 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
+ 8003fee: 687b ldr r3, [r7, #4]
+ 8003ff0: 681b ldr r3, [r3, #0]
+ 8003ff2: 4a1b ldr r2, [pc, #108] ; (8004060 <HAL_TIMEx_MasterConfigSynchronization+0xb4>)
+ 8003ff4: 4293 cmp r3, r2
+ 8003ff6: d108 bne.n 800400a <HAL_TIMEx_MasterConfigSynchronization+0x5e>
{
/* Check the parameters */
assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
/* Clear the MMS2 bits */
tmpcr2 &= ~TIM_CR2_MMS2;
- 800462c: 68fb ldr r3, [r7, #12]
- 800462e: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000
- 8004632: 60fb str r3, [r7, #12]
+ 8003ff8: 68fb ldr r3, [r7, #12]
+ 8003ffa: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000
+ 8003ffe: 60fb str r3, [r7, #12]
/* Select the TRGO2 source*/
tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
- 8004634: 683b ldr r3, [r7, #0]
- 8004636: 685b ldr r3, [r3, #4]
- 8004638: 68fa ldr r2, [r7, #12]
- 800463a: 4313 orrs r3, r2
- 800463c: 60fb str r3, [r7, #12]
+ 8004000: 683b ldr r3, [r7, #0]
+ 8004002: 685b ldr r3, [r3, #4]
+ 8004004: 68fa ldr r2, [r7, #12]
+ 8004006: 4313 orrs r3, r2
+ 8004008: 60fb str r3, [r7, #12]
}
/* Reset the MMS Bits */
tmpcr2 &= ~TIM_CR2_MMS;
- 800463e: 68fb ldr r3, [r7, #12]
- 8004640: f023 0370 bic.w r3, r3, #112 ; 0x70
- 8004644: 60fb str r3, [r7, #12]
+ 800400a: 68fb ldr r3, [r7, #12]
+ 800400c: f023 0370 bic.w r3, r3, #112 ; 0x70
+ 8004010: 60fb str r3, [r7, #12]
/* Select the TRGO source */
tmpcr2 |= sMasterConfig->MasterOutputTrigger;
- 8004646: 683b ldr r3, [r7, #0]
- 8004648: 681b ldr r3, [r3, #0]
- 800464a: 68fa ldr r2, [r7, #12]
- 800464c: 4313 orrs r3, r2
- 800464e: 60fb str r3, [r7, #12]
+ 8004012: 683b ldr r3, [r7, #0]
+ 8004014: 681b ldr r3, [r3, #0]
+ 8004016: 68fa ldr r2, [r7, #12]
+ 8004018: 4313 orrs r3, r2
+ 800401a: 60fb str r3, [r7, #12]
/* Reset the MSM Bit */
tmpsmcr &= ~TIM_SMCR_MSM;
- 8004650: 68bb ldr r3, [r7, #8]
- 8004652: f023 0380 bic.w r3, r3, #128 ; 0x80
- 8004656: 60bb str r3, [r7, #8]
+ 800401c: 68bb ldr r3, [r7, #8]
+ 800401e: f023 0380 bic.w r3, r3, #128 ; 0x80
+ 8004022: 60bb str r3, [r7, #8]
/* Set master mode */
tmpsmcr |= sMasterConfig->MasterSlaveMode;
- 8004658: 683b ldr r3, [r7, #0]
- 800465a: 689b ldr r3, [r3, #8]
- 800465c: 68ba ldr r2, [r7, #8]
- 800465e: 4313 orrs r3, r2
- 8004660: 60bb str r3, [r7, #8]
+ 8004024: 683b ldr r3, [r7, #0]
+ 8004026: 689b ldr r3, [r3, #8]
+ 8004028: 68ba ldr r2, [r7, #8]
+ 800402a: 4313 orrs r3, r2
+ 800402c: 60bb str r3, [r7, #8]
/* Update TIMx CR2 */
htim->Instance->CR2 = tmpcr2;
- 8004662: 687b ldr r3, [r7, #4]
- 8004664: 681b ldr r3, [r3, #0]
- 8004666: 68fa ldr r2, [r7, #12]
- 8004668: 605a str r2, [r3, #4]
+ 800402e: 687b ldr r3, [r7, #4]
+ 8004030: 681b ldr r3, [r3, #0]
+ 8004032: 68fa ldr r2, [r7, #12]
+ 8004034: 605a str r2, [r3, #4]
/* Update TIMx SMCR */
htim->Instance->SMCR = tmpsmcr;
- 800466a: 687b ldr r3, [r7, #4]
- 800466c: 681b ldr r3, [r3, #0]
- 800466e: 68ba ldr r2, [r7, #8]
- 8004670: 609a str r2, [r3, #8]
+ 8004036: 687b ldr r3, [r7, #4]
+ 8004038: 681b ldr r3, [r3, #0]
+ 800403a: 68ba ldr r2, [r7, #8]
+ 800403c: 609a str r2, [r3, #8]
/* Change the htim state */
htim->State = HAL_TIM_STATE_READY;
- 8004672: 687b ldr r3, [r7, #4]
- 8004674: 2201 movs r2, #1
- 8004676: f883 203d strb.w r2, [r3, #61] ; 0x3d
+ 800403e: 687b ldr r3, [r7, #4]
+ 8004040: 2201 movs r2, #1
+ 8004042: f883 203d strb.w r2, [r3, #61] ; 0x3d
__HAL_UNLOCK(htim);
- 800467a: 687b ldr r3, [r7, #4]
- 800467c: 2200 movs r2, #0
- 800467e: f883 203c strb.w r2, [r3, #60] ; 0x3c
+ 8004046: 687b ldr r3, [r7, #4]
+ 8004048: 2200 movs r2, #0
+ 800404a: f883 203c strb.w r2, [r3, #60] ; 0x3c
return HAL_OK;
- 8004682: 2300 movs r3, #0
+ 800404e: 2300 movs r3, #0
}
- 8004684: 4618 mov r0, r3
- 8004686: 3714 adds r7, #20
- 8004688: 46bd mov sp, r7
- 800468a: f85d 7b04 ldr.w r7, [sp], #4
- 800468e: 4770 bx lr
- 8004690: 40010000 .word 0x40010000
- 8004694: 40010400 .word 0x40010400
-
-08004698 <HAL_TIMEx_CommutCallback>:
+ 8004050: 4618 mov r0, r3
+ 8004052: 3714 adds r7, #20
+ 8004054: 46bd mov sp, r7
+ 8004056: f85d 7b04 ldr.w r7, [sp], #4
+ 800405a: 4770 bx lr
+ 800405c: 40010000 .word 0x40010000
+ 8004060: 40010400 .word 0x40010400
+
+08004064 <HAL_TIMEx_CommutCallback>:
* @brief Hall commutation changed callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
{
- 8004698: b480 push {r7}
- 800469a: b083 sub sp, #12
- 800469c: af00 add r7, sp, #0
- 800469e: 6078 str r0, [r7, #4]
+ 8004064: b480 push {r7}
+ 8004066: b083 sub sp, #12
+ 8004068: af00 add r7, sp, #0
+ 800406a: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIMEx_CommutCallback could be implemented in the user file
*/
}
- 80046a0: bf00 nop
- 80046a2: 370c adds r7, #12
- 80046a4: 46bd mov sp, r7
- 80046a6: f85d 7b04 ldr.w r7, [sp], #4
- 80046aa: 4770 bx lr
+ 800406c: bf00 nop
+ 800406e: 370c adds r7, #12
+ 8004070: 46bd mov sp, r7
+ 8004072: f85d 7b04 ldr.w r7, [sp], #4
+ 8004076: 4770 bx lr
-080046ac <HAL_TIMEx_BreakCallback>:
+08004078 <HAL_TIMEx_BreakCallback>:
* @brief Hall Break detection callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
{
- 80046ac: b480 push {r7}
- 80046ae: b083 sub sp, #12
- 80046b0: af00 add r7, sp, #0
- 80046b2: 6078 str r0, [r7, #4]
+ 8004078: b480 push {r7}
+ 800407a: b083 sub sp, #12
+ 800407c: af00 add r7, sp, #0
+ 800407e: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIMEx_BreakCallback could be implemented in the user file
*/
}
- 80046b4: bf00 nop
- 80046b6: 370c adds r7, #12
- 80046b8: 46bd mov sp, r7
- 80046ba: f85d 7b04 ldr.w r7, [sp], #4
- 80046be: 4770 bx lr
+ 8004080: bf00 nop
+ 8004082: 370c adds r7, #12
+ 8004084: 46bd mov sp, r7
+ 8004086: f85d 7b04 ldr.w r7, [sp], #4
+ 800408a: 4770 bx lr
-080046c0 <HAL_TIMEx_Break2Callback>:
+0800408c <HAL_TIMEx_Break2Callback>:
* @brief Hall Break2 detection callback in non blocking mode
* @param htim: TIM handle
* @retval None
*/
__weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
{
- 80046c0: b480 push {r7}
- 80046c2: b083 sub sp, #12
- 80046c4: af00 add r7, sp, #0
- 80046c6: 6078 str r0, [r7, #4]
+ 800408c: b480 push {r7}
+ 800408e: b083 sub sp, #12
+ 8004090: af00 add r7, sp, #0
+ 8004092: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function Should not be modified, when the callback is needed,
the HAL_TIMEx_Break2Callback could be implemented in the user file
*/
}
- 80046c8: bf00 nop
- 80046ca: 370c adds r7, #12
- 80046cc: 46bd mov sp, r7
- 80046ce: f85d 7b04 ldr.w r7, [sp], #4
- 80046d2: 4770 bx lr
+ 8004094: bf00 nop
+ 8004096: 370c adds r7, #12
+ 8004098: 46bd mov sp, r7
+ 800409a: f85d 7b04 ldr.w r7, [sp], #4
+ 800409e: 4770 bx lr
-080046d4 <HAL_UART_Init>:
+080040a0 <HAL_UART_Init>:
* parameters in the UART_InitTypeDef and initialize the associated handle.
* @param huart UART handle.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
{
- 80046d4: b580 push {r7, lr}
- 80046d6: b082 sub sp, #8
- 80046d8: af00 add r7, sp, #0
- 80046da: 6078 str r0, [r7, #4]
+ 80040a0: b580 push {r7, lr}
+ 80040a2: b082 sub sp, #8
+ 80040a4: af00 add r7, sp, #0
+ 80040a6: 6078 str r0, [r7, #4]
/* Check the UART handle allocation */
if (huart == NULL)
- 80046dc: 687b ldr r3, [r7, #4]
- 80046de: 2b00 cmp r3, #0
- 80046e0: d101 bne.n 80046e6 <HAL_UART_Init+0x12>
+ 80040a8: 687b ldr r3, [r7, #4]
+ 80040aa: 2b00 cmp r3, #0
+ 80040ac: d101 bne.n 80040b2 <HAL_UART_Init+0x12>
{
return HAL_ERROR;
- 80046e2: 2301 movs r3, #1
- 80046e4: e040 b.n 8004768 <HAL_UART_Init+0x94>
+ 80040ae: 2301 movs r3, #1
+ 80040b0: e040 b.n 8004134 <HAL_UART_Init+0x94>
{
/* Check the parameters */
assert_param(IS_UART_INSTANCE(huart->Instance));
}
if (huart->gState == HAL_UART_STATE_RESET)
- 80046e6: 687b ldr r3, [r7, #4]
- 80046e8: 6f5b ldr r3, [r3, #116] ; 0x74
- 80046ea: 2b00 cmp r3, #0
- 80046ec: d106 bne.n 80046fc <HAL_UART_Init+0x28>
+ 80040b2: 687b ldr r3, [r7, #4]
+ 80040b4: 6f5b ldr r3, [r3, #116] ; 0x74
+ 80040b6: 2b00 cmp r3, #0
+ 80040b8: d106 bne.n 80040c8 <HAL_UART_Init+0x28>
{
/* Allocate lock resource and initialize it */
huart->Lock = HAL_UNLOCKED;
- 80046ee: 687b ldr r3, [r7, #4]
- 80046f0: 2200 movs r2, #0
- 80046f2: f883 2070 strb.w r2, [r3, #112] ; 0x70
+ 80040ba: 687b ldr r3, [r7, #4]
+ 80040bc: 2200 movs r2, #0
+ 80040be: f883 2070 strb.w r2, [r3, #112] ; 0x70
/* Init the low level hardware */
huart->MspInitCallback(huart);
#else
/* Init the low level hardware : GPIO, CLOCK */
HAL_UART_MspInit(huart);
- 80046f6: 6878 ldr r0, [r7, #4]
- 80046f8: f7fc ff34 bl 8001564 <HAL_UART_MspInit>
+ 80040c2: 6878 ldr r0, [r7, #4]
+ 80040c4: f7fd fa9c bl 8001600 <HAL_UART_MspInit>
#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
}
huart->gState = HAL_UART_STATE_BUSY;
- 80046fc: 687b ldr r3, [r7, #4]
- 80046fe: 2224 movs r2, #36 ; 0x24
- 8004700: 675a str r2, [r3, #116] ; 0x74
+ 80040c8: 687b ldr r3, [r7, #4]
+ 80040ca: 2224 movs r2, #36 ; 0x24
+ 80040cc: 675a str r2, [r3, #116] ; 0x74
/* Disable the Peripheral */
__HAL_UART_DISABLE(huart);
- 8004702: 687b ldr r3, [r7, #4]
- 8004704: 681b ldr r3, [r3, #0]
- 8004706: 681a ldr r2, [r3, #0]
- 8004708: 687b ldr r3, [r7, #4]
- 800470a: 681b ldr r3, [r3, #0]
- 800470c: f022 0201 bic.w r2, r2, #1
- 8004710: 601a str r2, [r3, #0]
+ 80040ce: 687b ldr r3, [r7, #4]
+ 80040d0: 681b ldr r3, [r3, #0]
+ 80040d2: 681a ldr r2, [r3, #0]
+ 80040d4: 687b ldr r3, [r7, #4]
+ 80040d6: 681b ldr r3, [r3, #0]
+ 80040d8: f022 0201 bic.w r2, r2, #1
+ 80040dc: 601a str r2, [r3, #0]
/* Set the UART Communication parameters */
if (UART_SetConfig(huart) == HAL_ERROR)
- 8004712: 6878 ldr r0, [r7, #4]
- 8004714: f000 f95c bl 80049d0 <UART_SetConfig>
- 8004718: 4603 mov r3, r0
- 800471a: 2b01 cmp r3, #1
- 800471c: d101 bne.n 8004722 <HAL_UART_Init+0x4e>
+ 80040de: 6878 ldr r0, [r7, #4]
+ 80040e0: f000 f9fe bl 80044e0 <UART_SetConfig>
+ 80040e4: 4603 mov r3, r0
+ 80040e6: 2b01 cmp r3, #1
+ 80040e8: d101 bne.n 80040ee <HAL_UART_Init+0x4e>
{
return HAL_ERROR;
- 800471e: 2301 movs r3, #1
- 8004720: e022 b.n 8004768 <HAL_UART_Init+0x94>
+ 80040ea: 2301 movs r3, #1
+ 80040ec: e022 b.n 8004134 <HAL_UART_Init+0x94>
}
if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
- 8004722: 687b ldr r3, [r7, #4]
- 8004724: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004726: 2b00 cmp r3, #0
- 8004728: d002 beq.n 8004730 <HAL_UART_Init+0x5c>
+ 80040ee: 687b ldr r3, [r7, #4]
+ 80040f0: 6a5b ldr r3, [r3, #36] ; 0x24
+ 80040f2: 2b00 cmp r3, #0
+ 80040f4: d002 beq.n 80040fc <HAL_UART_Init+0x5c>
{
UART_AdvFeatureConfig(huart);
- 800472a: 6878 ldr r0, [r7, #4]
- 800472c: f000 fbf4 bl 8004f18 <UART_AdvFeatureConfig>
+ 80040f6: 6878 ldr r0, [r7, #4]
+ 80040f8: f000 fc96 bl 8004a28 <UART_AdvFeatureConfig>
}
/* In asynchronous mode, the following bits must be kept cleared:
- LINEN and CLKEN bits in the USART_CR2 register,
- SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
- 8004730: 687b ldr r3, [r7, #4]
- 8004732: 681b ldr r3, [r3, #0]
- 8004734: 685a ldr r2, [r3, #4]
- 8004736: 687b ldr r3, [r7, #4]
- 8004738: 681b ldr r3, [r3, #0]
- 800473a: f422 4290 bic.w r2, r2, #18432 ; 0x4800
- 800473e: 605a str r2, [r3, #4]
+ 80040fc: 687b ldr r3, [r7, #4]
+ 80040fe: 681b ldr r3, [r3, #0]
+ 8004100: 685a ldr r2, [r3, #4]
+ 8004102: 687b ldr r3, [r7, #4]
+ 8004104: 681b ldr r3, [r3, #0]
+ 8004106: f422 4290 bic.w r2, r2, #18432 ; 0x4800
+ 800410a: 605a str r2, [r3, #4]
CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
- 8004740: 687b ldr r3, [r7, #4]
- 8004742: 681b ldr r3, [r3, #0]
- 8004744: 689a ldr r2, [r3, #8]
- 8004746: 687b ldr r3, [r7, #4]
- 8004748: 681b ldr r3, [r3, #0]
- 800474a: f022 022a bic.w r2, r2, #42 ; 0x2a
- 800474e: 609a str r2, [r3, #8]
+ 800410c: 687b ldr r3, [r7, #4]
+ 800410e: 681b ldr r3, [r3, #0]
+ 8004110: 689a ldr r2, [r3, #8]
+ 8004112: 687b ldr r3, [r7, #4]
+ 8004114: 681b ldr r3, [r3, #0]
+ 8004116: f022 022a bic.w r2, r2, #42 ; 0x2a
+ 800411a: 609a str r2, [r3, #8]
/* Enable the Peripheral */
__HAL_UART_ENABLE(huart);
- 8004750: 687b ldr r3, [r7, #4]
- 8004752: 681b ldr r3, [r3, #0]
- 8004754: 681a ldr r2, [r3, #0]
- 8004756: 687b ldr r3, [r7, #4]
- 8004758: 681b ldr r3, [r3, #0]
- 800475a: f042 0201 orr.w r2, r2, #1
- 800475e: 601a str r2, [r3, #0]
+ 800411c: 687b ldr r3, [r7, #4]
+ 800411e: 681b ldr r3, [r3, #0]
+ 8004120: 681a ldr r2, [r3, #0]
+ 8004122: 687b ldr r3, [r7, #4]
+ 8004124: 681b ldr r3, [r3, #0]
+ 8004126: f042 0201 orr.w r2, r2, #1
+ 800412a: 601a str r2, [r3, #0]
/* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
return (UART_CheckIdleState(huart));
- 8004760: 6878 ldr r0, [r7, #4]
- 8004762: f000 fc7b bl 800505c <UART_CheckIdleState>
- 8004766: 4603 mov r3, r0
+ 800412c: 6878 ldr r0, [r7, #4]
+ 800412e: f000 fd1d bl 8004b6c <UART_CheckIdleState>
+ 8004132: 4603 mov r3, r0
}
- 8004768: 4618 mov r0, r3
- 800476a: 3708 adds r7, #8
- 800476c: 46bd mov sp, r7
- 800476e: bd80 pop {r7, pc}
+ 8004134: 4618 mov r0, r3
+ 8004136: 3708 adds r7, #8
+ 8004138: 46bd mov sp, r7
+ 800413a: bd80 pop {r7, pc}
+
+0800413c <HAL_UART_Receive_IT>:
+ * @param pData Pointer to data buffer.
+ * @param Size Amount of data to be received.
+ * @retval HAL status
+ */
+HAL_StatusTypeDef HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
+{
+ 800413c: b480 push {r7}
+ 800413e: b085 sub sp, #20
+ 8004140: af00 add r7, sp, #0
+ 8004142: 60f8 str r0, [r7, #12]
+ 8004144: 60b9 str r1, [r7, #8]
+ 8004146: 4613 mov r3, r2
+ 8004148: 80fb strh r3, [r7, #6]
+ /* Check that a Rx process is not already ongoing */
+ if (huart->RxState == HAL_UART_STATE_READY)
+ 800414a: 68fb ldr r3, [r7, #12]
+ 800414c: 6f9b ldr r3, [r3, #120] ; 0x78
+ 800414e: 2b20 cmp r3, #32
+ 8004150: f040 808a bne.w 8004268 <HAL_UART_Receive_IT+0x12c>
+ {
+ if ((pData == NULL) || (Size == 0U))
+ 8004154: 68bb ldr r3, [r7, #8]
+ 8004156: 2b00 cmp r3, #0
+ 8004158: d002 beq.n 8004160 <HAL_UART_Receive_IT+0x24>
+ 800415a: 88fb ldrh r3, [r7, #6]
+ 800415c: 2b00 cmp r3, #0
+ 800415e: d101 bne.n 8004164 <HAL_UART_Receive_IT+0x28>
+ {
+ return HAL_ERROR;
+ 8004160: 2301 movs r3, #1
+ 8004162: e082 b.n 800426a <HAL_UART_Receive_IT+0x12e>
+ }
+
+ /* Process Locked */
+ __HAL_LOCK(huart);
+ 8004164: 68fb ldr r3, [r7, #12]
+ 8004166: f893 3070 ldrb.w r3, [r3, #112] ; 0x70
+ 800416a: 2b01 cmp r3, #1
+ 800416c: d101 bne.n 8004172 <HAL_UART_Receive_IT+0x36>
+ 800416e: 2302 movs r3, #2
+ 8004170: e07b b.n 800426a <HAL_UART_Receive_IT+0x12e>
+ 8004172: 68fb ldr r3, [r7, #12]
+ 8004174: 2201 movs r2, #1
+ 8004176: f883 2070 strb.w r2, [r3, #112] ; 0x70
+
+ huart->pRxBuffPtr = pData;
+ 800417a: 68fb ldr r3, [r7, #12]
+ 800417c: 68ba ldr r2, [r7, #8]
+ 800417e: 655a str r2, [r3, #84] ; 0x54
+ huart->RxXferSize = Size;
+ 8004180: 68fb ldr r3, [r7, #12]
+ 8004182: 88fa ldrh r2, [r7, #6]
+ 8004184: f8a3 2058 strh.w r2, [r3, #88] ; 0x58
+ huart->RxXferCount = Size;
+ 8004188: 68fb ldr r3, [r7, #12]
+ 800418a: 88fa ldrh r2, [r7, #6]
+ 800418c: f8a3 205a strh.w r2, [r3, #90] ; 0x5a
+ huart->RxISR = NULL;
+ 8004190: 68fb ldr r3, [r7, #12]
+ 8004192: 2200 movs r2, #0
+ 8004194: 661a str r2, [r3, #96] ; 0x60
+
+ /* Computation of UART mask to apply to RDR register */
+ UART_MASK_COMPUTATION(huart);
+ 8004196: 68fb ldr r3, [r7, #12]
+ 8004198: 689b ldr r3, [r3, #8]
+ 800419a: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
+ 800419e: d10e bne.n 80041be <HAL_UART_Receive_IT+0x82>
+ 80041a0: 68fb ldr r3, [r7, #12]
+ 80041a2: 691b ldr r3, [r3, #16]
+ 80041a4: 2b00 cmp r3, #0
+ 80041a6: d105 bne.n 80041b4 <HAL_UART_Receive_IT+0x78>
+ 80041a8: 68fb ldr r3, [r7, #12]
+ 80041aa: f240 12ff movw r2, #511 ; 0x1ff
+ 80041ae: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+ 80041b2: e02d b.n 8004210 <HAL_UART_Receive_IT+0xd4>
+ 80041b4: 68fb ldr r3, [r7, #12]
+ 80041b6: 22ff movs r2, #255 ; 0xff
+ 80041b8: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+ 80041bc: e028 b.n 8004210 <HAL_UART_Receive_IT+0xd4>
+ 80041be: 68fb ldr r3, [r7, #12]
+ 80041c0: 689b ldr r3, [r3, #8]
+ 80041c2: 2b00 cmp r3, #0
+ 80041c4: d10d bne.n 80041e2 <HAL_UART_Receive_IT+0xa6>
+ 80041c6: 68fb ldr r3, [r7, #12]
+ 80041c8: 691b ldr r3, [r3, #16]
+ 80041ca: 2b00 cmp r3, #0
+ 80041cc: d104 bne.n 80041d8 <HAL_UART_Receive_IT+0x9c>
+ 80041ce: 68fb ldr r3, [r7, #12]
+ 80041d0: 22ff movs r2, #255 ; 0xff
+ 80041d2: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+ 80041d6: e01b b.n 8004210 <HAL_UART_Receive_IT+0xd4>
+ 80041d8: 68fb ldr r3, [r7, #12]
+ 80041da: 227f movs r2, #127 ; 0x7f
+ 80041dc: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+ 80041e0: e016 b.n 8004210 <HAL_UART_Receive_IT+0xd4>
+ 80041e2: 68fb ldr r3, [r7, #12]
+ 80041e4: 689b ldr r3, [r3, #8]
+ 80041e6: f1b3 5f80 cmp.w r3, #268435456 ; 0x10000000
+ 80041ea: d10d bne.n 8004208 <HAL_UART_Receive_IT+0xcc>
+ 80041ec: 68fb ldr r3, [r7, #12]
+ 80041ee: 691b ldr r3, [r3, #16]
+ 80041f0: 2b00 cmp r3, #0
+ 80041f2: d104 bne.n 80041fe <HAL_UART_Receive_IT+0xc2>
+ 80041f4: 68fb ldr r3, [r7, #12]
+ 80041f6: 227f movs r2, #127 ; 0x7f
+ 80041f8: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+ 80041fc: e008 b.n 8004210 <HAL_UART_Receive_IT+0xd4>
+ 80041fe: 68fb ldr r3, [r7, #12]
+ 8004200: 223f movs r2, #63 ; 0x3f
+ 8004202: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+ 8004206: e003 b.n 8004210 <HAL_UART_Receive_IT+0xd4>
+ 8004208: 68fb ldr r3, [r7, #12]
+ 800420a: 2200 movs r2, #0
+ 800420c: f8a3 205c strh.w r2, [r3, #92] ; 0x5c
+
+ huart->ErrorCode = HAL_UART_ERROR_NONE;
+ 8004210: 68fb ldr r3, [r7, #12]
+ 8004212: 2200 movs r2, #0
+ 8004214: 67da str r2, [r3, #124] ; 0x7c
+ huart->RxState = HAL_UART_STATE_BUSY_RX;
+ 8004216: 68fb ldr r3, [r7, #12]
+ 8004218: 2222 movs r2, #34 ; 0x22
+ 800421a: 679a str r2, [r3, #120] ; 0x78
+
+ /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
+ SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
+ 800421c: 68fb ldr r3, [r7, #12]
+ 800421e: 681b ldr r3, [r3, #0]
+ 8004220: 689a ldr r2, [r3, #8]
+ 8004222: 68fb ldr r3, [r7, #12]
+ 8004224: 681b ldr r3, [r3, #0]
+ 8004226: f042 0201 orr.w r2, r2, #1
+ 800422a: 609a str r2, [r3, #8]
+
+ /* Set the Rx ISR function pointer according to the data word length */
+ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
+ 800422c: 68fb ldr r3, [r7, #12]
+ 800422e: 689b ldr r3, [r3, #8]
+ 8004230: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
+ 8004234: d107 bne.n 8004246 <HAL_UART_Receive_IT+0x10a>
+ 8004236: 68fb ldr r3, [r7, #12]
+ 8004238: 691b ldr r3, [r3, #16]
+ 800423a: 2b00 cmp r3, #0
+ 800423c: d103 bne.n 8004246 <HAL_UART_Receive_IT+0x10a>
+ {
+ huart->RxISR = UART_RxISR_16BIT;
+ 800423e: 68fb ldr r3, [r7, #12]
+ 8004240: 4a0d ldr r2, [pc, #52] ; (8004278 <HAL_UART_Receive_IT+0x13c>)
+ 8004242: 661a str r2, [r3, #96] ; 0x60
+ 8004244: e002 b.n 800424c <HAL_UART_Receive_IT+0x110>
+ }
+ else
+ {
+ huart->RxISR = UART_RxISR_8BIT;
+ 8004246: 68fb ldr r3, [r7, #12]
+ 8004248: 4a0c ldr r2, [pc, #48] ; (800427c <HAL_UART_Receive_IT+0x140>)
+ 800424a: 661a str r2, [r3, #96] ; 0x60
+ }
-08004770 <HAL_UART_IRQHandler>:
+ /* Process Unlocked */
+ __HAL_UNLOCK(huart);
+ 800424c: 68fb ldr r3, [r7, #12]
+ 800424e: 2200 movs r2, #0
+ 8004250: f883 2070 strb.w r2, [r3, #112] ; 0x70
+
+ /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
+ SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE);
+ 8004254: 68fb ldr r3, [r7, #12]
+ 8004256: 681b ldr r3, [r3, #0]
+ 8004258: 681a ldr r2, [r3, #0]
+ 800425a: 68fb ldr r3, [r7, #12]
+ 800425c: 681b ldr r3, [r3, #0]
+ 800425e: f442 7290 orr.w r2, r2, #288 ; 0x120
+ 8004262: 601a str r2, [r3, #0]
+
+ return HAL_OK;
+ 8004264: 2300 movs r3, #0
+ 8004266: e000 b.n 800426a <HAL_UART_Receive_IT+0x12e>
+ }
+ else
+ {
+ return HAL_BUSY;
+ 8004268: 2302 movs r3, #2
+ }
+}
+ 800426a: 4618 mov r0, r3
+ 800426c: 3714 adds r7, #20
+ 800426e: 46bd mov sp, r7
+ 8004270: f85d 7b04 ldr.w r7, [sp], #4
+ 8004274: 4770 bx lr
+ 8004276: bf00 nop
+ 8004278: 08004d9f .word 0x08004d9f
+ 800427c: 08004cf9 .word 0x08004cf9
+
+08004280 <HAL_UART_IRQHandler>:
* @brief Handle UART interrupt request.
* @param huart UART handle.
* @retval None
*/
void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
{
- 8004770: b580 push {r7, lr}
- 8004772: b088 sub sp, #32
- 8004774: af00 add r7, sp, #0
- 8004776: 6078 str r0, [r7, #4]
+ 8004280: b580 push {r7, lr}
+ 8004282: b088 sub sp, #32
+ 8004284: af00 add r7, sp, #0
+ 8004286: 6078 str r0, [r7, #4]
uint32_t isrflags = READ_REG(huart->Instance->ISR);
- 8004778: 687b ldr r3, [r7, #4]
- 800477a: 681b ldr r3, [r3, #0]
- 800477c: 69db ldr r3, [r3, #28]
- 800477e: 61fb str r3, [r7, #28]
+ 8004288: 687b ldr r3, [r7, #4]
+ 800428a: 681b ldr r3, [r3, #0]
+ 800428c: 69db ldr r3, [r3, #28]
+ 800428e: 61fb str r3, [r7, #28]
uint32_t cr1its = READ_REG(huart->Instance->CR1);
- 8004780: 687b ldr r3, [r7, #4]
- 8004782: 681b ldr r3, [r3, #0]
- 8004784: 681b ldr r3, [r3, #0]
- 8004786: 61bb str r3, [r7, #24]
+ 8004290: 687b ldr r3, [r7, #4]
+ 8004292: 681b ldr r3, [r3, #0]
+ 8004294: 681b ldr r3, [r3, #0]
+ 8004296: 61bb str r3, [r7, #24]
uint32_t cr3its = READ_REG(huart->Instance->CR3);
- 8004788: 687b ldr r3, [r7, #4]
- 800478a: 681b ldr r3, [r3, #0]
- 800478c: 689b ldr r3, [r3, #8]
- 800478e: 617b str r3, [r7, #20]
+ 8004298: 687b ldr r3, [r7, #4]
+ 800429a: 681b ldr r3, [r3, #0]
+ 800429c: 689b ldr r3, [r3, #8]
+ 800429e: 617b str r3, [r7, #20]
uint32_t errorflags;
uint32_t errorcode;
/* If no error occurs */
errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE));
- 8004790: 69fb ldr r3, [r7, #28]
- 8004792: f003 030f and.w r3, r3, #15
- 8004796: 613b str r3, [r7, #16]
+ 80042a0: 69fb ldr r3, [r7, #28]
+ 80042a2: f003 030f and.w r3, r3, #15
+ 80042a6: 613b str r3, [r7, #16]
if (errorflags == 0U)
- 8004798: 693b ldr r3, [r7, #16]
- 800479a: 2b00 cmp r3, #0
- 800479c: d113 bne.n 80047c6 <HAL_UART_IRQHandler+0x56>
+ 80042a8: 693b ldr r3, [r7, #16]
+ 80042aa: 2b00 cmp r3, #0
+ 80042ac: d113 bne.n 80042d6 <HAL_UART_IRQHandler+0x56>
{
/* UART in mode Receiver ---------------------------------------------------*/
if (((isrflags & USART_ISR_RXNE) != 0U)
- 800479e: 69fb ldr r3, [r7, #28]
- 80047a0: f003 0320 and.w r3, r3, #32
- 80047a4: 2b00 cmp r3, #0
- 80047a6: d00e beq.n 80047c6 <HAL_UART_IRQHandler+0x56>
+ 80042ae: 69fb ldr r3, [r7, #28]
+ 80042b0: f003 0320 and.w r3, r3, #32
+ 80042b4: 2b00 cmp r3, #0
+ 80042b6: d00e beq.n 80042d6 <HAL_UART_IRQHandler+0x56>
&& ((cr1its & USART_CR1_RXNEIE) != 0U))
- 80047a8: 69bb ldr r3, [r7, #24]
- 80047aa: f003 0320 and.w r3, r3, #32
- 80047ae: 2b00 cmp r3, #0
- 80047b0: d009 beq.n 80047c6 <HAL_UART_IRQHandler+0x56>
+ 80042b8: 69bb ldr r3, [r7, #24]
+ 80042ba: f003 0320 and.w r3, r3, #32
+ 80042be: 2b00 cmp r3, #0
+ 80042c0: d009 beq.n 80042d6 <HAL_UART_IRQHandler+0x56>
{
if (huart->RxISR != NULL)
- 80047b2: 687b ldr r3, [r7, #4]
- 80047b4: 6e1b ldr r3, [r3, #96] ; 0x60
- 80047b6: 2b00 cmp r3, #0
- 80047b8: f000 80eb beq.w 8004992 <HAL_UART_IRQHandler+0x222>
+ 80042c2: 687b ldr r3, [r7, #4]
+ 80042c4: 6e1b ldr r3, [r3, #96] ; 0x60
+ 80042c6: 2b00 cmp r3, #0
+ 80042c8: f000 80eb beq.w 80044a2 <HAL_UART_IRQHandler+0x222>
{
huart->RxISR(huart);
- 80047bc: 687b ldr r3, [r7, #4]
- 80047be: 6e1b ldr r3, [r3, #96] ; 0x60
- 80047c0: 6878 ldr r0, [r7, #4]
- 80047c2: 4798 blx r3
+ 80042cc: 687b ldr r3, [r7, #4]
+ 80042ce: 6e1b ldr r3, [r3, #96] ; 0x60
+ 80042d0: 6878 ldr r0, [r7, #4]
+ 80042d2: 4798 blx r3
}
return;
- 80047c4: e0e5 b.n 8004992 <HAL_UART_IRQHandler+0x222>
+ 80042d4: e0e5 b.n 80044a2 <HAL_UART_IRQHandler+0x222>
}
}
/* If some errors occur */
if ((errorflags != 0U)
- 80047c6: 693b ldr r3, [r7, #16]
- 80047c8: 2b00 cmp r3, #0
- 80047ca: f000 80c0 beq.w 800494e <HAL_UART_IRQHandler+0x1de>
+ 80042d6: 693b ldr r3, [r7, #16]
+ 80042d8: 2b00 cmp r3, #0
+ 80042da: f000 80c0 beq.w 800445e <HAL_UART_IRQHandler+0x1de>
&& (((cr3its & USART_CR3_EIE) != 0U)
- 80047ce: 697b ldr r3, [r7, #20]
- 80047d0: f003 0301 and.w r3, r3, #1
- 80047d4: 2b00 cmp r3, #0
- 80047d6: d105 bne.n 80047e4 <HAL_UART_IRQHandler+0x74>
+ 80042de: 697b ldr r3, [r7, #20]
+ 80042e0: f003 0301 and.w r3, r3, #1
+ 80042e4: 2b00 cmp r3, #0
+ 80042e6: d105 bne.n 80042f4 <HAL_UART_IRQHandler+0x74>
|| ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != 0U)))
- 80047d8: 69bb ldr r3, [r7, #24]
- 80047da: f403 7390 and.w r3, r3, #288 ; 0x120
- 80047de: 2b00 cmp r3, #0
- 80047e0: f000 80b5 beq.w 800494e <HAL_UART_IRQHandler+0x1de>
+ 80042e8: 69bb ldr r3, [r7, #24]
+ 80042ea: f403 7390 and.w r3, r3, #288 ; 0x120
+ 80042ee: 2b00 cmp r3, #0
+ 80042f0: f000 80b5 beq.w 800445e <HAL_UART_IRQHandler+0x1de>
{
/* UART parity error interrupt occurred -------------------------------------*/
if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
- 80047e4: 69fb ldr r3, [r7, #28]
- 80047e6: f003 0301 and.w r3, r3, #1
- 80047ea: 2b00 cmp r3, #0
- 80047ec: d00e beq.n 800480c <HAL_UART_IRQHandler+0x9c>
- 80047ee: 69bb ldr r3, [r7, #24]
- 80047f0: f403 7380 and.w r3, r3, #256 ; 0x100
- 80047f4: 2b00 cmp r3, #0
- 80047f6: d009 beq.n 800480c <HAL_UART_IRQHandler+0x9c>
+ 80042f4: 69fb ldr r3, [r7, #28]
+ 80042f6: f003 0301 and.w r3, r3, #1
+ 80042fa: 2b00 cmp r3, #0
+ 80042fc: d00e beq.n 800431c <HAL_UART_IRQHandler+0x9c>
+ 80042fe: 69bb ldr r3, [r7, #24]
+ 8004300: f403 7380 and.w r3, r3, #256 ; 0x100
+ 8004304: 2b00 cmp r3, #0
+ 8004306: d009 beq.n 800431c <HAL_UART_IRQHandler+0x9c>
{
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
- 80047f8: 687b ldr r3, [r7, #4]
- 80047fa: 681b ldr r3, [r3, #0]
- 80047fc: 2201 movs r2, #1
- 80047fe: 621a str r2, [r3, #32]
+ 8004308: 687b ldr r3, [r7, #4]
+ 800430a: 681b ldr r3, [r3, #0]
+ 800430c: 2201 movs r2, #1
+ 800430e: 621a str r2, [r3, #32]
huart->ErrorCode |= HAL_UART_ERROR_PE;
- 8004800: 687b ldr r3, [r7, #4]
- 8004802: 6fdb ldr r3, [r3, #124] ; 0x7c
- 8004804: f043 0201 orr.w r2, r3, #1
- 8004808: 687b ldr r3, [r7, #4]
- 800480a: 67da str r2, [r3, #124] ; 0x7c
+ 8004310: 687b ldr r3, [r7, #4]
+ 8004312: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 8004314: f043 0201 orr.w r2, r3, #1
+ 8004318: 687b ldr r3, [r7, #4]
+ 800431a: 67da str r2, [r3, #124] ; 0x7c
}
/* UART frame error interrupt occurred --------------------------------------*/
if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
- 800480c: 69fb ldr r3, [r7, #28]
- 800480e: f003 0302 and.w r3, r3, #2
- 8004812: 2b00 cmp r3, #0
- 8004814: d00e beq.n 8004834 <HAL_UART_IRQHandler+0xc4>
- 8004816: 697b ldr r3, [r7, #20]
- 8004818: f003 0301 and.w r3, r3, #1
- 800481c: 2b00 cmp r3, #0
- 800481e: d009 beq.n 8004834 <HAL_UART_IRQHandler+0xc4>
+ 800431c: 69fb ldr r3, [r7, #28]
+ 800431e: f003 0302 and.w r3, r3, #2
+ 8004322: 2b00 cmp r3, #0
+ 8004324: d00e beq.n 8004344 <HAL_UART_IRQHandler+0xc4>
+ 8004326: 697b ldr r3, [r7, #20]
+ 8004328: f003 0301 and.w r3, r3, #1
+ 800432c: 2b00 cmp r3, #0
+ 800432e: d009 beq.n 8004344 <HAL_UART_IRQHandler+0xc4>
{
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
- 8004820: 687b ldr r3, [r7, #4]
- 8004822: 681b ldr r3, [r3, #0]
- 8004824: 2202 movs r2, #2
- 8004826: 621a str r2, [r3, #32]
+ 8004330: 687b ldr r3, [r7, #4]
+ 8004332: 681b ldr r3, [r3, #0]
+ 8004334: 2202 movs r2, #2
+ 8004336: 621a str r2, [r3, #32]
huart->ErrorCode |= HAL_UART_ERROR_FE;
- 8004828: 687b ldr r3, [r7, #4]
- 800482a: 6fdb ldr r3, [r3, #124] ; 0x7c
- 800482c: f043 0204 orr.w r2, r3, #4
- 8004830: 687b ldr r3, [r7, #4]
- 8004832: 67da str r2, [r3, #124] ; 0x7c
+ 8004338: 687b ldr r3, [r7, #4]
+ 800433a: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 800433c: f043 0204 orr.w r2, r3, #4
+ 8004340: 687b ldr r3, [r7, #4]
+ 8004342: 67da str r2, [r3, #124] ; 0x7c
}
/* UART noise error interrupt occurred --------------------------------------*/
if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
- 8004834: 69fb ldr r3, [r7, #28]
- 8004836: f003 0304 and.w r3, r3, #4
- 800483a: 2b00 cmp r3, #0
- 800483c: d00e beq.n 800485c <HAL_UART_IRQHandler+0xec>
- 800483e: 697b ldr r3, [r7, #20]
- 8004840: f003 0301 and.w r3, r3, #1
- 8004844: 2b00 cmp r3, #0
- 8004846: d009 beq.n 800485c <HAL_UART_IRQHandler+0xec>
+ 8004344: 69fb ldr r3, [r7, #28]
+ 8004346: f003 0304 and.w r3, r3, #4
+ 800434a: 2b00 cmp r3, #0
+ 800434c: d00e beq.n 800436c <HAL_UART_IRQHandler+0xec>
+ 800434e: 697b ldr r3, [r7, #20]
+ 8004350: f003 0301 and.w r3, r3, #1
+ 8004354: 2b00 cmp r3, #0
+ 8004356: d009 beq.n 800436c <HAL_UART_IRQHandler+0xec>
{
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
- 8004848: 687b ldr r3, [r7, #4]
- 800484a: 681b ldr r3, [r3, #0]
- 800484c: 2204 movs r2, #4
- 800484e: 621a str r2, [r3, #32]
+ 8004358: 687b ldr r3, [r7, #4]
+ 800435a: 681b ldr r3, [r3, #0]
+ 800435c: 2204 movs r2, #4
+ 800435e: 621a str r2, [r3, #32]
huart->ErrorCode |= HAL_UART_ERROR_NE;
- 8004850: 687b ldr r3, [r7, #4]
- 8004852: 6fdb ldr r3, [r3, #124] ; 0x7c
- 8004854: f043 0202 orr.w r2, r3, #2
- 8004858: 687b ldr r3, [r7, #4]
- 800485a: 67da str r2, [r3, #124] ; 0x7c
+ 8004360: 687b ldr r3, [r7, #4]
+ 8004362: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 8004364: f043 0202 orr.w r2, r3, #2
+ 8004368: 687b ldr r3, [r7, #4]
+ 800436a: 67da str r2, [r3, #124] ; 0x7c
}
/* UART Over-Run interrupt occurred -----------------------------------------*/
if (((isrflags & USART_ISR_ORE) != 0U)
- 800485c: 69fb ldr r3, [r7, #28]
- 800485e: f003 0308 and.w r3, r3, #8
- 8004862: 2b00 cmp r3, #0
- 8004864: d013 beq.n 800488e <HAL_UART_IRQHandler+0x11e>
+ 800436c: 69fb ldr r3, [r7, #28]
+ 800436e: f003 0308 and.w r3, r3, #8
+ 8004372: 2b00 cmp r3, #0
+ 8004374: d013 beq.n 800439e <HAL_UART_IRQHandler+0x11e>
&& (((cr1its & USART_CR1_RXNEIE) != 0U) ||
- 8004866: 69bb ldr r3, [r7, #24]
- 8004868: f003 0320 and.w r3, r3, #32
- 800486c: 2b00 cmp r3, #0
- 800486e: d104 bne.n 800487a <HAL_UART_IRQHandler+0x10a>
+ 8004376: 69bb ldr r3, [r7, #24]
+ 8004378: f003 0320 and.w r3, r3, #32
+ 800437c: 2b00 cmp r3, #0
+ 800437e: d104 bne.n 800438a <HAL_UART_IRQHandler+0x10a>
((cr3its & USART_CR3_EIE) != 0U)))
- 8004870: 697b ldr r3, [r7, #20]
- 8004872: f003 0301 and.w r3, r3, #1
+ 8004380: 697b ldr r3, [r7, #20]
+ 8004382: f003 0301 and.w r3, r3, #1
&& (((cr1its & USART_CR1_RXNEIE) != 0U) ||
- 8004876: 2b00 cmp r3, #0
- 8004878: d009 beq.n 800488e <HAL_UART_IRQHandler+0x11e>
+ 8004386: 2b00 cmp r3, #0
+ 8004388: d009 beq.n 800439e <HAL_UART_IRQHandler+0x11e>
{
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
- 800487a: 687b ldr r3, [r7, #4]
- 800487c: 681b ldr r3, [r3, #0]
- 800487e: 2208 movs r2, #8
- 8004880: 621a str r2, [r3, #32]
+ 800438a: 687b ldr r3, [r7, #4]
+ 800438c: 681b ldr r3, [r3, #0]
+ 800438e: 2208 movs r2, #8
+ 8004390: 621a str r2, [r3, #32]
huart->ErrorCode |= HAL_UART_ERROR_ORE;
- 8004882: 687b ldr r3, [r7, #4]
- 8004884: 6fdb ldr r3, [r3, #124] ; 0x7c
- 8004886: f043 0208 orr.w r2, r3, #8
- 800488a: 687b ldr r3, [r7, #4]
- 800488c: 67da str r2, [r3, #124] ; 0x7c
+ 8004392: 687b ldr r3, [r7, #4]
+ 8004394: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 8004396: f043 0208 orr.w r2, r3, #8
+ 800439a: 687b ldr r3, [r7, #4]
+ 800439c: 67da str r2, [r3, #124] ; 0x7c
}
/* Call UART Error Call back function if need be --------------------------*/
if (huart->ErrorCode != HAL_UART_ERROR_NONE)
- 800488e: 687b ldr r3, [r7, #4]
- 8004890: 6fdb ldr r3, [r3, #124] ; 0x7c
- 8004892: 2b00 cmp r3, #0
- 8004894: d07f beq.n 8004996 <HAL_UART_IRQHandler+0x226>
+ 800439e: 687b ldr r3, [r7, #4]
+ 80043a0: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 80043a2: 2b00 cmp r3, #0
+ 80043a4: d07f beq.n 80044a6 <HAL_UART_IRQHandler+0x226>
{
/* UART in mode Receiver ---------------------------------------------------*/
if (((isrflags & USART_ISR_RXNE) != 0U)
- 8004896: 69fb ldr r3, [r7, #28]
- 8004898: f003 0320 and.w r3, r3, #32
- 800489c: 2b00 cmp r3, #0
- 800489e: d00c beq.n 80048ba <HAL_UART_IRQHandler+0x14a>
+ 80043a6: 69fb ldr r3, [r7, #28]
+ 80043a8: f003 0320 and.w r3, r3, #32
+ 80043ac: 2b00 cmp r3, #0
+ 80043ae: d00c beq.n 80043ca <HAL_UART_IRQHandler+0x14a>
&& ((cr1its & USART_CR1_RXNEIE) != 0U))
- 80048a0: 69bb ldr r3, [r7, #24]
- 80048a2: f003 0320 and.w r3, r3, #32
- 80048a6: 2b00 cmp r3, #0
- 80048a8: d007 beq.n 80048ba <HAL_UART_IRQHandler+0x14a>
+ 80043b0: 69bb ldr r3, [r7, #24]
+ 80043b2: f003 0320 and.w r3, r3, #32
+ 80043b6: 2b00 cmp r3, #0
+ 80043b8: d007 beq.n 80043ca <HAL_UART_IRQHandler+0x14a>
{
if (huart->RxISR != NULL)
- 80048aa: 687b ldr r3, [r7, #4]
- 80048ac: 6e1b ldr r3, [r3, #96] ; 0x60
- 80048ae: 2b00 cmp r3, #0
- 80048b0: d003 beq.n 80048ba <HAL_UART_IRQHandler+0x14a>
+ 80043ba: 687b ldr r3, [r7, #4]
+ 80043bc: 6e1b ldr r3, [r3, #96] ; 0x60
+ 80043be: 2b00 cmp r3, #0
+ 80043c0: d003 beq.n 80043ca <HAL_UART_IRQHandler+0x14a>
{
huart->RxISR(huart);
- 80048b2: 687b ldr r3, [r7, #4]
- 80048b4: 6e1b ldr r3, [r3, #96] ; 0x60
- 80048b6: 6878 ldr r0, [r7, #4]
- 80048b8: 4798 blx r3
+ 80043c2: 687b ldr r3, [r7, #4]
+ 80043c4: 6e1b ldr r3, [r3, #96] ; 0x60
+ 80043c6: 6878 ldr r0, [r7, #4]
+ 80043c8: 4798 blx r3
}
}
/* If Overrun error occurs, or if any error occurs in DMA mode reception,
consider error as blocking */
errorcode = huart->ErrorCode;
- 80048ba: 687b ldr r3, [r7, #4]
- 80048bc: 6fdb ldr r3, [r3, #124] ; 0x7c
- 80048be: 60fb str r3, [r7, #12]
+ 80043ca: 687b ldr r3, [r7, #4]
+ 80043cc: 6fdb ldr r3, [r3, #124] ; 0x7c
+ 80043ce: 60fb str r3, [r7, #12]
if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
- 80048c0: 687b ldr r3, [r7, #4]
- 80048c2: 681b ldr r3, [r3, #0]
- 80048c4: 689b ldr r3, [r3, #8]
- 80048c6: f003 0340 and.w r3, r3, #64 ; 0x40
- 80048ca: 2b40 cmp r3, #64 ; 0x40
- 80048cc: d004 beq.n 80048d8 <HAL_UART_IRQHandler+0x168>
+ 80043d0: 687b ldr r3, [r7, #4]
+ 80043d2: 681b ldr r3, [r3, #0]
+ 80043d4: 689b ldr r3, [r3, #8]
+ 80043d6: f003 0340 and.w r3, r3, #64 ; 0x40
+ 80043da: 2b40 cmp r3, #64 ; 0x40
+ 80043dc: d004 beq.n 80043e8 <HAL_UART_IRQHandler+0x168>
((errorcode & HAL_UART_ERROR_ORE) != 0U))
- 80048ce: 68fb ldr r3, [r7, #12]
- 80048d0: f003 0308 and.w r3, r3, #8
+ 80043de: 68fb ldr r3, [r7, #12]
+ 80043e0: f003 0308 and.w r3, r3, #8
if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
- 80048d4: 2b00 cmp r3, #0
- 80048d6: d031 beq.n 800493c <HAL_UART_IRQHandler+0x1cc>
+ 80043e4: 2b00 cmp r3, #0
+ 80043e6: d031 beq.n 800444c <HAL_UART_IRQHandler+0x1cc>
{
/* Blocking error : transfer is aborted
Set the UART state ready to be able to start again the process,
Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
UART_EndRxTransfer(huart);
- 80048d8: 6878 ldr r0, [r7, #4]
- 80048da: f000 fc36 bl 800514a <UART_EndRxTransfer>
+ 80043e8: 6878 ldr r0, [r7, #4]
+ 80043ea: f000 fc36 bl 8004c5a <UART_EndRxTransfer>
/* Disable the UART DMA Rx request if enabled */
if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
- 80048de: 687b ldr r3, [r7, #4]
- 80048e0: 681b ldr r3, [r3, #0]
- 80048e2: 689b ldr r3, [r3, #8]
- 80048e4: f003 0340 and.w r3, r3, #64 ; 0x40
- 80048e8: 2b40 cmp r3, #64 ; 0x40
- 80048ea: d123 bne.n 8004934 <HAL_UART_IRQHandler+0x1c4>
+ 80043ee: 687b ldr r3, [r7, #4]
+ 80043f0: 681b ldr r3, [r3, #0]
+ 80043f2: 689b ldr r3, [r3, #8]
+ 80043f4: f003 0340 and.w r3, r3, #64 ; 0x40
+ 80043f8: 2b40 cmp r3, #64 ; 0x40
+ 80043fa: d123 bne.n 8004444 <HAL_UART_IRQHandler+0x1c4>
{
CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
- 80048ec: 687b ldr r3, [r7, #4]
- 80048ee: 681b ldr r3, [r3, #0]
- 80048f0: 689a ldr r2, [r3, #8]
- 80048f2: 687b ldr r3, [r7, #4]
- 80048f4: 681b ldr r3, [r3, #0]
- 80048f6: f022 0240 bic.w r2, r2, #64 ; 0x40
- 80048fa: 609a str r2, [r3, #8]
+ 80043fc: 687b ldr r3, [r7, #4]
+ 80043fe: 681b ldr r3, [r3, #0]
+ 8004400: 689a ldr r2, [r3, #8]
+ 8004402: 687b ldr r3, [r7, #4]
+ 8004404: 681b ldr r3, [r3, #0]
+ 8004406: f022 0240 bic.w r2, r2, #64 ; 0x40
+ 800440a: 609a str r2, [r3, #8]
/* Abort the UART DMA Rx channel */
if (huart->hdmarx != NULL)
- 80048fc: 687b ldr r3, [r7, #4]
- 80048fe: 6edb ldr r3, [r3, #108] ; 0x6c
- 8004900: 2b00 cmp r3, #0
- 8004902: d013 beq.n 800492c <HAL_UART_IRQHandler+0x1bc>
+ 800440c: 687b ldr r3, [r7, #4]
+ 800440e: 6edb ldr r3, [r3, #108] ; 0x6c
+ 8004410: 2b00 cmp r3, #0
+ 8004412: d013 beq.n 800443c <HAL_UART_IRQHandler+0x1bc>
{
/* Set the UART DMA Abort callback :
will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
- 8004904: 687b ldr r3, [r7, #4]
- 8004906: 6edb ldr r3, [r3, #108] ; 0x6c
- 8004908: 4a26 ldr r2, [pc, #152] ; (80049a4 <HAL_UART_IRQHandler+0x234>)
- 800490a: 651a str r2, [r3, #80] ; 0x50
+ 8004414: 687b ldr r3, [r7, #4]
+ 8004416: 6edb ldr r3, [r3, #108] ; 0x6c
+ 8004418: 4a26 ldr r2, [pc, #152] ; (80044b4 <HAL_UART_IRQHandler+0x234>)
+ 800441a: 651a str r2, [r3, #80] ; 0x50
/* Abort DMA RX */
if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
- 800490c: 687b ldr r3, [r7, #4]
- 800490e: 6edb ldr r3, [r3, #108] ; 0x6c
- 8004910: 4618 mov r0, r3
- 8004912: f7fd f9b3 bl 8001c7c <HAL_DMA_Abort_IT>
- 8004916: 4603 mov r3, r0
- 8004918: 2b00 cmp r3, #0
- 800491a: d016 beq.n 800494a <HAL_UART_IRQHandler+0x1da>
+ 800441c: 687b ldr r3, [r7, #4]
+ 800441e: 6edb ldr r3, [r3, #108] ; 0x6c
+ 8004420: 4618 mov r0, r3
+ 8004422: f7fd fb4a bl 8001aba <HAL_DMA_Abort_IT>
+ 8004426: 4603 mov r3, r0
+ 8004428: 2b00 cmp r3, #0
+ 800442a: d016 beq.n 800445a <HAL_UART_IRQHandler+0x1da>
{
/* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
huart->hdmarx->XferAbortCallback(huart->hdmarx);
- 800491c: 687b ldr r3, [r7, #4]
- 800491e: 6edb ldr r3, [r3, #108] ; 0x6c
- 8004920: 6d1b ldr r3, [r3, #80] ; 0x50
- 8004922: 687a ldr r2, [r7, #4]
- 8004924: 6ed2 ldr r2, [r2, #108] ; 0x6c
- 8004926: 4610 mov r0, r2
- 8004928: 4798 blx r3
+ 800442c: 687b ldr r3, [r7, #4]
+ 800442e: 6edb ldr r3, [r3, #108] ; 0x6c
+ 8004430: 6d1b ldr r3, [r3, #80] ; 0x50
+ 8004432: 687a ldr r2, [r7, #4]
+ 8004434: 6ed2 ldr r2, [r2, #108] ; 0x6c
+ 8004436: 4610 mov r0, r2
+ 8004438: 4798 blx r3
if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
- 800492a: e00e b.n 800494a <HAL_UART_IRQHandler+0x1da>
+ 800443a: e00e b.n 800445a <HAL_UART_IRQHandler+0x1da>
#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
/*Call registered error callback*/
huart->ErrorCallback(huart);
#else
/*Call legacy weak error callback*/
HAL_UART_ErrorCallback(huart);
- 800492c: 6878 ldr r0, [r7, #4]
- 800492e: f000 f845 bl 80049bc <HAL_UART_ErrorCallback>
+ 800443c: 6878 ldr r0, [r7, #4]
+ 800443e: f000 f845 bl 80044cc <HAL_UART_ErrorCallback>
if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
- 8004932: e00a b.n 800494a <HAL_UART_IRQHandler+0x1da>
+ 8004442: e00a b.n 800445a <HAL_UART_IRQHandler+0x1da>
#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
/*Call registered error callback*/
huart->ErrorCallback(huart);
#else
/*Call legacy weak error callback*/
HAL_UART_ErrorCallback(huart);
- 8004934: 6878 ldr r0, [r7, #4]
- 8004936: f000 f841 bl 80049bc <HAL_UART_ErrorCallback>
+ 8004444: 6878 ldr r0, [r7, #4]
+ 8004446: f000 f841 bl 80044cc <HAL_UART_ErrorCallback>
if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
- 800493a: e006 b.n 800494a <HAL_UART_IRQHandler+0x1da>
+ 800444a: e006 b.n 800445a <HAL_UART_IRQHandler+0x1da>
#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
/*Call registered error callback*/
huart->ErrorCallback(huart);
#else
/*Call legacy weak error callback*/
HAL_UART_ErrorCallback(huart);
- 800493c: 6878 ldr r0, [r7, #4]
- 800493e: f000 f83d bl 80049bc <HAL_UART_ErrorCallback>
+ 800444c: 6878 ldr r0, [r7, #4]
+ 800444e: f000 f83d bl 80044cc <HAL_UART_ErrorCallback>
#endif /* USE_HAL_UART_REGISTER_CALLBACKS */
huart->ErrorCode = HAL_UART_ERROR_NONE;
- 8004942: 687b ldr r3, [r7, #4]
- 8004944: 2200 movs r2, #0
- 8004946: 67da str r2, [r3, #124] ; 0x7c
+ 8004452: 687b ldr r3, [r7, #4]
+ 8004454: 2200 movs r2, #0
+ 8004456: 67da str r2, [r3, #124] ; 0x7c
}
}
return;
- 8004948: e025 b.n 8004996 <HAL_UART_IRQHandler+0x226>
+ 8004458: e025 b.n 80044a6 <HAL_UART_IRQHandler+0x226>
if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
- 800494a: bf00 nop
+ 800445a: bf00 nop
return;
- 800494c: e023 b.n 8004996 <HAL_UART_IRQHandler+0x226>
+ 800445c: e023 b.n 80044a6 <HAL_UART_IRQHandler+0x226>
} /* End if some error occurs */
/* UART in mode Transmitter ------------------------------------------------*/
if (((isrflags & USART_ISR_TXE) != 0U)
- 800494e: 69fb ldr r3, [r7, #28]
- 8004950: f003 0380 and.w r3, r3, #128 ; 0x80
- 8004954: 2b00 cmp r3, #0
- 8004956: d00d beq.n 8004974 <HAL_UART_IRQHandler+0x204>
+ 800445e: 69fb ldr r3, [r7, #28]
+ 8004460: f003 0380 and.w r3, r3, #128 ; 0x80
+ 8004464: 2b00 cmp r3, #0
+ 8004466: d00d beq.n 8004484 <HAL_UART_IRQHandler+0x204>
&& ((cr1its & USART_CR1_TXEIE) != 0U))
- 8004958: 69bb ldr r3, [r7, #24]
- 800495a: f003 0380 and.w r3, r3, #128 ; 0x80
- 800495e: 2b00 cmp r3, #0
- 8004960: d008 beq.n 8004974 <HAL_UART_IRQHandler+0x204>
+ 8004468: 69bb ldr r3, [r7, #24]
+ 800446a: f003 0380 and.w r3, r3, #128 ; 0x80
+ 800446e: 2b00 cmp r3, #0
+ 8004470: d008 beq.n 8004484 <HAL_UART_IRQHandler+0x204>
{
if (huart->TxISR != NULL)
- 8004962: 687b ldr r3, [r7, #4]
- 8004964: 6e5b ldr r3, [r3, #100] ; 0x64
- 8004966: 2b00 cmp r3, #0
- 8004968: d017 beq.n 800499a <HAL_UART_IRQHandler+0x22a>
+ 8004472: 687b ldr r3, [r7, #4]
+ 8004474: 6e5b ldr r3, [r3, #100] ; 0x64
+ 8004476: 2b00 cmp r3, #0
+ 8004478: d017 beq.n 80044aa <HAL_UART_IRQHandler+0x22a>
{
huart->TxISR(huart);
- 800496a: 687b ldr r3, [r7, #4]
- 800496c: 6e5b ldr r3, [r3, #100] ; 0x64
- 800496e: 6878 ldr r0, [r7, #4]
- 8004970: 4798 blx r3
+ 800447a: 687b ldr r3, [r7, #4]
+ 800447c: 6e5b ldr r3, [r3, #100] ; 0x64
+ 800447e: 6878 ldr r0, [r7, #4]
+ 8004480: 4798 blx r3
}
return;
- 8004972: e012 b.n 800499a <HAL_UART_IRQHandler+0x22a>
+ 8004482: e012 b.n 80044aa <HAL_UART_IRQHandler+0x22a>
}
/* UART in mode Transmitter (transmission end) -----------------------------*/
if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
- 8004974: 69fb ldr r3, [r7, #28]
- 8004976: f003 0340 and.w r3, r3, #64 ; 0x40
- 800497a: 2b00 cmp r3, #0
- 800497c: d00e beq.n 800499c <HAL_UART_IRQHandler+0x22c>
- 800497e: 69bb ldr r3, [r7, #24]
- 8004980: f003 0340 and.w r3, r3, #64 ; 0x40
- 8004984: 2b00 cmp r3, #0
- 8004986: d009 beq.n 800499c <HAL_UART_IRQHandler+0x22c>
+ 8004484: 69fb ldr r3, [r7, #28]
+ 8004486: f003 0340 and.w r3, r3, #64 ; 0x40
+ 800448a: 2b00 cmp r3, #0
+ 800448c: d00e beq.n 80044ac <HAL_UART_IRQHandler+0x22c>
+ 800448e: 69bb ldr r3, [r7, #24]
+ 8004490: f003 0340 and.w r3, r3, #64 ; 0x40
+ 8004494: 2b00 cmp r3, #0
+ 8004496: d009 beq.n 80044ac <HAL_UART_IRQHandler+0x22c>
{
UART_EndTransmit_IT(huart);
- 8004988: 6878 ldr r0, [r7, #4]
- 800498a: f000 fc14 bl 80051b6 <UART_EndTransmit_IT>
+ 8004498: 6878 ldr r0, [r7, #4]
+ 800449a: f000 fc14 bl 8004cc6 <UART_EndTransmit_IT>
return;
- 800498e: bf00 nop
- 8004990: e004 b.n 800499c <HAL_UART_IRQHandler+0x22c>
+ 800449e: bf00 nop
+ 80044a0: e004 b.n 80044ac <HAL_UART_IRQHandler+0x22c>
return;
- 8004992: bf00 nop
- 8004994: e002 b.n 800499c <HAL_UART_IRQHandler+0x22c>
+ 80044a2: bf00 nop
+ 80044a4: e002 b.n 80044ac <HAL_UART_IRQHandler+0x22c>
return;
- 8004996: bf00 nop
- 8004998: e000 b.n 800499c <HAL_UART_IRQHandler+0x22c>
+ 80044a6: bf00 nop
+ 80044a8: e000 b.n 80044ac <HAL_UART_IRQHandler+0x22c>
return;
- 800499a: bf00 nop
+ 80044aa: bf00 nop
}
}
- 800499c: 3720 adds r7, #32
- 800499e: 46bd mov sp, r7
- 80049a0: bd80 pop {r7, pc}
- 80049a2: bf00 nop
- 80049a4: 0800518b .word 0x0800518b
+ 80044ac: 3720 adds r7, #32
+ 80044ae: 46bd mov sp, r7
+ 80044b0: bd80 pop {r7, pc}
+ 80044b2: bf00 nop
+ 80044b4: 08004c9b .word 0x08004c9b
-080049a8 <HAL_UART_TxCpltCallback>:
+080044b8 <HAL_UART_TxCpltCallback>:
* @brief Tx Transfer completed callback.
* @param huart UART handle.
* @retval None
*/
__weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
{
- 80049a8: b480 push {r7}
- 80049aa: b083 sub sp, #12
- 80049ac: af00 add r7, sp, #0
- 80049ae: 6078 str r0, [r7, #4]
+ 80044b8: b480 push {r7}
+ 80044ba: b083 sub sp, #12
+ 80044bc: af00 add r7, sp, #0
+ 80044be: 6078 str r0, [r7, #4]
UNUSED(huart);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_UART_TxCpltCallback can be implemented in the user file.
*/
}
- 80049b0: bf00 nop
- 80049b2: 370c adds r7, #12
- 80049b4: 46bd mov sp, r7
- 80049b6: f85d 7b04 ldr.w r7, [sp], #4
- 80049ba: 4770 bx lr
+ 80044c0: bf00 nop
+ 80044c2: 370c adds r7, #12
+ 80044c4: 46bd mov sp, r7
+ 80044c6: f85d 7b04 ldr.w r7, [sp], #4
+ 80044ca: 4770 bx lr
-080049bc <HAL_UART_ErrorCallback>:
+080044cc <HAL_UART_ErrorCallback>:
* @brief UART error callback.
* @param huart UART handle.
* @retval None
*/
__weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
{
- 80049bc: b480 push {r7}
- 80049be: b083 sub sp, #12
- 80049c0: af00 add r7, sp, #0
- 80049c2: 6078 str r0, [r7, #4]
+ 80044cc: b480 push {r7}
+ 80044ce: b083 sub sp, #12
+ 80044d0: af00 add r7, sp, #0
+ 80044d2: 6078 str r0, [r7, #4]
UNUSED(huart);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_UART_ErrorCallback can be implemented in the user file.
*/
}
- 80049c4: bf00 nop
- 80049c6: 370c adds r7, #12
- 80049c8: 46bd mov sp, r7
- 80049ca: f85d 7b04 ldr.w r7, [sp], #4
- 80049ce: 4770 bx lr
+ 80044d4: bf00 nop
+ 80044d6: 370c adds r7, #12
+ 80044d8: 46bd mov sp, r7
+ 80044da: f85d 7b04 ldr.w r7, [sp], #4
+ 80044de: 4770 bx lr
-080049d0 <UART_SetConfig>:
+080044e0 <UART_SetConfig>:
* @brief Configure the UART peripheral.
* @param huart UART handle.
* @retval HAL status
*/
HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
{
- 80049d0: b580 push {r7, lr}
- 80049d2: b088 sub sp, #32
- 80049d4: af00 add r7, sp, #0
- 80049d6: 6078 str r0, [r7, #4]
+ 80044e0: b580 push {r7, lr}
+ 80044e2: b088 sub sp, #32
+ 80044e4: af00 add r7, sp, #0
+ 80044e6: 6078 str r0, [r7, #4]
uint32_t tmpreg;
uint16_t brrtemp;
UART_ClockSourceTypeDef clocksource;
uint32_t usartdiv = 0x00000000U;
- 80049d8: 2300 movs r3, #0
- 80049da: 61bb str r3, [r7, #24]
+ 80044e8: 2300 movs r3, #0
+ 80044ea: 61bb str r3, [r7, #24]
HAL_StatusTypeDef ret = HAL_OK;
- 80049dc: 2300 movs r3, #0
- 80049de: 75fb strb r3, [r7, #23]
+ 80044ec: 2300 movs r3, #0
+ 80044ee: 75fb strb r3, [r7, #23]
* the UART Word Length, Parity, Mode and oversampling:
* set the M bits according to huart->Init.WordLength value
* set PCE and PS bits according to huart->Init.Parity value
* set TE and RE bits according to huart->Init.Mode value
* set OVER8 bit according to huart->Init.OverSampling value */
tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
- 80049e0: 687b ldr r3, [r7, #4]
- 80049e2: 689a ldr r2, [r3, #8]
- 80049e4: 687b ldr r3, [r7, #4]
- 80049e6: 691b ldr r3, [r3, #16]
- 80049e8: 431a orrs r2, r3
- 80049ea: 687b ldr r3, [r7, #4]
- 80049ec: 695b ldr r3, [r3, #20]
- 80049ee: 431a orrs r2, r3
- 80049f0: 687b ldr r3, [r7, #4]
- 80049f2: 69db ldr r3, [r3, #28]
- 80049f4: 4313 orrs r3, r2
- 80049f6: 613b str r3, [r7, #16]
+ 80044f0: 687b ldr r3, [r7, #4]
+ 80044f2: 689a ldr r2, [r3, #8]
+ 80044f4: 687b ldr r3, [r7, #4]
+ 80044f6: 691b ldr r3, [r3, #16]
+ 80044f8: 431a orrs r2, r3
+ 80044fa: 687b ldr r3, [r7, #4]
+ 80044fc: 695b ldr r3, [r3, #20]
+ 80044fe: 431a orrs r2, r3
+ 8004500: 687b ldr r3, [r7, #4]
+ 8004502: 69db ldr r3, [r3, #28]
+ 8004504: 4313 orrs r3, r2
+ 8004506: 613b str r3, [r7, #16]
MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
- 80049f8: 687b ldr r3, [r7, #4]
- 80049fa: 681b ldr r3, [r3, #0]
- 80049fc: 681a ldr r2, [r3, #0]
- 80049fe: 4bb1 ldr r3, [pc, #708] ; (8004cc4 <UART_SetConfig+0x2f4>)
- 8004a00: 4013 ands r3, r2
- 8004a02: 687a ldr r2, [r7, #4]
- 8004a04: 6812 ldr r2, [r2, #0]
- 8004a06: 6939 ldr r1, [r7, #16]
- 8004a08: 430b orrs r3, r1
- 8004a0a: 6013 str r3, [r2, #0]
+ 8004508: 687b ldr r3, [r7, #4]
+ 800450a: 681b ldr r3, [r3, #0]
+ 800450c: 681a ldr r2, [r3, #0]
+ 800450e: 4bb1 ldr r3, [pc, #708] ; (80047d4 <UART_SetConfig+0x2f4>)
+ 8004510: 4013 ands r3, r2
+ 8004512: 687a ldr r2, [r7, #4]
+ 8004514: 6812 ldr r2, [r2, #0]
+ 8004516: 6939 ldr r1, [r7, #16]
+ 8004518: 430b orrs r3, r1
+ 800451a: 6013 str r3, [r2, #0]
/*-------------------------- USART CR2 Configuration -----------------------*/
/* Configure the UART Stop Bits: Set STOP[13:12] bits according
* to huart->Init.StopBits value */
MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
- 8004a0c: 687b ldr r3, [r7, #4]
- 8004a0e: 681b ldr r3, [r3, #0]
- 8004a10: 685b ldr r3, [r3, #4]
- 8004a12: f423 5140 bic.w r1, r3, #12288 ; 0x3000
- 8004a16: 687b ldr r3, [r7, #4]
- 8004a18: 68da ldr r2, [r3, #12]
- 8004a1a: 687b ldr r3, [r7, #4]
- 8004a1c: 681b ldr r3, [r3, #0]
- 8004a1e: 430a orrs r2, r1
- 8004a20: 605a str r2, [r3, #4]
+ 800451c: 687b ldr r3, [r7, #4]
+ 800451e: 681b ldr r3, [r3, #0]
+ 8004520: 685b ldr r3, [r3, #4]
+ 8004522: f423 5140 bic.w r1, r3, #12288 ; 0x3000
+ 8004526: 687b ldr r3, [r7, #4]
+ 8004528: 68da ldr r2, [r3, #12]
+ 800452a: 687b ldr r3, [r7, #4]
+ 800452c: 681b ldr r3, [r3, #0]
+ 800452e: 430a orrs r2, r1
+ 8004530: 605a str r2, [r3, #4]
/* Configure
* - UART HardWare Flow Control: set CTSE and RTSE bits according
* to huart->Init.HwFlowCtl value
* - one-bit sampling method versus three samples' majority rule according
* to huart->Init.OneBitSampling (not applicable to LPUART) */
tmpreg = (uint32_t)huart->Init.HwFlowCtl;
- 8004a22: 687b ldr r3, [r7, #4]
- 8004a24: 699b ldr r3, [r3, #24]
- 8004a26: 613b str r3, [r7, #16]
+ 8004532: 687b ldr r3, [r7, #4]
+ 8004534: 699b ldr r3, [r3, #24]
+ 8004536: 613b str r3, [r7, #16]
tmpreg |= huart->Init.OneBitSampling;
- 8004a28: 687b ldr r3, [r7, #4]
- 8004a2a: 6a1b ldr r3, [r3, #32]
- 8004a2c: 693a ldr r2, [r7, #16]
- 8004a2e: 4313 orrs r3, r2
- 8004a30: 613b str r3, [r7, #16]
+ 8004538: 687b ldr r3, [r7, #4]
+ 800453a: 6a1b ldr r3, [r3, #32]
+ 800453c: 693a ldr r2, [r7, #16]
+ 800453e: 4313 orrs r3, r2
+ 8004540: 613b str r3, [r7, #16]
MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
- 8004a32: 687b ldr r3, [r7, #4]
- 8004a34: 681b ldr r3, [r3, #0]
- 8004a36: 689b ldr r3, [r3, #8]
- 8004a38: f423 6130 bic.w r1, r3, #2816 ; 0xb00
- 8004a3c: 687b ldr r3, [r7, #4]
- 8004a3e: 681b ldr r3, [r3, #0]
- 8004a40: 693a ldr r2, [r7, #16]
- 8004a42: 430a orrs r2, r1
- 8004a44: 609a str r2, [r3, #8]
+ 8004542: 687b ldr r3, [r7, #4]
+ 8004544: 681b ldr r3, [r3, #0]
+ 8004546: 689b ldr r3, [r3, #8]
+ 8004548: f423 6130 bic.w r1, r3, #2816 ; 0xb00
+ 800454c: 687b ldr r3, [r7, #4]
+ 800454e: 681b ldr r3, [r3, #0]
+ 8004550: 693a ldr r2, [r7, #16]
+ 8004552: 430a orrs r2, r1
+ 8004554: 609a str r2, [r3, #8]
/*-------------------------- USART BRR Configuration -----------------------*/
UART_GETCLOCKSOURCE(huart, clocksource);
- 8004a46: 687b ldr r3, [r7, #4]
- 8004a48: 681b ldr r3, [r3, #0]
- 8004a4a: 4a9f ldr r2, [pc, #636] ; (8004cc8 <UART_SetConfig+0x2f8>)
- 8004a4c: 4293 cmp r3, r2
- 8004a4e: d121 bne.n 8004a94 <UART_SetConfig+0xc4>
- 8004a50: 4b9e ldr r3, [pc, #632] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004a52: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004a56: f003 0303 and.w r3, r3, #3
- 8004a5a: 2b03 cmp r3, #3
- 8004a5c: d816 bhi.n 8004a8c <UART_SetConfig+0xbc>
- 8004a5e: a201 add r2, pc, #4 ; (adr r2, 8004a64 <UART_SetConfig+0x94>)
- 8004a60: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8004a64: 08004a75 .word 0x08004a75
- 8004a68: 08004a81 .word 0x08004a81
- 8004a6c: 08004a7b .word 0x08004a7b
- 8004a70: 08004a87 .word 0x08004a87
- 8004a74: 2301 movs r3, #1
- 8004a76: 77fb strb r3, [r7, #31]
- 8004a78: e151 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004a7a: 2302 movs r3, #2
- 8004a7c: 77fb strb r3, [r7, #31]
- 8004a7e: e14e b.n 8004d1e <UART_SetConfig+0x34e>
- 8004a80: 2304 movs r3, #4
- 8004a82: 77fb strb r3, [r7, #31]
- 8004a84: e14b b.n 8004d1e <UART_SetConfig+0x34e>
- 8004a86: 2308 movs r3, #8
- 8004a88: 77fb strb r3, [r7, #31]
- 8004a8a: e148 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004a8c: 2310 movs r3, #16
- 8004a8e: 77fb strb r3, [r7, #31]
- 8004a90: bf00 nop
- 8004a92: e144 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004a94: 687b ldr r3, [r7, #4]
- 8004a96: 681b ldr r3, [r3, #0]
- 8004a98: 4a8d ldr r2, [pc, #564] ; (8004cd0 <UART_SetConfig+0x300>)
- 8004a9a: 4293 cmp r3, r2
- 8004a9c: d134 bne.n 8004b08 <UART_SetConfig+0x138>
- 8004a9e: 4b8b ldr r3, [pc, #556] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004aa0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004aa4: f003 030c and.w r3, r3, #12
- 8004aa8: 2b0c cmp r3, #12
- 8004aaa: d829 bhi.n 8004b00 <UART_SetConfig+0x130>
- 8004aac: a201 add r2, pc, #4 ; (adr r2, 8004ab4 <UART_SetConfig+0xe4>)
- 8004aae: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8004ab2: bf00 nop
- 8004ab4: 08004ae9 .word 0x08004ae9
- 8004ab8: 08004b01 .word 0x08004b01
- 8004abc: 08004b01 .word 0x08004b01
- 8004ac0: 08004b01 .word 0x08004b01
- 8004ac4: 08004af5 .word 0x08004af5
- 8004ac8: 08004b01 .word 0x08004b01
- 8004acc: 08004b01 .word 0x08004b01
- 8004ad0: 08004b01 .word 0x08004b01
- 8004ad4: 08004aef .word 0x08004aef
- 8004ad8: 08004b01 .word 0x08004b01
- 8004adc: 08004b01 .word 0x08004b01
- 8004ae0: 08004b01 .word 0x08004b01
- 8004ae4: 08004afb .word 0x08004afb
- 8004ae8: 2300 movs r3, #0
- 8004aea: 77fb strb r3, [r7, #31]
- 8004aec: e117 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004aee: 2302 movs r3, #2
- 8004af0: 77fb strb r3, [r7, #31]
- 8004af2: e114 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004af4: 2304 movs r3, #4
- 8004af6: 77fb strb r3, [r7, #31]
- 8004af8: e111 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004afa: 2308 movs r3, #8
- 8004afc: 77fb strb r3, [r7, #31]
- 8004afe: e10e b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b00: 2310 movs r3, #16
- 8004b02: 77fb strb r3, [r7, #31]
- 8004b04: bf00 nop
- 8004b06: e10a b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b08: 687b ldr r3, [r7, #4]
- 8004b0a: 681b ldr r3, [r3, #0]
- 8004b0c: 4a71 ldr r2, [pc, #452] ; (8004cd4 <UART_SetConfig+0x304>)
- 8004b0e: 4293 cmp r3, r2
- 8004b10: d120 bne.n 8004b54 <UART_SetConfig+0x184>
- 8004b12: 4b6e ldr r3, [pc, #440] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004b14: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004b18: f003 0330 and.w r3, r3, #48 ; 0x30
- 8004b1c: 2b10 cmp r3, #16
- 8004b1e: d00f beq.n 8004b40 <UART_SetConfig+0x170>
- 8004b20: 2b10 cmp r3, #16
- 8004b22: d802 bhi.n 8004b2a <UART_SetConfig+0x15a>
- 8004b24: 2b00 cmp r3, #0
- 8004b26: d005 beq.n 8004b34 <UART_SetConfig+0x164>
- 8004b28: e010 b.n 8004b4c <UART_SetConfig+0x17c>
- 8004b2a: 2b20 cmp r3, #32
- 8004b2c: d005 beq.n 8004b3a <UART_SetConfig+0x16a>
- 8004b2e: 2b30 cmp r3, #48 ; 0x30
- 8004b30: d009 beq.n 8004b46 <UART_SetConfig+0x176>
- 8004b32: e00b b.n 8004b4c <UART_SetConfig+0x17c>
- 8004b34: 2300 movs r3, #0
- 8004b36: 77fb strb r3, [r7, #31]
- 8004b38: e0f1 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b3a: 2302 movs r3, #2
- 8004b3c: 77fb strb r3, [r7, #31]
- 8004b3e: e0ee b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b40: 2304 movs r3, #4
- 8004b42: 77fb strb r3, [r7, #31]
- 8004b44: e0eb b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b46: 2308 movs r3, #8
- 8004b48: 77fb strb r3, [r7, #31]
- 8004b4a: e0e8 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b4c: 2310 movs r3, #16
- 8004b4e: 77fb strb r3, [r7, #31]
- 8004b50: bf00 nop
- 8004b52: e0e4 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b54: 687b ldr r3, [r7, #4]
- 8004b56: 681b ldr r3, [r3, #0]
- 8004b58: 4a5f ldr r2, [pc, #380] ; (8004cd8 <UART_SetConfig+0x308>)
- 8004b5a: 4293 cmp r3, r2
- 8004b5c: d120 bne.n 8004ba0 <UART_SetConfig+0x1d0>
- 8004b5e: 4b5b ldr r3, [pc, #364] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004b60: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004b64: f003 03c0 and.w r3, r3, #192 ; 0xc0
- 8004b68: 2b40 cmp r3, #64 ; 0x40
- 8004b6a: d00f beq.n 8004b8c <UART_SetConfig+0x1bc>
- 8004b6c: 2b40 cmp r3, #64 ; 0x40
- 8004b6e: d802 bhi.n 8004b76 <UART_SetConfig+0x1a6>
- 8004b70: 2b00 cmp r3, #0
- 8004b72: d005 beq.n 8004b80 <UART_SetConfig+0x1b0>
- 8004b74: e010 b.n 8004b98 <UART_SetConfig+0x1c8>
- 8004b76: 2b80 cmp r3, #128 ; 0x80
- 8004b78: d005 beq.n 8004b86 <UART_SetConfig+0x1b6>
- 8004b7a: 2bc0 cmp r3, #192 ; 0xc0
- 8004b7c: d009 beq.n 8004b92 <UART_SetConfig+0x1c2>
- 8004b7e: e00b b.n 8004b98 <UART_SetConfig+0x1c8>
- 8004b80: 2300 movs r3, #0
- 8004b82: 77fb strb r3, [r7, #31]
- 8004b84: e0cb b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b86: 2302 movs r3, #2
- 8004b88: 77fb strb r3, [r7, #31]
- 8004b8a: e0c8 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b8c: 2304 movs r3, #4
- 8004b8e: 77fb strb r3, [r7, #31]
- 8004b90: e0c5 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b92: 2308 movs r3, #8
- 8004b94: 77fb strb r3, [r7, #31]
- 8004b96: e0c2 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004b98: 2310 movs r3, #16
- 8004b9a: 77fb strb r3, [r7, #31]
- 8004b9c: bf00 nop
- 8004b9e: e0be b.n 8004d1e <UART_SetConfig+0x34e>
- 8004ba0: 687b ldr r3, [r7, #4]
- 8004ba2: 681b ldr r3, [r3, #0]
- 8004ba4: 4a4d ldr r2, [pc, #308] ; (8004cdc <UART_SetConfig+0x30c>)
- 8004ba6: 4293 cmp r3, r2
- 8004ba8: d124 bne.n 8004bf4 <UART_SetConfig+0x224>
- 8004baa: 4b48 ldr r3, [pc, #288] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004bac: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004bb0: f403 7340 and.w r3, r3, #768 ; 0x300
- 8004bb4: f5b3 7f80 cmp.w r3, #256 ; 0x100
- 8004bb8: d012 beq.n 8004be0 <UART_SetConfig+0x210>
- 8004bba: f5b3 7f80 cmp.w r3, #256 ; 0x100
- 8004bbe: d802 bhi.n 8004bc6 <UART_SetConfig+0x1f6>
- 8004bc0: 2b00 cmp r3, #0
- 8004bc2: d007 beq.n 8004bd4 <UART_SetConfig+0x204>
- 8004bc4: e012 b.n 8004bec <UART_SetConfig+0x21c>
- 8004bc6: f5b3 7f00 cmp.w r3, #512 ; 0x200
- 8004bca: d006 beq.n 8004bda <UART_SetConfig+0x20a>
- 8004bcc: f5b3 7f40 cmp.w r3, #768 ; 0x300
- 8004bd0: d009 beq.n 8004be6 <UART_SetConfig+0x216>
- 8004bd2: e00b b.n 8004bec <UART_SetConfig+0x21c>
- 8004bd4: 2300 movs r3, #0
- 8004bd6: 77fb strb r3, [r7, #31]
- 8004bd8: e0a1 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004bda: 2302 movs r3, #2
- 8004bdc: 77fb strb r3, [r7, #31]
- 8004bde: e09e b.n 8004d1e <UART_SetConfig+0x34e>
- 8004be0: 2304 movs r3, #4
- 8004be2: 77fb strb r3, [r7, #31]
- 8004be4: e09b b.n 8004d1e <UART_SetConfig+0x34e>
- 8004be6: 2308 movs r3, #8
- 8004be8: 77fb strb r3, [r7, #31]
- 8004bea: e098 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004bec: 2310 movs r3, #16
- 8004bee: 77fb strb r3, [r7, #31]
- 8004bf0: bf00 nop
- 8004bf2: e094 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004bf4: 687b ldr r3, [r7, #4]
- 8004bf6: 681b ldr r3, [r3, #0]
- 8004bf8: 4a39 ldr r2, [pc, #228] ; (8004ce0 <UART_SetConfig+0x310>)
- 8004bfa: 4293 cmp r3, r2
- 8004bfc: d124 bne.n 8004c48 <UART_SetConfig+0x278>
- 8004bfe: 4b33 ldr r3, [pc, #204] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004c00: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004c04: f403 6340 and.w r3, r3, #3072 ; 0xc00
- 8004c08: f5b3 6f80 cmp.w r3, #1024 ; 0x400
- 8004c0c: d012 beq.n 8004c34 <UART_SetConfig+0x264>
- 8004c0e: f5b3 6f80 cmp.w r3, #1024 ; 0x400
- 8004c12: d802 bhi.n 8004c1a <UART_SetConfig+0x24a>
- 8004c14: 2b00 cmp r3, #0
- 8004c16: d007 beq.n 8004c28 <UART_SetConfig+0x258>
- 8004c18: e012 b.n 8004c40 <UART_SetConfig+0x270>
- 8004c1a: f5b3 6f00 cmp.w r3, #2048 ; 0x800
- 8004c1e: d006 beq.n 8004c2e <UART_SetConfig+0x25e>
- 8004c20: f5b3 6f40 cmp.w r3, #3072 ; 0xc00
- 8004c24: d009 beq.n 8004c3a <UART_SetConfig+0x26a>
- 8004c26: e00b b.n 8004c40 <UART_SetConfig+0x270>
- 8004c28: 2301 movs r3, #1
- 8004c2a: 77fb strb r3, [r7, #31]
- 8004c2c: e077 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c2e: 2302 movs r3, #2
- 8004c30: 77fb strb r3, [r7, #31]
- 8004c32: e074 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c34: 2304 movs r3, #4
- 8004c36: 77fb strb r3, [r7, #31]
- 8004c38: e071 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c3a: 2308 movs r3, #8
- 8004c3c: 77fb strb r3, [r7, #31]
- 8004c3e: e06e b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c40: 2310 movs r3, #16
- 8004c42: 77fb strb r3, [r7, #31]
- 8004c44: bf00 nop
- 8004c46: e06a b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c48: 687b ldr r3, [r7, #4]
- 8004c4a: 681b ldr r3, [r3, #0]
- 8004c4c: 4a25 ldr r2, [pc, #148] ; (8004ce4 <UART_SetConfig+0x314>)
- 8004c4e: 4293 cmp r3, r2
- 8004c50: d124 bne.n 8004c9c <UART_SetConfig+0x2cc>
- 8004c52: 4b1e ldr r3, [pc, #120] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004c54: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004c58: f403 5340 and.w r3, r3, #12288 ; 0x3000
- 8004c5c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
- 8004c60: d012 beq.n 8004c88 <UART_SetConfig+0x2b8>
- 8004c62: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
- 8004c66: d802 bhi.n 8004c6e <UART_SetConfig+0x29e>
- 8004c68: 2b00 cmp r3, #0
- 8004c6a: d007 beq.n 8004c7c <UART_SetConfig+0x2ac>
- 8004c6c: e012 b.n 8004c94 <UART_SetConfig+0x2c4>
- 8004c6e: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
- 8004c72: d006 beq.n 8004c82 <UART_SetConfig+0x2b2>
- 8004c74: f5b3 5f40 cmp.w r3, #12288 ; 0x3000
- 8004c78: d009 beq.n 8004c8e <UART_SetConfig+0x2be>
- 8004c7a: e00b b.n 8004c94 <UART_SetConfig+0x2c4>
- 8004c7c: 2300 movs r3, #0
- 8004c7e: 77fb strb r3, [r7, #31]
- 8004c80: e04d b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c82: 2302 movs r3, #2
- 8004c84: 77fb strb r3, [r7, #31]
- 8004c86: e04a b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c88: 2304 movs r3, #4
- 8004c8a: 77fb strb r3, [r7, #31]
- 8004c8c: e047 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c8e: 2308 movs r3, #8
- 8004c90: 77fb strb r3, [r7, #31]
- 8004c92: e044 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c94: 2310 movs r3, #16
- 8004c96: 77fb strb r3, [r7, #31]
- 8004c98: bf00 nop
- 8004c9a: e040 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004c9c: 687b ldr r3, [r7, #4]
- 8004c9e: 681b ldr r3, [r3, #0]
- 8004ca0: 4a11 ldr r2, [pc, #68] ; (8004ce8 <UART_SetConfig+0x318>)
- 8004ca2: 4293 cmp r3, r2
- 8004ca4: d139 bne.n 8004d1a <UART_SetConfig+0x34a>
- 8004ca6: 4b09 ldr r3, [pc, #36] ; (8004ccc <UART_SetConfig+0x2fc>)
- 8004ca8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
- 8004cac: f403 4340 and.w r3, r3, #49152 ; 0xc000
- 8004cb0: f5b3 4f80 cmp.w r3, #16384 ; 0x4000
- 8004cb4: d027 beq.n 8004d06 <UART_SetConfig+0x336>
- 8004cb6: f5b3 4f80 cmp.w r3, #16384 ; 0x4000
- 8004cba: d817 bhi.n 8004cec <UART_SetConfig+0x31c>
- 8004cbc: 2b00 cmp r3, #0
- 8004cbe: d01c beq.n 8004cfa <UART_SetConfig+0x32a>
- 8004cc0: e027 b.n 8004d12 <UART_SetConfig+0x342>
- 8004cc2: bf00 nop
- 8004cc4: efff69f3 .word 0xefff69f3
- 8004cc8: 40011000 .word 0x40011000
- 8004ccc: 40023800 .word 0x40023800
- 8004cd0: 40004400 .word 0x40004400
- 8004cd4: 40004800 .word 0x40004800
- 8004cd8: 40004c00 .word 0x40004c00
- 8004cdc: 40005000 .word 0x40005000
- 8004ce0: 40011400 .word 0x40011400
- 8004ce4: 40007800 .word 0x40007800
- 8004ce8: 40007c00 .word 0x40007c00
- 8004cec: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
- 8004cf0: d006 beq.n 8004d00 <UART_SetConfig+0x330>
- 8004cf2: f5b3 4f40 cmp.w r3, #49152 ; 0xc000
- 8004cf6: d009 beq.n 8004d0c <UART_SetConfig+0x33c>
- 8004cf8: e00b b.n 8004d12 <UART_SetConfig+0x342>
- 8004cfa: 2300 movs r3, #0
- 8004cfc: 77fb strb r3, [r7, #31]
- 8004cfe: e00e b.n 8004d1e <UART_SetConfig+0x34e>
- 8004d00: 2302 movs r3, #2
- 8004d02: 77fb strb r3, [r7, #31]
- 8004d04: e00b b.n 8004d1e <UART_SetConfig+0x34e>
- 8004d06: 2304 movs r3, #4
- 8004d08: 77fb strb r3, [r7, #31]
- 8004d0a: e008 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004d0c: 2308 movs r3, #8
- 8004d0e: 77fb strb r3, [r7, #31]
- 8004d10: e005 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004d12: 2310 movs r3, #16
- 8004d14: 77fb strb r3, [r7, #31]
- 8004d16: bf00 nop
- 8004d18: e001 b.n 8004d1e <UART_SetConfig+0x34e>
- 8004d1a: 2310 movs r3, #16
- 8004d1c: 77fb strb r3, [r7, #31]
+ 8004556: 687b ldr r3, [r7, #4]
+ 8004558: 681b ldr r3, [r3, #0]
+ 800455a: 4a9f ldr r2, [pc, #636] ; (80047d8 <UART_SetConfig+0x2f8>)
+ 800455c: 4293 cmp r3, r2
+ 800455e: d121 bne.n 80045a4 <UART_SetConfig+0xc4>
+ 8004560: 4b9e ldr r3, [pc, #632] ; (80047dc <UART_SetConfig+0x2fc>)
+ 8004562: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8004566: f003 0303 and.w r3, r3, #3
+ 800456a: 2b03 cmp r3, #3
+ 800456c: d816 bhi.n 800459c <UART_SetConfig+0xbc>
+ 800456e: a201 add r2, pc, #4 ; (adr r2, 8004574 <UART_SetConfig+0x94>)
+ 8004570: f852 f023 ldr.w pc, [r2, r3, lsl #2]
+ 8004574: 08004585 .word 0x08004585
+ 8004578: 08004591 .word 0x08004591
+ 800457c: 0800458b .word 0x0800458b
+ 8004580: 08004597 .word 0x08004597
+ 8004584: 2301 movs r3, #1
+ 8004586: 77fb strb r3, [r7, #31]
+ 8004588: e151 b.n 800482e <UART_SetConfig+0x34e>
+ 800458a: 2302 movs r3, #2
+ 800458c: 77fb strb r3, [r7, #31]
+ 800458e: e14e b.n 800482e <UART_SetConfig+0x34e>
+ 8004590: 2304 movs r3, #4
+ 8004592: 77fb strb r3, [r7, #31]
+ 8004594: e14b b.n 800482e <UART_SetConfig+0x34e>
+ 8004596: 2308 movs r3, #8
+ 8004598: 77fb strb r3, [r7, #31]
+ 800459a: e148 b.n 800482e <UART_SetConfig+0x34e>
+ 800459c: 2310 movs r3, #16
+ 800459e: 77fb strb r3, [r7, #31]
+ 80045a0: bf00 nop
+ 80045a2: e144 b.n 800482e <UART_SetConfig+0x34e>
+ 80045a4: 687b ldr r3, [r7, #4]
+ 80045a6: 681b ldr r3, [r3, #0]
+ 80045a8: 4a8d ldr r2, [pc, #564] ; (80047e0 <UART_SetConfig+0x300>)
+ 80045aa: 4293 cmp r3, r2
+ 80045ac: d134 bne.n 8004618 <UART_SetConfig+0x138>
+ 80045ae: 4b8b ldr r3, [pc, #556] ; (80047dc <UART_SetConfig+0x2fc>)
+ 80045b0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 80045b4: f003 030c and.w r3, r3, #12
+ 80045b8: 2b0c cmp r3, #12
+ 80045ba: d829 bhi.n 8004610 <UART_SetConfig+0x130>
+ 80045bc: a201 add r2, pc, #4 ; (adr r2, 80045c4 <UART_SetConfig+0xe4>)
+ 80045be: f852 f023 ldr.w pc, [r2, r3, lsl #2]
+ 80045c2: bf00 nop
+ 80045c4: 080045f9 .word 0x080045f9
+ 80045c8: 08004611 .word 0x08004611
+ 80045cc: 08004611 .word 0x08004611
+ 80045d0: 08004611 .word 0x08004611
+ 80045d4: 08004605 .word 0x08004605
+ 80045d8: 08004611 .word 0x08004611
+ 80045dc: 08004611 .word 0x08004611
+ 80045e0: 08004611 .word 0x08004611
+ 80045e4: 080045ff .word 0x080045ff
+ 80045e8: 08004611 .word 0x08004611
+ 80045ec: 08004611 .word 0x08004611
+ 80045f0: 08004611 .word 0x08004611
+ 80045f4: 0800460b .word 0x0800460b
+ 80045f8: 2300 movs r3, #0
+ 80045fa: 77fb strb r3, [r7, #31]
+ 80045fc: e117 b.n 800482e <UART_SetConfig+0x34e>
+ 80045fe: 2302 movs r3, #2
+ 8004600: 77fb strb r3, [r7, #31]
+ 8004602: e114 b.n 800482e <UART_SetConfig+0x34e>
+ 8004604: 2304 movs r3, #4
+ 8004606: 77fb strb r3, [r7, #31]
+ 8004608: e111 b.n 800482e <UART_SetConfig+0x34e>
+ 800460a: 2308 movs r3, #8
+ 800460c: 77fb strb r3, [r7, #31]
+ 800460e: e10e b.n 800482e <UART_SetConfig+0x34e>
+ 8004610: 2310 movs r3, #16
+ 8004612: 77fb strb r3, [r7, #31]
+ 8004614: bf00 nop
+ 8004616: e10a b.n 800482e <UART_SetConfig+0x34e>
+ 8004618: 687b ldr r3, [r7, #4]
+ 800461a: 681b ldr r3, [r3, #0]
+ 800461c: 4a71 ldr r2, [pc, #452] ; (80047e4 <UART_SetConfig+0x304>)
+ 800461e: 4293 cmp r3, r2
+ 8004620: d120 bne.n 8004664 <UART_SetConfig+0x184>
+ 8004622: 4b6e ldr r3, [pc, #440] ; (80047dc <UART_SetConfig+0x2fc>)
+ 8004624: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8004628: f003 0330 and.w r3, r3, #48 ; 0x30
+ 800462c: 2b10 cmp r3, #16
+ 800462e: d00f beq.n 8004650 <UART_SetConfig+0x170>
+ 8004630: 2b10 cmp r3, #16
+ 8004632: d802 bhi.n 800463a <UART_SetConfig+0x15a>
+ 8004634: 2b00 cmp r3, #0
+ 8004636: d005 beq.n 8004644 <UART_SetConfig+0x164>
+ 8004638: e010 b.n 800465c <UART_SetConfig+0x17c>
+ 800463a: 2b20 cmp r3, #32
+ 800463c: d005 beq.n 800464a <UART_SetConfig+0x16a>
+ 800463e: 2b30 cmp r3, #48 ; 0x30
+ 8004640: d009 beq.n 8004656 <UART_SetConfig+0x176>
+ 8004642: e00b b.n 800465c <UART_SetConfig+0x17c>
+ 8004644: 2300 movs r3, #0
+ 8004646: 77fb strb r3, [r7, #31]
+ 8004648: e0f1 b.n 800482e <UART_SetConfig+0x34e>
+ 800464a: 2302 movs r3, #2
+ 800464c: 77fb strb r3, [r7, #31]
+ 800464e: e0ee b.n 800482e <UART_SetConfig+0x34e>
+ 8004650: 2304 movs r3, #4
+ 8004652: 77fb strb r3, [r7, #31]
+ 8004654: e0eb b.n 800482e <UART_SetConfig+0x34e>
+ 8004656: 2308 movs r3, #8
+ 8004658: 77fb strb r3, [r7, #31]
+ 800465a: e0e8 b.n 800482e <UART_SetConfig+0x34e>
+ 800465c: 2310 movs r3, #16
+ 800465e: 77fb strb r3, [r7, #31]
+ 8004660: bf00 nop
+ 8004662: e0e4 b.n 800482e <UART_SetConfig+0x34e>
+ 8004664: 687b ldr r3, [r7, #4]
+ 8004666: 681b ldr r3, [r3, #0]
+ 8004668: 4a5f ldr r2, [pc, #380] ; (80047e8 <UART_SetConfig+0x308>)
+ 800466a: 4293 cmp r3, r2
+ 800466c: d120 bne.n 80046b0 <UART_SetConfig+0x1d0>
+ 800466e: 4b5b ldr r3, [pc, #364] ; (80047dc <UART_SetConfig+0x2fc>)
+ 8004670: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8004674: f003 03c0 and.w r3, r3, #192 ; 0xc0
+ 8004678: 2b40 cmp r3, #64 ; 0x40
+ 800467a: d00f beq.n 800469c <UART_SetConfig+0x1bc>
+ 800467c: 2b40 cmp r3, #64 ; 0x40
+ 800467e: d802 bhi.n 8004686 <UART_SetConfig+0x1a6>
+ 8004680: 2b00 cmp r3, #0
+ 8004682: d005 beq.n 8004690 <UART_SetConfig+0x1b0>
+ 8004684: e010 b.n 80046a8 <UART_SetConfig+0x1c8>
+ 8004686: 2b80 cmp r3, #128 ; 0x80
+ 8004688: d005 beq.n 8004696 <UART_SetConfig+0x1b6>
+ 800468a: 2bc0 cmp r3, #192 ; 0xc0
+ 800468c: d009 beq.n 80046a2 <UART_SetConfig+0x1c2>
+ 800468e: e00b b.n 80046a8 <UART_SetConfig+0x1c8>
+ 8004690: 2300 movs r3, #0
+ 8004692: 77fb strb r3, [r7, #31]
+ 8004694: e0cb b.n 800482e <UART_SetConfig+0x34e>
+ 8004696: 2302 movs r3, #2
+ 8004698: 77fb strb r3, [r7, #31]
+ 800469a: e0c8 b.n 800482e <UART_SetConfig+0x34e>
+ 800469c: 2304 movs r3, #4
+ 800469e: 77fb strb r3, [r7, #31]
+ 80046a0: e0c5 b.n 800482e <UART_SetConfig+0x34e>
+ 80046a2: 2308 movs r3, #8
+ 80046a4: 77fb strb r3, [r7, #31]
+ 80046a6: e0c2 b.n 800482e <UART_SetConfig+0x34e>
+ 80046a8: 2310 movs r3, #16
+ 80046aa: 77fb strb r3, [r7, #31]
+ 80046ac: bf00 nop
+ 80046ae: e0be b.n 800482e <UART_SetConfig+0x34e>
+ 80046b0: 687b ldr r3, [r7, #4]
+ 80046b2: 681b ldr r3, [r3, #0]
+ 80046b4: 4a4d ldr r2, [pc, #308] ; (80047ec <UART_SetConfig+0x30c>)
+ 80046b6: 4293 cmp r3, r2
+ 80046b8: d124 bne.n 8004704 <UART_SetConfig+0x224>
+ 80046ba: 4b48 ldr r3, [pc, #288] ; (80047dc <UART_SetConfig+0x2fc>)
+ 80046bc: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 80046c0: f403 7340 and.w r3, r3, #768 ; 0x300
+ 80046c4: f5b3 7f80 cmp.w r3, #256 ; 0x100
+ 80046c8: d012 beq.n 80046f0 <UART_SetConfig+0x210>
+ 80046ca: f5b3 7f80 cmp.w r3, #256 ; 0x100
+ 80046ce: d802 bhi.n 80046d6 <UART_SetConfig+0x1f6>
+ 80046d0: 2b00 cmp r3, #0
+ 80046d2: d007 beq.n 80046e4 <UART_SetConfig+0x204>
+ 80046d4: e012 b.n 80046fc <UART_SetConfig+0x21c>
+ 80046d6: f5b3 7f00 cmp.w r3, #512 ; 0x200
+ 80046da: d006 beq.n 80046ea <UART_SetConfig+0x20a>
+ 80046dc: f5b3 7f40 cmp.w r3, #768 ; 0x300
+ 80046e0: d009 beq.n 80046f6 <UART_SetConfig+0x216>
+ 80046e2: e00b b.n 80046fc <UART_SetConfig+0x21c>
+ 80046e4: 2300 movs r3, #0
+ 80046e6: 77fb strb r3, [r7, #31]
+ 80046e8: e0a1 b.n 800482e <UART_SetConfig+0x34e>
+ 80046ea: 2302 movs r3, #2
+ 80046ec: 77fb strb r3, [r7, #31]
+ 80046ee: e09e b.n 800482e <UART_SetConfig+0x34e>
+ 80046f0: 2304 movs r3, #4
+ 80046f2: 77fb strb r3, [r7, #31]
+ 80046f4: e09b b.n 800482e <UART_SetConfig+0x34e>
+ 80046f6: 2308 movs r3, #8
+ 80046f8: 77fb strb r3, [r7, #31]
+ 80046fa: e098 b.n 800482e <UART_SetConfig+0x34e>
+ 80046fc: 2310 movs r3, #16
+ 80046fe: 77fb strb r3, [r7, #31]
+ 8004700: bf00 nop
+ 8004702: e094 b.n 800482e <UART_SetConfig+0x34e>
+ 8004704: 687b ldr r3, [r7, #4]
+ 8004706: 681b ldr r3, [r3, #0]
+ 8004708: 4a39 ldr r2, [pc, #228] ; (80047f0 <UART_SetConfig+0x310>)
+ 800470a: 4293 cmp r3, r2
+ 800470c: d124 bne.n 8004758 <UART_SetConfig+0x278>
+ 800470e: 4b33 ldr r3, [pc, #204] ; (80047dc <UART_SetConfig+0x2fc>)
+ 8004710: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8004714: f403 6340 and.w r3, r3, #3072 ; 0xc00
+ 8004718: f5b3 6f80 cmp.w r3, #1024 ; 0x400
+ 800471c: d012 beq.n 8004744 <UART_SetConfig+0x264>
+ 800471e: f5b3 6f80 cmp.w r3, #1024 ; 0x400
+ 8004722: d802 bhi.n 800472a <UART_SetConfig+0x24a>
+ 8004724: 2b00 cmp r3, #0
+ 8004726: d007 beq.n 8004738 <UART_SetConfig+0x258>
+ 8004728: e012 b.n 8004750 <UART_SetConfig+0x270>
+ 800472a: f5b3 6f00 cmp.w r3, #2048 ; 0x800
+ 800472e: d006 beq.n 800473e <UART_SetConfig+0x25e>
+ 8004730: f5b3 6f40 cmp.w r3, #3072 ; 0xc00
+ 8004734: d009 beq.n 800474a <UART_SetConfig+0x26a>
+ 8004736: e00b b.n 8004750 <UART_SetConfig+0x270>
+ 8004738: 2301 movs r3, #1
+ 800473a: 77fb strb r3, [r7, #31]
+ 800473c: e077 b.n 800482e <UART_SetConfig+0x34e>
+ 800473e: 2302 movs r3, #2
+ 8004740: 77fb strb r3, [r7, #31]
+ 8004742: e074 b.n 800482e <UART_SetConfig+0x34e>
+ 8004744: 2304 movs r3, #4
+ 8004746: 77fb strb r3, [r7, #31]
+ 8004748: e071 b.n 800482e <UART_SetConfig+0x34e>
+ 800474a: 2308 movs r3, #8
+ 800474c: 77fb strb r3, [r7, #31]
+ 800474e: e06e b.n 800482e <UART_SetConfig+0x34e>
+ 8004750: 2310 movs r3, #16
+ 8004752: 77fb strb r3, [r7, #31]
+ 8004754: bf00 nop
+ 8004756: e06a b.n 800482e <UART_SetConfig+0x34e>
+ 8004758: 687b ldr r3, [r7, #4]
+ 800475a: 681b ldr r3, [r3, #0]
+ 800475c: 4a25 ldr r2, [pc, #148] ; (80047f4 <UART_SetConfig+0x314>)
+ 800475e: 4293 cmp r3, r2
+ 8004760: d124 bne.n 80047ac <UART_SetConfig+0x2cc>
+ 8004762: 4b1e ldr r3, [pc, #120] ; (80047dc <UART_SetConfig+0x2fc>)
+ 8004764: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 8004768: f403 5340 and.w r3, r3, #12288 ; 0x3000
+ 800476c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
+ 8004770: d012 beq.n 8004798 <UART_SetConfig+0x2b8>
+ 8004772: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
+ 8004776: d802 bhi.n 800477e <UART_SetConfig+0x29e>
+ 8004778: 2b00 cmp r3, #0
+ 800477a: d007 beq.n 800478c <UART_SetConfig+0x2ac>
+ 800477c: e012 b.n 80047a4 <UART_SetConfig+0x2c4>
+ 800477e: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
+ 8004782: d006 beq.n 8004792 <UART_SetConfig+0x2b2>
+ 8004784: f5b3 5f40 cmp.w r3, #12288 ; 0x3000
+ 8004788: d009 beq.n 800479e <UART_SetConfig+0x2be>
+ 800478a: e00b b.n 80047a4 <UART_SetConfig+0x2c4>
+ 800478c: 2300 movs r3, #0
+ 800478e: 77fb strb r3, [r7, #31]
+ 8004790: e04d b.n 800482e <UART_SetConfig+0x34e>
+ 8004792: 2302 movs r3, #2
+ 8004794: 77fb strb r3, [r7, #31]
+ 8004796: e04a b.n 800482e <UART_SetConfig+0x34e>
+ 8004798: 2304 movs r3, #4
+ 800479a: 77fb strb r3, [r7, #31]
+ 800479c: e047 b.n 800482e <UART_SetConfig+0x34e>
+ 800479e: 2308 movs r3, #8
+ 80047a0: 77fb strb r3, [r7, #31]
+ 80047a2: e044 b.n 800482e <UART_SetConfig+0x34e>
+ 80047a4: 2310 movs r3, #16
+ 80047a6: 77fb strb r3, [r7, #31]
+ 80047a8: bf00 nop
+ 80047aa: e040 b.n 800482e <UART_SetConfig+0x34e>
+ 80047ac: 687b ldr r3, [r7, #4]
+ 80047ae: 681b ldr r3, [r3, #0]
+ 80047b0: 4a11 ldr r2, [pc, #68] ; (80047f8 <UART_SetConfig+0x318>)
+ 80047b2: 4293 cmp r3, r2
+ 80047b4: d139 bne.n 800482a <UART_SetConfig+0x34a>
+ 80047b6: 4b09 ldr r3, [pc, #36] ; (80047dc <UART_SetConfig+0x2fc>)
+ 80047b8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90
+ 80047bc: f403 4340 and.w r3, r3, #49152 ; 0xc000
+ 80047c0: f5b3 4f80 cmp.w r3, #16384 ; 0x4000
+ 80047c4: d027 beq.n 8004816 <UART_SetConfig+0x336>
+ 80047c6: f5b3 4f80 cmp.w r3, #16384 ; 0x4000
+ 80047ca: d817 bhi.n 80047fc <UART_SetConfig+0x31c>
+ 80047cc: 2b00 cmp r3, #0
+ 80047ce: d01c beq.n 800480a <UART_SetConfig+0x32a>
+ 80047d0: e027 b.n 8004822 <UART_SetConfig+0x342>
+ 80047d2: bf00 nop
+ 80047d4: efff69f3 .word 0xefff69f3
+ 80047d8: 40011000 .word 0x40011000
+ 80047dc: 40023800 .word 0x40023800
+ 80047e0: 40004400 .word 0x40004400
+ 80047e4: 40004800 .word 0x40004800
+ 80047e8: 40004c00 .word 0x40004c00
+ 80047ec: 40005000 .word 0x40005000
+ 80047f0: 40011400 .word 0x40011400
+ 80047f4: 40007800 .word 0x40007800
+ 80047f8: 40007c00 .word 0x40007c00
+ 80047fc: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
+ 8004800: d006 beq.n 8004810 <UART_SetConfig+0x330>
+ 8004802: f5b3 4f40 cmp.w r3, #49152 ; 0xc000
+ 8004806: d009 beq.n 800481c <UART_SetConfig+0x33c>
+ 8004808: e00b b.n 8004822 <UART_SetConfig+0x342>
+ 800480a: 2300 movs r3, #0
+ 800480c: 77fb strb r3, [r7, #31]
+ 800480e: e00e b.n 800482e <UART_SetConfig+0x34e>
+ 8004810: 2302 movs r3, #2
+ 8004812: 77fb strb r3, [r7, #31]
+ 8004814: e00b b.n 800482e <UART_SetConfig+0x34e>
+ 8004816: 2304 movs r3, #4
+ 8004818: 77fb strb r3, [r7, #31]
+ 800481a: e008 b.n 800482e <UART_SetConfig+0x34e>
+ 800481c: 2308 movs r3, #8
+ 800481e: 77fb strb r3, [r7, #31]
+ 8004820: e005 b.n 800482e <UART_SetConfig+0x34e>
+ 8004822: 2310 movs r3, #16
+ 8004824: 77fb strb r3, [r7, #31]
+ 8004826: bf00 nop
+ 8004828: e001 b.n 800482e <UART_SetConfig+0x34e>
+ 800482a: 2310 movs r3, #16
+ 800482c: 77fb strb r3, [r7, #31]
if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
- 8004d1e: 687b ldr r3, [r7, #4]
- 8004d20: 69db ldr r3, [r3, #28]
- 8004d22: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
- 8004d26: d17c bne.n 8004e22 <UART_SetConfig+0x452>
+ 800482e: 687b ldr r3, [r7, #4]
+ 8004830: 69db ldr r3, [r3, #28]
+ 8004832: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
+ 8004836: d17c bne.n 8004932 <UART_SetConfig+0x452>
{
switch (clocksource)
- 8004d28: 7ffb ldrb r3, [r7, #31]
- 8004d2a: 2b08 cmp r3, #8
- 8004d2c: d859 bhi.n 8004de2 <UART_SetConfig+0x412>
- 8004d2e: a201 add r2, pc, #4 ; (adr r2, 8004d34 <UART_SetConfig+0x364>)
- 8004d30: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8004d34: 08004d59 .word 0x08004d59
- 8004d38: 08004d77 .word 0x08004d77
- 8004d3c: 08004d95 .word 0x08004d95
- 8004d40: 08004de3 .word 0x08004de3
- 8004d44: 08004dad .word 0x08004dad
- 8004d48: 08004de3 .word 0x08004de3
- 8004d4c: 08004de3 .word 0x08004de3
- 8004d50: 08004de3 .word 0x08004de3
- 8004d54: 08004dcb .word 0x08004dcb
+ 8004838: 7ffb ldrb r3, [r7, #31]
+ 800483a: 2b08 cmp r3, #8
+ 800483c: d859 bhi.n 80048f2 <UART_SetConfig+0x412>
+ 800483e: a201 add r2, pc, #4 ; (adr r2, 8004844 <UART_SetConfig+0x364>)
+ 8004840: f852 f023 ldr.w pc, [r2, r3, lsl #2]
+ 8004844: 08004869 .word 0x08004869
+ 8004848: 08004887 .word 0x08004887
+ 800484c: 080048a5 .word 0x080048a5
+ 8004850: 080048f3 .word 0x080048f3
+ 8004854: 080048bd .word 0x080048bd
+ 8004858: 080048f3 .word 0x080048f3
+ 800485c: 080048f3 .word 0x080048f3
+ 8004860: 080048f3 .word 0x080048f3
+ 8004864: 080048db .word 0x080048db
{
case UART_CLOCKSOURCE_PCLK1:
usartdiv = (uint16_t)(UART_DIV_SAMPLING8(HAL_RCC_GetPCLK1Freq(), huart->Init.BaudRate));
- 8004d58: f7fd ffc8 bl 8002cec <HAL_RCC_GetPCLK1Freq>
- 8004d5c: 4603 mov r3, r0
- 8004d5e: 005a lsls r2, r3, #1
- 8004d60: 687b ldr r3, [r7, #4]
- 8004d62: 685b ldr r3, [r3, #4]
- 8004d64: 085b lsrs r3, r3, #1
- 8004d66: 441a add r2, r3
- 8004d68: 687b ldr r3, [r7, #4]
- 8004d6a: 685b ldr r3, [r3, #4]
- 8004d6c: fbb2 f3f3 udiv r3, r2, r3
- 8004d70: b29b uxth r3, r3
- 8004d72: 61bb str r3, [r7, #24]
+ 8004868: f7fd ff26 bl 80026b8 <HAL_RCC_GetPCLK1Freq>
+ 800486c: 4603 mov r3, r0
+ 800486e: 005a lsls r2, r3, #1
+ 8004870: 687b ldr r3, [r7, #4]
+ 8004872: 685b ldr r3, [r3, #4]
+ 8004874: 085b lsrs r3, r3, #1
+ 8004876: 441a add r2, r3
+ 8004878: 687b ldr r3, [r7, #4]
+ 800487a: 685b ldr r3, [r3, #4]
+ 800487c: fbb2 f3f3 udiv r3, r2, r3
+ 8004880: b29b uxth r3, r3
+ 8004882: 61bb str r3, [r7, #24]
break;
- 8004d74: e038 b.n 8004de8 <UART_SetConfig+0x418>
+ 8004884: e038 b.n 80048f8 <UART_SetConfig+0x418>
case UART_CLOCKSOURCE_PCLK2:
usartdiv = (uint16_t)(UART_DIV_SAMPLING8(HAL_RCC_GetPCLK2Freq(), huart->Init.BaudRate));
- 8004d76: f7fd ffcd bl 8002d14 <HAL_RCC_GetPCLK2Freq>
- 8004d7a: 4603 mov r3, r0
- 8004d7c: 005a lsls r2, r3, #1
- 8004d7e: 687b ldr r3, [r7, #4]
- 8004d80: 685b ldr r3, [r3, #4]
- 8004d82: 085b lsrs r3, r3, #1
- 8004d84: 441a add r2, r3
- 8004d86: 687b ldr r3, [r7, #4]
- 8004d88: 685b ldr r3, [r3, #4]
- 8004d8a: fbb2 f3f3 udiv r3, r2, r3
- 8004d8e: b29b uxth r3, r3
- 8004d90: 61bb str r3, [r7, #24]
+ 8004886: f7fd ff2b bl 80026e0 <HAL_RCC_GetPCLK2Freq>
+ 800488a: 4603 mov r3, r0
+ 800488c: 005a lsls r2, r3, #1
+ 800488e: 687b ldr r3, [r7, #4]
+ 8004890: 685b ldr r3, [r3, #4]
+ 8004892: 085b lsrs r3, r3, #1
+ 8004894: 441a add r2, r3
+ 8004896: 687b ldr r3, [r7, #4]
+ 8004898: 685b ldr r3, [r3, #4]
+ 800489a: fbb2 f3f3 udiv r3, r2, r3
+ 800489e: b29b uxth r3, r3
+ 80048a0: 61bb str r3, [r7, #24]
break;
- 8004d92: e029 b.n 8004de8 <UART_SetConfig+0x418>
+ 80048a2: e029 b.n 80048f8 <UART_SetConfig+0x418>
case UART_CLOCKSOURCE_HSI:
usartdiv = (uint16_t)(UART_DIV_SAMPLING8(HSI_VALUE, huart->Init.BaudRate));
- 8004d94: 687b ldr r3, [r7, #4]
- 8004d96: 685b ldr r3, [r3, #4]
- 8004d98: 085a lsrs r2, r3, #1
- 8004d9a: 4b5d ldr r3, [pc, #372] ; (8004f10 <UART_SetConfig+0x540>)
- 8004d9c: 4413 add r3, r2
- 8004d9e: 687a ldr r2, [r7, #4]
- 8004da0: 6852 ldr r2, [r2, #4]
- 8004da2: fbb3 f3f2 udiv r3, r3, r2
- 8004da6: b29b uxth r3, r3
- 8004da8: 61bb str r3, [r7, #24]
+ 80048a4: 687b ldr r3, [r7, #4]
+ 80048a6: 685b ldr r3, [r3, #4]
+ 80048a8: 085a lsrs r2, r3, #1
+ 80048aa: 4b5d ldr r3, [pc, #372] ; (8004a20 <UART_SetConfig+0x540>)
+ 80048ac: 4413 add r3, r2
+ 80048ae: 687a ldr r2, [r7, #4]
+ 80048b0: 6852 ldr r2, [r2, #4]
+ 80048b2: fbb3 f3f2 udiv r3, r3, r2
+ 80048b6: b29b uxth r3, r3
+ 80048b8: 61bb str r3, [r7, #24]
break;
- 8004daa: e01d b.n 8004de8 <UART_SetConfig+0x418>
+ 80048ba: e01d b.n 80048f8 <UART_SetConfig+0x418>
case UART_CLOCKSOURCE_SYSCLK:
usartdiv = (uint16_t)(UART_DIV_SAMPLING8(HAL_RCC_GetSysClockFreq(), huart->Init.BaudRate));
- 8004dac: f7fd fee0 bl 8002b70 <HAL_RCC_GetSysClockFreq>
- 8004db0: 4603 mov r3, r0
- 8004db2: 005a lsls r2, r3, #1
- 8004db4: 687b ldr r3, [r7, #4]
- 8004db6: 685b ldr r3, [r3, #4]
- 8004db8: 085b lsrs r3, r3, #1
- 8004dba: 441a add r2, r3
- 8004dbc: 687b ldr r3, [r7, #4]
- 8004dbe: 685b ldr r3, [r3, #4]
- 8004dc0: fbb2 f3f3 udiv r3, r2, r3
- 8004dc4: b29b uxth r3, r3
- 8004dc6: 61bb str r3, [r7, #24]
+ 80048bc: f7fd fe3e bl 800253c <HAL_RCC_GetSysClockFreq>
+ 80048c0: 4603 mov r3, r0
+ 80048c2: 005a lsls r2, r3, #1
+ 80048c4: 687b ldr r3, [r7, #4]
+ 80048c6: 685b ldr r3, [r3, #4]
+ 80048c8: 085b lsrs r3, r3, #1
+ 80048ca: 441a add r2, r3
+ 80048cc: 687b ldr r3, [r7, #4]
+ 80048ce: 685b ldr r3, [r3, #4]
+ 80048d0: fbb2 f3f3 udiv r3, r2, r3
+ 80048d4: b29b uxth r3, r3
+ 80048d6: 61bb str r3, [r7, #24]
break;
- 8004dc8: e00e b.n 8004de8 <UART_SetConfig+0x418>
+ 80048d8: e00e b.n 80048f8 <UART_SetConfig+0x418>
case UART_CLOCKSOURCE_LSE:
usartdiv = (uint16_t)(UART_DIV_SAMPLING8(LSE_VALUE, huart->Init.BaudRate));
- 8004dca: 687b ldr r3, [r7, #4]
- 8004dcc: 685b ldr r3, [r3, #4]
- 8004dce: 085b lsrs r3, r3, #1
- 8004dd0: f503 3280 add.w r2, r3, #65536 ; 0x10000
- 8004dd4: 687b ldr r3, [r7, #4]
- 8004dd6: 685b ldr r3, [r3, #4]
- 8004dd8: fbb2 f3f3 udiv r3, r2, r3
- 8004ddc: b29b uxth r3, r3
- 8004dde: 61bb str r3, [r7, #24]
+ 80048da: 687b ldr r3, [r7, #4]
+ 80048dc: 685b ldr r3, [r3, #4]
+ 80048de: 085b lsrs r3, r3, #1
+ 80048e0: f503 3280 add.w r2, r3, #65536 ; 0x10000
+ 80048e4: 687b ldr r3, [r7, #4]
+ 80048e6: 685b ldr r3, [r3, #4]
+ 80048e8: fbb2 f3f3 udiv r3, r2, r3
+ 80048ec: b29b uxth r3, r3
+ 80048ee: 61bb str r3, [r7, #24]
break;
- 8004de0: e002 b.n 8004de8 <UART_SetConfig+0x418>
+ 80048f0: e002 b.n 80048f8 <UART_SetConfig+0x418>
case UART_CLOCKSOURCE_UNDEFINED:
default:
ret = HAL_ERROR;
- 8004de2: 2301 movs r3, #1
- 8004de4: 75fb strb r3, [r7, #23]
+ 80048f2: 2301 movs r3, #1
+ 80048f4: 75fb strb r3, [r7, #23]
break;
- 8004de6: bf00 nop
+ 80048f6: bf00 nop
}
/* USARTDIV must be greater than or equal to 0d16 */
if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
- 8004de8: 69bb ldr r3, [r7, #24]
- 8004dea: 2b0f cmp r3, #15
- 8004dec: d916 bls.n 8004e1c <UART_SetConfig+0x44c>
- 8004dee: 69bb ldr r3, [r7, #24]
- 8004df0: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
- 8004df4: d212 bcs.n 8004e1c <UART_SetConfig+0x44c>
+ 80048f8: 69bb ldr r3, [r7, #24]
+ 80048fa: 2b0f cmp r3, #15
+ 80048fc: d916 bls.n 800492c <UART_SetConfig+0x44c>
+ 80048fe: 69bb ldr r3, [r7, #24]
+ 8004900: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
+ 8004904: d212 bcs.n 800492c <UART_SetConfig+0x44c>
{
brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
- 8004df6: 69bb ldr r3, [r7, #24]
- 8004df8: b29b uxth r3, r3
- 8004dfa: f023 030f bic.w r3, r3, #15
- 8004dfe: 81fb strh r3, [r7, #14]
+ 8004906: 69bb ldr r3, [r7, #24]
+ 8004908: b29b uxth r3, r3
+ 800490a: f023 030f bic.w r3, r3, #15
+ 800490e: 81fb strh r3, [r7, #14]
brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
- 8004e00: 69bb ldr r3, [r7, #24]
- 8004e02: 085b lsrs r3, r3, #1
- 8004e04: b29b uxth r3, r3
- 8004e06: f003 0307 and.w r3, r3, #7
- 8004e0a: b29a uxth r2, r3
- 8004e0c: 89fb ldrh r3, [r7, #14]
- 8004e0e: 4313 orrs r3, r2
- 8004e10: 81fb strh r3, [r7, #14]
+ 8004910: 69bb ldr r3, [r7, #24]
+ 8004912: 085b lsrs r3, r3, #1
+ 8004914: b29b uxth r3, r3
+ 8004916: f003 0307 and.w r3, r3, #7
+ 800491a: b29a uxth r2, r3
+ 800491c: 89fb ldrh r3, [r7, #14]
+ 800491e: 4313 orrs r3, r2
+ 8004920: 81fb strh r3, [r7, #14]
huart->Instance->BRR = brrtemp;
- 8004e12: 687b ldr r3, [r7, #4]
- 8004e14: 681b ldr r3, [r3, #0]
- 8004e16: 89fa ldrh r2, [r7, #14]
- 8004e18: 60da str r2, [r3, #12]
- 8004e1a: e06e b.n 8004efa <UART_SetConfig+0x52a>
+ 8004922: 687b ldr r3, [r7, #4]
+ 8004924: 681b ldr r3, [r3, #0]
+ 8004926: 89fa ldrh r2, [r7, #14]
+ 8004928: 60da str r2, [r3, #12]
+ 800492a: e06e b.n 8004a0a <UART_SetConfig+0x52a>
}
else
{
ret = HAL_ERROR;
- 8004e1c: 2301 movs r3, #1
- 8004e1e: 75fb strb r3, [r7, #23]
- 8004e20: e06b b.n 8004efa <UART_SetConfig+0x52a>
+ 800492c: 2301 movs r3, #1
+ 800492e: 75fb strb r3, [r7, #23]
+ 8004930: e06b b.n 8004a0a <UART_SetConfig+0x52a>
}
}
else
{
switch (clocksource)
- 8004e22: 7ffb ldrb r3, [r7, #31]
- 8004e24: 2b08 cmp r3, #8
- 8004e26: d857 bhi.n 8004ed8 <UART_SetConfig+0x508>
- 8004e28: a201 add r2, pc, #4 ; (adr r2, 8004e30 <UART_SetConfig+0x460>)
- 8004e2a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
- 8004e2e: bf00 nop
- 8004e30: 08004e55 .word 0x08004e55
- 8004e34: 08004e71 .word 0x08004e71
- 8004e38: 08004e8d .word 0x08004e8d
- 8004e3c: 08004ed9 .word 0x08004ed9
- 8004e40: 08004ea5 .word 0x08004ea5
- 8004e44: 08004ed9 .word 0x08004ed9
- 8004e48: 08004ed9 .word 0x08004ed9
- 8004e4c: 08004ed9 .word 0x08004ed9
- 8004e50: 08004ec1 .word 0x08004ec1
+ 8004932: 7ffb ldrb r3, [r7, #31]
+ 8004934: 2b08 cmp r3, #8
+ 8004936: d857 bhi.n 80049e8 <UART_SetConfig+0x508>
+ 8004938: a201 add r2, pc, #4 ; (adr r2, 8004940 <UART_SetConfig+0x460>)
+ 800493a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
+ 800493e: bf00 nop
+ 8004940: 08004965 .word 0x08004965
+ 8004944: 08004981 .word 0x08004981
+ 8004948: 0800499d .word 0x0800499d
+ 800494c: 080049e9 .word 0x080049e9
+ 8004950: 080049b5 .word 0x080049b5
+ 8004954: 080049e9 .word 0x080049e9
+ 8004958: 080049e9 .word 0x080049e9
+ 800495c: 080049e9 .word 0x080049e9
+ 8004960: 080049d1 .word 0x080049d1
{
case UART_CLOCKSOURCE_PCLK1:
usartdiv = (uint16_t)(UART_DIV_SAMPLING16(HAL_RCC_GetPCLK1Freq(), huart->Init.BaudRate));
- 8004e54: f7fd ff4a bl 8002cec <HAL_RCC_GetPCLK1Freq>
- 8004e58: 4602 mov r2, r0
- 8004e5a: 687b ldr r3, [r7, #4]
- 8004e5c: 685b ldr r3, [r3, #4]
- 8004e5e: 085b lsrs r3, r3, #1
- 8004e60: 441a add r2, r3
- 8004e62: 687b ldr r3, [r7, #4]
- 8004e64: 685b ldr r3, [r3, #4]
- 8004e66: fbb2 f3f3 udiv r3, r2, r3
- 8004e6a: b29b uxth r3, r3
- 8004e6c: 61bb str r3, [r7, #24]
+ 8004964: f7fd fea8 bl 80026b8 <HAL_RCC_GetPCLK1Freq>
+ 8004968: 4602 mov r2, r0
+ 800496a: 687b ldr r3, [r7, #4]
+ 800496c: 685b ldr r3, [r3, #4]
+ 800496e: 085b lsrs r3, r3, #1
+ 8004970: 441a add r2, r3
+ 8004972: 687b ldr r3, [r7, #4]
+ 8004974: 685b ldr r3, [r3, #4]
+ 8004976: fbb2 f3f3 udiv r3, r2, r3
+ 800497a: b29b uxth r3, r3
+ 800497c: 61bb str r3, [r7, #24]
break;
- 8004e6e: e036 b.n 8004ede <UART_SetConfig+0x50e>
+ 800497e: e036 b.n 80049ee <UART_SetConfig+0x50e>
case UART_CLOCKSOURCE_PCLK2:
usartdiv = (uint16_t)(UART_DIV_SAMPLING16(HAL_RCC_GetPCLK2Freq(), huart->Init.BaudRate));
- 8004e70: f7fd ff50 bl 8002d14 <HAL_RCC_GetPCLK2Freq>
- 8004e74: 4602 mov r2, r0
- 8004e76: 687b ldr r3, [r7, #4]
- 8004e78: 685b ldr r3, [r3, #4]
- 8004e7a: 085b lsrs r3, r3, #1
- 8004e7c: 441a add r2, r3
- 8004e7e: 687b ldr r3, [r7, #4]
- 8004e80: 685b ldr r3, [r3, #4]
- 8004e82: fbb2 f3f3 udiv r3, r2, r3
- 8004e86: b29b uxth r3, r3
- 8004e88: 61bb str r3, [r7, #24]
+ 8004980: f7fd feae bl 80026e0 <HAL_RCC_GetPCLK2Freq>
+ 8004984: 4602 mov r2, r0
+ 8004986: 687b ldr r3, [r7, #4]
+ 8004988: 685b ldr r3, [r3, #4]
+ 800498a: 085b lsrs r3, r3, #1
+ 800498c: 441a add r2, r3
+ 800498e: 687b ldr r3, [r7, #4]
+ 8004990: 685b ldr r3, [r3, #4]
+ 8004992: fbb2 f3f3 udiv r3, r2, r3
+ 8004996: b29b uxth r3, r3
+ 8004998: 61bb str r3, [r7, #24]
break;
- 8004e8a: e028 b.n 8004ede <UART_SetConfig+0x50e>
+ 800499a: e028 b.n 80049ee <UART_SetConfig+0x50e>
case UART_CLOCKSOURCE_HSI:
usartdiv = (uint16_t)(UART_DIV_SAMPLING16(HSI_VALUE, huart->Init.BaudRate));
- 8004e8c: 687b ldr r3, [r7, #4]
- 8004e8e: 685b ldr r3, [r3, #4]
- 8004e90: 085a lsrs r2, r3, #1
- 8004e92: 4b20 ldr r3, [pc, #128] ; (8004f14 <UART_SetConfig+0x544>)
- 8004e94: 4413 add r3, r2
- 8004e96: 687a ldr r2, [r7, #4]
- 8004e98: 6852 ldr r2, [r2, #4]
- 8004e9a: fbb3 f3f2 udiv r3, r3, r2
- 8004e9e: b29b uxth r3, r3
- 8004ea0: 61bb str r3, [r7, #24]
+ 800499c: 687b ldr r3, [r7, #4]
+ 800499e: 685b ldr r3, [r3, #4]
+ 80049a0: 085a lsrs r2, r3, #1
+ 80049a2: 4b20 ldr r3, [pc, #128] ; (8004a24 <UART_SetConfig+0x544>)
+ 80049a4: 4413 add r3, r2
+ 80049a6: 687a ldr r2, [r7, #4]
+ 80049a8: 6852 ldr r2, [r2, #4]
+ 80049aa: fbb3 f3f2 udiv r3, r3, r2
+ 80049ae: b29b uxth r3, r3
+ 80049b0: 61bb str r3, [r7, #24]
break;
- 8004ea2: e01c b.n 8004ede <UART_SetConfig+0x50e>
+ 80049b2: e01c b.n 80049ee <UART_SetConfig+0x50e>
case UART_CLOCKSOURCE_SYSCLK:
usartdiv = (uint16_t)(UART_DIV_SAMPLING16(HAL_RCC_GetSysClockFreq(), huart->Init.BaudRate));
- 8004ea4: f7fd fe64 bl 8002b70 <HAL_RCC_GetSysClockFreq>
- 8004ea8: 4602 mov r2, r0
- 8004eaa: 687b ldr r3, [r7, #4]
- 8004eac: 685b ldr r3, [r3, #4]
- 8004eae: 085b lsrs r3, r3, #1
- 8004eb0: 441a add r2, r3
- 8004eb2: 687b ldr r3, [r7, #4]
- 8004eb4: 685b ldr r3, [r3, #4]
- 8004eb6: fbb2 f3f3 udiv r3, r2, r3
- 8004eba: b29b uxth r3, r3
- 8004ebc: 61bb str r3, [r7, #24]
+ 80049b4: f7fd fdc2 bl 800253c <HAL_RCC_GetSysClockFreq>
+ 80049b8: 4602 mov r2, r0
+ 80049ba: 687b ldr r3, [r7, #4]
+ 80049bc: 685b ldr r3, [r3, #4]
+ 80049be: 085b lsrs r3, r3, #1
+ 80049c0: 441a add r2, r3
+ 80049c2: 687b ldr r3, [r7, #4]
+ 80049c4: 685b ldr r3, [r3, #4]
+ 80049c6: fbb2 f3f3 udiv r3, r2, r3
+ 80049ca: b29b uxth r3, r3
+ 80049cc: 61bb str r3, [r7, #24]
break;
- 8004ebe: e00e b.n 8004ede <UART_SetConfig+0x50e>
+ 80049ce: e00e b.n 80049ee <UART_SetConfig+0x50e>
case UART_CLOCKSOURCE_LSE:
usartdiv = (uint16_t)(UART_DIV_SAMPLING16(LSE_VALUE, huart->Init.BaudRate));
- 8004ec0: 687b ldr r3, [r7, #4]
- 8004ec2: 685b ldr r3, [r3, #4]
- 8004ec4: 085b lsrs r3, r3, #1
- 8004ec6: f503 4200 add.w r2, r3, #32768 ; 0x8000
- 8004eca: 687b ldr r3, [r7, #4]
- 8004ecc: 685b ldr r3, [r3, #4]
- 8004ece: fbb2 f3f3 udiv r3, r2, r3
- 8004ed2: b29b uxth r3, r3
- 8004ed4: 61bb str r3, [r7, #24]
+ 80049d0: 687b ldr r3, [r7, #4]
+ 80049d2: 685b ldr r3, [r3, #4]
+ 80049d4: 085b lsrs r3, r3, #1
+ 80049d6: f503 4200 add.w r2, r3, #32768 ; 0x8000
+ 80049da: 687b ldr r3, [r7, #4]
+ 80049dc: 685b ldr r3, [r3, #4]
+ 80049de: fbb2 f3f3 udiv r3, r2, r3
+ 80049e2: b29b uxth r3, r3
+ 80049e4: 61bb str r3, [r7, #24]
break;
- 8004ed6: e002 b.n 8004ede <UART_SetConfig+0x50e>
+ 80049e6: e002 b.n 80049ee <UART_SetConfig+0x50e>
case UART_CLOCKSOURCE_UNDEFINED:
default:
ret = HAL_ERROR;
- 8004ed8: 2301 movs r3, #1
- 8004eda: 75fb strb r3, [r7, #23]
+ 80049e8: 2301 movs r3, #1
+ 80049ea: 75fb strb r3, [r7, #23]
break;
- 8004edc: bf00 nop
+ 80049ec: bf00 nop
}
/* USARTDIV must be greater than or equal to 0d16 */
if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
- 8004ede: 69bb ldr r3, [r7, #24]
- 8004ee0: 2b0f cmp r3, #15
- 8004ee2: d908 bls.n 8004ef6 <UART_SetConfig+0x526>
- 8004ee4: 69bb ldr r3, [r7, #24]
- 8004ee6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
- 8004eea: d204 bcs.n 8004ef6 <UART_SetConfig+0x526>
+ 80049ee: 69bb ldr r3, [r7, #24]
+ 80049f0: 2b0f cmp r3, #15
+ 80049f2: d908 bls.n 8004a06 <UART_SetConfig+0x526>
+ 80049f4: 69bb ldr r3, [r7, #24]
+ 80049f6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
+ 80049fa: d204 bcs.n 8004a06 <UART_SetConfig+0x526>
{
huart->Instance->BRR = usartdiv;
- 8004eec: 687b ldr r3, [r7, #4]
- 8004eee: 681b ldr r3, [r3, #0]
- 8004ef0: 69ba ldr r2, [r7, #24]
- 8004ef2: 60da str r2, [r3, #12]
- 8004ef4: e001 b.n 8004efa <UART_SetConfig+0x52a>
+ 80049fc: 687b ldr r3, [r7, #4]
+ 80049fe: 681b ldr r3, [r3, #0]
+ 8004a00: 69ba ldr r2, [r7, #24]
+ 8004a02: 60da str r2, [r3, #12]
+ 8004a04: e001 b.n 8004a0a <UART_SetConfig+0x52a>
}
else
{
ret = HAL_ERROR;
- 8004ef6: 2301 movs r3, #1
- 8004ef8: 75fb strb r3, [r7, #23]
+ 8004a06: 2301 movs r3, #1
+ 8004a08: 75fb strb r3, [r7, #23]
}
}
/* Clear ISR function pointers */
huart->RxISR = NULL;
- 8004efa: 687b ldr r3, [r7, #4]
- 8004efc: 2200 movs r2, #0
- 8004efe: 661a str r2, [r3, #96] ; 0x60
+ 8004a0a: 687b ldr r3, [r7, #4]
+ 8004a0c: 2200 movs r2, #0
+ 8004a0e: 661a str r2, [r3, #96] ; 0x60
huart->TxISR = NULL;
- 8004f00: 687b ldr r3, [r7, #4]
- 8004f02: 2200 movs r2, #0
- 8004f04: 665a str r2, [r3, #100] ; 0x64
+ 8004a10: 687b ldr r3, [r7, #4]
+ 8004a12: 2200 movs r2, #0
+ 8004a14: 665a str r2, [r3, #100] ; 0x64
return ret;
- 8004f06: 7dfb ldrb r3, [r7, #23]
+ 8004a16: 7dfb ldrb r3, [r7, #23]
}
- 8004f08: 4618 mov r0, r3
- 8004f0a: 3720 adds r7, #32
- 8004f0c: 46bd mov sp, r7
- 8004f0e: bd80 pop {r7, pc}
- 8004f10: 01e84800 .word 0x01e84800
- 8004f14: 00f42400 .word 0x00f42400
-
-08004f18 <UART_AdvFeatureConfig>:
+ 8004a18: 4618 mov r0, r3
+ 8004a1a: 3720 adds r7, #32
+ 8004a1c: 46bd mov sp, r7
+ 8004a1e: bd80 pop {r7, pc}
+ 8004a20: 01e84800 .word 0x01e84800
+ 8004a24: 00f42400 .word 0x00f42400
+
+08004a28 <UART_AdvFeatureConfig>:
* @brief Configure the UART peripheral advanced features.
* @param huart UART handle.
* @retval None
*/
void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
{
- 8004f18: b480 push {r7}
- 8004f1a: b083 sub sp, #12
- 8004f1c: af00 add r7, sp, #0
- 8004f1e: 6078 str r0, [r7, #4]
+ 8004a28: b480 push {r7}
+ 8004a2a: b083 sub sp, #12
+ 8004a2c: af00 add r7, sp, #0
+ 8004a2e: 6078 str r0, [r7, #4]
/* Check whether the set of advanced features to configure is properly set */
assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
/* if required, configure TX pin active level inversion */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
- 8004f20: 687b ldr r3, [r7, #4]
- 8004f22: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004f24: f003 0301 and.w r3, r3, #1
- 8004f28: 2b00 cmp r3, #0
- 8004f2a: d00a beq.n 8004f42 <UART_AdvFeatureConfig+0x2a>
+ 8004a30: 687b ldr r3, [r7, #4]
+ 8004a32: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004a34: f003 0301 and.w r3, r3, #1
+ 8004a38: 2b00 cmp r3, #0
+ 8004a3a: d00a beq.n 8004a52 <UART_AdvFeatureConfig+0x2a>
{
assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
- 8004f2c: 687b ldr r3, [r7, #4]
- 8004f2e: 681b ldr r3, [r3, #0]
- 8004f30: 685b ldr r3, [r3, #4]
- 8004f32: f423 3100 bic.w r1, r3, #131072 ; 0x20000
- 8004f36: 687b ldr r3, [r7, #4]
- 8004f38: 6a9a ldr r2, [r3, #40] ; 0x28
- 8004f3a: 687b ldr r3, [r7, #4]
- 8004f3c: 681b ldr r3, [r3, #0]
- 8004f3e: 430a orrs r2, r1
- 8004f40: 605a str r2, [r3, #4]
+ 8004a3c: 687b ldr r3, [r7, #4]
+ 8004a3e: 681b ldr r3, [r3, #0]
+ 8004a40: 685b ldr r3, [r3, #4]
+ 8004a42: f423 3100 bic.w r1, r3, #131072 ; 0x20000
+ 8004a46: 687b ldr r3, [r7, #4]
+ 8004a48: 6a9a ldr r2, [r3, #40] ; 0x28
+ 8004a4a: 687b ldr r3, [r7, #4]
+ 8004a4c: 681b ldr r3, [r3, #0]
+ 8004a4e: 430a orrs r2, r1
+ 8004a50: 605a str r2, [r3, #4]
}
/* if required, configure RX pin active level inversion */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
- 8004f42: 687b ldr r3, [r7, #4]
- 8004f44: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004f46: f003 0302 and.w r3, r3, #2
- 8004f4a: 2b00 cmp r3, #0
- 8004f4c: d00a beq.n 8004f64 <UART_AdvFeatureConfig+0x4c>
+ 8004a52: 687b ldr r3, [r7, #4]
+ 8004a54: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004a56: f003 0302 and.w r3, r3, #2
+ 8004a5a: 2b00 cmp r3, #0
+ 8004a5c: d00a beq.n 8004a74 <UART_AdvFeatureConfig+0x4c>
{
assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
- 8004f4e: 687b ldr r3, [r7, #4]
- 8004f50: 681b ldr r3, [r3, #0]
- 8004f52: 685b ldr r3, [r3, #4]
- 8004f54: f423 3180 bic.w r1, r3, #65536 ; 0x10000
- 8004f58: 687b ldr r3, [r7, #4]
- 8004f5a: 6ada ldr r2, [r3, #44] ; 0x2c
- 8004f5c: 687b ldr r3, [r7, #4]
- 8004f5e: 681b ldr r3, [r3, #0]
- 8004f60: 430a orrs r2, r1
- 8004f62: 605a str r2, [r3, #4]
+ 8004a5e: 687b ldr r3, [r7, #4]
+ 8004a60: 681b ldr r3, [r3, #0]
+ 8004a62: 685b ldr r3, [r3, #4]
+ 8004a64: f423 3180 bic.w r1, r3, #65536 ; 0x10000
+ 8004a68: 687b ldr r3, [r7, #4]
+ 8004a6a: 6ada ldr r2, [r3, #44] ; 0x2c
+ 8004a6c: 687b ldr r3, [r7, #4]
+ 8004a6e: 681b ldr r3, [r3, #0]
+ 8004a70: 430a orrs r2, r1
+ 8004a72: 605a str r2, [r3, #4]
}
/* if required, configure data inversion */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
- 8004f64: 687b ldr r3, [r7, #4]
- 8004f66: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004f68: f003 0304 and.w r3, r3, #4
- 8004f6c: 2b00 cmp r3, #0
- 8004f6e: d00a beq.n 8004f86 <UART_AdvFeatureConfig+0x6e>
+ 8004a74: 687b ldr r3, [r7, #4]
+ 8004a76: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004a78: f003 0304 and.w r3, r3, #4
+ 8004a7c: 2b00 cmp r3, #0
+ 8004a7e: d00a beq.n 8004a96 <UART_AdvFeatureConfig+0x6e>
{
assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
- 8004f70: 687b ldr r3, [r7, #4]
- 8004f72: 681b ldr r3, [r3, #0]
- 8004f74: 685b ldr r3, [r3, #4]
- 8004f76: f423 2180 bic.w r1, r3, #262144 ; 0x40000
- 8004f7a: 687b ldr r3, [r7, #4]
- 8004f7c: 6b1a ldr r2, [r3, #48] ; 0x30
- 8004f7e: 687b ldr r3, [r7, #4]
- 8004f80: 681b ldr r3, [r3, #0]
- 8004f82: 430a orrs r2, r1
- 8004f84: 605a str r2, [r3, #4]
+ 8004a80: 687b ldr r3, [r7, #4]
+ 8004a82: 681b ldr r3, [r3, #0]
+ 8004a84: 685b ldr r3, [r3, #4]
+ 8004a86: f423 2180 bic.w r1, r3, #262144 ; 0x40000
+ 8004a8a: 687b ldr r3, [r7, #4]
+ 8004a8c: 6b1a ldr r2, [r3, #48] ; 0x30
+ 8004a8e: 687b ldr r3, [r7, #4]
+ 8004a90: 681b ldr r3, [r3, #0]
+ 8004a92: 430a orrs r2, r1
+ 8004a94: 605a str r2, [r3, #4]
}
/* if required, configure RX/TX pins swap */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
- 8004f86: 687b ldr r3, [r7, #4]
- 8004f88: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004f8a: f003 0308 and.w r3, r3, #8
- 8004f8e: 2b00 cmp r3, #0
- 8004f90: d00a beq.n 8004fa8 <UART_AdvFeatureConfig+0x90>
+ 8004a96: 687b ldr r3, [r7, #4]
+ 8004a98: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004a9a: f003 0308 and.w r3, r3, #8
+ 8004a9e: 2b00 cmp r3, #0
+ 8004aa0: d00a beq.n 8004ab8 <UART_AdvFeatureConfig+0x90>
{
assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
- 8004f92: 687b ldr r3, [r7, #4]
- 8004f94: 681b ldr r3, [r3, #0]
- 8004f96: 685b ldr r3, [r3, #4]
- 8004f98: f423 4100 bic.w r1, r3, #32768 ; 0x8000
- 8004f9c: 687b ldr r3, [r7, #4]
- 8004f9e: 6b5a ldr r2, [r3, #52] ; 0x34
- 8004fa0: 687b ldr r3, [r7, #4]
- 8004fa2: 681b ldr r3, [r3, #0]
- 8004fa4: 430a orrs r2, r1
- 8004fa6: 605a str r2, [r3, #4]
+ 8004aa2: 687b ldr r3, [r7, #4]
+ 8004aa4: 681b ldr r3, [r3, #0]
+ 8004aa6: 685b ldr r3, [r3, #4]
+ 8004aa8: f423 4100 bic.w r1, r3, #32768 ; 0x8000
+ 8004aac: 687b ldr r3, [r7, #4]
+ 8004aae: 6b5a ldr r2, [r3, #52] ; 0x34
+ 8004ab0: 687b ldr r3, [r7, #4]
+ 8004ab2: 681b ldr r3, [r3, #0]
+ 8004ab4: 430a orrs r2, r1
+ 8004ab6: 605a str r2, [r3, #4]
}
/* if required, configure RX overrun detection disabling */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
- 8004fa8: 687b ldr r3, [r7, #4]
- 8004faa: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004fac: f003 0310 and.w r3, r3, #16
- 8004fb0: 2b00 cmp r3, #0
- 8004fb2: d00a beq.n 8004fca <UART_AdvFeatureConfig+0xb2>
+ 8004ab8: 687b ldr r3, [r7, #4]
+ 8004aba: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004abc: f003 0310 and.w r3, r3, #16
+ 8004ac0: 2b00 cmp r3, #0
+ 8004ac2: d00a beq.n 8004ada <UART_AdvFeatureConfig+0xb2>
{
assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
- 8004fb4: 687b ldr r3, [r7, #4]
- 8004fb6: 681b ldr r3, [r3, #0]
- 8004fb8: 689b ldr r3, [r3, #8]
- 8004fba: f423 5180 bic.w r1, r3, #4096 ; 0x1000
- 8004fbe: 687b ldr r3, [r7, #4]
- 8004fc0: 6b9a ldr r2, [r3, #56] ; 0x38
- 8004fc2: 687b ldr r3, [r7, #4]
- 8004fc4: 681b ldr r3, [r3, #0]
- 8004fc6: 430a orrs r2, r1
- 8004fc8: 609a str r2, [r3, #8]
+ 8004ac4: 687b ldr r3, [r7, #4]
+ 8004ac6: 681b ldr r3, [r3, #0]
+ 8004ac8: 689b ldr r3, [r3, #8]
+ 8004aca: f423 5180 bic.w r1, r3, #4096 ; 0x1000
+ 8004ace: 687b ldr r3, [r7, #4]
+ 8004ad0: 6b9a ldr r2, [r3, #56] ; 0x38
+ 8004ad2: 687b ldr r3, [r7, #4]
+ 8004ad4: 681b ldr r3, [r3, #0]
+ 8004ad6: 430a orrs r2, r1
+ 8004ad8: 609a str r2, [r3, #8]
}
/* if required, configure DMA disabling on reception error */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
- 8004fca: 687b ldr r3, [r7, #4]
- 8004fcc: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004fce: f003 0320 and.w r3, r3, #32
- 8004fd2: 2b00 cmp r3, #0
- 8004fd4: d00a beq.n 8004fec <UART_AdvFeatureConfig+0xd4>
+ 8004ada: 687b ldr r3, [r7, #4]
+ 8004adc: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004ade: f003 0320 and.w r3, r3, #32
+ 8004ae2: 2b00 cmp r3, #0
+ 8004ae4: d00a beq.n 8004afc <UART_AdvFeatureConfig+0xd4>
{
assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
- 8004fd6: 687b ldr r3, [r7, #4]
- 8004fd8: 681b ldr r3, [r3, #0]
- 8004fda: 689b ldr r3, [r3, #8]
- 8004fdc: f423 5100 bic.w r1, r3, #8192 ; 0x2000
- 8004fe0: 687b ldr r3, [r7, #4]
- 8004fe2: 6bda ldr r2, [r3, #60] ; 0x3c
- 8004fe4: 687b ldr r3, [r7, #4]
- 8004fe6: 681b ldr r3, [r3, #0]
- 8004fe8: 430a orrs r2, r1
- 8004fea: 609a str r2, [r3, #8]
+ 8004ae6: 687b ldr r3, [r7, #4]
+ 8004ae8: 681b ldr r3, [r3, #0]
+ 8004aea: 689b ldr r3, [r3, #8]
+ 8004aec: f423 5100 bic.w r1, r3, #8192 ; 0x2000
+ 8004af0: 687b ldr r3, [r7, #4]
+ 8004af2: 6bda ldr r2, [r3, #60] ; 0x3c
+ 8004af4: 687b ldr r3, [r7, #4]
+ 8004af6: 681b ldr r3, [r3, #0]
+ 8004af8: 430a orrs r2, r1
+ 8004afa: 609a str r2, [r3, #8]
}
/* if required, configure auto Baud rate detection scheme */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
- 8004fec: 687b ldr r3, [r7, #4]
- 8004fee: 6a5b ldr r3, [r3, #36] ; 0x24
- 8004ff0: f003 0340 and.w r3, r3, #64 ; 0x40
- 8004ff4: 2b00 cmp r3, #0
- 8004ff6: d01a beq.n 800502e <UART_AdvFeatureConfig+0x116>
+ 8004afc: 687b ldr r3, [r7, #4]
+ 8004afe: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004b00: f003 0340 and.w r3, r3, #64 ; 0x40
+ 8004b04: 2b00 cmp r3, #0
+ 8004b06: d01a beq.n 8004b3e <UART_AdvFeatureConfig+0x116>
{
assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
- 8004ff8: 687b ldr r3, [r7, #4]
- 8004ffa: 681b ldr r3, [r3, #0]
- 8004ffc: 685b ldr r3, [r3, #4]
- 8004ffe: f423 1180 bic.w r1, r3, #1048576 ; 0x100000
- 8005002: 687b ldr r3, [r7, #4]
- 8005004: 6c1a ldr r2, [r3, #64] ; 0x40
- 8005006: 687b ldr r3, [r7, #4]
- 8005008: 681b ldr r3, [r3, #0]
- 800500a: 430a orrs r2, r1
- 800500c: 605a str r2, [r3, #4]
+ 8004b08: 687b ldr r3, [r7, #4]
+ 8004b0a: 681b ldr r3, [r3, #0]
+ 8004b0c: 685b ldr r3, [r3, #4]
+ 8004b0e: f423 1180 bic.w r1, r3, #1048576 ; 0x100000
+ 8004b12: 687b ldr r3, [r7, #4]
+ 8004b14: 6c1a ldr r2, [r3, #64] ; 0x40
+ 8004b16: 687b ldr r3, [r7, #4]
+ 8004b18: 681b ldr r3, [r3, #0]
+ 8004b1a: 430a orrs r2, r1
+ 8004b1c: 605a str r2, [r3, #4]
/* set auto Baudrate detection parameters if detection is enabled */
if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
- 800500e: 687b ldr r3, [r7, #4]
- 8005010: 6c1b ldr r3, [r3, #64] ; 0x40
- 8005012: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000
- 8005016: d10a bne.n 800502e <UART_AdvFeatureConfig+0x116>
+ 8004b1e: 687b ldr r3, [r7, #4]
+ 8004b20: 6c1b ldr r3, [r3, #64] ; 0x40
+ 8004b22: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000
+ 8004b26: d10a bne.n 8004b3e <UART_AdvFeatureConfig+0x116>
{
assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
- 8005018: 687b ldr r3, [r7, #4]
- 800501a: 681b ldr r3, [r3, #0]
- 800501c: 685b ldr r3, [r3, #4]
- 800501e: f423 01c0 bic.w r1, r3, #6291456 ; 0x600000
- 8005022: 687b ldr r3, [r7, #4]
- 8005024: 6c5a ldr r2, [r3, #68] ; 0x44
- 8005026: 687b ldr r3, [r7, #4]
- 8005028: 681b ldr r3, [r3, #0]
- 800502a: 430a orrs r2, r1
- 800502c: 605a str r2, [r3, #4]
+ 8004b28: 687b ldr r3, [r7, #4]
+ 8004b2a: 681b ldr r3, [r3, #0]
+ 8004b2c: 685b ldr r3, [r3, #4]
+ 8004b2e: f423 01c0 bic.w r1, r3, #6291456 ; 0x600000
+ 8004b32: 687b ldr r3, [r7, #4]
+ 8004b34: 6c5a ldr r2, [r3, #68] ; 0x44
+ 8004b36: 687b ldr r3, [r7, #4]
+ 8004b38: 681b ldr r3, [r3, #0]
+ 8004b3a: 430a orrs r2, r1
+ 8004b3c: 605a str r2, [r3, #4]
}
}
/* if required, configure MSB first on communication line */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
- 800502e: 687b ldr r3, [r7, #4]
- 8005030: 6a5b ldr r3, [r3, #36] ; 0x24
- 8005032: f003 0380 and.w r3, r3, #128 ; 0x80
- 8005036: 2b00 cmp r3, #0
- 8005038: d00a beq.n 8005050 <UART_AdvFeatureConfig+0x138>
+ 8004b3e: 687b ldr r3, [r7, #4]
+ 8004b40: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004b42: f003 0380 and.w r3, r3, #128 ; 0x80
+ 8004b46: 2b00 cmp r3, #0
+ 8004b48: d00a beq.n 8004b60 <UART_AdvFeatureConfig+0x138>
{
assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
- 800503a: 687b ldr r3, [r7, #4]
- 800503c: 681b ldr r3, [r3, #0]
- 800503e: 685b ldr r3, [r3, #4]
- 8005040: f423 2100 bic.w r1, r3, #524288 ; 0x80000
- 8005044: 687b ldr r3, [r7, #4]
- 8005046: 6c9a ldr r2, [r3, #72] ; 0x48
- 8005048: 687b ldr r3, [r7, #4]
- 800504a: 681b ldr r3, [r3, #0]
- 800504c: 430a orrs r2, r1
- 800504e: 605a str r2, [r3, #4]
+ 8004b4a: 687b ldr r3, [r7, #4]
+ 8004b4c: 681b ldr r3, [r3, #0]
+ 8004b4e: 685b ldr r3, [r3, #4]
+ 8004b50: f423 2100 bic.w r1, r3, #524288 ; 0x80000
+ 8004b54: 687b ldr r3, [r7, #4]
+ 8004b56: 6c9a ldr r2, [r3, #72] ; 0x48
+ 8004b58: 687b ldr r3, [r7, #4]
+ 8004b5a: 681b ldr r3, [r3, #0]
+ 8004b5c: 430a orrs r2, r1
+ 8004b5e: 605a str r2, [r3, #4]
}
}
- 8005050: bf00 nop
- 8005052: 370c adds r7, #12
- 8005054: 46bd mov sp, r7
- 8005056: f85d 7b04 ldr.w r7, [sp], #4
- 800505a: 4770 bx lr
+ 8004b60: bf00 nop
+ 8004b62: 370c adds r7, #12
+ 8004b64: 46bd mov sp, r7
+ 8004b66: f85d 7b04 ldr.w r7, [sp], #4
+ 8004b6a: 4770 bx lr
-0800505c <UART_CheckIdleState>:
+08004b6c <UART_CheckIdleState>:
* @brief Check the UART Idle State.
* @param huart UART handle.
* @retval HAL status
*/
HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
{
- 800505c: b580 push {r7, lr}
- 800505e: b086 sub sp, #24
- 8005060: af02 add r7, sp, #8
- 8005062: 6078 str r0, [r7, #4]
+ 8004b6c: b580 push {r7, lr}
+ 8004b6e: b086 sub sp, #24
+ 8004b70: af02 add r7, sp, #8
+ 8004b72: 6078 str r0, [r7, #4]
uint32_t tickstart;
/* Initialize the UART ErrorCode */
huart->ErrorCode = HAL_UART_ERROR_NONE;
- 8005064: 687b ldr r3, [r7, #4]
- 8005066: 2200 movs r2, #0
- 8005068: 67da str r2, [r3, #124] ; 0x7c
+ 8004b74: 687b ldr r3, [r7, #4]
+ 8004b76: 2200 movs r2, #0
+ 8004b78: 67da str r2, [r3, #124] ; 0x7c
/* Init tickstart for timeout managment*/
tickstart = HAL_GetTick();
- 800506a: f7fc fc3b bl 80018e4 <HAL_GetTick>
- 800506e: 60f8 str r0, [r7, #12]
+ 8004b7a: f7fc fe81 bl 8001880 <HAL_GetTick>
+ 8004b7e: 60f8 str r0, [r7, #12]
/* Check if the Transmitter is enabled */
if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
- 8005070: 687b ldr r3, [r7, #4]
- 8005072: 681b ldr r3, [r3, #0]
- 8005074: 681b ldr r3, [r3, #0]
- 8005076: f003 0308 and.w r3, r3, #8
- 800507a: 2b08 cmp r3, #8
- 800507c: d10e bne.n 800509c <UART_CheckIdleState+0x40>
+ 8004b80: 687b ldr r3, [r7, #4]
+ 8004b82: 681b ldr r3, [r3, #0]
+ 8004b84: 681b ldr r3, [r3, #0]
+ 8004b86: f003 0308 and.w r3, r3, #8
+ 8004b8a: 2b08 cmp r3, #8
+ 8004b8c: d10e bne.n 8004bac <UART_CheckIdleState+0x40>
{
/* Wait until TEACK flag is set */
if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
- 800507e: f06f 437e mvn.w r3, #4261412864 ; 0xfe000000
- 8005082: 9300 str r3, [sp, #0]
- 8005084: 68fb ldr r3, [r7, #12]
- 8005086: 2200 movs r2, #0
- 8005088: f44f 1100 mov.w r1, #2097152 ; 0x200000
- 800508c: 6878 ldr r0, [r7, #4]
- 800508e: f000 f814 bl 80050ba <UART_WaitOnFlagUntilTimeout>
- 8005092: 4603 mov r3, r0
- 8005094: 2b00 cmp r3, #0
- 8005096: d001 beq.n 800509c <UART_CheckIdleState+0x40>
+ 8004b8e: f06f 437e mvn.w r3, #4261412864 ; 0xfe000000
+ 8004b92: 9300 str r3, [sp, #0]
+ 8004b94: 68fb ldr r3, [r7, #12]
+ 8004b96: 2200 movs r2, #0
+ 8004b98: f44f 1100 mov.w r1, #2097152 ; 0x200000
+ 8004b9c: 6878 ldr r0, [r7, #4]
+ 8004b9e: f000 f814 bl 8004bca <UART_WaitOnFlagUntilTimeout>
+ 8004ba2: 4603 mov r3, r0
+ 8004ba4: 2b00 cmp r3, #0
+ 8004ba6: d001 beq.n 8004bac <UART_CheckIdleState+0x40>
{
/* Timeout occurred */
return HAL_TIMEOUT;
- 8005098: 2303 movs r3, #3
- 800509a: e00a b.n 80050b2 <UART_CheckIdleState+0x56>
+ 8004ba8: 2303 movs r3, #3
+ 8004baa: e00a b.n 8004bc2 <UART_CheckIdleState+0x56>
}
}
/* Initialize the UART State */
huart->gState = HAL_UART_STATE_READY;
- 800509c: 687b ldr r3, [r7, #4]
- 800509e: 2220 movs r2, #32
- 80050a0: 675a str r2, [r3, #116] ; 0x74
+ 8004bac: 687b ldr r3, [r7, #4]
+ 8004bae: 2220 movs r2, #32
+ 8004bb0: 675a str r2, [r3, #116] ; 0x74
huart->RxState = HAL_UART_STATE_READY;
- 80050a2: 687b ldr r3, [r7, #4]
- 80050a4: 2220 movs r2, #32
- 80050a6: 679a str r2, [r3, #120] ; 0x78
+ 8004bb2: 687b ldr r3, [r7, #4]
+ 8004bb4: 2220 movs r2, #32
+ 8004bb6: 679a str r2, [r3, #120] ; 0x78
/* Process Unlocked */
__HAL_UNLOCK(huart);
- 80050a8: 687b ldr r3, [r7, #4]
- 80050aa: 2200 movs r2, #0
- 80050ac: f883 2070 strb.w r2, [r3, #112] ; 0x70
+ 8004bb8: 687b ldr r3, [r7, #4]
+ 8004bba: 2200 movs r2, #0
+ 8004bbc: f883 2070 strb.w r2, [r3, #112] ; 0x70
return HAL_OK;
- 80050b0: 2300 movs r3, #0
+ 8004bc0: 2300 movs r3, #0
}
- 80050b2: 4618 mov r0, r3
- 80050b4: 3710 adds r7, #16
- 80050b6: 46bd mov sp, r7
- 80050b8: bd80 pop {r7, pc}
+ 8004bc2: 4618 mov r0, r3
+ 8004bc4: 3710 adds r7, #16
+ 8004bc6: 46bd mov sp, r7
+ 8004bc8: bd80 pop {r7, pc}
-080050ba <UART_WaitOnFlagUntilTimeout>:
+08004bca <UART_WaitOnFlagUntilTimeout>:
* @param Tickstart Tick start value
* @param Timeout Timeout duration
* @retval HAL status
*/
HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout)
{
- 80050ba: b580 push {r7, lr}
- 80050bc: b084 sub sp, #16
- 80050be: af00 add r7, sp, #0
- 80050c0: 60f8 str r0, [r7, #12]
- 80050c2: 60b9 str r1, [r7, #8]
- 80050c4: 603b str r3, [r7, #0]
- 80050c6: 4613 mov r3, r2
- 80050c8: 71fb strb r3, [r7, #7]
+ 8004bca: b580 push {r7, lr}
+ 8004bcc: b084 sub sp, #16
+ 8004bce: af00 add r7, sp, #0
+ 8004bd0: 60f8 str r0, [r7, #12]
+ 8004bd2: 60b9 str r1, [r7, #8]
+ 8004bd4: 603b str r3, [r7, #0]
+ 8004bd6: 4613 mov r3, r2
+ 8004bd8: 71fb strb r3, [r7, #7]
/* Wait until flag is set */
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
- 80050ca: e02a b.n 8005122 <UART_WaitOnFlagUntilTimeout+0x68>
+ 8004bda: e02a b.n 8004c32 <UART_WaitOnFlagUntilTimeout+0x68>
{
/* Check for the Timeout */
if (Timeout != HAL_MAX_DELAY)
- 80050cc: 69bb ldr r3, [r7, #24]
- 80050ce: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
- 80050d2: d026 beq.n 8005122 <UART_WaitOnFlagUntilTimeout+0x68>
+ 8004bdc: 69bb ldr r3, [r7, #24]
+ 8004bde: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
+ 8004be2: d026 beq.n 8004c32 <UART_WaitOnFlagUntilTimeout+0x68>
{
if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
- 80050d4: f7fc fc06 bl 80018e4 <HAL_GetTick>
- 80050d8: 4602 mov r2, r0
- 80050da: 683b ldr r3, [r7, #0]
- 80050dc: 1ad3 subs r3, r2, r3
- 80050de: 69ba ldr r2, [r7, #24]
- 80050e0: 429a cmp r2, r3
- 80050e2: d302 bcc.n 80050ea <UART_WaitOnFlagUntilTimeout+0x30>
- 80050e4: 69bb ldr r3, [r7, #24]
- 80050e6: 2b00 cmp r3, #0
- 80050e8: d11b bne.n 8005122 <UART_WaitOnFlagUntilTimeout+0x68>
+ 8004be4: f7fc fe4c bl 8001880 <HAL_GetTick>
+ 8004be8: 4602 mov r2, r0
+ 8004bea: 683b ldr r3, [r7, #0]
+ 8004bec: 1ad3 subs r3, r2, r3
+ 8004bee: 69ba ldr r2, [r7, #24]
+ 8004bf0: 429a cmp r2, r3
+ 8004bf2: d302 bcc.n 8004bfa <UART_WaitOnFlagUntilTimeout+0x30>
+ 8004bf4: 69bb ldr r3, [r7, #24]
+ 8004bf6: 2b00 cmp r3, #0
+ 8004bf8: d11b bne.n 8004c32 <UART_WaitOnFlagUntilTimeout+0x68>
{
/* Disable TXE, RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts for the interrupt process */
CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE | USART_CR1_TXEIE));
- 80050ea: 68fb ldr r3, [r7, #12]
- 80050ec: 681b ldr r3, [r3, #0]
- 80050ee: 681a ldr r2, [r3, #0]
- 80050f0: 68fb ldr r3, [r7, #12]
- 80050f2: 681b ldr r3, [r3, #0]
- 80050f4: f422 72d0 bic.w r2, r2, #416 ; 0x1a0
- 80050f8: 601a str r2, [r3, #0]
+ 8004bfa: 68fb ldr r3, [r7, #12]
+ 8004bfc: 681b ldr r3, [r3, #0]
+ 8004bfe: 681a ldr r2, [r3, #0]
+ 8004c00: 68fb ldr r3, [r7, #12]
+ 8004c02: 681b ldr r3, [r3, #0]
+ 8004c04: f422 72d0 bic.w r2, r2, #416 ; 0x1a0
+ 8004c08: 601a str r2, [r3, #0]
CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
- 80050fa: 68fb ldr r3, [r7, #12]
- 80050fc: 681b ldr r3, [r3, #0]
- 80050fe: 689a ldr r2, [r3, #8]
- 8005100: 68fb ldr r3, [r7, #12]
- 8005102: 681b ldr r3, [r3, #0]
- 8005104: f022 0201 bic.w r2, r2, #1
- 8005108: 609a str r2, [r3, #8]
+ 8004c0a: 68fb ldr r3, [r7, #12]
+ 8004c0c: 681b ldr r3, [r3, #0]
+ 8004c0e: 689a ldr r2, [r3, #8]
+ 8004c10: 68fb ldr r3, [r7, #12]
+ 8004c12: 681b ldr r3, [r3, #0]
+ 8004c14: f022 0201 bic.w r2, r2, #1
+ 8004c18: 609a str r2, [r3, #8]
huart->gState = HAL_UART_STATE_READY;
- 800510a: 68fb ldr r3, [r7, #12]
- 800510c: 2220 movs r2, #32
- 800510e: 675a str r2, [r3, #116] ; 0x74
+ 8004c1a: 68fb ldr r3, [r7, #12]
+ 8004c1c: 2220 movs r2, #32
+ 8004c1e: 675a str r2, [r3, #116] ; 0x74
huart->RxState = HAL_UART_STATE_READY;
- 8005110: 68fb ldr r3, [r7, #12]
- 8005112: 2220 movs r2, #32
- 8005114: 679a str r2, [r3, #120] ; 0x78
+ 8004c20: 68fb ldr r3, [r7, #12]
+ 8004c22: 2220 movs r2, #32
+ 8004c24: 679a str r2, [r3, #120] ; 0x78
/* Process Unlocked */
__HAL_UNLOCK(huart);
- 8005116: 68fb ldr r3, [r7, #12]
- 8005118: 2200 movs r2, #0
- 800511a: f883 2070 strb.w r2, [r3, #112] ; 0x70
+ 8004c26: 68fb ldr r3, [r7, #12]
+ 8004c28: 2200 movs r2, #0
+ 8004c2a: f883 2070 strb.w r2, [r3, #112] ; 0x70
return HAL_TIMEOUT;
- 800511e: 2303 movs r3, #3
- 8005120: e00f b.n 8005142 <UART_WaitOnFlagUntilTimeout+0x88>
+ 8004c2e: 2303 movs r3, #3
+ 8004c30: e00f b.n 8004c52 <UART_WaitOnFlagUntilTimeout+0x88>
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
- 8005122: 68fb ldr r3, [r7, #12]
- 8005124: 681b ldr r3, [r3, #0]
- 8005126: 69da ldr r2, [r3, #28]
- 8005128: 68bb ldr r3, [r7, #8]
- 800512a: 4013 ands r3, r2
- 800512c: 68ba ldr r2, [r7, #8]
- 800512e: 429a cmp r2, r3
- 8005130: bf0c ite eq
- 8005132: 2301 moveq r3, #1
- 8005134: 2300 movne r3, #0
- 8005136: b2db uxtb r3, r3
- 8005138: 461a mov r2, r3
- 800513a: 79fb ldrb r3, [r7, #7]
- 800513c: 429a cmp r2, r3
- 800513e: d0c5 beq.n 80050cc <UART_WaitOnFlagUntilTimeout+0x12>
+ 8004c32: 68fb ldr r3, [r7, #12]
+ 8004c34: 681b ldr r3, [r3, #0]
+ 8004c36: 69da ldr r2, [r3, #28]
+ 8004c38: 68bb ldr r3, [r7, #8]
+ 8004c3a: 4013 ands r3, r2
+ 8004c3c: 68ba ldr r2, [r7, #8]
+ 8004c3e: 429a cmp r2, r3
+ 8004c40: bf0c ite eq
+ 8004c42: 2301 moveq r3, #1
+ 8004c44: 2300 movne r3, #0
+ 8004c46: b2db uxtb r3, r3
+ 8004c48: 461a mov r2, r3
+ 8004c4a: 79fb ldrb r3, [r7, #7]
+ 8004c4c: 429a cmp r2, r3
+ 8004c4e: d0c5 beq.n 8004bdc <UART_WaitOnFlagUntilTimeout+0x12>
}
}
}
return HAL_OK;
- 8005140: 2300 movs r3, #0
+ 8004c50: 2300 movs r3, #0
}
- 8005142: 4618 mov r0, r3
- 8005144: 3710 adds r7, #16
- 8005146: 46bd mov sp, r7
- 8005148: bd80 pop {r7, pc}
+ 8004c52: 4618 mov r0, r3
+ 8004c54: 3710 adds r7, #16
+ 8004c56: 46bd mov sp, r7
+ 8004c58: bd80 pop {r7, pc}
-0800514a <UART_EndRxTransfer>:
+08004c5a <UART_EndRxTransfer>:
* @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
* @param huart UART handle.
* @retval None
*/
static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
{
- 800514a: b480 push {r7}
- 800514c: b083 sub sp, #12
- 800514e: af00 add r7, sp, #0
- 8005150: 6078 str r0, [r7, #4]
+ 8004c5a: b480 push {r7}
+ 8004c5c: b083 sub sp, #12
+ 8004c5e: af00 add r7, sp, #0
+ 8004c60: 6078 str r0, [r7, #4]
/* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
- 8005152: 687b ldr r3, [r7, #4]
- 8005154: 681b ldr r3, [r3, #0]
- 8005156: 681a ldr r2, [r3, #0]
- 8005158: 687b ldr r3, [r7, #4]
- 800515a: 681b ldr r3, [r3, #0]
- 800515c: f422 7290 bic.w r2, r2, #288 ; 0x120
- 8005160: 601a str r2, [r3, #0]
+ 8004c62: 687b ldr r3, [r7, #4]
+ 8004c64: 681b ldr r3, [r3, #0]
+ 8004c66: 681a ldr r2, [r3, #0]
+ 8004c68: 687b ldr r3, [r7, #4]
+ 8004c6a: 681b ldr r3, [r3, #0]
+ 8004c6c: f422 7290 bic.w r2, r2, #288 ; 0x120
+ 8004c70: 601a str r2, [r3, #0]
CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
- 8005162: 687b ldr r3, [r7, #4]
- 8005164: 681b ldr r3, [r3, #0]
- 8005166: 689a ldr r2, [r3, #8]
- 8005168: 687b ldr r3, [r7, #4]
- 800516a: 681b ldr r3, [r3, #0]
- 800516c: f022 0201 bic.w r2, r2, #1
- 8005170: 609a str r2, [r3, #8]
+ 8004c72: 687b ldr r3, [r7, #4]
+ 8004c74: 681b ldr r3, [r3, #0]
+ 8004c76: 689a ldr r2, [r3, #8]
+ 8004c78: 687b ldr r3, [r7, #4]
+ 8004c7a: 681b ldr r3, [r3, #0]
+ 8004c7c: f022 0201 bic.w r2, r2, #1
+ 8004c80: 609a str r2, [r3, #8]
/* At end of Rx process, restore huart->RxState to Ready */
huart->RxState = HAL_UART_STATE_READY;
- 8005172: 687b ldr r3, [r7, #4]
- 8005174: 2220 movs r2, #32
- 8005176: 679a str r2, [r3, #120] ; 0x78
+ 8004c82: 687b ldr r3, [r7, #4]
+ 8004c84: 2220 movs r2, #32
+ 8004c86: 679a str r2, [r3, #120] ; 0x78
/* Reset RxIsr function pointer */
huart->RxISR = NULL;
- 8005178: 687b ldr r3, [r7, #4]
- 800517a: 2200 movs r2, #0
- 800517c: 661a str r2, [r3, #96] ; 0x60
+ 8004c88: 687b ldr r3, [r7, #4]
+ 8004c8a: 2200 movs r2, #0
+ 8004c8c: 661a str r2, [r3, #96] ; 0x60
}
- 800517e: bf00 nop
- 8005180: 370c adds r7, #12
- 8005182: 46bd mov sp, r7
- 8005184: f85d 7b04 ldr.w r7, [sp], #4
- 8005188: 4770 bx lr
+ 8004c8e: bf00 nop
+ 8004c90: 370c adds r7, #12
+ 8004c92: 46bd mov sp, r7
+ 8004c94: f85d 7b04 ldr.w r7, [sp], #4
+ 8004c98: 4770 bx lr
-0800518a <UART_DMAAbortOnError>:
+08004c9a <UART_DMAAbortOnError>:
* (To be called at end of DMA Abort procedure following error occurrence).
* @param hdma DMA handle.
* @retval None
*/
static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
{
- 800518a: b580 push {r7, lr}
- 800518c: b084 sub sp, #16
- 800518e: af00 add r7, sp, #0
- 8005190: 6078 str r0, [r7, #4]
+ 8004c9a: b580 push {r7, lr}
+ 8004c9c: b084 sub sp, #16
+ 8004c9e: af00 add r7, sp, #0
+ 8004ca0: 6078 str r0, [r7, #4]
UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
- 8005192: 687b ldr r3, [r7, #4]
- 8005194: 6b9b ldr r3, [r3, #56] ; 0x38
- 8005196: 60fb str r3, [r7, #12]
+ 8004ca2: 687b ldr r3, [r7, #4]
+ 8004ca4: 6b9b ldr r3, [r3, #56] ; 0x38
+ 8004ca6: 60fb str r3, [r7, #12]
huart->RxXferCount = 0U;
- 8005198: 68fb ldr r3, [r7, #12]
- 800519a: 2200 movs r2, #0
- 800519c: f8a3 205a strh.w r2, [r3, #90] ; 0x5a
+ 8004ca8: 68fb ldr r3, [r7, #12]
+ 8004caa: 2200 movs r2, #0
+ 8004cac: f8a3 205a strh.w r2, [r3, #90] ; 0x5a
huart->TxXferCount = 0U;
- 80051a0: 68fb ldr r3, [r7, #12]
- 80051a2: 2200 movs r2, #0
- 80051a4: f8a3 2052 strh.w r2, [r3, #82] ; 0x52
+ 8004cb0: 68fb ldr r3, [r7, #12]
+ 8004cb2: 2200 movs r2, #0
+ 8004cb4: f8a3 2052 strh.w r2, [r3, #82] ; 0x52
#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
/*Call registered error callback*/
huart->ErrorCallback(huart);
#else
/*Call legacy weak error callback*/
HAL_UART_ErrorCallback(huart);
- 80051a8: 68f8 ldr r0, [r7, #12]
- 80051aa: f7ff fc07 bl 80049bc <HAL_UART_ErrorCallback>
+ 8004cb8: 68f8 ldr r0, [r7, #12]
+ 8004cba: f7ff fc07 bl 80044cc <HAL_UART_ErrorCallback>
#endif /* USE_HAL_UART_REGISTER_CALLBACKS */
}
- 80051ae: bf00 nop
- 80051b0: 3710 adds r7, #16
- 80051b2: 46bd mov sp, r7
- 80051b4: bd80 pop {r7, pc}
+ 8004cbe: bf00 nop
+ 8004cc0: 3710 adds r7, #16
+ 8004cc2: 46bd mov sp, r7
+ 8004cc4: bd80 pop {r7, pc}
-080051b6 <UART_EndTransmit_IT>:
+08004cc6 <UART_EndTransmit_IT>:
* @param huart pointer to a UART_HandleTypeDef structure that contains
* the configuration information for the specified UART module.
* @retval None
*/
static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
{
- 80051b6: b580 push {r7, lr}
- 80051b8: b082 sub sp, #8
- 80051ba: af00 add r7, sp, #0
- 80051bc: 6078 str r0, [r7, #4]
+ 8004cc6: b580 push {r7, lr}
+ 8004cc8: b082 sub sp, #8
+ 8004cca: af00 add r7, sp, #0
+ 8004ccc: 6078 str r0, [r7, #4]
/* Disable the UART Transmit Complete Interrupt */
CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
- 80051be: 687b ldr r3, [r7, #4]
- 80051c0: 681b ldr r3, [r3, #0]
- 80051c2: 681a ldr r2, [r3, #0]
- 80051c4: 687b ldr r3, [r7, #4]
- 80051c6: 681b ldr r3, [r3, #0]
- 80051c8: f022 0240 bic.w r2, r2, #64 ; 0x40
- 80051cc: 601a str r2, [r3, #0]
+ 8004cce: 687b ldr r3, [r7, #4]
+ 8004cd0: 681b ldr r3, [r3, #0]
+ 8004cd2: 681a ldr r2, [r3, #0]
+ 8004cd4: 687b ldr r3, [r7, #4]
+ 8004cd6: 681b ldr r3, [r3, #0]
+ 8004cd8: f022 0240 bic.w r2, r2, #64 ; 0x40
+ 8004cdc: 601a str r2, [r3, #0]
/* Tx process is ended, restore huart->gState to Ready */
huart->gState = HAL_UART_STATE_READY;
- 80051ce: 687b ldr r3, [r7, #4]
- 80051d0: 2220 movs r2, #32
- 80051d2: 675a str r2, [r3, #116] ; 0x74
+ 8004cde: 687b ldr r3, [r7, #4]
+ 8004ce0: 2220 movs r2, #32
+ 8004ce2: 675a str r2, [r3, #116] ; 0x74
/* Cleat TxISR function pointer */
huart->TxISR = NULL;
- 80051d4: 687b ldr r3, [r7, #4]
- 80051d6: 2200 movs r2, #0
- 80051d8: 665a str r2, [r3, #100] ; 0x64
+ 8004ce4: 687b ldr r3, [r7, #4]
+ 8004ce6: 2200 movs r2, #0
+ 8004ce8: 665a str r2, [r3, #100] ; 0x64
#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
/*Call registered Tx complete callback*/
huart->TxCpltCallback(huart);
#else
/*Call legacy weak Tx complete callback*/
HAL_UART_TxCpltCallback(huart);
- 80051da: 6878 ldr r0, [r7, #4]
- 80051dc: f7ff fbe4 bl 80049a8 <HAL_UART_TxCpltCallback>
+ 8004cea: 6878 ldr r0, [r7, #4]
+ 8004cec: f7ff fbe4 bl 80044b8 <HAL_UART_TxCpltCallback>
#endif /* USE_HAL_UART_REGISTER_CALLBACKS */
}
- 80051e0: bf00 nop
- 80051e2: 3708 adds r7, #8
- 80051e4: 46bd mov sp, r7
- 80051e6: bd80 pop {r7, pc}
-
-080051e8 <__libc_init_array>:
- 80051e8: b570 push {r4, r5, r6, lr}
- 80051ea: 4e0d ldr r6, [pc, #52] ; (8005220 <__libc_init_array+0x38>)
- 80051ec: 4c0d ldr r4, [pc, #52] ; (8005224 <__libc_init_array+0x3c>)
- 80051ee: 1ba4 subs r4, r4, r6
- 80051f0: 10a4 asrs r4, r4, #2
- 80051f2: 2500 movs r5, #0
- 80051f4: 42a5 cmp r5, r4
- 80051f6: d109 bne.n 800520c <__libc_init_array+0x24>
- 80051f8: 4e0b ldr r6, [pc, #44] ; (8005228 <__libc_init_array+0x40>)
- 80051fa: 4c0c ldr r4, [pc, #48] ; (800522c <__libc_init_array+0x44>)
- 80051fc: f000 f820 bl 8005240 <_init>
- 8005200: 1ba4 subs r4, r4, r6
- 8005202: 10a4 asrs r4, r4, #2
- 8005204: 2500 movs r5, #0
- 8005206: 42a5 cmp r5, r4
- 8005208: d105 bne.n 8005216 <__libc_init_array+0x2e>
- 800520a: bd70 pop {r4, r5, r6, pc}
- 800520c: f856 3025 ldr.w r3, [r6, r5, lsl #2]
- 8005210: 4798 blx r3
- 8005212: 3501 adds r5, #1
- 8005214: e7ee b.n 80051f4 <__libc_init_array+0xc>
- 8005216: f856 3025 ldr.w r3, [r6, r5, lsl #2]
- 800521a: 4798 blx r3
- 800521c: 3501 adds r5, #1
- 800521e: e7f2 b.n 8005206 <__libc_init_array+0x1e>
- 8005220: 08005280 .word 0x08005280
- 8005224: 08005280 .word 0x08005280
- 8005228: 08005280 .word 0x08005280
- 800522c: 08005288 .word 0x08005288
-
-08005230 <memset>:
- 8005230: 4402 add r2, r0
- 8005232: 4603 mov r3, r0
- 8005234: 4293 cmp r3, r2
- 8005236: d100 bne.n 800523a <memset+0xa>
- 8005238: 4770 bx lr
- 800523a: f803 1b01 strb.w r1, [r3], #1
- 800523e: e7f9 b.n 8005234 <memset+0x4>
-
-08005240 <_init>:
- 8005240: b5f8 push {r3, r4, r5, r6, r7, lr}
- 8005242: bf00 nop
- 8005244: bcf8 pop {r3, r4, r5, r6, r7}
- 8005246: bc08 pop {r3}
- 8005248: 469e mov lr, r3
- 800524a: 4770 bx lr
-
-0800524c <_fini>:
- 800524c: b5f8 push {r3, r4, r5, r6, r7, lr}
- 800524e: bf00 nop
- 8005250: bcf8 pop {r3, r4, r5, r6, r7}
- 8005252: bc08 pop {r3}
- 8005254: 469e mov lr, r3
- 8005256: 4770 bx lr
+ 8004cf0: bf00 nop
+ 8004cf2: 3708 adds r7, #8
+ 8004cf4: 46bd mov sp, r7
+ 8004cf6: bd80 pop {r7, pc}
+
+08004cf8 <UART_RxISR_8BIT>:
+ * @brief RX interrrupt handler for 7 or 8 bits data word length .
+ * @param huart UART handle.
+ * @retval None
+ */
+static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
+{
+ 8004cf8: b580 push {r7, lr}
+ 8004cfa: b084 sub sp, #16
+ 8004cfc: af00 add r7, sp, #0
+ 8004cfe: 6078 str r0, [r7, #4]
+ uint16_t uhMask = huart->Mask;
+ 8004d00: 687b ldr r3, [r7, #4]
+ 8004d02: f8b3 305c ldrh.w r3, [r3, #92] ; 0x5c
+ 8004d06: 81fb strh r3, [r7, #14]
+ uint16_t uhdata;
+
+ /* Check that a Rx process is ongoing */
+ if (huart->RxState == HAL_UART_STATE_BUSY_RX)
+ 8004d08: 687b ldr r3, [r7, #4]
+ 8004d0a: 6f9b ldr r3, [r3, #120] ; 0x78
+ 8004d0c: 2b22 cmp r3, #34 ; 0x22
+ 8004d0e: d13a bne.n 8004d86 <UART_RxISR_8BIT+0x8e>
+ {
+ uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
+ 8004d10: 687b ldr r3, [r7, #4]
+ 8004d12: 681b ldr r3, [r3, #0]
+ 8004d14: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004d16: 81bb strh r3, [r7, #12]
+ *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
+ 8004d18: 89bb ldrh r3, [r7, #12]
+ 8004d1a: b2d9 uxtb r1, r3
+ 8004d1c: 89fb ldrh r3, [r7, #14]
+ 8004d1e: b2da uxtb r2, r3
+ 8004d20: 687b ldr r3, [r7, #4]
+ 8004d22: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8004d24: 400a ands r2, r1
+ 8004d26: b2d2 uxtb r2, r2
+ 8004d28: 701a strb r2, [r3, #0]
+ huart->pRxBuffPtr++;
+ 8004d2a: 687b ldr r3, [r7, #4]
+ 8004d2c: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8004d2e: 1c5a adds r2, r3, #1
+ 8004d30: 687b ldr r3, [r7, #4]
+ 8004d32: 655a str r2, [r3, #84] ; 0x54
+ huart->RxXferCount--;
+ 8004d34: 687b ldr r3, [r7, #4]
+ 8004d36: f8b3 305a ldrh.w r3, [r3, #90] ; 0x5a
+ 8004d3a: b29b uxth r3, r3
+ 8004d3c: 3b01 subs r3, #1
+ 8004d3e: b29a uxth r2, r3
+ 8004d40: 687b ldr r3, [r7, #4]
+ 8004d42: f8a3 205a strh.w r2, [r3, #90] ; 0x5a
+
+ if (huart->RxXferCount == 0U)
+ 8004d46: 687b ldr r3, [r7, #4]
+ 8004d48: f8b3 305a ldrh.w r3, [r3, #90] ; 0x5a
+ 8004d4c: b29b uxth r3, r3
+ 8004d4e: 2b00 cmp r3, #0
+ 8004d50: d121 bne.n 8004d96 <UART_RxISR_8BIT+0x9e>
+ {
+ /* Disable the UART Parity Error Interrupt and RXNE interrupts */
+ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
+ 8004d52: 687b ldr r3, [r7, #4]
+ 8004d54: 681b ldr r3, [r3, #0]
+ 8004d56: 681a ldr r2, [r3, #0]
+ 8004d58: 687b ldr r3, [r7, #4]
+ 8004d5a: 681b ldr r3, [r3, #0]
+ 8004d5c: f422 7290 bic.w r2, r2, #288 ; 0x120
+ 8004d60: 601a str r2, [r3, #0]
+
+ /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
+ CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
+ 8004d62: 687b ldr r3, [r7, #4]
+ 8004d64: 681b ldr r3, [r3, #0]
+ 8004d66: 689a ldr r2, [r3, #8]
+ 8004d68: 687b ldr r3, [r7, #4]
+ 8004d6a: 681b ldr r3, [r3, #0]
+ 8004d6c: f022 0201 bic.w r2, r2, #1
+ 8004d70: 609a str r2, [r3, #8]
+
+ /* Rx process is completed, restore huart->RxState to Ready */
+ huart->RxState = HAL_UART_STATE_READY;
+ 8004d72: 687b ldr r3, [r7, #4]
+ 8004d74: 2220 movs r2, #32
+ 8004d76: 679a str r2, [r3, #120] ; 0x78
+
+ /* Clear RxISR function pointer */
+ huart->RxISR = NULL;
+ 8004d78: 687b ldr r3, [r7, #4]
+ 8004d7a: 2200 movs r2, #0
+ 8004d7c: 661a str r2, [r3, #96] ; 0x60
+#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
+ /*Call registered Rx complete callback*/
+ huart->RxCpltCallback(huart);
+#else
+ /*Call legacy weak Rx complete callback*/
+ HAL_UART_RxCpltCallback(huart);
+ 8004d7e: 6878 ldr r0, [r7, #4]
+ 8004d80: f7fc fa30 bl 80011e4 <HAL_UART_RxCpltCallback>
+ else
+ {
+ /* Clear RXNE interrupt flag */
+ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
+ }
+}
+ 8004d84: e007 b.n 8004d96 <UART_RxISR_8BIT+0x9e>
+ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
+ 8004d86: 687b ldr r3, [r7, #4]
+ 8004d88: 681b ldr r3, [r3, #0]
+ 8004d8a: 699a ldr r2, [r3, #24]
+ 8004d8c: 687b ldr r3, [r7, #4]
+ 8004d8e: 681b ldr r3, [r3, #0]
+ 8004d90: f042 0208 orr.w r2, r2, #8
+ 8004d94: 619a str r2, [r3, #24]
+}
+ 8004d96: bf00 nop
+ 8004d98: 3710 adds r7, #16
+ 8004d9a: 46bd mov sp, r7
+ 8004d9c: bd80 pop {r7, pc}
+
+08004d9e <UART_RxISR_16BIT>:
+ * interruptions have been enabled by HAL_UART_Receive_IT()
+ * @param huart UART handle.
+ * @retval None
+ */
+static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
+{
+ 8004d9e: b580 push {r7, lr}
+ 8004da0: b084 sub sp, #16
+ 8004da2: af00 add r7, sp, #0
+ 8004da4: 6078 str r0, [r7, #4]
+ uint16_t *tmp;
+ uint16_t uhMask = huart->Mask;
+ 8004da6: 687b ldr r3, [r7, #4]
+ 8004da8: f8b3 305c ldrh.w r3, [r3, #92] ; 0x5c
+ 8004dac: 81fb strh r3, [r7, #14]
+ uint16_t uhdata;
+
+ /* Check that a Rx process is ongoing */
+ if (huart->RxState == HAL_UART_STATE_BUSY_RX)
+ 8004dae: 687b ldr r3, [r7, #4]
+ 8004db0: 6f9b ldr r3, [r3, #120] ; 0x78
+ 8004db2: 2b22 cmp r3, #34 ; 0x22
+ 8004db4: d13a bne.n 8004e2c <UART_RxISR_16BIT+0x8e>
+ {
+ uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
+ 8004db6: 687b ldr r3, [r7, #4]
+ 8004db8: 681b ldr r3, [r3, #0]
+ 8004dba: 6a5b ldr r3, [r3, #36] ; 0x24
+ 8004dbc: 81bb strh r3, [r7, #12]
+ tmp = (uint16_t *) huart->pRxBuffPtr ;
+ 8004dbe: 687b ldr r3, [r7, #4]
+ 8004dc0: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8004dc2: 60bb str r3, [r7, #8]
+ *tmp = (uint16_t)(uhdata & uhMask);
+ 8004dc4: 89ba ldrh r2, [r7, #12]
+ 8004dc6: 89fb ldrh r3, [r7, #14]
+ 8004dc8: 4013 ands r3, r2
+ 8004dca: b29a uxth r2, r3
+ 8004dcc: 68bb ldr r3, [r7, #8]
+ 8004dce: 801a strh r2, [r3, #0]
+ huart->pRxBuffPtr += 2U;
+ 8004dd0: 687b ldr r3, [r7, #4]
+ 8004dd2: 6d5b ldr r3, [r3, #84] ; 0x54
+ 8004dd4: 1c9a adds r2, r3, #2
+ 8004dd6: 687b ldr r3, [r7, #4]
+ 8004dd8: 655a str r2, [r3, #84] ; 0x54
+ huart->RxXferCount--;
+ 8004dda: 687b ldr r3, [r7, #4]
+ 8004ddc: f8b3 305a ldrh.w r3, [r3, #90] ; 0x5a
+ 8004de0: b29b uxth r3, r3
+ 8004de2: 3b01 subs r3, #1
+ 8004de4: b29a uxth r2, r3
+ 8004de6: 687b ldr r3, [r7, #4]
+ 8004de8: f8a3 205a strh.w r2, [r3, #90] ; 0x5a
+
+ if (huart->RxXferCount == 0U)
+ 8004dec: 687b ldr r3, [r7, #4]
+ 8004dee: f8b3 305a ldrh.w r3, [r3, #90] ; 0x5a
+ 8004df2: b29b uxth r3, r3
+ 8004df4: 2b00 cmp r3, #0
+ 8004df6: d121 bne.n 8004e3c <UART_RxISR_16BIT+0x9e>
+ {
+ /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
+ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
+ 8004df8: 687b ldr r3, [r7, #4]
+ 8004dfa: 681b ldr r3, [r3, #0]
+ 8004dfc: 681a ldr r2, [r3, #0]
+ 8004dfe: 687b ldr r3, [r7, #4]
+ 8004e00: 681b ldr r3, [r3, #0]
+ 8004e02: f422 7290 bic.w r2, r2, #288 ; 0x120
+ 8004e06: 601a str r2, [r3, #0]
+
+ /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
+ CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
+ 8004e08: 687b ldr r3, [r7, #4]
+ 8004e0a: 681b ldr r3, [r3, #0]
+ 8004e0c: 689a ldr r2, [r3, #8]
+ 8004e0e: 687b ldr r3, [r7, #4]
+ 8004e10: 681b ldr r3, [r3, #0]
+ 8004e12: f022 0201 bic.w r2, r2, #1
+ 8004e16: 609a str r2, [r3, #8]
+
+ /* Rx process is completed, restore huart->RxState to Ready */
+ huart->RxState = HAL_UART_STATE_READY;
+ 8004e18: 687b ldr r3, [r7, #4]
+ 8004e1a: 2220 movs r2, #32
+ 8004e1c: 679a str r2, [r3, #120] ; 0x78
+
+ /* Clear RxISR function pointer */
+ huart->RxISR = NULL;
+ 8004e1e: 687b ldr r3, [r7, #4]
+ 8004e20: 2200 movs r2, #0
+ 8004e22: 661a str r2, [r3, #96] ; 0x60
+#if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
+ /*Call registered Rx complete callback*/
+ huart->RxCpltCallback(huart);
+#else
+ /*Call legacy weak Rx complete callback*/
+ HAL_UART_RxCpltCallback(huart);
+ 8004e24: 6878 ldr r0, [r7, #4]
+ 8004e26: f7fc f9dd bl 80011e4 <HAL_UART_RxCpltCallback>
+ else
+ {
+ /* Clear RXNE interrupt flag */
+ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
+ }
+}
+ 8004e2a: e007 b.n 8004e3c <UART_RxISR_16BIT+0x9e>
+ __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
+ 8004e2c: 687b ldr r3, [r7, #4]
+ 8004e2e: 681b ldr r3, [r3, #0]
+ 8004e30: 699a ldr r2, [r3, #24]
+ 8004e32: 687b ldr r3, [r7, #4]
+ 8004e34: 681b ldr r3, [r3, #0]
+ 8004e36: f042 0208 orr.w r2, r2, #8
+ 8004e3a: 619a str r2, [r3, #24]
+}
+ 8004e3c: bf00 nop
+ 8004e3e: 3710 adds r7, #16
+ 8004e40: 46bd mov sp, r7
+ 8004e42: bd80 pop {r7, pc}
+
+08004e44 <__libc_init_array>:
+ 8004e44: b570 push {r4, r5, r6, lr}
+ 8004e46: 4e0d ldr r6, [pc, #52] ; (8004e7c <__libc_init_array+0x38>)
+ 8004e48: 4c0d ldr r4, [pc, #52] ; (8004e80 <__libc_init_array+0x3c>)
+ 8004e4a: 1ba4 subs r4, r4, r6
+ 8004e4c: 10a4 asrs r4, r4, #2
+ 8004e4e: 2500 movs r5, #0
+ 8004e50: 42a5 cmp r5, r4
+ 8004e52: d109 bne.n 8004e68 <__libc_init_array+0x24>
+ 8004e54: 4e0b ldr r6, [pc, #44] ; (8004e84 <__libc_init_array+0x40>)
+ 8004e56: 4c0c ldr r4, [pc, #48] ; (8004e88 <__libc_init_array+0x44>)
+ 8004e58: f000 f820 bl 8004e9c <_init>
+ 8004e5c: 1ba4 subs r4, r4, r6
+ 8004e5e: 10a4 asrs r4, r4, #2
+ 8004e60: 2500 movs r5, #0
+ 8004e62: 42a5 cmp r5, r4
+ 8004e64: d105 bne.n 8004e72 <__libc_init_array+0x2e>
+ 8004e66: bd70 pop {r4, r5, r6, pc}
+ 8004e68: f856 3025 ldr.w r3, [r6, r5, lsl #2]
+ 8004e6c: 4798 blx r3
+ 8004e6e: 3501 adds r5, #1
+ 8004e70: e7ee b.n 8004e50 <__libc_init_array+0xc>
+ 8004e72: f856 3025 ldr.w r3, [r6, r5, lsl #2]
+ 8004e76: 4798 blx r3
+ 8004e78: 3501 adds r5, #1
+ 8004e7a: e7f2 b.n 8004e62 <__libc_init_array+0x1e>
+ 8004e7c: 08004ed4 .word 0x08004ed4
+ 8004e80: 08004ed4 .word 0x08004ed4
+ 8004e84: 08004ed4 .word 0x08004ed4
+ 8004e88: 08004edc .word 0x08004edc
+
+08004e8c <memset>:
+ 8004e8c: 4402 add r2, r0
+ 8004e8e: 4603 mov r3, r0
+ 8004e90: 4293 cmp r3, r2
+ 8004e92: d100 bne.n 8004e96 <memset+0xa>
+ 8004e94: 4770 bx lr
+ 8004e96: f803 1b01 strb.w r1, [r3], #1
+ 8004e9a: e7f9 b.n 8004e90 <memset+0x4>
+
+08004e9c <_init>:
+ 8004e9c: b5f8 push {r3, r4, r5, r6, r7, lr}
+ 8004e9e: bf00 nop
+ 8004ea0: bcf8 pop {r3, r4, r5, r6, r7}
+ 8004ea2: bc08 pop {r3}
+ 8004ea4: 469e mov lr, r3
+ 8004ea6: 4770 bx lr
+
+08004ea8 <_fini>:
+ 8004ea8: b5f8 push {r3, r4, r5, r6, r7, lr}
+ 8004eaa: bf00 nop
+ 8004eac: bcf8 pop {r3, r4, r5, r6, r7}
+ 8004eae: bc08 pop {r3}
+ 8004eb0: 469e mov lr, r3
+ 8004eb2: 4770 bx lr