From ad4ae7357ae06fb241651cea0c975b372bc0de71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=A7=D0=B0=D0=BC=D0=B0?= =?UTF-8?q?=D0=B9=D0=BA=D0=B8=D0=BD?= Date: Tue, 20 Aug 2024 12:20:24 +0300 Subject: [PATCH] beta version --- .DS_Store | Bin 8196 -> 6148 bytes Core/Inc/edcan_config.h | 20 +- Core/Src/board.c | 65 +- Core/Src/connector.c | 6 +- Core/Src/debug.c | 4 + Debug/Core/Src/board.cyclo | 8 +- Debug/Core/Src/connector.cyclo | 2 +- Debug/Core/Src/debug.cyclo | 4 +- Debug/Core/Src/main.cyclo | 56 +- Debug/GbTModuleSW.list | 40938 ++++++++++++++++--------------- 10 files changed, 20741 insertions(+), 20362 deletions(-) diff --git a/.DS_Store b/.DS_Store index e7c0a326e320892a49059652c03208637a331c7c..f42755ccc686f8e35ed8a175cdd780cfa76bbb37 100644 GIT binary patch delta 128 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{Mvv5r;6q~50D9Qtp2Z?#+TPgDLGs){!WCr5#=`H+llf&lK}Iq#L5v64$gnw{ HXAUy}Z+R6x delta 613 zcmaiyKTE?v7{;HNXpc6v7EJ9T(N!?$HxNaksC02~D>jW*Ol>r6?PNQ26NhlPy7&P^ z`k4gRf*?-yx#$o}#e=(h@9zCQ_uQYs#$c-mK-+HDHUSk1R@EtprtvznFK9bJ1@-AneB^J22upS{pKM5{9eDCKWy{f=Q_j-G4d?%L zq^V0us;5bI=_Dk39iQJtU9QdAR+<-mj3cfG*i&!Hn+es5v{P>{{dX;|$No^vu-{cb cg0KFe%iLl~mQ5k}Db#0yte6kEKXpdh7q{4u`~Uy| diff --git a/Core/Inc/edcan_config.h b/Core/Inc/edcan_config.h index b47801c..ebfd108 100644 --- a/Core/Inc/edcan_config.h +++ b/Core/Inc/edcan_config.h @@ -1,17 +1,25 @@ -// -// Created by Артём Чамайкин on 20.07.2024. -// - #ifndef EDCAN_CONFIG_H #define EDCAN_CONFIG_H #define DEVICE_ID 0x20 #define FWVER 1 -//#define ED_CAN1 -#define ED_CAN2 +//если используется STM32 с одним каном +//#define ED_CANx +//extern CAN_HandleTypeDef hcan; +//#define ED_CAN_INSTANCE hcan + +//если используется CAN1 на STM32 с двумя канами +//#define ED_CAN1 +//extern CAN_HandleTypeDef hcan1; +//#define ED_CAN_INSTANCE hcan1 + +//если используется CAN2 на STM32 с двумя канами +#define ED_CAN2 extern CAN_HandleTypeDef hcan2; #define ED_CAN_INSTANCE hcan2 +//можно уменьшать для уменьшения объема потребляемой памяти +#define BUFFER_SIZE 256 #endif //EDCAN_CONFIG_H diff --git a/Core/Src/board.c b/Core/Src/board.c index 47deebf..ddfce36 100644 --- a/Core/Src/board.c +++ b/Core/Src/board.c @@ -38,11 +38,70 @@ void Init_Peripheral(){ } -uint8_t GBT_ReadTemp(){ - //TODO - return 0; +float pt1000_to_temperature(float resistance) { + // Константы для PT1000 + const float R0 = 1000.0; // Сопротивление при 0 °C + const float C_A = 3.9083E-3f; +// const float A = 3.9083e-03; // Коэффициент температурного изменения (°C^-1) +// const float B = -5.775e-07; // Второй коэффициент (°C^-2) +// +// // Расчет температуры по формуле +// float temperature = -A / (B - (R0 / resistance - 1) * A); + + float temperature = (resistance-R0) / ( R0 * C_A); + + return temperature; } + +float calculate_NTC_resistance(int adc_value, float Vref, float Vin, float R) { + // Преобразуем значение АЦП в выходное напряжение + float Vout = (adc_value / 4095.0) * Vref; + + // Проверяем, чтобы Vout не было равно Vin + if (Vout >= Vin) { + return -1; // Ошибка: Vout не может быть больше или равно Vin + } + + // Вычисляем сопротивление термистора + float R_NTC = R * (Vout / (Vin - Vout)); + + return R_NTC; +} + +int16_t GBT_ReadTemp(uint8_t ch){ + //TODO + if(ch)ADC_Select_Channel(ADC_CHANNEL_8); + else ADC_Select_Channel(ADC_CHANNEL_9); + // Начало конверсии + HAL_ADC_Start(&hadc1); + + + // Ожидание окончания конверсии + HAL_ADC_PollForConversion(&hadc1, HAL_MAX_DELAY); + + // Получение значения + uint32_t adcValue = HAL_ADC_GetValue(&hadc1); + + // Остановка АЦП (по желанию) + HAL_ADC_Stop(&hadc1); + +// int adc_value = 2048; // Пример значения АЦП + float Vref = 3.3; // Напряжение опорное + float Vin = 5.0; // Входное напряжение + float R = 1000; // Сопротивление резистора в Омах + + float temp = pt1000_to_temperature(calculate_NTC_resistance(adcValue, Vref, Vin, R)); + + + + return (int16_t)temp; + +} + + + + void ADC_Select_Channel(uint32_t ch) { ADC_ChannelConfTypeDef conf = { .Channel = ch, diff --git a/Core/Src/connector.c b/Core/Src/connector.c index dace212..21ccdd2 100644 --- a/Core/Src/connector.c +++ b/Core/Src/connector.c @@ -68,9 +68,9 @@ void CONN_Task(){ GBT_Lock(0); // RELAY_Write(RELAY_AUX, 0); //TODO: Reconnection - if(GBT_EDCAN_Input.chargeControl == CHARGING_NOT_ALLOWED){ - CONN_SetState(CONN_Initializing); - } +// if(GBT_EDCAN_Input.chargeControl == CHARGING_NOT_ALLOWED){ +// CONN_SetState(CONN_Initializing); +// } if(CONN_CC_GetState()==GBT_CC_6V){ CONN_SetState(CONN_Initializing); } diff --git a/Core/Src/debug.c b/Core/Src/debug.c index a07b219..b33e58e 100644 --- a/Core/Src/debug.c +++ b/Core/Src/debug.c @@ -143,6 +143,9 @@ void parse_command(uint8_t* buffer, size_t length) { break; } + } else if (strncmp((const char*)buffer, "temp", length) == 0) { + printf("temp1 %d\n",GBT_ReadTemp(0)); + printf("temp2 %d\n",GBT_ReadTemp(1)); } else if (strncmp((const char*)buffer, "info1", length) == 0) { printf("Battery info:\n"); printf("maxCV %dV\n",GBT_BATStat.maxCellVoltage/100); // 0.01v/bit @@ -193,6 +196,7 @@ void parse_command(uint8_t* buffer, size_t length) { printf("stop\n"); printf("stop1\n"); // printf("force\n"); + printf("temp\n"); printf("info1\n"); printf("info2\n"); printf("info3\n"); diff --git a/Debug/Core/Src/board.cyclo b/Debug/Core/Src/board.cyclo index 7596ba4..3c4547e 100644 --- a/Debug/Core/Src/board.cyclo +++ b/Debug/Core/Src/board.cyclo @@ -1,6 +1,8 @@ board.c:16:6:RELAY_Write 3 board.c:22:9:GetBoardTemp 1 board.c:34:6:Init_Peripheral 1 -board.c:41:9:GBT_ReadTemp 1 -board.c:46:6:ADC_Select_Channel 2 -board.c:57:9:SW_GetAddr 4 +board.c:41:7:pt1000_to_temperature 1 +board.c:57:7:calculate_NTC_resistance 2 +board.c:72:9:GBT_ReadTemp 2 +board.c:105:6:ADC_Select_Channel 2 +board.c:116:9:SW_GetAddr 4 diff --git a/Debug/Core/Src/connector.cyclo b/Debug/Core/Src/connector.cyclo index 997ffc3..fe89bb5 100644 --- a/Debug/Core/Src/connector.cyclo +++ b/Debug/Core/Src/connector.cyclo @@ -1,5 +1,5 @@ connector.c:18:6:CONN_Init 1 -connector.c:22:6:CONN_Task 15 +connector.c:22:6:CONN_Task 14 connector.c:91:6:CONN_SetState 7 connector.c:102:6:CONN_CC_ReadStateFiltered 4 connector.c:158:9:CONN_CC_GetState 1 diff --git a/Debug/Core/Src/debug.cyclo b/Debug/Core/Src/debug.cyclo index 4a1383f..252a13b 100644 --- a/Debug/Core/Src/debug.cyclo +++ b/Debug/Core/Src/debug.cyclo @@ -3,5 +3,5 @@ debug.c:26:5:_write 1 debug.c:35:6:HAL_UARTEx_RxEventCallback 2 debug.c:45:6:debug_rx_interrupt 1 debug.c:51:6:debug_init 1 -debug.c:61:6:parse_command 27 -debug.c:226:6:debug_task 2 +debug.c:61:6:parse_command 28 +debug.c:230:6:debug_task 2 diff --git a/Debug/Core/Src/main.cyclo b/Debug/Core/Src/main.cyclo index 4b54290..97c9734 100644 --- a/Debug/Core/Src/main.cyclo +++ b/Debug/Core/Src/main.cyclo @@ -1,32 +1,32 @@ core_cm3.h:1762:34:__NVIC_SystemReset 1 -edcan.c:96:6:HAL_CAN_RxFifo1MsgPendingCallback 7 -edcan.c:117:6:HAL_CAN_TxMailbox0CompleteCallback 2 -edcan.c:124:6:HAL_CAN_TxMailbox1CompleteCallback 2 -edcan.c:131:6:HAL_CAN_TxMailbox2CompleteCallback 2 -edcan.c:143:6:EDCAN_Init 1 -edcan.c:152:6:EDCAN_SetSecondID 1 -edcan.c:162:6:CAN_ReInit 1 -edcan.c:202:6:EDCAN_FilterInit 5 -edcan.c:292:6:EDCAN_SendPacketWrite 1 -edcan.c:331:6:EDCAN_SendPacketWriteLong 2 -edcan.c:424:6:EDCAN_SendPacketRead 1 -edcan.c:462:6:EDCAN_SendPacketReadRequest 1 -edcan.c:496:6:EDCAN_Loop 8 -edcan.c:529:6:EDCAN_SendAlivePacket 1 -edcan.c:540:6:EDCAN_EnterSilentMode 2 -edcan.c:553:6:EDCAN_SetSilentMode 2 -edcan_buffer.c:40:6:EDCAN_ExchangeTxBuffer 7 -edcan_buffer.c:84:6:EDCAN_TxBufferAdd 2 -edcan_buffer.c:98:6:EDCAN_TxBufferGet 2 -edcan_buffer.c:111:10:EDCAN_getTxBufferElementCount 1 -edcan_buffer.c:116:6:EDCAN_TxBufferPeekFirst 2 -edcan_buffer.c:129:6:EDCAN_TxBufferRemoveFirst 2 -edcan_buffer.c:142:6:EDCAN_RxBufferAdd 2 -edcan_buffer.c:156:6:EDCAN_RxBufferGet 2 -edcan_buffer.c:169:10:EDCAN_getRxBufferElementCount 1 -edcan_buffer.c:174:6:EDCAN_RxBufferPeekFirst 2 -edcan_buffer.c:185:6:EDCAN_RxBufferRemoveFirst 2 -edcan_buffer.c:197:6:EDCAN_ExchangeRxBuffer 6 +edcan.c:97:6:HAL_CAN_RxFifo1MsgPendingCallback 7 +edcan.c:118:6:HAL_CAN_TxMailbox0CompleteCallback 2 +edcan.c:125:6:HAL_CAN_TxMailbox1CompleteCallback 2 +edcan.c:132:6:HAL_CAN_TxMailbox2CompleteCallback 2 +edcan.c:144:6:EDCAN_Init 1 +edcan.c:153:6:EDCAN_SetSecondID 1 +edcan.c:163:6:CAN_ReInit 1 +edcan.c:203:6:EDCAN_FilterInit 5 +edcan.c:293:6:EDCAN_SendPacketWrite 1 +edcan.c:332:6:EDCAN_SendPacketWriteLong 2 +edcan.c:425:6:EDCAN_SendPacketRead 1 +edcan.c:463:6:EDCAN_SendPacketReadRequest 1 +edcan.c:497:6:EDCAN_Loop 8 +edcan.c:530:6:EDCAN_SendAlivePacket 1 +edcan.c:541:6:EDCAN_EnterSilentMode 2 +edcan.c:554:6:EDCAN_SetSilentMode 2 +edcan_buffer.c:41:6:EDCAN_ExchangeTxBuffer 7 +edcan_buffer.c:85:6:EDCAN_TxBufferAdd 2 +edcan_buffer.c:99:6:EDCAN_TxBufferGet 2 +edcan_buffer.c:112:10:EDCAN_getTxBufferElementCount 1 +edcan_buffer.c:117:6:EDCAN_TxBufferPeekFirst 2 +edcan_buffer.c:130:6:EDCAN_TxBufferRemoveFirst 2 +edcan_buffer.c:143:6:EDCAN_RxBufferAdd 2 +edcan_buffer.c:157:6:EDCAN_RxBufferGet 2 +edcan_buffer.c:170:10:EDCAN_getRxBufferElementCount 1 +edcan_buffer.c:175:6:EDCAN_RxBufferPeekFirst 2 +edcan_buffer.c:186:6:EDCAN_RxBufferRemoveFirst 2 +edcan_buffer.c:198:6:EDCAN_ExchangeRxBuffer 6 edcan_handler.c:43:6:EDCAN_WriteHandler 3 edcan_handler.c:63:6:EDCAN_WriteSystemRegister 5 edcan_handler.c:90:9:EDCAN_GetSystemRegisterValue 8 diff --git a/Debug/GbTModuleSW.list b/Debug/GbTModuleSW.list index b2bb974..615ae40 100644 --- a/Debug/GbTModuleSW.list +++ b/Debug/GbTModuleSW.list @@ -5,45 +5,45 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001e4 08000000 08000000 00010000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 0000c800 080001e8 080001e8 000101e8 2**3 + 1 .text 0000ca70 080001e8 080001e8 000101e8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000b4c 0800c9e8 0800c9e8 0001c9e8 2**3 + 2 .rodata 00000b6c 0800cc58 0800cc58 0001cc58 2**3 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 0800d534 0800d534 00020244 2**0 + 3 .ARM.extab 00000000 0800d7c4 0800d7c4 00020244 2**0 CONTENTS - 4 .ARM 00000008 0800d534 0800d534 0001d534 2**2 + 4 .ARM 00000008 0800d7c4 0800d7c4 0001d7c4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 0800d53c 0800d53c 00020244 2**0 + 5 .preinit_array 00000000 0800d7cc 0800d7cc 00020244 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 0800d53c 0800d53c 0001d53c 2**2 + 6 .init_array 00000004 0800d7cc 0800d7cc 0001d7cc 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 0800d540 0800d540 0001d540 2**2 + 7 .fini_array 00000004 0800d7d0 0800d7d0 0001d7d0 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 00000244 20000000 0800d544 00020000 2**3 + 8 .data 00000244 20000000 0800d7d4 00020000 2**3 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 00001b0c 20000244 0800d788 00020244 2**2 + 9 .bss 0000318c 20000244 0800da18 00020244 2**2 ALLOC - 10 ._user_heap_stack 00000600 20001d50 0800d788 00021d50 2**0 + 10 ._user_heap_stack 00000600 200033d0 0800da18 000233d0 2**0 ALLOC 11 .ARM.attributes 00000029 00000000 00000000 00020244 2**0 CONTENTS, READONLY - 12 .debug_info 0001219d 00000000 00000000 0002026d 2**0 + 12 .debug_info 00012375 00000000 00000000 0002026d 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 0000404b 00000000 00000000 0003240a 2**0 + 13 .debug_abbrev 0000409f 00000000 00000000 000325e2 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 00001088 00000000 00000000 00036458 2**3 + 14 .debug_aranges 00001098 00000000 00000000 00036688 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_ranges 00000ec8 00000000 00000000 000374e0 2**3 + 15 .debug_ranges 00000ed8 00000000 00000000 00037720 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 000249a5 00000000 00000000 000383a8 2**0 + 16 .debug_macro 00024996 00000000 00000000 000385f8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 00017dd5 00000000 00000000 0005cd4d 2**0 + 17 .debug_line 00017e4c 00000000 00000000 0005cf8e 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000bf7b6 00000000 00000000 00074b22 2**0 + 18 .debug_str 000bf808 00000000 00000000 00074dda 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000050 00000000 00000000 001342d8 2**0 + 19 .comment 00000050 00000000 00000000 001345e2 2**0 CONTENTS, READONLY - 20 .debug_frame 00005780 00000000 00000000 00134328 2**2 + 20 .debug_frame 0000581c 00000000 00000000 00134634 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -62,7 +62,7 @@ Disassembly of section .text: 80001fe: bd10 pop {r4, pc} 8000200: 20000244 .word 0x20000244 8000204: 00000000 .word 0x00000000 - 8000208: 0800c9d0 .word 0x0800c9d0 + 8000208: 0800cc40 .word 0x0800cc40 0800020c : 800020c: b508 push {r3, lr} @@ -74,7 +74,7 @@ Disassembly of section .text: 800021a: bd08 pop {r3, pc} 800021c: 00000000 .word 0x00000000 8000220: 20000248 .word 0x20000248 - 8000224: 0800c9d0 .word 0x0800c9d0 + 8000224: 0800cc40 .word 0x0800cc40 08000228 : 8000228: 4603 mov r3, r0 @@ -882,13613 +882,13514 @@ Disassembly of section .text: 8000b70: 4770 bx lr 8000b72: bf00 nop -08000b74 <__aeabi_frsub>: - 8000b74: f080 4000 eor.w r0, r0, #2147483648 ; 0x80000000 - 8000b78: e002 b.n 8000b80 <__addsf3> - 8000b7a: bf00 nop - -08000b7c <__aeabi_fsub>: - 8000b7c: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000 - -08000b80 <__addsf3>: - 8000b80: 0042 lsls r2, r0, #1 - 8000b82: bf1f itttt ne - 8000b84: ea5f 0341 movsne.w r3, r1, lsl #1 - 8000b88: ea92 0f03 teqne r2, r3 - 8000b8c: ea7f 6c22 mvnsne.w ip, r2, asr #24 - 8000b90: ea7f 6c23 mvnsne.w ip, r3, asr #24 - 8000b94: d06a beq.n 8000c6c <__addsf3+0xec> - 8000b96: ea4f 6212 mov.w r2, r2, lsr #24 - 8000b9a: ebd2 6313 rsbs r3, r2, r3, lsr #24 - 8000b9e: bfc1 itttt gt - 8000ba0: 18d2 addgt r2, r2, r3 - 8000ba2: 4041 eorgt r1, r0 - 8000ba4: 4048 eorgt r0, r1 - 8000ba6: 4041 eorgt r1, r0 - 8000ba8: bfb8 it lt - 8000baa: 425b neglt r3, r3 - 8000bac: 2b19 cmp r3, #25 - 8000bae: bf88 it hi - 8000bb0: 4770 bxhi lr - 8000bb2: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 - 8000bb6: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 - 8000bba: f020 407f bic.w r0, r0, #4278190080 ; 0xff000000 - 8000bbe: bf18 it ne - 8000bc0: 4240 negne r0, r0 - 8000bc2: f011 4f00 tst.w r1, #2147483648 ; 0x80000000 - 8000bc6: f441 0100 orr.w r1, r1, #8388608 ; 0x800000 - 8000bca: f021 417f bic.w r1, r1, #4278190080 ; 0xff000000 +08000b74 <__aeabi_d2f>: + 8000b74: ea4f 0241 mov.w r2, r1, lsl #1 + 8000b78: f1b2 43e0 subs.w r3, r2, #1879048192 ; 0x70000000 + 8000b7c: bf24 itt cs + 8000b7e: f5b3 1c00 subscs.w ip, r3, #2097152 ; 0x200000 + 8000b82: f1dc 5cfe rsbscs ip, ip, #532676608 ; 0x1fc00000 + 8000b86: d90d bls.n 8000ba4 <__aeabi_d2f+0x30> + 8000b88: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 + 8000b8c: ea4f 02c0 mov.w r2, r0, lsl #3 + 8000b90: ea4c 7050 orr.w r0, ip, r0, lsr #29 + 8000b94: f1b2 4f00 cmp.w r2, #2147483648 ; 0x80000000 + 8000b98: eb40 0083 adc.w r0, r0, r3, lsl #2 + 8000b9c: bf08 it eq + 8000b9e: f020 0001 biceq.w r0, r0, #1 + 8000ba2: 4770 bx lr + 8000ba4: f011 4f80 tst.w r1, #1073741824 ; 0x40000000 + 8000ba8: d121 bne.n 8000bee <__aeabi_d2f+0x7a> + 8000baa: f113 7238 adds.w r2, r3, #48234496 ; 0x2e00000 + 8000bae: bfbc itt lt + 8000bb0: f001 4000 andlt.w r0, r1, #2147483648 ; 0x80000000 + 8000bb4: 4770 bxlt lr + 8000bb6: f441 1180 orr.w r1, r1, #1048576 ; 0x100000 + 8000bba: ea4f 5252 mov.w r2, r2, lsr #21 + 8000bbe: f1c2 0218 rsb r2, r2, #24 + 8000bc2: f1c2 0c20 rsb ip, r2, #32 + 8000bc6: fa10 f30c lsls.w r3, r0, ip + 8000bca: fa20 f002 lsr.w r0, r0, r2 8000bce: bf18 it ne - 8000bd0: 4249 negne r1, r1 - 8000bd2: ea92 0f03 teq r2, r3 - 8000bd6: d03f beq.n 8000c58 <__addsf3+0xd8> - 8000bd8: f1a2 0201 sub.w r2, r2, #1 - 8000bdc: fa41 fc03 asr.w ip, r1, r3 - 8000be0: eb10 000c adds.w r0, r0, ip - 8000be4: f1c3 0320 rsb r3, r3, #32 - 8000be8: fa01 f103 lsl.w r1, r1, r3 - 8000bec: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000 - 8000bf0: d502 bpl.n 8000bf8 <__addsf3+0x78> - 8000bf2: 4249 negs r1, r1 - 8000bf4: eb60 0040 sbc.w r0, r0, r0, lsl #1 - 8000bf8: f5b0 0f00 cmp.w r0, #8388608 ; 0x800000 - 8000bfc: d313 bcc.n 8000c26 <__addsf3+0xa6> - 8000bfe: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000 - 8000c02: d306 bcc.n 8000c12 <__addsf3+0x92> - 8000c04: 0840 lsrs r0, r0, #1 - 8000c06: ea4f 0131 mov.w r1, r1, rrx - 8000c0a: f102 0201 add.w r2, r2, #1 - 8000c0e: 2afe cmp r2, #254 ; 0xfe - 8000c10: d251 bcs.n 8000cb6 <__addsf3+0x136> - 8000c12: f1b1 4f00 cmp.w r1, #2147483648 ; 0x80000000 - 8000c16: eb40 50c2 adc.w r0, r0, r2, lsl #23 - 8000c1a: bf08 it eq - 8000c1c: f020 0001 biceq.w r0, r0, #1 - 8000c20: ea40 0003 orr.w r0, r0, r3 - 8000c24: 4770 bx lr - 8000c26: 0049 lsls r1, r1, #1 - 8000c28: eb40 0000 adc.w r0, r0, r0 - 8000c2c: 3a01 subs r2, #1 - 8000c2e: bf28 it cs - 8000c30: f5b0 0f00 cmpcs.w r0, #8388608 ; 0x800000 - 8000c34: d2ed bcs.n 8000c12 <__addsf3+0x92> - 8000c36: fab0 fc80 clz ip, r0 - 8000c3a: f1ac 0c08 sub.w ip, ip, #8 - 8000c3e: ebb2 020c subs.w r2, r2, ip - 8000c42: fa00 f00c lsl.w r0, r0, ip - 8000c46: bfaa itet ge - 8000c48: eb00 50c2 addge.w r0, r0, r2, lsl #23 - 8000c4c: 4252 neglt r2, r2 - 8000c4e: 4318 orrge r0, r3 - 8000c50: bfbc itt lt - 8000c52: 40d0 lsrlt r0, r2 - 8000c54: 4318 orrlt r0, r3 - 8000c56: 4770 bx lr - 8000c58: f092 0f00 teq r2, #0 - 8000c5c: f481 0100 eor.w r1, r1, #8388608 ; 0x800000 - 8000c60: bf06 itte eq - 8000c62: f480 0000 eoreq.w r0, r0, #8388608 ; 0x800000 - 8000c66: 3201 addeq r2, #1 - 8000c68: 3b01 subne r3, #1 - 8000c6a: e7b5 b.n 8000bd8 <__addsf3+0x58> - 8000c6c: ea4f 0341 mov.w r3, r1, lsl #1 - 8000c70: ea7f 6c22 mvns.w ip, r2, asr #24 - 8000c74: bf18 it ne - 8000c76: ea7f 6c23 mvnsne.w ip, r3, asr #24 - 8000c7a: d021 beq.n 8000cc0 <__addsf3+0x140> - 8000c7c: ea92 0f03 teq r2, r3 - 8000c80: d004 beq.n 8000c8c <__addsf3+0x10c> - 8000c82: f092 0f00 teq r2, #0 - 8000c86: bf08 it eq - 8000c88: 4608 moveq r0, r1 - 8000c8a: 4770 bx lr - 8000c8c: ea90 0f01 teq r0, r1 - 8000c90: bf1c itt ne - 8000c92: 2000 movne r0, #0 - 8000c94: 4770 bxne lr - 8000c96: f012 4f7f tst.w r2, #4278190080 ; 0xff000000 - 8000c9a: d104 bne.n 8000ca6 <__addsf3+0x126> - 8000c9c: 0040 lsls r0, r0, #1 - 8000c9e: bf28 it cs - 8000ca0: f040 4000 orrcs.w r0, r0, #2147483648 ; 0x80000000 - 8000ca4: 4770 bx lr - 8000ca6: f112 7200 adds.w r2, r2, #33554432 ; 0x2000000 - 8000caa: bf3c itt cc - 8000cac: f500 0000 addcc.w r0, r0, #8388608 ; 0x800000 - 8000cb0: 4770 bxcc lr - 8000cb2: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000 - 8000cb6: f043 40fe orr.w r0, r3, #2130706432 ; 0x7f000000 - 8000cba: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 - 8000cbe: 4770 bx lr - 8000cc0: ea7f 6222 mvns.w r2, r2, asr #24 - 8000cc4: bf16 itet ne - 8000cc6: 4608 movne r0, r1 - 8000cc8: ea7f 6323 mvnseq.w r3, r3, asr #24 - 8000ccc: 4601 movne r1, r0 - 8000cce: 0242 lsls r2, r0, #9 - 8000cd0: bf06 itte eq - 8000cd2: ea5f 2341 movseq.w r3, r1, lsl #9 - 8000cd6: ea90 0f01 teqeq r0, r1 - 8000cda: f440 0080 orrne.w r0, r0, #4194304 ; 0x400000 - 8000cde: 4770 bx lr + 8000bd0: f040 0001 orrne.w r0, r0, #1 + 8000bd4: ea4f 23c1 mov.w r3, r1, lsl #11 + 8000bd8: ea4f 23d3 mov.w r3, r3, lsr #11 + 8000bdc: fa03 fc0c lsl.w ip, r3, ip + 8000be0: ea40 000c orr.w r0, r0, ip + 8000be4: fa23 f302 lsr.w r3, r3, r2 + 8000be8: ea4f 0343 mov.w r3, r3, lsl #1 + 8000bec: e7cc b.n 8000b88 <__aeabi_d2f+0x14> + 8000bee: ea7f 5362 mvns.w r3, r2, asr #21 + 8000bf2: d107 bne.n 8000c04 <__aeabi_d2f+0x90> + 8000bf4: ea50 3301 orrs.w r3, r0, r1, lsl #12 + 8000bf8: bf1e ittt ne + 8000bfa: f04f 40fe movne.w r0, #2130706432 ; 0x7f000000 + 8000bfe: f440 0040 orrne.w r0, r0, #12582912 ; 0xc00000 + 8000c02: 4770 bxne lr + 8000c04: f001 4000 and.w r0, r1, #2147483648 ; 0x80000000 + 8000c08: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 + 8000c0c: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 + 8000c10: 4770 bx lr + 8000c12: bf00 nop -08000ce0 <__aeabi_ui2f>: - 8000ce0: f04f 0300 mov.w r3, #0 - 8000ce4: e004 b.n 8000cf0 <__aeabi_i2f+0x8> - 8000ce6: bf00 nop +08000c14 <__aeabi_frsub>: + 8000c14: f080 4000 eor.w r0, r0, #2147483648 ; 0x80000000 + 8000c18: e002 b.n 8000c20 <__addsf3> + 8000c1a: bf00 nop -08000ce8 <__aeabi_i2f>: - 8000ce8: f010 4300 ands.w r3, r0, #2147483648 ; 0x80000000 - 8000cec: bf48 it mi - 8000cee: 4240 negmi r0, r0 - 8000cf0: ea5f 0c00 movs.w ip, r0 - 8000cf4: bf08 it eq - 8000cf6: 4770 bxeq lr - 8000cf8: f043 4396 orr.w r3, r3, #1258291200 ; 0x4b000000 - 8000cfc: 4601 mov r1, r0 - 8000cfe: f04f 0000 mov.w r0, #0 - 8000d02: e01c b.n 8000d3e <__aeabi_l2f+0x2a> +08000c1c <__aeabi_fsub>: + 8000c1c: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000 -08000d04 <__aeabi_ul2f>: - 8000d04: ea50 0201 orrs.w r2, r0, r1 - 8000d08: bf08 it eq - 8000d0a: 4770 bxeq lr - 8000d0c: f04f 0300 mov.w r3, #0 - 8000d10: e00a b.n 8000d28 <__aeabi_l2f+0x14> - 8000d12: bf00 nop +08000c20 <__addsf3>: + 8000c20: 0042 lsls r2, r0, #1 + 8000c22: bf1f itttt ne + 8000c24: ea5f 0341 movsne.w r3, r1, lsl #1 + 8000c28: ea92 0f03 teqne r2, r3 + 8000c2c: ea7f 6c22 mvnsne.w ip, r2, asr #24 + 8000c30: ea7f 6c23 mvnsne.w ip, r3, asr #24 + 8000c34: d06a beq.n 8000d0c <__addsf3+0xec> + 8000c36: ea4f 6212 mov.w r2, r2, lsr #24 + 8000c3a: ebd2 6313 rsbs r3, r2, r3, lsr #24 + 8000c3e: bfc1 itttt gt + 8000c40: 18d2 addgt r2, r2, r3 + 8000c42: 4041 eorgt r1, r0 + 8000c44: 4048 eorgt r0, r1 + 8000c46: 4041 eorgt r1, r0 + 8000c48: bfb8 it lt + 8000c4a: 425b neglt r3, r3 + 8000c4c: 2b19 cmp r3, #25 + 8000c4e: bf88 it hi + 8000c50: 4770 bxhi lr + 8000c52: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 + 8000c56: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 + 8000c5a: f020 407f bic.w r0, r0, #4278190080 ; 0xff000000 + 8000c5e: bf18 it ne + 8000c60: 4240 negne r0, r0 + 8000c62: f011 4f00 tst.w r1, #2147483648 ; 0x80000000 + 8000c66: f441 0100 orr.w r1, r1, #8388608 ; 0x800000 + 8000c6a: f021 417f bic.w r1, r1, #4278190080 ; 0xff000000 + 8000c6e: bf18 it ne + 8000c70: 4249 negne r1, r1 + 8000c72: ea92 0f03 teq r2, r3 + 8000c76: d03f beq.n 8000cf8 <__addsf3+0xd8> + 8000c78: f1a2 0201 sub.w r2, r2, #1 + 8000c7c: fa41 fc03 asr.w ip, r1, r3 + 8000c80: eb10 000c adds.w r0, r0, ip + 8000c84: f1c3 0320 rsb r3, r3, #32 + 8000c88: fa01 f103 lsl.w r1, r1, r3 + 8000c8c: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000 + 8000c90: d502 bpl.n 8000c98 <__addsf3+0x78> + 8000c92: 4249 negs r1, r1 + 8000c94: eb60 0040 sbc.w r0, r0, r0, lsl #1 + 8000c98: f5b0 0f00 cmp.w r0, #8388608 ; 0x800000 + 8000c9c: d313 bcc.n 8000cc6 <__addsf3+0xa6> + 8000c9e: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000 + 8000ca2: d306 bcc.n 8000cb2 <__addsf3+0x92> + 8000ca4: 0840 lsrs r0, r0, #1 + 8000ca6: ea4f 0131 mov.w r1, r1, rrx + 8000caa: f102 0201 add.w r2, r2, #1 + 8000cae: 2afe cmp r2, #254 ; 0xfe + 8000cb0: d251 bcs.n 8000d56 <__addsf3+0x136> + 8000cb2: f1b1 4f00 cmp.w r1, #2147483648 ; 0x80000000 + 8000cb6: eb40 50c2 adc.w r0, r0, r2, lsl #23 + 8000cba: bf08 it eq + 8000cbc: f020 0001 biceq.w r0, r0, #1 + 8000cc0: ea40 0003 orr.w r0, r0, r3 + 8000cc4: 4770 bx lr + 8000cc6: 0049 lsls r1, r1, #1 + 8000cc8: eb40 0000 adc.w r0, r0, r0 + 8000ccc: 3a01 subs r2, #1 + 8000cce: bf28 it cs + 8000cd0: f5b0 0f00 cmpcs.w r0, #8388608 ; 0x800000 + 8000cd4: d2ed bcs.n 8000cb2 <__addsf3+0x92> + 8000cd6: fab0 fc80 clz ip, r0 + 8000cda: f1ac 0c08 sub.w ip, ip, #8 + 8000cde: ebb2 020c subs.w r2, r2, ip + 8000ce2: fa00 f00c lsl.w r0, r0, ip + 8000ce6: bfaa itet ge + 8000ce8: eb00 50c2 addge.w r0, r0, r2, lsl #23 + 8000cec: 4252 neglt r2, r2 + 8000cee: 4318 orrge r0, r3 + 8000cf0: bfbc itt lt + 8000cf2: 40d0 lsrlt r0, r2 + 8000cf4: 4318 orrlt r0, r3 + 8000cf6: 4770 bx lr + 8000cf8: f092 0f00 teq r2, #0 + 8000cfc: f481 0100 eor.w r1, r1, #8388608 ; 0x800000 + 8000d00: bf06 itte eq + 8000d02: f480 0000 eoreq.w r0, r0, #8388608 ; 0x800000 + 8000d06: 3201 addeq r2, #1 + 8000d08: 3b01 subne r3, #1 + 8000d0a: e7b5 b.n 8000c78 <__addsf3+0x58> + 8000d0c: ea4f 0341 mov.w r3, r1, lsl #1 + 8000d10: ea7f 6c22 mvns.w ip, r2, asr #24 + 8000d14: bf18 it ne + 8000d16: ea7f 6c23 mvnsne.w ip, r3, asr #24 + 8000d1a: d021 beq.n 8000d60 <__addsf3+0x140> + 8000d1c: ea92 0f03 teq r2, r3 + 8000d20: d004 beq.n 8000d2c <__addsf3+0x10c> + 8000d22: f092 0f00 teq r2, #0 + 8000d26: bf08 it eq + 8000d28: 4608 moveq r0, r1 + 8000d2a: 4770 bx lr + 8000d2c: ea90 0f01 teq r0, r1 + 8000d30: bf1c itt ne + 8000d32: 2000 movne r0, #0 + 8000d34: 4770 bxne lr + 8000d36: f012 4f7f tst.w r2, #4278190080 ; 0xff000000 + 8000d3a: d104 bne.n 8000d46 <__addsf3+0x126> + 8000d3c: 0040 lsls r0, r0, #1 + 8000d3e: bf28 it cs + 8000d40: f040 4000 orrcs.w r0, r0, #2147483648 ; 0x80000000 + 8000d44: 4770 bx lr + 8000d46: f112 7200 adds.w r2, r2, #33554432 ; 0x2000000 + 8000d4a: bf3c itt cc + 8000d4c: f500 0000 addcc.w r0, r0, #8388608 ; 0x800000 + 8000d50: 4770 bxcc lr + 8000d52: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000 + 8000d56: f043 40fe orr.w r0, r3, #2130706432 ; 0x7f000000 + 8000d5a: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 + 8000d5e: 4770 bx lr + 8000d60: ea7f 6222 mvns.w r2, r2, asr #24 + 8000d64: bf16 itet ne + 8000d66: 4608 movne r0, r1 + 8000d68: ea7f 6323 mvnseq.w r3, r3, asr #24 + 8000d6c: 4601 movne r1, r0 + 8000d6e: 0242 lsls r2, r0, #9 + 8000d70: bf06 itte eq + 8000d72: ea5f 2341 movseq.w r3, r1, lsl #9 + 8000d76: ea90 0f01 teqeq r0, r1 + 8000d7a: f440 0080 orrne.w r0, r0, #4194304 ; 0x400000 + 8000d7e: 4770 bx lr -08000d14 <__aeabi_l2f>: - 8000d14: ea50 0201 orrs.w r2, r0, r1 - 8000d18: bf08 it eq - 8000d1a: 4770 bxeq lr - 8000d1c: f011 4300 ands.w r3, r1, #2147483648 ; 0x80000000 - 8000d20: d502 bpl.n 8000d28 <__aeabi_l2f+0x14> - 8000d22: 4240 negs r0, r0 - 8000d24: eb61 0141 sbc.w r1, r1, r1, lsl #1 - 8000d28: ea5f 0c01 movs.w ip, r1 - 8000d2c: bf02 ittt eq - 8000d2e: 4684 moveq ip, r0 - 8000d30: 4601 moveq r1, r0 - 8000d32: 2000 moveq r0, #0 - 8000d34: f043 43b6 orr.w r3, r3, #1526726656 ; 0x5b000000 - 8000d38: bf08 it eq - 8000d3a: f1a3 5380 subeq.w r3, r3, #268435456 ; 0x10000000 - 8000d3e: f5a3 0300 sub.w r3, r3, #8388608 ; 0x800000 - 8000d42: fabc f28c clz r2, ip - 8000d46: 3a08 subs r2, #8 - 8000d48: eba3 53c2 sub.w r3, r3, r2, lsl #23 - 8000d4c: db10 blt.n 8000d70 <__aeabi_l2f+0x5c> - 8000d4e: fa01 fc02 lsl.w ip, r1, r2 - 8000d52: 4463 add r3, ip - 8000d54: fa00 fc02 lsl.w ip, r0, r2 - 8000d58: f1c2 0220 rsb r2, r2, #32 - 8000d5c: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000 - 8000d60: fa20 f202 lsr.w r2, r0, r2 - 8000d64: eb43 0002 adc.w r0, r3, r2 - 8000d68: bf08 it eq - 8000d6a: f020 0001 biceq.w r0, r0, #1 - 8000d6e: 4770 bx lr - 8000d70: f102 0220 add.w r2, r2, #32 - 8000d74: fa01 fc02 lsl.w ip, r1, r2 - 8000d78: f1c2 0220 rsb r2, r2, #32 - 8000d7c: ea50 004c orrs.w r0, r0, ip, lsl #1 - 8000d80: fa21 f202 lsr.w r2, r1, r2 - 8000d84: eb43 0002 adc.w r0, r3, r2 - 8000d88: bf08 it eq - 8000d8a: ea20 70dc biceq.w r0, r0, ip, lsr #31 - 8000d8e: 4770 bx lr +08000d80 <__aeabi_ui2f>: + 8000d80: f04f 0300 mov.w r3, #0 + 8000d84: e004 b.n 8000d90 <__aeabi_i2f+0x8> + 8000d86: bf00 nop -08000d90 <__aeabi_fmul>: - 8000d90: f04f 0cff mov.w ip, #255 ; 0xff - 8000d94: ea1c 52d0 ands.w r2, ip, r0, lsr #23 - 8000d98: bf1e ittt ne - 8000d9a: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 - 8000d9e: ea92 0f0c teqne r2, ip - 8000da2: ea93 0f0c teqne r3, ip - 8000da6: d06f beq.n 8000e88 <__aeabi_fmul+0xf8> - 8000da8: 441a add r2, r3 - 8000daa: ea80 0c01 eor.w ip, r0, r1 - 8000dae: 0240 lsls r0, r0, #9 - 8000db0: bf18 it ne - 8000db2: ea5f 2141 movsne.w r1, r1, lsl #9 - 8000db6: d01e beq.n 8000df6 <__aeabi_fmul+0x66> - 8000db8: f04f 6300 mov.w r3, #134217728 ; 0x8000000 - 8000dbc: ea43 1050 orr.w r0, r3, r0, lsr #5 - 8000dc0: ea43 1151 orr.w r1, r3, r1, lsr #5 - 8000dc4: fba0 3101 umull r3, r1, r0, r1 - 8000dc8: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000 - 8000dcc: f5b1 0f00 cmp.w r1, #8388608 ; 0x800000 - 8000dd0: bf3e ittt cc - 8000dd2: 0049 lslcc r1, r1, #1 - 8000dd4: ea41 71d3 orrcc.w r1, r1, r3, lsr #31 - 8000dd8: 005b lslcc r3, r3, #1 - 8000dda: ea40 0001 orr.w r0, r0, r1 - 8000dde: f162 027f sbc.w r2, r2, #127 ; 0x7f - 8000de2: 2afd cmp r2, #253 ; 0xfd - 8000de4: d81d bhi.n 8000e22 <__aeabi_fmul+0x92> - 8000de6: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 8000dea: eb40 50c2 adc.w r0, r0, r2, lsl #23 - 8000dee: bf08 it eq - 8000df0: f020 0001 biceq.w r0, r0, #1 - 8000df4: 4770 bx lr - 8000df6: f090 0f00 teq r0, #0 - 8000dfa: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000 - 8000dfe: bf08 it eq - 8000e00: 0249 lsleq r1, r1, #9 - 8000e02: ea4c 2050 orr.w r0, ip, r0, lsr #9 - 8000e06: ea40 2051 orr.w r0, r0, r1, lsr #9 - 8000e0a: 3a7f subs r2, #127 ; 0x7f - 8000e0c: bfc2 ittt gt - 8000e0e: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff - 8000e12: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 - 8000e16: 4770 bxgt lr - 8000e18: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 - 8000e1c: f04f 0300 mov.w r3, #0 - 8000e20: 3a01 subs r2, #1 - 8000e22: dc5d bgt.n 8000ee0 <__aeabi_fmul+0x150> - 8000e24: f112 0f19 cmn.w r2, #25 - 8000e28: bfdc itt le - 8000e2a: f000 4000 andle.w r0, r0, #2147483648 ; 0x80000000 - 8000e2e: 4770 bxle lr - 8000e30: f1c2 0200 rsb r2, r2, #0 - 8000e34: 0041 lsls r1, r0, #1 - 8000e36: fa21 f102 lsr.w r1, r1, r2 - 8000e3a: f1c2 0220 rsb r2, r2, #32 - 8000e3e: fa00 fc02 lsl.w ip, r0, r2 - 8000e42: ea5f 0031 movs.w r0, r1, rrx - 8000e46: f140 0000 adc.w r0, r0, #0 - 8000e4a: ea53 034c orrs.w r3, r3, ip, lsl #1 - 8000e4e: bf08 it eq - 8000e50: ea20 70dc biceq.w r0, r0, ip, lsr #31 - 8000e54: 4770 bx lr - 8000e56: f092 0f00 teq r2, #0 - 8000e5a: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000 - 8000e5e: bf02 ittt eq - 8000e60: 0040 lsleq r0, r0, #1 - 8000e62: f410 0f00 tsteq.w r0, #8388608 ; 0x800000 - 8000e66: 3a01 subeq r2, #1 - 8000e68: d0f9 beq.n 8000e5e <__aeabi_fmul+0xce> - 8000e6a: ea40 000c orr.w r0, r0, ip - 8000e6e: f093 0f00 teq r3, #0 - 8000e72: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 - 8000e76: bf02 ittt eq - 8000e78: 0049 lsleq r1, r1, #1 - 8000e7a: f411 0f00 tsteq.w r1, #8388608 ; 0x800000 - 8000e7e: 3b01 subeq r3, #1 - 8000e80: d0f9 beq.n 8000e76 <__aeabi_fmul+0xe6> - 8000e82: ea41 010c orr.w r1, r1, ip - 8000e86: e78f b.n 8000da8 <__aeabi_fmul+0x18> - 8000e88: ea0c 53d1 and.w r3, ip, r1, lsr #23 - 8000e8c: ea92 0f0c teq r2, ip - 8000e90: bf18 it ne - 8000e92: ea93 0f0c teqne r3, ip - 8000e96: d00a beq.n 8000eae <__aeabi_fmul+0x11e> - 8000e98: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000 - 8000e9c: bf18 it ne - 8000e9e: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000 - 8000ea2: d1d8 bne.n 8000e56 <__aeabi_fmul+0xc6> - 8000ea4: ea80 0001 eor.w r0, r0, r1 - 8000ea8: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000 - 8000eac: 4770 bx lr - 8000eae: f090 0f00 teq r0, #0 - 8000eb2: bf17 itett ne - 8000eb4: f090 4f00 teqne r0, #2147483648 ; 0x80000000 - 8000eb8: 4608 moveq r0, r1 - 8000eba: f091 0f00 teqne r1, #0 - 8000ebe: f091 4f00 teqne r1, #2147483648 ; 0x80000000 - 8000ec2: d014 beq.n 8000eee <__aeabi_fmul+0x15e> - 8000ec4: ea92 0f0c teq r2, ip - 8000ec8: d101 bne.n 8000ece <__aeabi_fmul+0x13e> - 8000eca: 0242 lsls r2, r0, #9 - 8000ecc: d10f bne.n 8000eee <__aeabi_fmul+0x15e> - 8000ece: ea93 0f0c teq r3, ip - 8000ed2: d103 bne.n 8000edc <__aeabi_fmul+0x14c> - 8000ed4: 024b lsls r3, r1, #9 - 8000ed6: bf18 it ne - 8000ed8: 4608 movne r0, r1 - 8000eda: d108 bne.n 8000eee <__aeabi_fmul+0x15e> - 8000edc: ea80 0001 eor.w r0, r0, r1 - 8000ee0: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000 - 8000ee4: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 - 8000ee8: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 - 8000eec: 4770 bx lr - 8000eee: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 - 8000ef2: f440 0040 orr.w r0, r0, #12582912 ; 0xc00000 - 8000ef6: 4770 bx lr +08000d88 <__aeabi_i2f>: + 8000d88: f010 4300 ands.w r3, r0, #2147483648 ; 0x80000000 + 8000d8c: bf48 it mi + 8000d8e: 4240 negmi r0, r0 + 8000d90: ea5f 0c00 movs.w ip, r0 + 8000d94: bf08 it eq + 8000d96: 4770 bxeq lr + 8000d98: f043 4396 orr.w r3, r3, #1258291200 ; 0x4b000000 + 8000d9c: 4601 mov r1, r0 + 8000d9e: f04f 0000 mov.w r0, #0 + 8000da2: e01c b.n 8000dde <__aeabi_l2f+0x2a> -08000ef8 <__aeabi_fdiv>: - 8000ef8: f04f 0cff mov.w ip, #255 ; 0xff - 8000efc: ea1c 52d0 ands.w r2, ip, r0, lsr #23 - 8000f00: bf1e ittt ne - 8000f02: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 - 8000f06: ea92 0f0c teqne r2, ip - 8000f0a: ea93 0f0c teqne r3, ip - 8000f0e: d069 beq.n 8000fe4 <__aeabi_fdiv+0xec> - 8000f10: eba2 0203 sub.w r2, r2, r3 - 8000f14: ea80 0c01 eor.w ip, r0, r1 - 8000f18: 0249 lsls r1, r1, #9 - 8000f1a: ea4f 2040 mov.w r0, r0, lsl #9 - 8000f1e: d037 beq.n 8000f90 <__aeabi_fdiv+0x98> - 8000f20: f04f 5380 mov.w r3, #268435456 ; 0x10000000 - 8000f24: ea43 1111 orr.w r1, r3, r1, lsr #4 - 8000f28: ea43 1310 orr.w r3, r3, r0, lsr #4 - 8000f2c: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000 - 8000f30: 428b cmp r3, r1 - 8000f32: bf38 it cc - 8000f34: 005b lslcc r3, r3, #1 - 8000f36: f142 027d adc.w r2, r2, #125 ; 0x7d - 8000f3a: f44f 0c00 mov.w ip, #8388608 ; 0x800000 - 8000f3e: 428b cmp r3, r1 - 8000f40: bf24 itt cs - 8000f42: 1a5b subcs r3, r3, r1 - 8000f44: ea40 000c orrcs.w r0, r0, ip - 8000f48: ebb3 0f51 cmp.w r3, r1, lsr #1 - 8000f4c: bf24 itt cs - 8000f4e: eba3 0351 subcs.w r3, r3, r1, lsr #1 - 8000f52: ea40 005c orrcs.w r0, r0, ip, lsr #1 - 8000f56: ebb3 0f91 cmp.w r3, r1, lsr #2 - 8000f5a: bf24 itt cs - 8000f5c: eba3 0391 subcs.w r3, r3, r1, lsr #2 - 8000f60: ea40 009c orrcs.w r0, r0, ip, lsr #2 - 8000f64: ebb3 0fd1 cmp.w r3, r1, lsr #3 - 8000f68: bf24 itt cs - 8000f6a: eba3 03d1 subcs.w r3, r3, r1, lsr #3 - 8000f6e: ea40 00dc orrcs.w r0, r0, ip, lsr #3 - 8000f72: 011b lsls r3, r3, #4 - 8000f74: bf18 it ne - 8000f76: ea5f 1c1c movsne.w ip, ip, lsr #4 - 8000f7a: d1e0 bne.n 8000f3e <__aeabi_fdiv+0x46> - 8000f7c: 2afd cmp r2, #253 ; 0xfd - 8000f7e: f63f af50 bhi.w 8000e22 <__aeabi_fmul+0x92> - 8000f82: 428b cmp r3, r1 - 8000f84: eb40 50c2 adc.w r0, r0, r2, lsl #23 - 8000f88: bf08 it eq - 8000f8a: f020 0001 biceq.w r0, r0, #1 - 8000f8e: 4770 bx lr - 8000f90: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000 - 8000f94: ea4c 2050 orr.w r0, ip, r0, lsr #9 - 8000f98: 327f adds r2, #127 ; 0x7f - 8000f9a: bfc2 ittt gt - 8000f9c: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff - 8000fa0: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 - 8000fa4: 4770 bxgt lr - 8000fa6: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 - 8000faa: f04f 0300 mov.w r3, #0 - 8000fae: 3a01 subs r2, #1 - 8000fb0: e737 b.n 8000e22 <__aeabi_fmul+0x92> - 8000fb2: f092 0f00 teq r2, #0 - 8000fb6: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000 - 8000fba: bf02 ittt eq - 8000fbc: 0040 lsleq r0, r0, #1 - 8000fbe: f410 0f00 tsteq.w r0, #8388608 ; 0x800000 - 8000fc2: 3a01 subeq r2, #1 - 8000fc4: d0f9 beq.n 8000fba <__aeabi_fdiv+0xc2> - 8000fc6: ea40 000c orr.w r0, r0, ip - 8000fca: f093 0f00 teq r3, #0 - 8000fce: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 - 8000fd2: bf02 ittt eq - 8000fd4: 0049 lsleq r1, r1, #1 - 8000fd6: f411 0f00 tsteq.w r1, #8388608 ; 0x800000 - 8000fda: 3b01 subeq r3, #1 - 8000fdc: d0f9 beq.n 8000fd2 <__aeabi_fdiv+0xda> - 8000fde: ea41 010c orr.w r1, r1, ip - 8000fe2: e795 b.n 8000f10 <__aeabi_fdiv+0x18> - 8000fe4: ea0c 53d1 and.w r3, ip, r1, lsr #23 - 8000fe8: ea92 0f0c teq r2, ip - 8000fec: d108 bne.n 8001000 <__aeabi_fdiv+0x108> - 8000fee: 0242 lsls r2, r0, #9 - 8000ff0: f47f af7d bne.w 8000eee <__aeabi_fmul+0x15e> - 8000ff4: ea93 0f0c teq r3, ip - 8000ff8: f47f af70 bne.w 8000edc <__aeabi_fmul+0x14c> - 8000ffc: 4608 mov r0, r1 - 8000ffe: e776 b.n 8000eee <__aeabi_fmul+0x15e> - 8001000: ea93 0f0c teq r3, ip - 8001004: d104 bne.n 8001010 <__aeabi_fdiv+0x118> - 8001006: 024b lsls r3, r1, #9 - 8001008: f43f af4c beq.w 8000ea4 <__aeabi_fmul+0x114> - 800100c: 4608 mov r0, r1 - 800100e: e76e b.n 8000eee <__aeabi_fmul+0x15e> - 8001010: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000 +08000da4 <__aeabi_ul2f>: + 8000da4: ea50 0201 orrs.w r2, r0, r1 + 8000da8: bf08 it eq + 8000daa: 4770 bxeq lr + 8000dac: f04f 0300 mov.w r3, #0 + 8000db0: e00a b.n 8000dc8 <__aeabi_l2f+0x14> + 8000db2: bf00 nop + +08000db4 <__aeabi_l2f>: + 8000db4: ea50 0201 orrs.w r2, r0, r1 + 8000db8: bf08 it eq + 8000dba: 4770 bxeq lr + 8000dbc: f011 4300 ands.w r3, r1, #2147483648 ; 0x80000000 + 8000dc0: d502 bpl.n 8000dc8 <__aeabi_l2f+0x14> + 8000dc2: 4240 negs r0, r0 + 8000dc4: eb61 0141 sbc.w r1, r1, r1, lsl #1 + 8000dc8: ea5f 0c01 movs.w ip, r1 + 8000dcc: bf02 ittt eq + 8000dce: 4684 moveq ip, r0 + 8000dd0: 4601 moveq r1, r0 + 8000dd2: 2000 moveq r0, #0 + 8000dd4: f043 43b6 orr.w r3, r3, #1526726656 ; 0x5b000000 + 8000dd8: bf08 it eq + 8000dda: f1a3 5380 subeq.w r3, r3, #268435456 ; 0x10000000 + 8000dde: f5a3 0300 sub.w r3, r3, #8388608 ; 0x800000 + 8000de2: fabc f28c clz r2, ip + 8000de6: 3a08 subs r2, #8 + 8000de8: eba3 53c2 sub.w r3, r3, r2, lsl #23 + 8000dec: db10 blt.n 8000e10 <__aeabi_l2f+0x5c> + 8000dee: fa01 fc02 lsl.w ip, r1, r2 + 8000df2: 4463 add r3, ip + 8000df4: fa00 fc02 lsl.w ip, r0, r2 + 8000df8: f1c2 0220 rsb r2, r2, #32 + 8000dfc: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000 + 8000e00: fa20 f202 lsr.w r2, r0, r2 + 8000e04: eb43 0002 adc.w r0, r3, r2 + 8000e08: bf08 it eq + 8000e0a: f020 0001 biceq.w r0, r0, #1 + 8000e0e: 4770 bx lr + 8000e10: f102 0220 add.w r2, r2, #32 + 8000e14: fa01 fc02 lsl.w ip, r1, r2 + 8000e18: f1c2 0220 rsb r2, r2, #32 + 8000e1c: ea50 004c orrs.w r0, r0, ip, lsl #1 + 8000e20: fa21 f202 lsr.w r2, r1, r2 + 8000e24: eb43 0002 adc.w r0, r3, r2 + 8000e28: bf08 it eq + 8000e2a: ea20 70dc biceq.w r0, r0, ip, lsr #31 + 8000e2e: 4770 bx lr + +08000e30 <__aeabi_fmul>: + 8000e30: f04f 0cff mov.w ip, #255 ; 0xff + 8000e34: ea1c 52d0 ands.w r2, ip, r0, lsr #23 + 8000e38: bf1e ittt ne + 8000e3a: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 + 8000e3e: ea92 0f0c teqne r2, ip + 8000e42: ea93 0f0c teqne r3, ip + 8000e46: d06f beq.n 8000f28 <__aeabi_fmul+0xf8> + 8000e48: 441a add r2, r3 + 8000e4a: ea80 0c01 eor.w ip, r0, r1 + 8000e4e: 0240 lsls r0, r0, #9 + 8000e50: bf18 it ne + 8000e52: ea5f 2141 movsne.w r1, r1, lsl #9 + 8000e56: d01e beq.n 8000e96 <__aeabi_fmul+0x66> + 8000e58: f04f 6300 mov.w r3, #134217728 ; 0x8000000 + 8000e5c: ea43 1050 orr.w r0, r3, r0, lsr #5 + 8000e60: ea43 1151 orr.w r1, r3, r1, lsr #5 + 8000e64: fba0 3101 umull r3, r1, r0, r1 + 8000e68: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000 + 8000e6c: f5b1 0f00 cmp.w r1, #8388608 ; 0x800000 + 8000e70: bf3e ittt cc + 8000e72: 0049 lslcc r1, r1, #1 + 8000e74: ea41 71d3 orrcc.w r1, r1, r3, lsr #31 + 8000e78: 005b lslcc r3, r3, #1 + 8000e7a: ea40 0001 orr.w r0, r0, r1 + 8000e7e: f162 027f sbc.w r2, r2, #127 ; 0x7f + 8000e82: 2afd cmp r2, #253 ; 0xfd + 8000e84: d81d bhi.n 8000ec2 <__aeabi_fmul+0x92> + 8000e86: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 + 8000e8a: eb40 50c2 adc.w r0, r0, r2, lsl #23 + 8000e8e: bf08 it eq + 8000e90: f020 0001 biceq.w r0, r0, #1 + 8000e94: 4770 bx lr + 8000e96: f090 0f00 teq r0, #0 + 8000e9a: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000 + 8000e9e: bf08 it eq + 8000ea0: 0249 lsleq r1, r1, #9 + 8000ea2: ea4c 2050 orr.w r0, ip, r0, lsr #9 + 8000ea6: ea40 2051 orr.w r0, r0, r1, lsr #9 + 8000eaa: 3a7f subs r2, #127 ; 0x7f + 8000eac: bfc2 ittt gt + 8000eae: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff + 8000eb2: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 + 8000eb6: 4770 bxgt lr + 8000eb8: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 + 8000ebc: f04f 0300 mov.w r3, #0 + 8000ec0: 3a01 subs r2, #1 + 8000ec2: dc5d bgt.n 8000f80 <__aeabi_fmul+0x150> + 8000ec4: f112 0f19 cmn.w r2, #25 + 8000ec8: bfdc itt le + 8000eca: f000 4000 andle.w r0, r0, #2147483648 ; 0x80000000 + 8000ece: 4770 bxle lr + 8000ed0: f1c2 0200 rsb r2, r2, #0 + 8000ed4: 0041 lsls r1, r0, #1 + 8000ed6: fa21 f102 lsr.w r1, r1, r2 + 8000eda: f1c2 0220 rsb r2, r2, #32 + 8000ede: fa00 fc02 lsl.w ip, r0, r2 + 8000ee2: ea5f 0031 movs.w r0, r1, rrx + 8000ee6: f140 0000 adc.w r0, r0, #0 + 8000eea: ea53 034c orrs.w r3, r3, ip, lsl #1 + 8000eee: bf08 it eq + 8000ef0: ea20 70dc biceq.w r0, r0, ip, lsr #31 + 8000ef4: 4770 bx lr + 8000ef6: f092 0f00 teq r2, #0 + 8000efa: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000 + 8000efe: bf02 ittt eq + 8000f00: 0040 lsleq r0, r0, #1 + 8000f02: f410 0f00 tsteq.w r0, #8388608 ; 0x800000 + 8000f06: 3a01 subeq r2, #1 + 8000f08: d0f9 beq.n 8000efe <__aeabi_fmul+0xce> + 8000f0a: ea40 000c orr.w r0, r0, ip + 8000f0e: f093 0f00 teq r3, #0 + 8000f12: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 + 8000f16: bf02 ittt eq + 8000f18: 0049 lsleq r1, r1, #1 + 8000f1a: f411 0f00 tsteq.w r1, #8388608 ; 0x800000 + 8000f1e: 3b01 subeq r3, #1 + 8000f20: d0f9 beq.n 8000f16 <__aeabi_fmul+0xe6> + 8000f22: ea41 010c orr.w r1, r1, ip + 8000f26: e78f b.n 8000e48 <__aeabi_fmul+0x18> + 8000f28: ea0c 53d1 and.w r3, ip, r1, lsr #23 + 8000f2c: ea92 0f0c teq r2, ip + 8000f30: bf18 it ne + 8000f32: ea93 0f0c teqne r3, ip + 8000f36: d00a beq.n 8000f4e <__aeabi_fmul+0x11e> + 8000f38: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000 + 8000f3c: bf18 it ne + 8000f3e: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000 + 8000f42: d1d8 bne.n 8000ef6 <__aeabi_fmul+0xc6> + 8000f44: ea80 0001 eor.w r0, r0, r1 + 8000f48: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000 + 8000f4c: 4770 bx lr + 8000f4e: f090 0f00 teq r0, #0 + 8000f52: bf17 itett ne + 8000f54: f090 4f00 teqne r0, #2147483648 ; 0x80000000 + 8000f58: 4608 moveq r0, r1 + 8000f5a: f091 0f00 teqne r1, #0 + 8000f5e: f091 4f00 teqne r1, #2147483648 ; 0x80000000 + 8000f62: d014 beq.n 8000f8e <__aeabi_fmul+0x15e> + 8000f64: ea92 0f0c teq r2, ip + 8000f68: d101 bne.n 8000f6e <__aeabi_fmul+0x13e> + 8000f6a: 0242 lsls r2, r0, #9 + 8000f6c: d10f bne.n 8000f8e <__aeabi_fmul+0x15e> + 8000f6e: ea93 0f0c teq r3, ip + 8000f72: d103 bne.n 8000f7c <__aeabi_fmul+0x14c> + 8000f74: 024b lsls r3, r1, #9 + 8000f76: bf18 it ne + 8000f78: 4608 movne r0, r1 + 8000f7a: d108 bne.n 8000f8e <__aeabi_fmul+0x15e> + 8000f7c: ea80 0001 eor.w r0, r0, r1 + 8000f80: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000 + 8000f84: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 + 8000f88: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 + 8000f8c: 4770 bx lr + 8000f8e: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 + 8000f92: f440 0040 orr.w r0, r0, #12582912 ; 0xc00000 + 8000f96: 4770 bx lr + +08000f98 <__aeabi_fdiv>: + 8000f98: f04f 0cff mov.w ip, #255 ; 0xff + 8000f9c: ea1c 52d0 ands.w r2, ip, r0, lsr #23 + 8000fa0: bf1e ittt ne + 8000fa2: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 + 8000fa6: ea92 0f0c teqne r2, ip + 8000faa: ea93 0f0c teqne r3, ip + 8000fae: d069 beq.n 8001084 <__aeabi_fdiv+0xec> + 8000fb0: eba2 0203 sub.w r2, r2, r3 + 8000fb4: ea80 0c01 eor.w ip, r0, r1 + 8000fb8: 0249 lsls r1, r1, #9 + 8000fba: ea4f 2040 mov.w r0, r0, lsl #9 + 8000fbe: d037 beq.n 8001030 <__aeabi_fdiv+0x98> + 8000fc0: f04f 5380 mov.w r3, #268435456 ; 0x10000000 + 8000fc4: ea43 1111 orr.w r1, r3, r1, lsr #4 + 8000fc8: ea43 1310 orr.w r3, r3, r0, lsr #4 + 8000fcc: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000 + 8000fd0: 428b cmp r3, r1 + 8000fd2: bf38 it cc + 8000fd4: 005b lslcc r3, r3, #1 + 8000fd6: f142 027d adc.w r2, r2, #125 ; 0x7d + 8000fda: f44f 0c00 mov.w ip, #8388608 ; 0x800000 + 8000fde: 428b cmp r3, r1 + 8000fe0: bf24 itt cs + 8000fe2: 1a5b subcs r3, r3, r1 + 8000fe4: ea40 000c orrcs.w r0, r0, ip + 8000fe8: ebb3 0f51 cmp.w r3, r1, lsr #1 + 8000fec: bf24 itt cs + 8000fee: eba3 0351 subcs.w r3, r3, r1, lsr #1 + 8000ff2: ea40 005c orrcs.w r0, r0, ip, lsr #1 + 8000ff6: ebb3 0f91 cmp.w r3, r1, lsr #2 + 8000ffa: bf24 itt cs + 8000ffc: eba3 0391 subcs.w r3, r3, r1, lsr #2 + 8001000: ea40 009c orrcs.w r0, r0, ip, lsr #2 + 8001004: ebb3 0fd1 cmp.w r3, r1, lsr #3 + 8001008: bf24 itt cs + 800100a: eba3 03d1 subcs.w r3, r3, r1, lsr #3 + 800100e: ea40 00dc orrcs.w r0, r0, ip, lsr #3 + 8001012: 011b lsls r3, r3, #4 8001014: bf18 it ne - 8001016: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000 - 800101a: d1ca bne.n 8000fb2 <__aeabi_fdiv+0xba> - 800101c: f030 4200 bics.w r2, r0, #2147483648 ; 0x80000000 - 8001020: f47f af5c bne.w 8000edc <__aeabi_fmul+0x14c> - 8001024: f031 4300 bics.w r3, r1, #2147483648 ; 0x80000000 - 8001028: f47f af3c bne.w 8000ea4 <__aeabi_fmul+0x114> - 800102c: e75f b.n 8000eee <__aeabi_fmul+0x15e> - 800102e: bf00 nop + 8001016: ea5f 1c1c movsne.w ip, ip, lsr #4 + 800101a: d1e0 bne.n 8000fde <__aeabi_fdiv+0x46> + 800101c: 2afd cmp r2, #253 ; 0xfd + 800101e: f63f af50 bhi.w 8000ec2 <__aeabi_fmul+0x92> + 8001022: 428b cmp r3, r1 + 8001024: eb40 50c2 adc.w r0, r0, r2, lsl #23 + 8001028: bf08 it eq + 800102a: f020 0001 biceq.w r0, r0, #1 + 800102e: 4770 bx lr + 8001030: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000 + 8001034: ea4c 2050 orr.w r0, ip, r0, lsr #9 + 8001038: 327f adds r2, #127 ; 0x7f + 800103a: bfc2 ittt gt + 800103c: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff + 8001040: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 + 8001044: 4770 bxgt lr + 8001046: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 + 800104a: f04f 0300 mov.w r3, #0 + 800104e: 3a01 subs r2, #1 + 8001050: e737 b.n 8000ec2 <__aeabi_fmul+0x92> + 8001052: f092 0f00 teq r2, #0 + 8001056: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000 + 800105a: bf02 ittt eq + 800105c: 0040 lsleq r0, r0, #1 + 800105e: f410 0f00 tsteq.w r0, #8388608 ; 0x800000 + 8001062: 3a01 subeq r2, #1 + 8001064: d0f9 beq.n 800105a <__aeabi_fdiv+0xc2> + 8001066: ea40 000c orr.w r0, r0, ip + 800106a: f093 0f00 teq r3, #0 + 800106e: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 + 8001072: bf02 ittt eq + 8001074: 0049 lsleq r1, r1, #1 + 8001076: f411 0f00 tsteq.w r1, #8388608 ; 0x800000 + 800107a: 3b01 subeq r3, #1 + 800107c: d0f9 beq.n 8001072 <__aeabi_fdiv+0xda> + 800107e: ea41 010c orr.w r1, r1, ip + 8001082: e795 b.n 8000fb0 <__aeabi_fdiv+0x18> + 8001084: ea0c 53d1 and.w r3, ip, r1, lsr #23 + 8001088: ea92 0f0c teq r2, ip + 800108c: d108 bne.n 80010a0 <__aeabi_fdiv+0x108> + 800108e: 0242 lsls r2, r0, #9 + 8001090: f47f af7d bne.w 8000f8e <__aeabi_fmul+0x15e> + 8001094: ea93 0f0c teq r3, ip + 8001098: f47f af70 bne.w 8000f7c <__aeabi_fmul+0x14c> + 800109c: 4608 mov r0, r1 + 800109e: e776 b.n 8000f8e <__aeabi_fmul+0x15e> + 80010a0: ea93 0f0c teq r3, ip + 80010a4: d104 bne.n 80010b0 <__aeabi_fdiv+0x118> + 80010a6: 024b lsls r3, r1, #9 + 80010a8: f43f af4c beq.w 8000f44 <__aeabi_fmul+0x114> + 80010ac: 4608 mov r0, r1 + 80010ae: e76e b.n 8000f8e <__aeabi_fmul+0x15e> + 80010b0: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000 + 80010b4: bf18 it ne + 80010b6: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000 + 80010ba: d1ca bne.n 8001052 <__aeabi_fdiv+0xba> + 80010bc: f030 4200 bics.w r2, r0, #2147483648 ; 0x80000000 + 80010c0: f47f af5c bne.w 8000f7c <__aeabi_fmul+0x14c> + 80010c4: f031 4300 bics.w r3, r1, #2147483648 ; 0x80000000 + 80010c8: f47f af3c bne.w 8000f44 <__aeabi_fmul+0x114> + 80010cc: e75f b.n 8000f8e <__aeabi_fmul+0x15e> + 80010ce: bf00 nop -08001030 <__gesf2>: - 8001030: f04f 3cff mov.w ip, #4294967295 ; 0xffffffff - 8001034: e006 b.n 8001044 <__cmpsf2+0x4> - 8001036: bf00 nop +080010d0 <__gesf2>: + 80010d0: f04f 3cff mov.w ip, #4294967295 ; 0xffffffff + 80010d4: e006 b.n 80010e4 <__cmpsf2+0x4> + 80010d6: bf00 nop -08001038 <__lesf2>: - 8001038: f04f 0c01 mov.w ip, #1 - 800103c: e002 b.n 8001044 <__cmpsf2+0x4> - 800103e: bf00 nop - -08001040 <__cmpsf2>: - 8001040: f04f 0c01 mov.w ip, #1 - 8001044: f84d cd04 str.w ip, [sp, #-4]! - 8001048: ea4f 0240 mov.w r2, r0, lsl #1 - 800104c: ea4f 0341 mov.w r3, r1, lsl #1 - 8001050: ea7f 6c22 mvns.w ip, r2, asr #24 - 8001054: bf18 it ne - 8001056: ea7f 6c23 mvnsne.w ip, r3, asr #24 - 800105a: d011 beq.n 8001080 <__cmpsf2+0x40> - 800105c: b001 add sp, #4 - 800105e: ea52 0c53 orrs.w ip, r2, r3, lsr #1 - 8001062: bf18 it ne - 8001064: ea90 0f01 teqne r0, r1 - 8001068: bf58 it pl - 800106a: ebb2 0003 subspl.w r0, r2, r3 - 800106e: bf88 it hi - 8001070: 17c8 asrhi r0, r1, #31 - 8001072: bf38 it cc - 8001074: ea6f 70e1 mvncc.w r0, r1, asr #31 - 8001078: bf18 it ne - 800107a: f040 0001 orrne.w r0, r0, #1 - 800107e: 4770 bx lr - 8001080: ea7f 6c22 mvns.w ip, r2, asr #24 - 8001084: d102 bne.n 800108c <__cmpsf2+0x4c> - 8001086: ea5f 2c40 movs.w ip, r0, lsl #9 - 800108a: d105 bne.n 8001098 <__cmpsf2+0x58> - 800108c: ea7f 6c23 mvns.w ip, r3, asr #24 - 8001090: d1e4 bne.n 800105c <__cmpsf2+0x1c> - 8001092: ea5f 2c41 movs.w ip, r1, lsl #9 - 8001096: d0e1 beq.n 800105c <__cmpsf2+0x1c> - 8001098: f85d 0b04 ldr.w r0, [sp], #4 - 800109c: 4770 bx lr - 800109e: bf00 nop - -080010a0 <__aeabi_cfrcmple>: - 80010a0: 4684 mov ip, r0 - 80010a2: 4608 mov r0, r1 - 80010a4: 4661 mov r1, ip - 80010a6: e7ff b.n 80010a8 <__aeabi_cfcmpeq> - -080010a8 <__aeabi_cfcmpeq>: - 80010a8: b50f push {r0, r1, r2, r3, lr} - 80010aa: f7ff ffc9 bl 8001040 <__cmpsf2> - 80010ae: 2800 cmp r0, #0 - 80010b0: bf48 it mi - 80010b2: f110 0f00 cmnmi.w r0, #0 - 80010b6: bd0f pop {r0, r1, r2, r3, pc} - -080010b8 <__aeabi_fcmpeq>: - 80010b8: f84d ed08 str.w lr, [sp, #-8]! - 80010bc: f7ff fff4 bl 80010a8 <__aeabi_cfcmpeq> - 80010c0: bf0c ite eq - 80010c2: 2001 moveq r0, #1 - 80010c4: 2000 movne r0, #0 - 80010c6: f85d fb08 ldr.w pc, [sp], #8 - 80010ca: bf00 nop - -080010cc <__aeabi_fcmplt>: - 80010cc: f84d ed08 str.w lr, [sp, #-8]! - 80010d0: f7ff ffea bl 80010a8 <__aeabi_cfcmpeq> - 80010d4: bf34 ite cc - 80010d6: 2001 movcc r0, #1 - 80010d8: 2000 movcs r0, #0 - 80010da: f85d fb08 ldr.w pc, [sp], #8 +080010d8 <__lesf2>: + 80010d8: f04f 0c01 mov.w ip, #1 + 80010dc: e002 b.n 80010e4 <__cmpsf2+0x4> 80010de: bf00 nop -080010e0 <__aeabi_fcmple>: - 80010e0: f84d ed08 str.w lr, [sp, #-8]! - 80010e4: f7ff ffe0 bl 80010a8 <__aeabi_cfcmpeq> - 80010e8: bf94 ite ls - 80010ea: 2001 movls r0, #1 - 80010ec: 2000 movhi r0, #0 - 80010ee: f85d fb08 ldr.w pc, [sp], #8 - 80010f2: bf00 nop +080010e0 <__cmpsf2>: + 80010e0: f04f 0c01 mov.w ip, #1 + 80010e4: f84d cd04 str.w ip, [sp, #-4]! + 80010e8: ea4f 0240 mov.w r2, r0, lsl #1 + 80010ec: ea4f 0341 mov.w r3, r1, lsl #1 + 80010f0: ea7f 6c22 mvns.w ip, r2, asr #24 + 80010f4: bf18 it ne + 80010f6: ea7f 6c23 mvnsne.w ip, r3, asr #24 + 80010fa: d011 beq.n 8001120 <__cmpsf2+0x40> + 80010fc: b001 add sp, #4 + 80010fe: ea52 0c53 orrs.w ip, r2, r3, lsr #1 + 8001102: bf18 it ne + 8001104: ea90 0f01 teqne r0, r1 + 8001108: bf58 it pl + 800110a: ebb2 0003 subspl.w r0, r2, r3 + 800110e: bf88 it hi + 8001110: 17c8 asrhi r0, r1, #31 + 8001112: bf38 it cc + 8001114: ea6f 70e1 mvncc.w r0, r1, asr #31 + 8001118: bf18 it ne + 800111a: f040 0001 orrne.w r0, r0, #1 + 800111e: 4770 bx lr + 8001120: ea7f 6c22 mvns.w ip, r2, asr #24 + 8001124: d102 bne.n 800112c <__cmpsf2+0x4c> + 8001126: ea5f 2c40 movs.w ip, r0, lsl #9 + 800112a: d105 bne.n 8001138 <__cmpsf2+0x58> + 800112c: ea7f 6c23 mvns.w ip, r3, asr #24 + 8001130: d1e4 bne.n 80010fc <__cmpsf2+0x1c> + 8001132: ea5f 2c41 movs.w ip, r1, lsl #9 + 8001136: d0e1 beq.n 80010fc <__cmpsf2+0x1c> + 8001138: f85d 0b04 ldr.w r0, [sp], #4 + 800113c: 4770 bx lr + 800113e: bf00 nop -080010f4 <__aeabi_fcmpge>: - 80010f4: f84d ed08 str.w lr, [sp, #-8]! - 80010f8: f7ff ffd2 bl 80010a0 <__aeabi_cfrcmple> - 80010fc: bf94 ite ls - 80010fe: 2001 movls r0, #1 - 8001100: 2000 movhi r0, #0 - 8001102: f85d fb08 ldr.w pc, [sp], #8 - 8001106: bf00 nop +08001140 <__aeabi_cfrcmple>: + 8001140: 4684 mov ip, r0 + 8001142: 4608 mov r0, r1 + 8001144: 4661 mov r1, ip + 8001146: e7ff b.n 8001148 <__aeabi_cfcmpeq> -08001108 <__aeabi_fcmpgt>: - 8001108: f84d ed08 str.w lr, [sp, #-8]! - 800110c: f7ff ffc8 bl 80010a0 <__aeabi_cfrcmple> - 8001110: bf34 ite cc - 8001112: 2001 movcc r0, #1 - 8001114: 2000 movcs r0, #0 - 8001116: f85d fb08 ldr.w pc, [sp], #8 - 800111a: bf00 nop +08001148 <__aeabi_cfcmpeq>: + 8001148: b50f push {r0, r1, r2, r3, lr} + 800114a: f7ff ffc9 bl 80010e0 <__cmpsf2> + 800114e: 2800 cmp r0, #0 + 8001150: bf48 it mi + 8001152: f110 0f00 cmnmi.w r0, #0 + 8001156: bd0f pop {r0, r1, r2, r3, pc} -0800111c <__aeabi_ldivmod>: - 800111c: b97b cbnz r3, 800113e <__aeabi_ldivmod+0x22> - 800111e: b972 cbnz r2, 800113e <__aeabi_ldivmod+0x22> - 8001120: 2900 cmp r1, #0 - 8001122: bfbe ittt lt - 8001124: 2000 movlt r0, #0 - 8001126: f04f 4100 movlt.w r1, #2147483648 ; 0x80000000 - 800112a: e006 blt.n 800113a <__aeabi_ldivmod+0x1e> - 800112c: bf08 it eq - 800112e: 2800 cmpeq r0, #0 - 8001130: bf1c itt ne - 8001132: f06f 4100 mvnne.w r1, #2147483648 ; 0x80000000 - 8001136: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff - 800113a: f000 b9c1 b.w 80014c0 <__aeabi_idiv0> - 800113e: f1ad 0c08 sub.w ip, sp, #8 - 8001142: e96d ce04 strd ip, lr, [sp, #-16]! - 8001146: 2900 cmp r1, #0 - 8001148: db09 blt.n 800115e <__aeabi_ldivmod+0x42> - 800114a: 2b00 cmp r3, #0 - 800114c: db1a blt.n 8001184 <__aeabi_ldivmod+0x68> - 800114e: f000 f84d bl 80011ec <__udivmoddi4> - 8001152: f8dd e004 ldr.w lr, [sp, #4] - 8001156: e9dd 2302 ldrd r2, r3, [sp, #8] - 800115a: b004 add sp, #16 - 800115c: 4770 bx lr - 800115e: 4240 negs r0, r0 - 8001160: eb61 0141 sbc.w r1, r1, r1, lsl #1 - 8001164: 2b00 cmp r3, #0 - 8001166: db1b blt.n 80011a0 <__aeabi_ldivmod+0x84> - 8001168: f000 f840 bl 80011ec <__udivmoddi4> - 800116c: f8dd e004 ldr.w lr, [sp, #4] - 8001170: e9dd 2302 ldrd r2, r3, [sp, #8] - 8001174: b004 add sp, #16 - 8001176: 4240 negs r0, r0 - 8001178: eb61 0141 sbc.w r1, r1, r1, lsl #1 - 800117c: 4252 negs r2, r2 - 800117e: eb63 0343 sbc.w r3, r3, r3, lsl #1 - 8001182: 4770 bx lr - 8001184: 4252 negs r2, r2 - 8001186: eb63 0343 sbc.w r3, r3, r3, lsl #1 - 800118a: f000 f82f bl 80011ec <__udivmoddi4> - 800118e: f8dd e004 ldr.w lr, [sp, #4] - 8001192: e9dd 2302 ldrd r2, r3, [sp, #8] - 8001196: b004 add sp, #16 - 8001198: 4240 negs r0, r0 - 800119a: eb61 0141 sbc.w r1, r1, r1, lsl #1 - 800119e: 4770 bx lr - 80011a0: 4252 negs r2, r2 - 80011a2: eb63 0343 sbc.w r3, r3, r3, lsl #1 - 80011a6: f000 f821 bl 80011ec <__udivmoddi4> - 80011aa: f8dd e004 ldr.w lr, [sp, #4] - 80011ae: e9dd 2302 ldrd r2, r3, [sp, #8] - 80011b2: b004 add sp, #16 - 80011b4: 4252 negs r2, r2 - 80011b6: eb63 0343 sbc.w r3, r3, r3, lsl #1 - 80011ba: 4770 bx lr +08001158 <__aeabi_fcmpeq>: + 8001158: f84d ed08 str.w lr, [sp, #-8]! + 800115c: f7ff fff4 bl 8001148 <__aeabi_cfcmpeq> + 8001160: bf0c ite eq + 8001162: 2001 moveq r0, #1 + 8001164: 2000 movne r0, #0 + 8001166: f85d fb08 ldr.w pc, [sp], #8 + 800116a: bf00 nop -080011bc <__aeabi_uldivmod>: - 80011bc: b953 cbnz r3, 80011d4 <__aeabi_uldivmod+0x18> - 80011be: b94a cbnz r2, 80011d4 <__aeabi_uldivmod+0x18> - 80011c0: 2900 cmp r1, #0 - 80011c2: bf08 it eq - 80011c4: 2800 cmpeq r0, #0 - 80011c6: bf1c itt ne - 80011c8: f04f 31ff movne.w r1, #4294967295 ; 0xffffffff - 80011cc: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff - 80011d0: f000 b976 b.w 80014c0 <__aeabi_idiv0> - 80011d4: f1ad 0c08 sub.w ip, sp, #8 - 80011d8: e96d ce04 strd ip, lr, [sp, #-16]! - 80011dc: f000 f806 bl 80011ec <__udivmoddi4> - 80011e0: f8dd e004 ldr.w lr, [sp, #4] - 80011e4: e9dd 2302 ldrd r2, r3, [sp, #8] - 80011e8: b004 add sp, #16 +0800116c <__aeabi_fcmplt>: + 800116c: f84d ed08 str.w lr, [sp, #-8]! + 8001170: f7ff ffea bl 8001148 <__aeabi_cfcmpeq> + 8001174: bf34 ite cc + 8001176: 2001 movcc r0, #1 + 8001178: 2000 movcs r0, #0 + 800117a: f85d fb08 ldr.w pc, [sp], #8 + 800117e: bf00 nop + +08001180 <__aeabi_fcmple>: + 8001180: f84d ed08 str.w lr, [sp, #-8]! + 8001184: f7ff ffe0 bl 8001148 <__aeabi_cfcmpeq> + 8001188: bf94 ite ls + 800118a: 2001 movls r0, #1 + 800118c: 2000 movhi r0, #0 + 800118e: f85d fb08 ldr.w pc, [sp], #8 + 8001192: bf00 nop + +08001194 <__aeabi_fcmpge>: + 8001194: f84d ed08 str.w lr, [sp, #-8]! + 8001198: f7ff ffd2 bl 8001140 <__aeabi_cfrcmple> + 800119c: bf94 ite ls + 800119e: 2001 movls r0, #1 + 80011a0: 2000 movhi r0, #0 + 80011a2: f85d fb08 ldr.w pc, [sp], #8 + 80011a6: bf00 nop + +080011a8 <__aeabi_fcmpgt>: + 80011a8: f84d ed08 str.w lr, [sp, #-8]! + 80011ac: f7ff ffc8 bl 8001140 <__aeabi_cfrcmple> + 80011b0: bf34 ite cc + 80011b2: 2001 movcc r0, #1 + 80011b4: 2000 movcs r0, #0 + 80011b6: f85d fb08 ldr.w pc, [sp], #8 + 80011ba: bf00 nop + +080011bc <__aeabi_f2iz>: + 80011bc: ea4f 0240 mov.w r2, r0, lsl #1 + 80011c0: f1b2 4ffe cmp.w r2, #2130706432 ; 0x7f000000 + 80011c4: d30f bcc.n 80011e6 <__aeabi_f2iz+0x2a> + 80011c6: f04f 039e mov.w r3, #158 ; 0x9e + 80011ca: ebb3 6212 subs.w r2, r3, r2, lsr #24 + 80011ce: d90d bls.n 80011ec <__aeabi_f2iz+0x30> + 80011d0: ea4f 2300 mov.w r3, r0, lsl #8 + 80011d4: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 + 80011d8: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 + 80011dc: fa23 f002 lsr.w r0, r3, r2 + 80011e0: bf18 it ne + 80011e2: 4240 negne r0, r0 + 80011e4: 4770 bx lr + 80011e6: f04f 0000 mov.w r0, #0 80011ea: 4770 bx lr + 80011ec: f112 0f61 cmn.w r2, #97 ; 0x61 + 80011f0: d101 bne.n 80011f6 <__aeabi_f2iz+0x3a> + 80011f2: 0242 lsls r2, r0, #9 + 80011f4: d105 bne.n 8001202 <__aeabi_f2iz+0x46> + 80011f6: f010 4000 ands.w r0, r0, #2147483648 ; 0x80000000 + 80011fa: bf08 it eq + 80011fc: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000 + 8001200: 4770 bx lr + 8001202: f04f 0000 mov.w r0, #0 + 8001206: 4770 bx lr -080011ec <__udivmoddi4>: - 80011ec: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 80011f0: 9e08 ldr r6, [sp, #32] - 80011f2: 460d mov r5, r1 - 80011f4: 4604 mov r4, r0 - 80011f6: 4688 mov r8, r1 - 80011f8: 2b00 cmp r3, #0 - 80011fa: d14d bne.n 8001298 <__udivmoddi4+0xac> - 80011fc: 428a cmp r2, r1 - 80011fe: 4694 mov ip, r2 - 8001200: d968 bls.n 80012d4 <__udivmoddi4+0xe8> - 8001202: fab2 f282 clz r2, r2 - 8001206: b152 cbz r2, 800121e <__udivmoddi4+0x32> - 8001208: fa01 f302 lsl.w r3, r1, r2 - 800120c: f1c2 0120 rsb r1, r2, #32 - 8001210: fa20 f101 lsr.w r1, r0, r1 - 8001214: fa0c fc02 lsl.w ip, ip, r2 - 8001218: ea41 0803 orr.w r8, r1, r3 - 800121c: 4094 lsls r4, r2 - 800121e: ea4f 411c mov.w r1, ip, lsr #16 - 8001222: fbb8 f7f1 udiv r7, r8, r1 - 8001226: fa1f fe8c uxth.w lr, ip - 800122a: fb01 8817 mls r8, r1, r7, r8 - 800122e: fb07 f00e mul.w r0, r7, lr - 8001232: 0c23 lsrs r3, r4, #16 - 8001234: ea43 4308 orr.w r3, r3, r8, lsl #16 - 8001238: 4298 cmp r0, r3 - 800123a: d90a bls.n 8001252 <__udivmoddi4+0x66> - 800123c: eb1c 0303 adds.w r3, ip, r3 - 8001240: f107 35ff add.w r5, r7, #4294967295 ; 0xffffffff - 8001244: f080 811e bcs.w 8001484 <__udivmoddi4+0x298> - 8001248: 4298 cmp r0, r3 - 800124a: f240 811b bls.w 8001484 <__udivmoddi4+0x298> - 800124e: 3f02 subs r7, #2 - 8001250: 4463 add r3, ip - 8001252: 1a1b subs r3, r3, r0 - 8001254: fbb3 f0f1 udiv r0, r3, r1 - 8001258: fb01 3310 mls r3, r1, r0, r3 - 800125c: fb00 fe0e mul.w lr, r0, lr - 8001260: b2a4 uxth r4, r4 - 8001262: ea44 4403 orr.w r4, r4, r3, lsl #16 - 8001266: 45a6 cmp lr, r4 - 8001268: d90a bls.n 8001280 <__udivmoddi4+0x94> - 800126a: eb1c 0404 adds.w r4, ip, r4 - 800126e: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff - 8001272: f080 8109 bcs.w 8001488 <__udivmoddi4+0x29c> - 8001276: 45a6 cmp lr, r4 - 8001278: f240 8106 bls.w 8001488 <__udivmoddi4+0x29c> - 800127c: 4464 add r4, ip - 800127e: 3802 subs r0, #2 - 8001280: 2100 movs r1, #0 - 8001282: eba4 040e sub.w r4, r4, lr - 8001286: ea40 4007 orr.w r0, r0, r7, lsl #16 - 800128a: b11e cbz r6, 8001294 <__udivmoddi4+0xa8> - 800128c: 2300 movs r3, #0 - 800128e: 40d4 lsrs r4, r2 - 8001290: e9c6 4300 strd r4, r3, [r6] - 8001294: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8001298: 428b cmp r3, r1 - 800129a: d908 bls.n 80012ae <__udivmoddi4+0xc2> - 800129c: 2e00 cmp r6, #0 - 800129e: f000 80ee beq.w 800147e <__udivmoddi4+0x292> - 80012a2: 2100 movs r1, #0 - 80012a4: e9c6 0500 strd r0, r5, [r6] - 80012a8: 4608 mov r0, r1 - 80012aa: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80012ae: fab3 f183 clz r1, r3 - 80012b2: 2900 cmp r1, #0 - 80012b4: d14a bne.n 800134c <__udivmoddi4+0x160> - 80012b6: 42ab cmp r3, r5 - 80012b8: d302 bcc.n 80012c0 <__udivmoddi4+0xd4> - 80012ba: 4282 cmp r2, r0 - 80012bc: f200 80fc bhi.w 80014b8 <__udivmoddi4+0x2cc> - 80012c0: 1a84 subs r4, r0, r2 - 80012c2: eb65 0303 sbc.w r3, r5, r3 - 80012c6: 2001 movs r0, #1 - 80012c8: 4698 mov r8, r3 - 80012ca: 2e00 cmp r6, #0 - 80012cc: d0e2 beq.n 8001294 <__udivmoddi4+0xa8> - 80012ce: e9c6 4800 strd r4, r8, [r6] - 80012d2: e7df b.n 8001294 <__udivmoddi4+0xa8> - 80012d4: b902 cbnz r2, 80012d8 <__udivmoddi4+0xec> - 80012d6: deff udf #255 ; 0xff - 80012d8: fab2 f282 clz r2, r2 - 80012dc: 2a00 cmp r2, #0 - 80012de: f040 8091 bne.w 8001404 <__udivmoddi4+0x218> - 80012e2: eba1 000c sub.w r0, r1, ip - 80012e6: 2101 movs r1, #1 - 80012e8: ea4f 471c mov.w r7, ip, lsr #16 - 80012ec: fa1f fe8c uxth.w lr, ip - 80012f0: fbb0 f3f7 udiv r3, r0, r7 - 80012f4: fb07 0013 mls r0, r7, r3, r0 - 80012f8: 0c25 lsrs r5, r4, #16 - 80012fa: ea45 4500 orr.w r5, r5, r0, lsl #16 - 80012fe: fb0e f003 mul.w r0, lr, r3 - 8001302: 42a8 cmp r0, r5 - 8001304: d908 bls.n 8001318 <__udivmoddi4+0x12c> - 8001306: eb1c 0505 adds.w r5, ip, r5 - 800130a: f103 38ff add.w r8, r3, #4294967295 ; 0xffffffff - 800130e: d202 bcs.n 8001316 <__udivmoddi4+0x12a> - 8001310: 42a8 cmp r0, r5 - 8001312: f200 80ce bhi.w 80014b2 <__udivmoddi4+0x2c6> - 8001316: 4643 mov r3, r8 - 8001318: 1a2d subs r5, r5, r0 - 800131a: fbb5 f0f7 udiv r0, r5, r7 - 800131e: fb07 5510 mls r5, r7, r0, r5 - 8001322: fb0e fe00 mul.w lr, lr, r0 - 8001326: b2a4 uxth r4, r4 - 8001328: ea44 4405 orr.w r4, r4, r5, lsl #16 - 800132c: 45a6 cmp lr, r4 - 800132e: d908 bls.n 8001342 <__udivmoddi4+0x156> - 8001330: eb1c 0404 adds.w r4, ip, r4 - 8001334: f100 35ff add.w r5, r0, #4294967295 ; 0xffffffff - 8001338: d202 bcs.n 8001340 <__udivmoddi4+0x154> - 800133a: 45a6 cmp lr, r4 - 800133c: f200 80b6 bhi.w 80014ac <__udivmoddi4+0x2c0> - 8001340: 4628 mov r0, r5 - 8001342: eba4 040e sub.w r4, r4, lr - 8001346: ea40 4003 orr.w r0, r0, r3, lsl #16 - 800134a: e79e b.n 800128a <__udivmoddi4+0x9e> - 800134c: f1c1 0720 rsb r7, r1, #32 - 8001350: 408b lsls r3, r1 - 8001352: fa22 fc07 lsr.w ip, r2, r7 - 8001356: ea4c 0c03 orr.w ip, ip, r3 - 800135a: fa25 fa07 lsr.w sl, r5, r7 - 800135e: ea4f 491c mov.w r9, ip, lsr #16 - 8001362: fbba f8f9 udiv r8, sl, r9 - 8001366: fa20 f307 lsr.w r3, r0, r7 - 800136a: fb09 aa18 mls sl, r9, r8, sl - 800136e: 408d lsls r5, r1 - 8001370: fa1f fe8c uxth.w lr, ip - 8001374: 431d orrs r5, r3 - 8001376: fa00 f301 lsl.w r3, r0, r1 - 800137a: fb08 f00e mul.w r0, r8, lr - 800137e: 0c2c lsrs r4, r5, #16 - 8001380: ea44 440a orr.w r4, r4, sl, lsl #16 - 8001384: 42a0 cmp r0, r4 - 8001386: fa02 f201 lsl.w r2, r2, r1 - 800138a: d90b bls.n 80013a4 <__udivmoddi4+0x1b8> - 800138c: eb1c 0404 adds.w r4, ip, r4 - 8001390: f108 3aff add.w sl, r8, #4294967295 ; 0xffffffff - 8001394: f080 8088 bcs.w 80014a8 <__udivmoddi4+0x2bc> - 8001398: 42a0 cmp r0, r4 - 800139a: f240 8085 bls.w 80014a8 <__udivmoddi4+0x2bc> - 800139e: f1a8 0802 sub.w r8, r8, #2 - 80013a2: 4464 add r4, ip - 80013a4: 1a24 subs r4, r4, r0 - 80013a6: fbb4 f0f9 udiv r0, r4, r9 - 80013aa: fb09 4410 mls r4, r9, r0, r4 - 80013ae: fb00 fe0e mul.w lr, r0, lr - 80013b2: b2ad uxth r5, r5 - 80013b4: ea45 4404 orr.w r4, r5, r4, lsl #16 - 80013b8: 45a6 cmp lr, r4 - 80013ba: d908 bls.n 80013ce <__udivmoddi4+0x1e2> - 80013bc: eb1c 0404 adds.w r4, ip, r4 - 80013c0: f100 35ff add.w r5, r0, #4294967295 ; 0xffffffff - 80013c4: d26c bcs.n 80014a0 <__udivmoddi4+0x2b4> - 80013c6: 45a6 cmp lr, r4 - 80013c8: d96a bls.n 80014a0 <__udivmoddi4+0x2b4> - 80013ca: 3802 subs r0, #2 - 80013cc: 4464 add r4, ip - 80013ce: ea40 4008 orr.w r0, r0, r8, lsl #16 - 80013d2: fba0 9502 umull r9, r5, r0, r2 - 80013d6: eba4 040e sub.w r4, r4, lr - 80013da: 42ac cmp r4, r5 - 80013dc: 46c8 mov r8, r9 - 80013de: 46ae mov lr, r5 - 80013e0: d356 bcc.n 8001490 <__udivmoddi4+0x2a4> - 80013e2: d053 beq.n 800148c <__udivmoddi4+0x2a0> - 80013e4: 2e00 cmp r6, #0 - 80013e6: d069 beq.n 80014bc <__udivmoddi4+0x2d0> - 80013e8: ebb3 0208 subs.w r2, r3, r8 - 80013ec: eb64 040e sbc.w r4, r4, lr - 80013f0: fa22 f301 lsr.w r3, r2, r1 - 80013f4: fa04 f707 lsl.w r7, r4, r7 - 80013f8: 431f orrs r7, r3 - 80013fa: 40cc lsrs r4, r1 - 80013fc: e9c6 7400 strd r7, r4, [r6] - 8001400: 2100 movs r1, #0 - 8001402: e747 b.n 8001294 <__udivmoddi4+0xa8> - 8001404: fa0c fc02 lsl.w ip, ip, r2 - 8001408: f1c2 0120 rsb r1, r2, #32 - 800140c: fa25 f301 lsr.w r3, r5, r1 - 8001410: ea4f 471c mov.w r7, ip, lsr #16 - 8001414: fa20 f101 lsr.w r1, r0, r1 - 8001418: 4095 lsls r5, r2 - 800141a: 430d orrs r5, r1 - 800141c: fbb3 f1f7 udiv r1, r3, r7 - 8001420: fb07 3311 mls r3, r7, r1, r3 - 8001424: fa1f fe8c uxth.w lr, ip - 8001428: 0c28 lsrs r0, r5, #16 - 800142a: ea40 4003 orr.w r0, r0, r3, lsl #16 - 800142e: fb01 f30e mul.w r3, r1, lr - 8001432: 4283 cmp r3, r0 - 8001434: fa04 f402 lsl.w r4, r4, r2 - 8001438: d908 bls.n 800144c <__udivmoddi4+0x260> - 800143a: eb1c 0000 adds.w r0, ip, r0 - 800143e: f101 38ff add.w r8, r1, #4294967295 ; 0xffffffff - 8001442: d22f bcs.n 80014a4 <__udivmoddi4+0x2b8> - 8001444: 4283 cmp r3, r0 - 8001446: d92d bls.n 80014a4 <__udivmoddi4+0x2b8> - 8001448: 3902 subs r1, #2 - 800144a: 4460 add r0, ip - 800144c: 1ac0 subs r0, r0, r3 - 800144e: fbb0 f3f7 udiv r3, r0, r7 - 8001452: fb07 0013 mls r0, r7, r3, r0 - 8001456: b2ad uxth r5, r5 - 8001458: ea45 4500 orr.w r5, r5, r0, lsl #16 - 800145c: fb03 f00e mul.w r0, r3, lr - 8001460: 42a8 cmp r0, r5 - 8001462: d908 bls.n 8001476 <__udivmoddi4+0x28a> - 8001464: eb1c 0505 adds.w r5, ip, r5 - 8001468: f103 38ff add.w r8, r3, #4294967295 ; 0xffffffff - 800146c: d216 bcs.n 800149c <__udivmoddi4+0x2b0> - 800146e: 42a8 cmp r0, r5 - 8001470: d914 bls.n 800149c <__udivmoddi4+0x2b0> - 8001472: 3b02 subs r3, #2 - 8001474: 4465 add r5, ip - 8001476: 1a28 subs r0, r5, r0 - 8001478: ea43 4101 orr.w r1, r3, r1, lsl #16 - 800147c: e738 b.n 80012f0 <__udivmoddi4+0x104> - 800147e: 4631 mov r1, r6 - 8001480: 4630 mov r0, r6 - 8001482: e707 b.n 8001294 <__udivmoddi4+0xa8> - 8001484: 462f mov r7, r5 - 8001486: e6e4 b.n 8001252 <__udivmoddi4+0x66> - 8001488: 4618 mov r0, r3 - 800148a: e6f9 b.n 8001280 <__udivmoddi4+0x94> - 800148c: 454b cmp r3, r9 - 800148e: d2a9 bcs.n 80013e4 <__udivmoddi4+0x1f8> - 8001490: ebb9 0802 subs.w r8, r9, r2 - 8001494: eb65 0e0c sbc.w lr, r5, ip - 8001498: 3801 subs r0, #1 - 800149a: e7a3 b.n 80013e4 <__udivmoddi4+0x1f8> - 800149c: 4643 mov r3, r8 - 800149e: e7ea b.n 8001476 <__udivmoddi4+0x28a> - 80014a0: 4628 mov r0, r5 - 80014a2: e794 b.n 80013ce <__udivmoddi4+0x1e2> - 80014a4: 4641 mov r1, r8 - 80014a6: e7d1 b.n 800144c <__udivmoddi4+0x260> - 80014a8: 46d0 mov r8, sl - 80014aa: e77b b.n 80013a4 <__udivmoddi4+0x1b8> - 80014ac: 4464 add r4, ip - 80014ae: 3802 subs r0, #2 - 80014b0: e747 b.n 8001342 <__udivmoddi4+0x156> - 80014b2: 3b02 subs r3, #2 - 80014b4: 4465 add r5, ip - 80014b6: e72f b.n 8001318 <__udivmoddi4+0x12c> - 80014b8: 4608 mov r0, r1 - 80014ba: e706 b.n 80012ca <__udivmoddi4+0xde> - 80014bc: 4631 mov r1, r6 - 80014be: e6e9 b.n 8001294 <__udivmoddi4+0xa8> +08001208 <__aeabi_ldivmod>: + 8001208: b97b cbnz r3, 800122a <__aeabi_ldivmod+0x22> + 800120a: b972 cbnz r2, 800122a <__aeabi_ldivmod+0x22> + 800120c: 2900 cmp r1, #0 + 800120e: bfbe ittt lt + 8001210: 2000 movlt r0, #0 + 8001212: f04f 4100 movlt.w r1, #2147483648 ; 0x80000000 + 8001216: e006 blt.n 8001226 <__aeabi_ldivmod+0x1e> + 8001218: bf08 it eq + 800121a: 2800 cmpeq r0, #0 + 800121c: bf1c itt ne + 800121e: f06f 4100 mvnne.w r1, #2147483648 ; 0x80000000 + 8001222: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff + 8001226: f000 b9c1 b.w 80015ac <__aeabi_idiv0> + 800122a: f1ad 0c08 sub.w ip, sp, #8 + 800122e: e96d ce04 strd ip, lr, [sp, #-16]! + 8001232: 2900 cmp r1, #0 + 8001234: db09 blt.n 800124a <__aeabi_ldivmod+0x42> + 8001236: 2b00 cmp r3, #0 + 8001238: db1a blt.n 8001270 <__aeabi_ldivmod+0x68> + 800123a: f000 f84d bl 80012d8 <__udivmoddi4> + 800123e: f8dd e004 ldr.w lr, [sp, #4] + 8001242: e9dd 2302 ldrd r2, r3, [sp, #8] + 8001246: b004 add sp, #16 + 8001248: 4770 bx lr + 800124a: 4240 negs r0, r0 + 800124c: eb61 0141 sbc.w r1, r1, r1, lsl #1 + 8001250: 2b00 cmp r3, #0 + 8001252: db1b blt.n 800128c <__aeabi_ldivmod+0x84> + 8001254: f000 f840 bl 80012d8 <__udivmoddi4> + 8001258: f8dd e004 ldr.w lr, [sp, #4] + 800125c: e9dd 2302 ldrd r2, r3, [sp, #8] + 8001260: b004 add sp, #16 + 8001262: 4240 negs r0, r0 + 8001264: eb61 0141 sbc.w r1, r1, r1, lsl #1 + 8001268: 4252 negs r2, r2 + 800126a: eb63 0343 sbc.w r3, r3, r3, lsl #1 + 800126e: 4770 bx lr + 8001270: 4252 negs r2, r2 + 8001272: eb63 0343 sbc.w r3, r3, r3, lsl #1 + 8001276: f000 f82f bl 80012d8 <__udivmoddi4> + 800127a: f8dd e004 ldr.w lr, [sp, #4] + 800127e: e9dd 2302 ldrd r2, r3, [sp, #8] + 8001282: b004 add sp, #16 + 8001284: 4240 negs r0, r0 + 8001286: eb61 0141 sbc.w r1, r1, r1, lsl #1 + 800128a: 4770 bx lr + 800128c: 4252 negs r2, r2 + 800128e: eb63 0343 sbc.w r3, r3, r3, lsl #1 + 8001292: f000 f821 bl 80012d8 <__udivmoddi4> + 8001296: f8dd e004 ldr.w lr, [sp, #4] + 800129a: e9dd 2302 ldrd r2, r3, [sp, #8] + 800129e: b004 add sp, #16 + 80012a0: 4252 negs r2, r2 + 80012a2: eb63 0343 sbc.w r3, r3, r3, lsl #1 + 80012a6: 4770 bx lr -080014c0 <__aeabi_idiv0>: - 80014c0: 4770 bx lr - 80014c2: bf00 nop +080012a8 <__aeabi_uldivmod>: + 80012a8: b953 cbnz r3, 80012c0 <__aeabi_uldivmod+0x18> + 80012aa: b94a cbnz r2, 80012c0 <__aeabi_uldivmod+0x18> + 80012ac: 2900 cmp r1, #0 + 80012ae: bf08 it eq + 80012b0: 2800 cmpeq r0, #0 + 80012b2: bf1c itt ne + 80012b4: f04f 31ff movne.w r1, #4294967295 ; 0xffffffff + 80012b8: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff + 80012bc: f000 b976 b.w 80015ac <__aeabi_idiv0> + 80012c0: f1ad 0c08 sub.w ip, sp, #8 + 80012c4: e96d ce04 strd ip, lr, [sp, #-16]! + 80012c8: f000 f806 bl 80012d8 <__udivmoddi4> + 80012cc: f8dd e004 ldr.w lr, [sp, #4] + 80012d0: e9dd 2302 ldrd r2, r3, [sp, #8] + 80012d4: b004 add sp, #16 + 80012d6: 4770 bx lr -080014c4 : +080012d8 <__udivmoddi4>: + 80012d8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80012dc: 9e08 ldr r6, [sp, #32] + 80012de: 460d mov r5, r1 + 80012e0: 4604 mov r4, r0 + 80012e2: 4688 mov r8, r1 + 80012e4: 2b00 cmp r3, #0 + 80012e6: d14d bne.n 8001384 <__udivmoddi4+0xac> + 80012e8: 428a cmp r2, r1 + 80012ea: 4694 mov ip, r2 + 80012ec: d968 bls.n 80013c0 <__udivmoddi4+0xe8> + 80012ee: fab2 f282 clz r2, r2 + 80012f2: b152 cbz r2, 800130a <__udivmoddi4+0x32> + 80012f4: fa01 f302 lsl.w r3, r1, r2 + 80012f8: f1c2 0120 rsb r1, r2, #32 + 80012fc: fa20 f101 lsr.w r1, r0, r1 + 8001300: fa0c fc02 lsl.w ip, ip, r2 + 8001304: ea41 0803 orr.w r8, r1, r3 + 8001308: 4094 lsls r4, r2 + 800130a: ea4f 411c mov.w r1, ip, lsr #16 + 800130e: fbb8 f7f1 udiv r7, r8, r1 + 8001312: fa1f fe8c uxth.w lr, ip + 8001316: fb01 8817 mls r8, r1, r7, r8 + 800131a: fb07 f00e mul.w r0, r7, lr + 800131e: 0c23 lsrs r3, r4, #16 + 8001320: ea43 4308 orr.w r3, r3, r8, lsl #16 + 8001324: 4298 cmp r0, r3 + 8001326: d90a bls.n 800133e <__udivmoddi4+0x66> + 8001328: eb1c 0303 adds.w r3, ip, r3 + 800132c: f107 35ff add.w r5, r7, #4294967295 ; 0xffffffff + 8001330: f080 811e bcs.w 8001570 <__udivmoddi4+0x298> + 8001334: 4298 cmp r0, r3 + 8001336: f240 811b bls.w 8001570 <__udivmoddi4+0x298> + 800133a: 3f02 subs r7, #2 + 800133c: 4463 add r3, ip + 800133e: 1a1b subs r3, r3, r0 + 8001340: fbb3 f0f1 udiv r0, r3, r1 + 8001344: fb01 3310 mls r3, r1, r0, r3 + 8001348: fb00 fe0e mul.w lr, r0, lr + 800134c: b2a4 uxth r4, r4 + 800134e: ea44 4403 orr.w r4, r4, r3, lsl #16 + 8001352: 45a6 cmp lr, r4 + 8001354: d90a bls.n 800136c <__udivmoddi4+0x94> + 8001356: eb1c 0404 adds.w r4, ip, r4 + 800135a: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff + 800135e: f080 8109 bcs.w 8001574 <__udivmoddi4+0x29c> + 8001362: 45a6 cmp lr, r4 + 8001364: f240 8106 bls.w 8001574 <__udivmoddi4+0x29c> + 8001368: 4464 add r4, ip + 800136a: 3802 subs r0, #2 + 800136c: 2100 movs r1, #0 + 800136e: eba4 040e sub.w r4, r4, lr + 8001372: ea40 4007 orr.w r0, r0, r7, lsl #16 + 8001376: b11e cbz r6, 8001380 <__udivmoddi4+0xa8> + 8001378: 2300 movs r3, #0 + 800137a: 40d4 lsrs r4, r2 + 800137c: e9c6 4300 strd r4, r3, [r6] + 8001380: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8001384: 428b cmp r3, r1 + 8001386: d908 bls.n 800139a <__udivmoddi4+0xc2> + 8001388: 2e00 cmp r6, #0 + 800138a: f000 80ee beq.w 800156a <__udivmoddi4+0x292> + 800138e: 2100 movs r1, #0 + 8001390: e9c6 0500 strd r0, r5, [r6] + 8001394: 4608 mov r0, r1 + 8001396: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800139a: fab3 f183 clz r1, r3 + 800139e: 2900 cmp r1, #0 + 80013a0: d14a bne.n 8001438 <__udivmoddi4+0x160> + 80013a2: 42ab cmp r3, r5 + 80013a4: d302 bcc.n 80013ac <__udivmoddi4+0xd4> + 80013a6: 4282 cmp r2, r0 + 80013a8: f200 80fc bhi.w 80015a4 <__udivmoddi4+0x2cc> + 80013ac: 1a84 subs r4, r0, r2 + 80013ae: eb65 0303 sbc.w r3, r5, r3 + 80013b2: 2001 movs r0, #1 + 80013b4: 4698 mov r8, r3 + 80013b6: 2e00 cmp r6, #0 + 80013b8: d0e2 beq.n 8001380 <__udivmoddi4+0xa8> + 80013ba: e9c6 4800 strd r4, r8, [r6] + 80013be: e7df b.n 8001380 <__udivmoddi4+0xa8> + 80013c0: b902 cbnz r2, 80013c4 <__udivmoddi4+0xec> + 80013c2: deff udf #255 ; 0xff + 80013c4: fab2 f282 clz r2, r2 + 80013c8: 2a00 cmp r2, #0 + 80013ca: f040 8091 bne.w 80014f0 <__udivmoddi4+0x218> + 80013ce: eba1 000c sub.w r0, r1, ip + 80013d2: 2101 movs r1, #1 + 80013d4: ea4f 471c mov.w r7, ip, lsr #16 + 80013d8: fa1f fe8c uxth.w lr, ip + 80013dc: fbb0 f3f7 udiv r3, r0, r7 + 80013e0: fb07 0013 mls r0, r7, r3, r0 + 80013e4: 0c25 lsrs r5, r4, #16 + 80013e6: ea45 4500 orr.w r5, r5, r0, lsl #16 + 80013ea: fb0e f003 mul.w r0, lr, r3 + 80013ee: 42a8 cmp r0, r5 + 80013f0: d908 bls.n 8001404 <__udivmoddi4+0x12c> + 80013f2: eb1c 0505 adds.w r5, ip, r5 + 80013f6: f103 38ff add.w r8, r3, #4294967295 ; 0xffffffff + 80013fa: d202 bcs.n 8001402 <__udivmoddi4+0x12a> + 80013fc: 42a8 cmp r0, r5 + 80013fe: f200 80ce bhi.w 800159e <__udivmoddi4+0x2c6> + 8001402: 4643 mov r3, r8 + 8001404: 1a2d subs r5, r5, r0 + 8001406: fbb5 f0f7 udiv r0, r5, r7 + 800140a: fb07 5510 mls r5, r7, r0, r5 + 800140e: fb0e fe00 mul.w lr, lr, r0 + 8001412: b2a4 uxth r4, r4 + 8001414: ea44 4405 orr.w r4, r4, r5, lsl #16 + 8001418: 45a6 cmp lr, r4 + 800141a: d908 bls.n 800142e <__udivmoddi4+0x156> + 800141c: eb1c 0404 adds.w r4, ip, r4 + 8001420: f100 35ff add.w r5, r0, #4294967295 ; 0xffffffff + 8001424: d202 bcs.n 800142c <__udivmoddi4+0x154> + 8001426: 45a6 cmp lr, r4 + 8001428: f200 80b6 bhi.w 8001598 <__udivmoddi4+0x2c0> + 800142c: 4628 mov r0, r5 + 800142e: eba4 040e sub.w r4, r4, lr + 8001432: ea40 4003 orr.w r0, r0, r3, lsl #16 + 8001436: e79e b.n 8001376 <__udivmoddi4+0x9e> + 8001438: f1c1 0720 rsb r7, r1, #32 + 800143c: 408b lsls r3, r1 + 800143e: fa22 fc07 lsr.w ip, r2, r7 + 8001442: ea4c 0c03 orr.w ip, ip, r3 + 8001446: fa25 fa07 lsr.w sl, r5, r7 + 800144a: ea4f 491c mov.w r9, ip, lsr #16 + 800144e: fbba f8f9 udiv r8, sl, r9 + 8001452: fa20 f307 lsr.w r3, r0, r7 + 8001456: fb09 aa18 mls sl, r9, r8, sl + 800145a: 408d lsls r5, r1 + 800145c: fa1f fe8c uxth.w lr, ip + 8001460: 431d orrs r5, r3 + 8001462: fa00 f301 lsl.w r3, r0, r1 + 8001466: fb08 f00e mul.w r0, r8, lr + 800146a: 0c2c lsrs r4, r5, #16 + 800146c: ea44 440a orr.w r4, r4, sl, lsl #16 + 8001470: 42a0 cmp r0, r4 + 8001472: fa02 f201 lsl.w r2, r2, r1 + 8001476: d90b bls.n 8001490 <__udivmoddi4+0x1b8> + 8001478: eb1c 0404 adds.w r4, ip, r4 + 800147c: f108 3aff add.w sl, r8, #4294967295 ; 0xffffffff + 8001480: f080 8088 bcs.w 8001594 <__udivmoddi4+0x2bc> + 8001484: 42a0 cmp r0, r4 + 8001486: f240 8085 bls.w 8001594 <__udivmoddi4+0x2bc> + 800148a: f1a8 0802 sub.w r8, r8, #2 + 800148e: 4464 add r4, ip + 8001490: 1a24 subs r4, r4, r0 + 8001492: fbb4 f0f9 udiv r0, r4, r9 + 8001496: fb09 4410 mls r4, r9, r0, r4 + 800149a: fb00 fe0e mul.w lr, r0, lr + 800149e: b2ad uxth r5, r5 + 80014a0: ea45 4404 orr.w r4, r5, r4, lsl #16 + 80014a4: 45a6 cmp lr, r4 + 80014a6: d908 bls.n 80014ba <__udivmoddi4+0x1e2> + 80014a8: eb1c 0404 adds.w r4, ip, r4 + 80014ac: f100 35ff add.w r5, r0, #4294967295 ; 0xffffffff + 80014b0: d26c bcs.n 800158c <__udivmoddi4+0x2b4> + 80014b2: 45a6 cmp lr, r4 + 80014b4: d96a bls.n 800158c <__udivmoddi4+0x2b4> + 80014b6: 3802 subs r0, #2 + 80014b8: 4464 add r4, ip + 80014ba: ea40 4008 orr.w r0, r0, r8, lsl #16 + 80014be: fba0 9502 umull r9, r5, r0, r2 + 80014c2: eba4 040e sub.w r4, r4, lr + 80014c6: 42ac cmp r4, r5 + 80014c8: 46c8 mov r8, r9 + 80014ca: 46ae mov lr, r5 + 80014cc: d356 bcc.n 800157c <__udivmoddi4+0x2a4> + 80014ce: d053 beq.n 8001578 <__udivmoddi4+0x2a0> + 80014d0: 2e00 cmp r6, #0 + 80014d2: d069 beq.n 80015a8 <__udivmoddi4+0x2d0> + 80014d4: ebb3 0208 subs.w r2, r3, r8 + 80014d8: eb64 040e sbc.w r4, r4, lr + 80014dc: fa22 f301 lsr.w r3, r2, r1 + 80014e0: fa04 f707 lsl.w r7, r4, r7 + 80014e4: 431f orrs r7, r3 + 80014e6: 40cc lsrs r4, r1 + 80014e8: e9c6 7400 strd r7, r4, [r6] + 80014ec: 2100 movs r1, #0 + 80014ee: e747 b.n 8001380 <__udivmoddi4+0xa8> + 80014f0: fa0c fc02 lsl.w ip, ip, r2 + 80014f4: f1c2 0120 rsb r1, r2, #32 + 80014f8: fa25 f301 lsr.w r3, r5, r1 + 80014fc: ea4f 471c mov.w r7, ip, lsr #16 + 8001500: fa20 f101 lsr.w r1, r0, r1 + 8001504: 4095 lsls r5, r2 + 8001506: 430d orrs r5, r1 + 8001508: fbb3 f1f7 udiv r1, r3, r7 + 800150c: fb07 3311 mls r3, r7, r1, r3 + 8001510: fa1f fe8c uxth.w lr, ip + 8001514: 0c28 lsrs r0, r5, #16 + 8001516: ea40 4003 orr.w r0, r0, r3, lsl #16 + 800151a: fb01 f30e mul.w r3, r1, lr + 800151e: 4283 cmp r3, r0 + 8001520: fa04 f402 lsl.w r4, r4, r2 + 8001524: d908 bls.n 8001538 <__udivmoddi4+0x260> + 8001526: eb1c 0000 adds.w r0, ip, r0 + 800152a: f101 38ff add.w r8, r1, #4294967295 ; 0xffffffff + 800152e: d22f bcs.n 8001590 <__udivmoddi4+0x2b8> + 8001530: 4283 cmp r3, r0 + 8001532: d92d bls.n 8001590 <__udivmoddi4+0x2b8> + 8001534: 3902 subs r1, #2 + 8001536: 4460 add r0, ip + 8001538: 1ac0 subs r0, r0, r3 + 800153a: fbb0 f3f7 udiv r3, r0, r7 + 800153e: fb07 0013 mls r0, r7, r3, r0 + 8001542: b2ad uxth r5, r5 + 8001544: ea45 4500 orr.w r5, r5, r0, lsl #16 + 8001548: fb03 f00e mul.w r0, r3, lr + 800154c: 42a8 cmp r0, r5 + 800154e: d908 bls.n 8001562 <__udivmoddi4+0x28a> + 8001550: eb1c 0505 adds.w r5, ip, r5 + 8001554: f103 38ff add.w r8, r3, #4294967295 ; 0xffffffff + 8001558: d216 bcs.n 8001588 <__udivmoddi4+0x2b0> + 800155a: 42a8 cmp r0, r5 + 800155c: d914 bls.n 8001588 <__udivmoddi4+0x2b0> + 800155e: 3b02 subs r3, #2 + 8001560: 4465 add r5, ip + 8001562: 1a28 subs r0, r5, r0 + 8001564: ea43 4101 orr.w r1, r3, r1, lsl #16 + 8001568: e738 b.n 80013dc <__udivmoddi4+0x104> + 800156a: 4631 mov r1, r6 + 800156c: 4630 mov r0, r6 + 800156e: e707 b.n 8001380 <__udivmoddi4+0xa8> + 8001570: 462f mov r7, r5 + 8001572: e6e4 b.n 800133e <__udivmoddi4+0x66> + 8001574: 4618 mov r0, r3 + 8001576: e6f9 b.n 800136c <__udivmoddi4+0x94> + 8001578: 454b cmp r3, r9 + 800157a: d2a9 bcs.n 80014d0 <__udivmoddi4+0x1f8> + 800157c: ebb9 0802 subs.w r8, r9, r2 + 8001580: eb65 0e0c sbc.w lr, r5, ip + 8001584: 3801 subs r0, #1 + 8001586: e7a3 b.n 80014d0 <__udivmoddi4+0x1f8> + 8001588: 4643 mov r3, r8 + 800158a: e7ea b.n 8001562 <__udivmoddi4+0x28a> + 800158c: 4628 mov r0, r5 + 800158e: e794 b.n 80014ba <__udivmoddi4+0x1e2> + 8001590: 4641 mov r1, r8 + 8001592: e7d1 b.n 8001538 <__udivmoddi4+0x260> + 8001594: 46d0 mov r8, sl + 8001596: e77b b.n 8001490 <__udivmoddi4+0x1b8> + 8001598: 4464 add r4, ip + 800159a: 3802 subs r0, #2 + 800159c: e747 b.n 800142e <__udivmoddi4+0x156> + 800159e: 3b02 subs r3, #2 + 80015a0: 4465 add r5, ip + 80015a2: e72f b.n 8001404 <__udivmoddi4+0x12c> + 80015a4: 4608 mov r0, r1 + 80015a6: e706 b.n 80013b6 <__udivmoddi4+0xde> + 80015a8: 4631 mov r1, r6 + 80015aa: e6e9 b.n 8001380 <__udivmoddi4+0xa8> + +080015ac <__aeabi_idiv0>: + 80015ac: 4770 bx lr + 80015ae: bf00 nop + +080015b0 : ADC_HandleTypeDef hadc1; /* ADC1 init function */ void MX_ADC1_Init(void) { - 80014c4: b580 push {r7, lr} - 80014c6: b084 sub sp, #16 - 80014c8: af00 add r7, sp, #0 + 80015b0: b580 push {r7, lr} + 80015b2: b084 sub sp, #16 + 80015b4: af00 add r7, sp, #0 /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; - 80014ca: 1d3b adds r3, r7, #4 - 80014cc: 2200 movs r2, #0 - 80014ce: 601a str r2, [r3, #0] - 80014d0: 605a str r2, [r3, #4] - 80014d2: 609a str r2, [r3, #8] + 80015b6: 1d3b adds r3, r7, #4 + 80015b8: 2200 movs r2, #0 + 80015ba: 601a str r2, [r3, #0] + 80015bc: 605a str r2, [r3, #4] + 80015be: 609a str r2, [r3, #8] /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; - 80014d4: 4b18 ldr r3, [pc, #96] ; (8001538 ) - 80014d6: 4a19 ldr r2, [pc, #100] ; (800153c ) - 80014d8: 601a str r2, [r3, #0] + 80015c0: 4b18 ldr r3, [pc, #96] ; (8001624 ) + 80015c2: 4a19 ldr r2, [pc, #100] ; (8001628 ) + 80015c4: 601a str r2, [r3, #0] hadc1.Init.ScanConvMode = ADC_SCAN_DISABLE; - 80014da: 4b17 ldr r3, [pc, #92] ; (8001538 ) - 80014dc: 2200 movs r2, #0 - 80014de: 609a str r2, [r3, #8] + 80015c6: 4b17 ldr r3, [pc, #92] ; (8001624 ) + 80015c8: 2200 movs r2, #0 + 80015ca: 609a str r2, [r3, #8] hadc1.Init.ContinuousConvMode = DISABLE; - 80014e0: 4b15 ldr r3, [pc, #84] ; (8001538 ) - 80014e2: 2200 movs r2, #0 - 80014e4: 731a strb r2, [r3, #12] + 80015cc: 4b15 ldr r3, [pc, #84] ; (8001624 ) + 80015ce: 2200 movs r2, #0 + 80015d0: 731a strb r2, [r3, #12] hadc1.Init.DiscontinuousConvMode = DISABLE; - 80014e6: 4b14 ldr r3, [pc, #80] ; (8001538 ) - 80014e8: 2200 movs r2, #0 - 80014ea: 751a strb r2, [r3, #20] + 80015d2: 4b14 ldr r3, [pc, #80] ; (8001624 ) + 80015d4: 2200 movs r2, #0 + 80015d6: 751a strb r2, [r3, #20] hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; - 80014ec: 4b12 ldr r3, [pc, #72] ; (8001538 ) - 80014ee: f44f 2260 mov.w r2, #917504 ; 0xe0000 - 80014f2: 61da str r2, [r3, #28] + 80015d8: 4b12 ldr r3, [pc, #72] ; (8001624 ) + 80015da: f44f 2260 mov.w r2, #917504 ; 0xe0000 + 80015de: 61da str r2, [r3, #28] hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; - 80014f4: 4b10 ldr r3, [pc, #64] ; (8001538 ) - 80014f6: 2200 movs r2, #0 - 80014f8: 605a str r2, [r3, #4] + 80015e0: 4b10 ldr r3, [pc, #64] ; (8001624 ) + 80015e2: 2200 movs r2, #0 + 80015e4: 605a str r2, [r3, #4] hadc1.Init.NbrOfConversion = 1; - 80014fa: 4b0f ldr r3, [pc, #60] ; (8001538 ) - 80014fc: 2201 movs r2, #1 - 80014fe: 611a str r2, [r3, #16] + 80015e6: 4b0f ldr r3, [pc, #60] ; (8001624 ) + 80015e8: 2201 movs r2, #1 + 80015ea: 611a str r2, [r3, #16] if (HAL_ADC_Init(&hadc1) != HAL_OK) - 8001500: 480d ldr r0, [pc, #52] ; (8001538 ) - 8001502: f003 fd25 bl 8004f50 - 8001506: 4603 mov r3, r0 - 8001508: 2b00 cmp r3, #0 - 800150a: d001 beq.n 8001510 + 80015ec: 480d ldr r0, [pc, #52] ; (8001624 ) + 80015ee: f003 fde5 bl 80051bc + 80015f2: 4603 mov r3, r0 + 80015f4: 2b00 cmp r3, #0 + 80015f6: d001 beq.n 80015fc { Error_Handler(); - 800150c: f003 f8ce bl 80046ac + 80015f8: f003 f98e bl 8004918 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_8; - 8001510: 2308 movs r3, #8 - 8001512: 607b str r3, [r7, #4] + 80015fc: 2308 movs r3, #8 + 80015fe: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_1; - 8001514: 2301 movs r3, #1 - 8001516: 60bb str r3, [r7, #8] + 8001600: 2301 movs r3, #1 + 8001602: 60bb str r3, [r7, #8] sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5; - 8001518: 2300 movs r3, #0 - 800151a: 60fb str r3, [r7, #12] + 8001604: 2300 movs r3, #0 + 8001606: 60fb str r3, [r7, #12] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) - 800151c: 1d3b adds r3, r7, #4 - 800151e: 4619 mov r1, r3 - 8001520: 4805 ldr r0, [pc, #20] ; (8001538 ) - 8001522: f003 ffd9 bl 80054d8 - 8001526: 4603 mov r3, r0 - 8001528: 2b00 cmp r3, #0 - 800152a: d001 beq.n 8001530 + 8001608: 1d3b adds r3, r7, #4 + 800160a: 4619 mov r1, r3 + 800160c: 4805 ldr r0, [pc, #20] ; (8001624 ) + 800160e: f004 f899 bl 8005744 + 8001612: 4603 mov r3, r0 + 8001614: 2b00 cmp r3, #0 + 8001616: d001 beq.n 800161c { Error_Handler(); - 800152c: f003 f8be bl 80046ac + 8001618: f003 f97e bl 8004918 } /* USER CODE BEGIN ADC1_Init 2 */ /* USER CODE END ADC1_Init 2 */ } - 8001530: bf00 nop - 8001532: 3710 adds r7, #16 - 8001534: 46bd mov sp, r7 - 8001536: bd80 pop {r7, pc} - 8001538: 20000260 .word 0x20000260 - 800153c: 40012400 .word 0x40012400 + 800161c: bf00 nop + 800161e: 3710 adds r7, #16 + 8001620: 46bd mov sp, r7 + 8001622: bd80 pop {r7, pc} + 8001624: 20000260 .word 0x20000260 + 8001628: 40012400 .word 0x40012400 -08001540 : +0800162c : void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) { - 8001540: b580 push {r7, lr} - 8001542: b08a sub sp, #40 ; 0x28 - 8001544: af00 add r7, sp, #0 - 8001546: 6078 str r0, [r7, #4] + 800162c: b580 push {r7, lr} + 800162e: b08a sub sp, #40 ; 0x28 + 8001630: af00 add r7, sp, #0 + 8001632: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001548: f107 0318 add.w r3, r7, #24 - 800154c: 2200 movs r2, #0 - 800154e: 601a str r2, [r3, #0] - 8001550: 605a str r2, [r3, #4] - 8001552: 609a str r2, [r3, #8] - 8001554: 60da str r2, [r3, #12] + 8001634: f107 0318 add.w r3, r7, #24 + 8001638: 2200 movs r2, #0 + 800163a: 601a str r2, [r3, #0] + 800163c: 605a str r2, [r3, #4] + 800163e: 609a str r2, [r3, #8] + 8001640: 60da str r2, [r3, #12] if(adcHandle->Instance==ADC1) - 8001556: 687b ldr r3, [r7, #4] - 8001558: 681b ldr r3, [r3, #0] - 800155a: 4a1f ldr r2, [pc, #124] ; (80015d8 ) - 800155c: 4293 cmp r3, r2 - 800155e: d137 bne.n 80015d0 + 8001642: 687b ldr r3, [r7, #4] + 8001644: 681b ldr r3, [r3, #0] + 8001646: 4a1f ldr r2, [pc, #124] ; (80016c4 ) + 8001648: 4293 cmp r3, r2 + 800164a: d137 bne.n 80016bc { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* ADC1 clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); - 8001560: 4b1e ldr r3, [pc, #120] ; (80015dc ) - 8001562: 699b ldr r3, [r3, #24] - 8001564: 4a1d ldr r2, [pc, #116] ; (80015dc ) - 8001566: f443 7300 orr.w r3, r3, #512 ; 0x200 - 800156a: 6193 str r3, [r2, #24] - 800156c: 4b1b ldr r3, [pc, #108] ; (80015dc ) - 800156e: 699b ldr r3, [r3, #24] - 8001570: f403 7300 and.w r3, r3, #512 ; 0x200 - 8001574: 617b str r3, [r7, #20] - 8001576: 697b ldr r3, [r7, #20] + 800164c: 4b1e ldr r3, [pc, #120] ; (80016c8 ) + 800164e: 699b ldr r3, [r3, #24] + 8001650: 4a1d ldr r2, [pc, #116] ; (80016c8 ) + 8001652: f443 7300 orr.w r3, r3, #512 ; 0x200 + 8001656: 6193 str r3, [r2, #24] + 8001658: 4b1b ldr r3, [pc, #108] ; (80016c8 ) + 800165a: 699b ldr r3, [r3, #24] + 800165c: f403 7300 and.w r3, r3, #512 ; 0x200 + 8001660: 617b str r3, [r7, #20] + 8001662: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001578: 4b18 ldr r3, [pc, #96] ; (80015dc ) - 800157a: 699b ldr r3, [r3, #24] - 800157c: 4a17 ldr r2, [pc, #92] ; (80015dc ) - 800157e: f043 0304 orr.w r3, r3, #4 - 8001582: 6193 str r3, [r2, #24] - 8001584: 4b15 ldr r3, [pc, #84] ; (80015dc ) - 8001586: 699b ldr r3, [r3, #24] - 8001588: f003 0304 and.w r3, r3, #4 - 800158c: 613b str r3, [r7, #16] - 800158e: 693b ldr r3, [r7, #16] + 8001664: 4b18 ldr r3, [pc, #96] ; (80016c8 ) + 8001666: 699b ldr r3, [r3, #24] + 8001668: 4a17 ldr r2, [pc, #92] ; (80016c8 ) + 800166a: f043 0304 orr.w r3, r3, #4 + 800166e: 6193 str r3, [r2, #24] + 8001670: 4b15 ldr r3, [pc, #84] ; (80016c8 ) + 8001672: 699b ldr r3, [r3, #24] + 8001674: f003 0304 and.w r3, r3, #4 + 8001678: 613b str r3, [r7, #16] + 800167a: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); - 8001590: 4b12 ldr r3, [pc, #72] ; (80015dc ) - 8001592: 699b ldr r3, [r3, #24] - 8001594: 4a11 ldr r2, [pc, #68] ; (80015dc ) - 8001596: f043 0308 orr.w r3, r3, #8 - 800159a: 6193 str r3, [r2, #24] - 800159c: 4b0f ldr r3, [pc, #60] ; (80015dc ) - 800159e: 699b ldr r3, [r3, #24] - 80015a0: f003 0308 and.w r3, r3, #8 - 80015a4: 60fb str r3, [r7, #12] - 80015a6: 68fb ldr r3, [r7, #12] + 800167c: 4b12 ldr r3, [pc, #72] ; (80016c8 ) + 800167e: 699b ldr r3, [r3, #24] + 8001680: 4a11 ldr r2, [pc, #68] ; (80016c8 ) + 8001682: f043 0308 orr.w r3, r3, #8 + 8001686: 6193 str r3, [r2, #24] + 8001688: 4b0f ldr r3, [pc, #60] ; (80016c8 ) + 800168a: 699b ldr r3, [r3, #24] + 800168c: f003 0308 and.w r3, r3, #8 + 8001690: 60fb str r3, [r7, #12] + 8001692: 68fb ldr r3, [r7, #12] /**ADC1 GPIO Configuration PA6 ------> ADC1_IN6 PB0 ------> ADC1_IN8 PB1 ------> ADC1_IN9 */ GPIO_InitStruct.Pin = ADC_CC1_Pin; - 80015a8: 2340 movs r3, #64 ; 0x40 - 80015aa: 61bb str r3, [r7, #24] + 8001694: 2340 movs r3, #64 ; 0x40 + 8001696: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 80015ac: 2303 movs r3, #3 - 80015ae: 61fb str r3, [r7, #28] + 8001698: 2303 movs r3, #3 + 800169a: 61fb str r3, [r7, #28] HAL_GPIO_Init(ADC_CC1_GPIO_Port, &GPIO_InitStruct); - 80015b0: f107 0318 add.w r3, r7, #24 - 80015b4: 4619 mov r1, r3 - 80015b6: 480a ldr r0, [pc, #40] ; (80015e0 ) - 80015b8: f005 faca bl 8006b50 + 800169c: f107 0318 add.w r3, r7, #24 + 80016a0: 4619 mov r1, r3 + 80016a2: 480a ldr r0, [pc, #40] ; (80016cc ) + 80016a4: f005 fb8a bl 8006dbc GPIO_InitStruct.Pin = ADC_NTC1_Pin|ADC_NTC2_Pin; - 80015bc: 2303 movs r3, #3 - 80015be: 61bb str r3, [r7, #24] + 80016a8: 2303 movs r3, #3 + 80016aa: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 80015c0: 2303 movs r3, #3 - 80015c2: 61fb str r3, [r7, #28] + 80016ac: 2303 movs r3, #3 + 80016ae: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80015c4: f107 0318 add.w r3, r7, #24 - 80015c8: 4619 mov r1, r3 - 80015ca: 4806 ldr r0, [pc, #24] ; (80015e4 ) - 80015cc: f005 fac0 bl 8006b50 + 80016b0: f107 0318 add.w r3, r7, #24 + 80016b4: 4619 mov r1, r3 + 80016b6: 4806 ldr r0, [pc, #24] ; (80016d0 ) + 80016b8: f005 fb80 bl 8006dbc /* USER CODE BEGIN ADC1_MspInit 1 */ /* USER CODE END ADC1_MspInit 1 */ } } - 80015d0: bf00 nop - 80015d2: 3728 adds r7, #40 ; 0x28 - 80015d4: 46bd mov sp, r7 - 80015d6: bd80 pop {r7, pc} - 80015d8: 40012400 .word 0x40012400 - 80015dc: 40021000 .word 0x40021000 - 80015e0: 40010800 .word 0x40010800 - 80015e4: 40010c00 .word 0x40010c00 + 80016bc: bf00 nop + 80016be: 3728 adds r7, #40 ; 0x28 + 80016c0: 46bd mov sp, r7 + 80016c2: bd80 pop {r7, pc} + 80016c4: 40012400 .word 0x40012400 + 80016c8: 40021000 .word 0x40021000 + 80016cc: 40010800 .word 0x40010800 + 80016d0: 40010c00 .word 0x40010c00 -080015e8 : +080016d4 : //TODO: //TEMP READ //GBT_TEMP_SENSORS void RELAY_Write(relay_t num, uint8_t state){ - 80015e8: b580 push {r7, lr} - 80015ea: b082 sub sp, #8 - 80015ec: af00 add r7, sp, #0 - 80015ee: 4603 mov r3, r0 - 80015f0: 460a mov r2, r1 - 80015f2: 71fb strb r3, [r7, #7] - 80015f4: 4613 mov r3, r2 - 80015f6: 71bb strb r3, [r7, #6] + 80016d4: b580 push {r7, lr} + 80016d6: b082 sub sp, #8 + 80016d8: af00 add r7, sp, #0 + 80016da: 4603 mov r3, r0 + 80016dc: 460a mov r2, r1 + 80016de: 71fb strb r3, [r7, #7] + 80016e0: 4613 mov r3, r2 + 80016e2: 71bb strb r3, [r7, #6] if(num==RELAY_AUX)HAL_GPIO_WritePin(RELAY_AUX_GPIO_Port, RELAY_AUX_Pin, state); - 80015f8: 79fb ldrb r3, [r7, #7] - 80015fa: 2b00 cmp r3, #0 - 80015fc: d105 bne.n 800160a - 80015fe: 79bb ldrb r3, [r7, #6] - 8001600: 461a mov r2, r3 - 8001602: 2110 movs r1, #16 - 8001604: 4808 ldr r0, [pc, #32] ; (8001628 ) - 8001606: f005 fc3e bl 8006e86 + 80016e4: 79fb ldrb r3, [r7, #7] + 80016e6: 2b00 cmp r3, #0 + 80016e8: d105 bne.n 80016f6 + 80016ea: 79bb ldrb r3, [r7, #6] + 80016ec: 461a mov r2, r3 + 80016ee: 2110 movs r1, #16 + 80016f0: 4808 ldr r0, [pc, #32] ; (8001714 ) + 80016f2: f005 fcfe bl 80070f2 if(num==RELAY_CC)HAL_GPIO_WritePin(RELAY_CC_GPIO_Port, RELAY_CC_Pin, state); - 800160a: 79fb ldrb r3, [r7, #7] - 800160c: 2b01 cmp r3, #1 - 800160e: d106 bne.n 800161e - 8001610: 79bb ldrb r3, [r7, #6] - 8001612: 461a mov r2, r3 - 8001614: f44f 4100 mov.w r1, #32768 ; 0x8000 - 8001618: 4804 ldr r0, [pc, #16] ; (800162c ) - 800161a: f005 fc34 bl 8006e86 + 80016f6: 79fb ldrb r3, [r7, #7] + 80016f8: 2b01 cmp r3, #1 + 80016fa: d106 bne.n 800170a + 80016fc: 79bb ldrb r3, [r7, #6] + 80016fe: 461a mov r2, r3 + 8001700: f44f 4100 mov.w r1, #32768 ; 0x8000 + 8001704: 4804 ldr r0, [pc, #16] ; (8001718 ) + 8001706: f005 fcf4 bl 80070f2 } - 800161e: bf00 nop - 8001620: 3708 adds r7, #8 - 8001622: 46bd mov sp, r7 - 8001624: bd80 pop {r7, pc} - 8001626: bf00 nop - 8001628: 40010c00 .word 0x40010c00 - 800162c: 40011800 .word 0x40011800 + 800170a: bf00 nop + 800170c: 3708 adds r7, #8 + 800170e: 46bd mov sp, r7 + 8001710: bd80 pop {r7, pc} + 8001712: bf00 nop + 8001714: 40010c00 .word 0x40010c00 + 8001718: 40011800 .word 0x40011800 -08001630 : +0800171c : // // HAL_ADC_Stop(&hadc1); // stop adc return 0; } void Init_Peripheral(){ - 8001630: b580 push {r7, lr} - 8001632: af00 add r7, sp, #0 + 800171c: b580 push {r7, lr} + 800171e: af00 add r7, sp, #0 HAL_ADCEx_Calibration_Start(&hadc1); - 8001634: 4806 ldr r0, [pc, #24] ; (8001650 ) - 8001636: f004 f8e3 bl 8005800 + 8001720: 4806 ldr r0, [pc, #24] ; (800173c ) + 8001722: f004 f9a3 bl 8005a6c RELAY_Write(RELAY_AUX, 0); - 800163a: 2100 movs r1, #0 - 800163c: 2000 movs r0, #0 - 800163e: f7ff ffd3 bl 80015e8 + 8001726: 2100 movs r1, #0 + 8001728: 2000 movs r0, #0 + 800172a: f7ff ffd3 bl 80016d4 RELAY_Write(RELAY_CC, 1); - 8001642: 2101 movs r1, #1 - 8001644: 2001 movs r0, #1 - 8001646: f7ff ffcf bl 80015e8 + 800172e: 2101 movs r1, #1 + 8001730: 2001 movs r0, #1 + 8001732: f7ff ffcf bl 80016d4 } - 800164a: bf00 nop - 800164c: bd80 pop {r7, pc} - 800164e: bf00 nop - 8001650: 20000260 .word 0x20000260 + 8001736: bf00 nop + 8001738: bd80 pop {r7, pc} + 800173a: bf00 nop + 800173c: 20000260 .word 0x20000260 -08001654 : -uint8_t GBT_ReadTemp(){ +08001740 : + +float pt1000_to_temperature(float resistance) { + 8001740: b590 push {r4, r7, lr} + 8001742: b087 sub sp, #28 + 8001744: af00 add r7, sp, #0 + 8001746: 6078 str r0, [r7, #4] + // Константы для PT1000 + const float R0 = 1000.0; // Сопротивление при 0 °C + 8001748: 4b0c ldr r3, [pc, #48] ; (800177c ) + 800174a: 617b str r3, [r7, #20] + const float C_A = 3.9083E-3f; + 800174c: 4b0c ldr r3, [pc, #48] ; (8001780 ) + 800174e: 613b str r3, [r7, #16] +// const float B = -5.775e-07; // Второй коэффициент (°C^-2) +// +// // Расчет температуры по формуле +// float temperature = -A / (B - (R0 / resistance - 1) * A); + + float temperature = (resistance-R0) / ( R0 * C_A); + 8001750: 6979 ldr r1, [r7, #20] + 8001752: 6878 ldr r0, [r7, #4] + 8001754: f7ff fa62 bl 8000c1c <__aeabi_fsub> + 8001758: 4603 mov r3, r0 + 800175a: 461c mov r4, r3 + 800175c: 6939 ldr r1, [r7, #16] + 800175e: 6978 ldr r0, [r7, #20] + 8001760: f7ff fb66 bl 8000e30 <__aeabi_fmul> + 8001764: 4603 mov r3, r0 + 8001766: 4619 mov r1, r3 + 8001768: 4620 mov r0, r4 + 800176a: f7ff fc15 bl 8000f98 <__aeabi_fdiv> + 800176e: 4603 mov r3, r0 + 8001770: 60fb str r3, [r7, #12] + + return temperature; + 8001772: 68fb ldr r3, [r7, #12] +} + 8001774: 4618 mov r0, r3 + 8001776: 371c adds r7, #28 + 8001778: 46bd mov sp, r7 + 800177a: bd90 pop {r4, r7, pc} + 800177c: 447a0000 .word 0x447a0000 + 8001780: 3b801132 .word 0x3b801132 + 8001784: 00000000 .word 0x00000000 + +08001788 : + + +float calculate_NTC_resistance(int adc_value, float Vref, float Vin, float R) { + 8001788: b5b0 push {r4, r5, r7, lr} + 800178a: b086 sub sp, #24 + 800178c: af00 add r7, sp, #0 + 800178e: 60f8 str r0, [r7, #12] + 8001790: 60b9 str r1, [r7, #8] + 8001792: 607a str r2, [r7, #4] + 8001794: 603b str r3, [r7, #0] + // Преобразуем значение АЦП в выходное напряжение + float Vout = (adc_value / 4095.0) * Vref; + 8001796: 68f8 ldr r0, [r7, #12] + 8001798: f7fe feaa bl 80004f0 <__aeabi_i2d> + 800179c: a31c add r3, pc, #112 ; (adr r3, 8001810 ) + 800179e: e9d3 2300 ldrd r2, r3, [r3] + 80017a2: f7ff f839 bl 8000818 <__aeabi_ddiv> + 80017a6: 4602 mov r2, r0 + 80017a8: 460b mov r3, r1 + 80017aa: 4614 mov r4, r2 + 80017ac: 461d mov r5, r3 + 80017ae: 68b8 ldr r0, [r7, #8] + 80017b0: f7fe feb0 bl 8000514 <__aeabi_f2d> + 80017b4: 4602 mov r2, r0 + 80017b6: 460b mov r3, r1 + 80017b8: 4620 mov r0, r4 + 80017ba: 4629 mov r1, r5 + 80017bc: f7fe ff02 bl 80005c4 <__aeabi_dmul> + 80017c0: 4602 mov r2, r0 + 80017c2: 460b mov r3, r1 + 80017c4: 4610 mov r0, r2 + 80017c6: 4619 mov r1, r3 + 80017c8: f7ff f9d4 bl 8000b74 <__aeabi_d2f> + 80017cc: 4603 mov r3, r0 + 80017ce: 617b str r3, [r7, #20] + + // Проверяем, чтобы Vout не было равно Vin + if (Vout >= Vin) { + 80017d0: 6879 ldr r1, [r7, #4] + 80017d2: 6978 ldr r0, [r7, #20] + 80017d4: f7ff fcde bl 8001194 <__aeabi_fcmpge> + 80017d8: 4603 mov r3, r0 + 80017da: 2b00 cmp r3, #0 + 80017dc: d001 beq.n 80017e2 + return -1; // Ошибка: Vout не может быть больше или равно Vin + 80017de: 4b0e ldr r3, [pc, #56] ; (8001818 ) + 80017e0: e010 b.n 8001804 + } + + // Вычисляем сопротивление термистора + float R_NTC = R * (Vout / (Vin - Vout)); + 80017e2: 6979 ldr r1, [r7, #20] + 80017e4: 6878 ldr r0, [r7, #4] + 80017e6: f7ff fa19 bl 8000c1c <__aeabi_fsub> + 80017ea: 4603 mov r3, r0 + 80017ec: 4619 mov r1, r3 + 80017ee: 6978 ldr r0, [r7, #20] + 80017f0: f7ff fbd2 bl 8000f98 <__aeabi_fdiv> + 80017f4: 4603 mov r3, r0 + 80017f6: 4619 mov r1, r3 + 80017f8: 6838 ldr r0, [r7, #0] + 80017fa: f7ff fb19 bl 8000e30 <__aeabi_fmul> + 80017fe: 4603 mov r3, r0 + 8001800: 613b str r3, [r7, #16] + + return R_NTC; + 8001802: 693b ldr r3, [r7, #16] +} + 8001804: 4618 mov r0, r3 + 8001806: 3718 adds r7, #24 + 8001808: 46bd mov sp, r7 + 800180a: bdb0 pop {r4, r5, r7, pc} + 800180c: f3af 8000 nop.w + 8001810: 00000000 .word 0x00000000 + 8001814: 40affe00 .word 0x40affe00 + 8001818: bf800000 .word 0xbf800000 + +0800181c : + +int16_t GBT_ReadTemp(uint8_t ch){ + 800181c: b580 push {r7, lr} + 800181e: b088 sub sp, #32 + 8001820: af00 add r7, sp, #0 + 8001822: 4603 mov r3, r0 + 8001824: 71fb strb r3, [r7, #7] //TODO - return 0; + if(ch)ADC_Select_Channel(ADC_CHANNEL_8); + 8001826: 79fb ldrb r3, [r7, #7] + 8001828: 2b00 cmp r3, #0 + 800182a: d003 beq.n 8001834 + 800182c: 2008 movs r0, #8 + 800182e: f000 f835 bl 800189c + 8001832: e002 b.n 800183a + else ADC_Select_Channel(ADC_CHANNEL_9); + 8001834: 2009 movs r0, #9 + 8001836: f000 f831 bl 800189c + // Начало конверсии + HAL_ADC_Start(&hadc1); + 800183a: 4814 ldr r0, [pc, #80] ; (800188c ) + 800183c: f003 fd96 bl 800536c + + + // Ожидание окончания конверсии + HAL_ADC_PollForConversion(&hadc1, HAL_MAX_DELAY); + 8001840: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 8001844: 4811 ldr r0, [pc, #68] ; (800188c ) + 8001846: f003 fe6b bl 8005520 + + // Получение значения + uint32_t adcValue = HAL_ADC_GetValue(&hadc1); + 800184a: 4810 ldr r0, [pc, #64] ; (800188c ) + 800184c: f003 ff6e bl 800572c + 8001850: 61f8 str r0, [r7, #28] + + // Остановка АЦП (по желанию) + HAL_ADC_Stop(&hadc1); + 8001852: 480e ldr r0, [pc, #56] ; (800188c ) + 8001854: f003 fe38 bl 80054c8 + +// int adc_value = 2048; // Пример значения АЦП + float Vref = 3.3; // Напряжение опорное + 8001858: 4b0d ldr r3, [pc, #52] ; (8001890 ) + 800185a: 61bb str r3, [r7, #24] + float Vin = 5.0; // Входное напряжение + 800185c: 4b0d ldr r3, [pc, #52] ; (8001894 ) + 800185e: 617b str r3, [r7, #20] + float R = 1000; // Сопротивление резистора в Омах + 8001860: 4b0d ldr r3, [pc, #52] ; (8001898 ) + 8001862: 613b str r3, [r7, #16] + + float temp = pt1000_to_temperature(calculate_NTC_resistance(adcValue, Vref, Vin, R)); + 8001864: 69f8 ldr r0, [r7, #28] + 8001866: 693b ldr r3, [r7, #16] + 8001868: 697a ldr r2, [r7, #20] + 800186a: 69b9 ldr r1, [r7, #24] + 800186c: f7ff ff8c bl 8001788 + 8001870: 4603 mov r3, r0 + 8001872: 4618 mov r0, r3 + 8001874: f7ff ff64 bl 8001740 + 8001878: 60f8 str r0, [r7, #12] + + + + return (int16_t)temp; + 800187a: 68f8 ldr r0, [r7, #12] + 800187c: f7ff fc9e bl 80011bc <__aeabi_f2iz> + 8001880: 4603 mov r3, r0 + 8001882: b21b sxth r3, r3 + } + 8001884: 4618 mov r0, r3 + 8001886: 3720 adds r7, #32 + 8001888: 46bd mov sp, r7 + 800188a: bd80 pop {r7, pc} + 800188c: 20000260 .word 0x20000260 + 8001890: 40533333 .word 0x40533333 + 8001894: 40a00000 .word 0x40a00000 + 8001898: 447a0000 .word 0x447a0000 + +0800189c : + + + void ADC_Select_Channel(uint32_t ch) { - 8001654: b580 push {r7, lr} - 8001656: b086 sub sp, #24 - 8001658: af00 add r7, sp, #0 - 800165a: 6078 str r0, [r7, #4] + 800189c: b580 push {r7, lr} + 800189e: b086 sub sp, #24 + 80018a0: af00 add r7, sp, #0 + 80018a2: 6078 str r0, [r7, #4] ADC_ChannelConfTypeDef conf = { - 800165c: 687b ldr r3, [r7, #4] - 800165e: 60fb str r3, [r7, #12] - 8001660: 2301 movs r3, #1 - 8001662: 613b str r3, [r7, #16] - 8001664: 2303 movs r3, #3 - 8001666: 617b str r3, [r7, #20] + 80018a4: 687b ldr r3, [r7, #4] + 80018a6: 60fb str r3, [r7, #12] + 80018a8: 2301 movs r3, #1 + 80018aa: 613b str r3, [r7, #16] + 80018ac: 2303 movs r3, #3 + 80018ae: 617b str r3, [r7, #20] .Channel = ch, .Rank = 1, .SamplingTime = ADC_SAMPLETIME_28CYCLES_5, }; if (HAL_ADC_ConfigChannel(&hadc1, &conf) != HAL_OK) { - 8001668: f107 030c add.w r3, r7, #12 - 800166c: 4619 mov r1, r3 - 800166e: 4806 ldr r0, [pc, #24] ; (8001688 ) - 8001670: f003 ff32 bl 80054d8 - 8001674: 4603 mov r3, r0 - 8001676: 2b00 cmp r3, #0 - 8001678: d001 beq.n 800167e + 80018b0: f107 030c add.w r3, r7, #12 + 80018b4: 4619 mov r1, r3 + 80018b6: 4806 ldr r0, [pc, #24] ; (80018d0 ) + 80018b8: f003 ff44 bl 8005744 + 80018bc: 4603 mov r3, r0 + 80018be: 2b00 cmp r3, #0 + 80018c0: d001 beq.n 80018c6 Error_Handler(); - 800167a: f003 f817 bl 80046ac + 80018c2: f003 f829 bl 8004918 } } - 800167e: bf00 nop - 8001680: 3718 adds r7, #24 - 8001682: 46bd mov sp, r7 - 8001684: bd80 pop {r7, pc} - 8001686: bf00 nop - 8001688: 20000260 .word 0x20000260 + 80018c6: bf00 nop + 80018c8: 3718 adds r7, #24 + 80018ca: 46bd mov sp, r7 + 80018cc: bd80 pop {r7, pc} + 80018ce: bf00 nop + 80018d0: 20000260 .word 0x20000260 -0800168c : +080018d4 : uint8_t SW_GetAddr(){ - 800168c: b580 push {r7, lr} - 800168e: af00 add r7, sp, #0 + 80018d4: b580 push {r7, lr} + 80018d6: af00 add r7, sp, #0 if(!HAL_GPIO_ReadPin(ADDR_0_GPIO_Port, ADDR_0_Pin)){ - 8001690: f44f 6180 mov.w r1, #1024 ; 0x400 - 8001694: 480f ldr r0, [pc, #60] ; (80016d4 ) - 8001696: f005 fbdf bl 8006e58 - 800169a: 4603 mov r3, r0 - 800169c: 2b00 cmp r3, #0 - 800169e: d10b bne.n 80016b8 + 80018d8: f44f 6180 mov.w r1, #1024 ; 0x400 + 80018dc: 480f ldr r0, [pc, #60] ; (800191c ) + 80018de: f005 fbf1 bl 80070c4 + 80018e2: 4603 mov r3, r0 + 80018e4: 2b00 cmp r3, #0 + 80018e6: d10b bne.n 8001900 if(!HAL_GPIO_ReadPin(ADDR_1_GPIO_Port, ADDR_1_Pin)){ - 80016a0: f44f 6100 mov.w r1, #2048 ; 0x800 - 80016a4: 480b ldr r0, [pc, #44] ; (80016d4 ) - 80016a6: f005 fbd7 bl 8006e58 - 80016aa: 4603 mov r3, r0 - 80016ac: 2b00 cmp r3, #0 - 80016ae: d101 bne.n 80016b4 + 80018e8: f44f 6100 mov.w r1, #2048 ; 0x800 + 80018ec: 480b ldr r0, [pc, #44] ; (800191c ) + 80018ee: f005 fbe9 bl 80070c4 + 80018f2: 4603 mov r3, r0 + 80018f4: 2b00 cmp r3, #0 + 80018f6: d101 bne.n 80018fc return 0x23; - 80016b0: 2323 movs r3, #35 ; 0x23 - 80016b2: e00c b.n 80016ce + 80018f8: 2323 movs r3, #35 ; 0x23 + 80018fa: e00c b.n 8001916 }else{ return 0x21; - 80016b4: 2321 movs r3, #33 ; 0x21 - 80016b6: e00a b.n 80016ce + 80018fc: 2321 movs r3, #33 ; 0x21 + 80018fe: e00a b.n 8001916 } }else{ if(!HAL_GPIO_ReadPin(ADDR_1_GPIO_Port, ADDR_1_Pin)){ - 80016b8: f44f 6100 mov.w r1, #2048 ; 0x800 - 80016bc: 4805 ldr r0, [pc, #20] ; (80016d4 ) - 80016be: f005 fbcb bl 8006e58 - 80016c2: 4603 mov r3, r0 - 80016c4: 2b00 cmp r3, #0 - 80016c6: d101 bne.n 80016cc + 8001900: f44f 6100 mov.w r1, #2048 ; 0x800 + 8001904: 4805 ldr r0, [pc, #20] ; (800191c ) + 8001906: f005 fbdd bl 80070c4 + 800190a: 4603 mov r3, r0 + 800190c: 2b00 cmp r3, #0 + 800190e: d101 bne.n 8001914 return 0x22; - 80016c8: 2322 movs r3, #34 ; 0x22 - 80016ca: e000 b.n 80016ce + 8001910: 2322 movs r3, #34 ; 0x22 + 8001912: e000 b.n 8001916 }else{ return 0x20; - 80016cc: 2320 movs r3, #32 + 8001914: 2320 movs r3, #32 } } } - 80016ce: 4618 mov r0, r3 - 80016d0: bd80 pop {r7, pc} - 80016d2: bf00 nop - 80016d4: 40011800 .word 0x40011800 + 8001916: 4618 mov r0, r3 + 8001918: bd80 pop {r7, pc} + 800191a: bf00 nop + 800191c: 40011800 .word 0x40011800 -080016d8 : +08001920 : CAN_HandleTypeDef hcan1; CAN_HandleTypeDef hcan2; /* CAN1 init function */ void MX_CAN1_Init(void) { - 80016d8: b580 push {r7, lr} - 80016da: af00 add r7, sp, #0 + 8001920: b580 push {r7, lr} + 8001922: af00 add r7, sp, #0 /* USER CODE END CAN1_Init 0 */ /* USER CODE BEGIN CAN1_Init 1 */ /* USER CODE END CAN1_Init 1 */ hcan1.Instance = CAN1; - 80016dc: 4b17 ldr r3, [pc, #92] ; (800173c ) - 80016de: 4a18 ldr r2, [pc, #96] ; (8001740 ) - 80016e0: 601a str r2, [r3, #0] + 8001924: 4b17 ldr r3, [pc, #92] ; (8001984 ) + 8001926: 4a18 ldr r2, [pc, #96] ; (8001988 ) + 8001928: 601a str r2, [r3, #0] hcan1.Init.Prescaler = 8; - 80016e2: 4b16 ldr r3, [pc, #88] ; (800173c ) - 80016e4: 2208 movs r2, #8 - 80016e6: 605a str r2, [r3, #4] + 800192a: 4b16 ldr r3, [pc, #88] ; (8001984 ) + 800192c: 2208 movs r2, #8 + 800192e: 605a str r2, [r3, #4] hcan1.Init.Mode = CAN_MODE_NORMAL; - 80016e8: 4b14 ldr r3, [pc, #80] ; (800173c ) - 80016ea: 2200 movs r2, #0 - 80016ec: 609a str r2, [r3, #8] + 8001930: 4b14 ldr r3, [pc, #80] ; (8001984 ) + 8001932: 2200 movs r2, #0 + 8001934: 609a str r2, [r3, #8] hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ; - 80016ee: 4b13 ldr r3, [pc, #76] ; (800173c ) - 80016f0: 2200 movs r2, #0 - 80016f2: 60da str r2, [r3, #12] + 8001936: 4b13 ldr r3, [pc, #76] ; (8001984 ) + 8001938: 2200 movs r2, #0 + 800193a: 60da str r2, [r3, #12] hcan1.Init.TimeSeg1 = CAN_BS1_15TQ; - 80016f4: 4b11 ldr r3, [pc, #68] ; (800173c ) - 80016f6: f44f 2260 mov.w r2, #917504 ; 0xe0000 - 80016fa: 611a str r2, [r3, #16] + 800193c: 4b11 ldr r3, [pc, #68] ; (8001984 ) + 800193e: f44f 2260 mov.w r2, #917504 ; 0xe0000 + 8001942: 611a str r2, [r3, #16] hcan1.Init.TimeSeg2 = CAN_BS2_2TQ; - 80016fc: 4b0f ldr r3, [pc, #60] ; (800173c ) - 80016fe: f44f 1280 mov.w r2, #1048576 ; 0x100000 - 8001702: 615a str r2, [r3, #20] + 8001944: 4b0f ldr r3, [pc, #60] ; (8001984 ) + 8001946: f44f 1280 mov.w r2, #1048576 ; 0x100000 + 800194a: 615a str r2, [r3, #20] hcan1.Init.TimeTriggeredMode = DISABLE; - 8001704: 4b0d ldr r3, [pc, #52] ; (800173c ) - 8001706: 2200 movs r2, #0 - 8001708: 761a strb r2, [r3, #24] + 800194c: 4b0d ldr r3, [pc, #52] ; (8001984 ) + 800194e: 2200 movs r2, #0 + 8001950: 761a strb r2, [r3, #24] hcan1.Init.AutoBusOff = ENABLE; - 800170a: 4b0c ldr r3, [pc, #48] ; (800173c ) - 800170c: 2201 movs r2, #1 - 800170e: 765a strb r2, [r3, #25] + 8001952: 4b0c ldr r3, [pc, #48] ; (8001984 ) + 8001954: 2201 movs r2, #1 + 8001956: 765a strb r2, [r3, #25] hcan1.Init.AutoWakeUp = ENABLE; - 8001710: 4b0a ldr r3, [pc, #40] ; (800173c ) - 8001712: 2201 movs r2, #1 - 8001714: 769a strb r2, [r3, #26] + 8001958: 4b0a ldr r3, [pc, #40] ; (8001984 ) + 800195a: 2201 movs r2, #1 + 800195c: 769a strb r2, [r3, #26] hcan1.Init.AutoRetransmission = DISABLE; - 8001716: 4b09 ldr r3, [pc, #36] ; (800173c ) - 8001718: 2200 movs r2, #0 - 800171a: 76da strb r2, [r3, #27] + 800195e: 4b09 ldr r3, [pc, #36] ; (8001984 ) + 8001960: 2200 movs r2, #0 + 8001962: 76da strb r2, [r3, #27] hcan1.Init.ReceiveFifoLocked = DISABLE; - 800171c: 4b07 ldr r3, [pc, #28] ; (800173c ) - 800171e: 2200 movs r2, #0 - 8001720: 771a strb r2, [r3, #28] + 8001964: 4b07 ldr r3, [pc, #28] ; (8001984 ) + 8001966: 2200 movs r2, #0 + 8001968: 771a strb r2, [r3, #28] hcan1.Init.TransmitFifoPriority = ENABLE; - 8001722: 4b06 ldr r3, [pc, #24] ; (800173c ) - 8001724: 2201 movs r2, #1 - 8001726: 775a strb r2, [r3, #29] + 800196a: 4b06 ldr r3, [pc, #24] ; (8001984 ) + 800196c: 2201 movs r2, #1 + 800196e: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan1) != HAL_OK) - 8001728: 4804 ldr r0, [pc, #16] ; (800173c ) - 800172a: f004 f915 bl 8005958 - 800172e: 4603 mov r3, r0 - 8001730: 2b00 cmp r3, #0 - 8001732: d001 beq.n 8001738 + 8001970: 4804 ldr r0, [pc, #16] ; (8001984 ) + 8001972: f004 f927 bl 8005bc4 + 8001976: 4603 mov r3, r0 + 8001978: 2b00 cmp r3, #0 + 800197a: d001 beq.n 8001980 { Error_Handler(); - 8001734: f002 ffba bl 80046ac + 800197c: f002 ffcc bl 8004918 } /* USER CODE BEGIN CAN1_Init 2 */ /* USER CODE END CAN1_Init 2 */ } - 8001738: bf00 nop - 800173a: bd80 pop {r7, pc} - 800173c: 20000290 .word 0x20000290 - 8001740: 40006400 .word 0x40006400 + 8001980: bf00 nop + 8001982: bd80 pop {r7, pc} + 8001984: 20000290 .word 0x20000290 + 8001988: 40006400 .word 0x40006400 -08001744 : +0800198c : /* CAN2 init function */ void MX_CAN2_Init(void) { - 8001744: b580 push {r7, lr} - 8001746: af00 add r7, sp, #0 + 800198c: b580 push {r7, lr} + 800198e: af00 add r7, sp, #0 /* USER CODE END CAN2_Init 0 */ /* USER CODE BEGIN CAN2_Init 1 */ /* USER CODE END CAN2_Init 1 */ hcan2.Instance = CAN2; - 8001748: 4b17 ldr r3, [pc, #92] ; (80017a8 ) - 800174a: 4a18 ldr r2, [pc, #96] ; (80017ac ) - 800174c: 601a str r2, [r3, #0] + 8001990: 4b17 ldr r3, [pc, #92] ; (80019f0 ) + 8001992: 4a18 ldr r2, [pc, #96] ; (80019f4 ) + 8001994: 601a str r2, [r3, #0] hcan2.Init.Prescaler = 16; - 800174e: 4b16 ldr r3, [pc, #88] ; (80017a8 ) - 8001750: 2210 movs r2, #16 - 8001752: 605a str r2, [r3, #4] + 8001996: 4b16 ldr r3, [pc, #88] ; (80019f0 ) + 8001998: 2210 movs r2, #16 + 800199a: 605a str r2, [r3, #4] hcan2.Init.Mode = CAN_MODE_NORMAL; - 8001754: 4b14 ldr r3, [pc, #80] ; (80017a8 ) - 8001756: 2200 movs r2, #0 - 8001758: 609a str r2, [r3, #8] + 800199c: 4b14 ldr r3, [pc, #80] ; (80019f0 ) + 800199e: 2200 movs r2, #0 + 80019a0: 609a str r2, [r3, #8] hcan2.Init.SyncJumpWidth = CAN_SJW_1TQ; - 800175a: 4b13 ldr r3, [pc, #76] ; (80017a8 ) - 800175c: 2200 movs r2, #0 - 800175e: 60da str r2, [r3, #12] + 80019a2: 4b13 ldr r3, [pc, #76] ; (80019f0 ) + 80019a4: 2200 movs r2, #0 + 80019a6: 60da str r2, [r3, #12] hcan2.Init.TimeSeg1 = CAN_BS1_15TQ; - 8001760: 4b11 ldr r3, [pc, #68] ; (80017a8 ) - 8001762: f44f 2260 mov.w r2, #917504 ; 0xe0000 - 8001766: 611a str r2, [r3, #16] + 80019a8: 4b11 ldr r3, [pc, #68] ; (80019f0 ) + 80019aa: f44f 2260 mov.w r2, #917504 ; 0xe0000 + 80019ae: 611a str r2, [r3, #16] hcan2.Init.TimeSeg2 = CAN_BS2_2TQ; - 8001768: 4b0f ldr r3, [pc, #60] ; (80017a8 ) - 800176a: f44f 1280 mov.w r2, #1048576 ; 0x100000 - 800176e: 615a str r2, [r3, #20] + 80019b0: 4b0f ldr r3, [pc, #60] ; (80019f0 ) + 80019b2: f44f 1280 mov.w r2, #1048576 ; 0x100000 + 80019b6: 615a str r2, [r3, #20] hcan2.Init.TimeTriggeredMode = DISABLE; - 8001770: 4b0d ldr r3, [pc, #52] ; (80017a8 ) - 8001772: 2200 movs r2, #0 - 8001774: 761a strb r2, [r3, #24] + 80019b8: 4b0d ldr r3, [pc, #52] ; (80019f0 ) + 80019ba: 2200 movs r2, #0 + 80019bc: 761a strb r2, [r3, #24] hcan2.Init.AutoBusOff = ENABLE; - 8001776: 4b0c ldr r3, [pc, #48] ; (80017a8 ) - 8001778: 2201 movs r2, #1 - 800177a: 765a strb r2, [r3, #25] + 80019be: 4b0c ldr r3, [pc, #48] ; (80019f0 ) + 80019c0: 2201 movs r2, #1 + 80019c2: 765a strb r2, [r3, #25] hcan2.Init.AutoWakeUp = ENABLE; - 800177c: 4b0a ldr r3, [pc, #40] ; (80017a8 ) - 800177e: 2201 movs r2, #1 - 8001780: 769a strb r2, [r3, #26] + 80019c4: 4b0a ldr r3, [pc, #40] ; (80019f0 ) + 80019c6: 2201 movs r2, #1 + 80019c8: 769a strb r2, [r3, #26] hcan2.Init.AutoRetransmission = ENABLE; - 8001782: 4b09 ldr r3, [pc, #36] ; (80017a8 ) - 8001784: 2201 movs r2, #1 - 8001786: 76da strb r2, [r3, #27] + 80019ca: 4b09 ldr r3, [pc, #36] ; (80019f0 ) + 80019cc: 2201 movs r2, #1 + 80019ce: 76da strb r2, [r3, #27] hcan2.Init.ReceiveFifoLocked = DISABLE; - 8001788: 4b07 ldr r3, [pc, #28] ; (80017a8 ) - 800178a: 2200 movs r2, #0 - 800178c: 771a strb r2, [r3, #28] + 80019d0: 4b07 ldr r3, [pc, #28] ; (80019f0 ) + 80019d2: 2200 movs r2, #0 + 80019d4: 771a strb r2, [r3, #28] hcan2.Init.TransmitFifoPriority = ENABLE; - 800178e: 4b06 ldr r3, [pc, #24] ; (80017a8 ) - 8001790: 2201 movs r2, #1 - 8001792: 775a strb r2, [r3, #29] + 80019d6: 4b06 ldr r3, [pc, #24] ; (80019f0 ) + 80019d8: 2201 movs r2, #1 + 80019da: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan2) != HAL_OK) - 8001794: 4804 ldr r0, [pc, #16] ; (80017a8 ) - 8001796: f004 f8df bl 8005958 - 800179a: 4603 mov r3, r0 - 800179c: 2b00 cmp r3, #0 - 800179e: d001 beq.n 80017a4 + 80019dc: 4804 ldr r0, [pc, #16] ; (80019f0 ) + 80019de: f004 f8f1 bl 8005bc4 + 80019e2: 4603 mov r3, r0 + 80019e4: 2b00 cmp r3, #0 + 80019e6: d001 beq.n 80019ec { Error_Handler(); - 80017a0: f002 ff84 bl 80046ac + 80019e8: f002 ff96 bl 8004918 } /* USER CODE BEGIN CAN2_Init 2 */ /* USER CODE END CAN2_Init 2 */ } - 80017a4: bf00 nop - 80017a6: bd80 pop {r7, pc} - 80017a8: 200002b8 .word 0x200002b8 - 80017ac: 40006800 .word 0x40006800 + 80019ec: bf00 nop + 80019ee: bd80 pop {r7, pc} + 80019f0: 200002b8 .word 0x200002b8 + 80019f4: 40006800 .word 0x40006800 -080017b0 : +080019f8 : static uint32_t HAL_RCC_CAN1_CLK_ENABLED=0; void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) { - 80017b0: b580 push {r7, lr} - 80017b2: b08e sub sp, #56 ; 0x38 - 80017b4: af00 add r7, sp, #0 - 80017b6: 6078 str r0, [r7, #4] + 80019f8: b580 push {r7, lr} + 80019fa: b08e sub sp, #56 ; 0x38 + 80019fc: af00 add r7, sp, #0 + 80019fe: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80017b8: f107 0320 add.w r3, r7, #32 - 80017bc: 2200 movs r2, #0 - 80017be: 601a str r2, [r3, #0] - 80017c0: 605a str r2, [r3, #4] - 80017c2: 609a str r2, [r3, #8] - 80017c4: 60da str r2, [r3, #12] + 8001a00: f107 0320 add.w r3, r7, #32 + 8001a04: 2200 movs r2, #0 + 8001a06: 601a str r2, [r3, #0] + 8001a08: 605a str r2, [r3, #4] + 8001a0a: 609a str r2, [r3, #8] + 8001a0c: 60da str r2, [r3, #12] if(canHandle->Instance==CAN1) - 80017c6: 687b ldr r3, [r7, #4] - 80017c8: 681b ldr r3, [r3, #0] - 80017ca: 4a61 ldr r2, [pc, #388] ; (8001950 ) - 80017cc: 4293 cmp r3, r2 - 80017ce: d153 bne.n 8001878 + 8001a0e: 687b ldr r3, [r7, #4] + 8001a10: 681b ldr r3, [r3, #0] + 8001a12: 4a61 ldr r2, [pc, #388] ; (8001b98 ) + 8001a14: 4293 cmp r3, r2 + 8001a16: d153 bne.n 8001ac0 { /* USER CODE BEGIN CAN1_MspInit 0 */ /* USER CODE END CAN1_MspInit 0 */ /* CAN1 clock enable */ HAL_RCC_CAN1_CLK_ENABLED++; - 80017d0: 4b60 ldr r3, [pc, #384] ; (8001954 ) - 80017d2: 681b ldr r3, [r3, #0] - 80017d4: 3301 adds r3, #1 - 80017d6: 4a5f ldr r2, [pc, #380] ; (8001954 ) - 80017d8: 6013 str r3, [r2, #0] + 8001a18: 4b60 ldr r3, [pc, #384] ; (8001b9c ) + 8001a1a: 681b ldr r3, [r3, #0] + 8001a1c: 3301 adds r3, #1 + 8001a1e: 4a5f ldr r2, [pc, #380] ; (8001b9c ) + 8001a20: 6013 str r3, [r2, #0] if(HAL_RCC_CAN1_CLK_ENABLED==1){ - 80017da: 4b5e ldr r3, [pc, #376] ; (8001954 ) - 80017dc: 681b ldr r3, [r3, #0] - 80017de: 2b01 cmp r3, #1 - 80017e0: d10b bne.n 80017fa + 8001a22: 4b5e ldr r3, [pc, #376] ; (8001b9c ) + 8001a24: 681b ldr r3, [r3, #0] + 8001a26: 2b01 cmp r3, #1 + 8001a28: d10b bne.n 8001a42 __HAL_RCC_CAN1_CLK_ENABLE(); - 80017e2: 4b5d ldr r3, [pc, #372] ; (8001958 ) - 80017e4: 69db ldr r3, [r3, #28] - 80017e6: 4a5c ldr r2, [pc, #368] ; (8001958 ) - 80017e8: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 - 80017ec: 61d3 str r3, [r2, #28] - 80017ee: 4b5a ldr r3, [pc, #360] ; (8001958 ) - 80017f0: 69db ldr r3, [r3, #28] - 80017f2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80017f6: 61fb str r3, [r7, #28] - 80017f8: 69fb ldr r3, [r7, #28] + 8001a2a: 4b5d ldr r3, [pc, #372] ; (8001ba0 ) + 8001a2c: 69db ldr r3, [r3, #28] + 8001a2e: 4a5c ldr r2, [pc, #368] ; (8001ba0 ) + 8001a30: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 + 8001a34: 61d3 str r3, [r2, #28] + 8001a36: 4b5a ldr r3, [pc, #360] ; (8001ba0 ) + 8001a38: 69db ldr r3, [r3, #28] + 8001a3a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8001a3e: 61fb str r3, [r7, #28] + 8001a40: 69fb ldr r3, [r7, #28] } __HAL_RCC_GPIOD_CLK_ENABLE(); - 80017fa: 4b57 ldr r3, [pc, #348] ; (8001958 ) - 80017fc: 699b ldr r3, [r3, #24] - 80017fe: 4a56 ldr r2, [pc, #344] ; (8001958 ) - 8001800: f043 0320 orr.w r3, r3, #32 - 8001804: 6193 str r3, [r2, #24] - 8001806: 4b54 ldr r3, [pc, #336] ; (8001958 ) - 8001808: 699b ldr r3, [r3, #24] - 800180a: f003 0320 and.w r3, r3, #32 - 800180e: 61bb str r3, [r7, #24] - 8001810: 69bb ldr r3, [r7, #24] + 8001a42: 4b57 ldr r3, [pc, #348] ; (8001ba0 ) + 8001a44: 699b ldr r3, [r3, #24] + 8001a46: 4a56 ldr r2, [pc, #344] ; (8001ba0 ) + 8001a48: f043 0320 orr.w r3, r3, #32 + 8001a4c: 6193 str r3, [r2, #24] + 8001a4e: 4b54 ldr r3, [pc, #336] ; (8001ba0 ) + 8001a50: 699b ldr r3, [r3, #24] + 8001a52: f003 0320 and.w r3, r3, #32 + 8001a56: 61bb str r3, [r7, #24] + 8001a58: 69bb ldr r3, [r7, #24] /**CAN1 GPIO Configuration PD0 ------> CAN1_RX PD1 ------> CAN1_TX */ GPIO_InitStruct.Pin = GPIO_PIN_0; - 8001812: 2301 movs r3, #1 - 8001814: 623b str r3, [r7, #32] + 8001a5a: 2301 movs r3, #1 + 8001a5c: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001816: 2300 movs r3, #0 - 8001818: 627b str r3, [r7, #36] ; 0x24 + 8001a5e: 2300 movs r3, #0 + 8001a60: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800181a: 2300 movs r3, #0 - 800181c: 62bb str r3, [r7, #40] ; 0x28 + 8001a62: 2300 movs r3, #0 + 8001a64: 62bb str r3, [r7, #40] ; 0x28 HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 800181e: f107 0320 add.w r3, r7, #32 - 8001822: 4619 mov r1, r3 - 8001824: 484d ldr r0, [pc, #308] ; (800195c ) - 8001826: f005 f993 bl 8006b50 + 8001a66: f107 0320 add.w r3, r7, #32 + 8001a6a: 4619 mov r1, r3 + 8001a6c: 484d ldr r0, [pc, #308] ; (8001ba4 ) + 8001a6e: f005 f9a5 bl 8006dbc GPIO_InitStruct.Pin = GPIO_PIN_1; - 800182a: 2302 movs r3, #2 - 800182c: 623b str r3, [r7, #32] + 8001a72: 2302 movs r3, #2 + 8001a74: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800182e: 2302 movs r3, #2 - 8001830: 627b str r3, [r7, #36] ; 0x24 + 8001a76: 2302 movs r3, #2 + 8001a78: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001832: 2303 movs r3, #3 - 8001834: 62fb str r3, [r7, #44] ; 0x2c + 8001a7a: 2303 movs r3, #3 + 8001a7c: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8001836: f107 0320 add.w r3, r7, #32 - 800183a: 4619 mov r1, r3 - 800183c: 4847 ldr r0, [pc, #284] ; (800195c ) - 800183e: f005 f987 bl 8006b50 + 8001a7e: f107 0320 add.w r3, r7, #32 + 8001a82: 4619 mov r1, r3 + 8001a84: 4847 ldr r0, [pc, #284] ; (8001ba4 ) + 8001a86: f005 f999 bl 8006dbc __HAL_AFIO_REMAP_CAN1_3(); - 8001842: 4b47 ldr r3, [pc, #284] ; (8001960 ) - 8001844: 685b ldr r3, [r3, #4] - 8001846: 633b str r3, [r7, #48] ; 0x30 - 8001848: 6b3b ldr r3, [r7, #48] ; 0x30 - 800184a: f423 43c0 bic.w r3, r3, #24576 ; 0x6000 - 800184e: 633b str r3, [r7, #48] ; 0x30 - 8001850: 6b3b ldr r3, [r7, #48] ; 0x30 - 8001852: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000 - 8001856: 633b str r3, [r7, #48] ; 0x30 - 8001858: 6b3b ldr r3, [r7, #48] ; 0x30 - 800185a: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 - 800185e: 633b str r3, [r7, #48] ; 0x30 - 8001860: 4a3f ldr r2, [pc, #252] ; (8001960 ) - 8001862: 6b3b ldr r3, [r7, #48] ; 0x30 - 8001864: 6053 str r3, [r2, #4] + 8001a8a: 4b47 ldr r3, [pc, #284] ; (8001ba8 ) + 8001a8c: 685b ldr r3, [r3, #4] + 8001a8e: 633b str r3, [r7, #48] ; 0x30 + 8001a90: 6b3b ldr r3, [r7, #48] ; 0x30 + 8001a92: f423 43c0 bic.w r3, r3, #24576 ; 0x6000 + 8001a96: 633b str r3, [r7, #48] ; 0x30 + 8001a98: 6b3b ldr r3, [r7, #48] ; 0x30 + 8001a9a: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000 + 8001a9e: 633b str r3, [r7, #48] ; 0x30 + 8001aa0: 6b3b ldr r3, [r7, #48] ; 0x30 + 8001aa2: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 + 8001aa6: 633b str r3, [r7, #48] ; 0x30 + 8001aa8: 4a3f ldr r2, [pc, #252] ; (8001ba8 ) + 8001aaa: 6b3b ldr r3, [r7, #48] ; 0x30 + 8001aac: 6053 str r3, [r2, #4] /* CAN1 interrupt Init */ HAL_NVIC_SetPriority(CAN1_RX0_IRQn, 0, 0); - 8001866: 2200 movs r2, #0 - 8001868: 2100 movs r1, #0 - 800186a: 2014 movs r0, #20 - 800186c: f004 fff7 bl 800685e + 8001aae: 2200 movs r2, #0 + 8001ab0: 2100 movs r1, #0 + 8001ab2: 2014 movs r0, #20 + 8001ab4: f005 f809 bl 8006aca HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn); - 8001870: 2014 movs r0, #20 - 8001872: f005 f810 bl 8006896 + 8001ab8: 2014 movs r0, #20 + 8001aba: f005 f822 bl 8006b02 HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); /* USER CODE BEGIN CAN2_MspInit 1 */ /* USER CODE END CAN2_MspInit 1 */ } } - 8001876: e067 b.n 8001948 + 8001abe: e067 b.n 8001b90 else if(canHandle->Instance==CAN2) - 8001878: 687b ldr r3, [r7, #4] - 800187a: 681b ldr r3, [r3, #0] - 800187c: 4a39 ldr r2, [pc, #228] ; (8001964 ) - 800187e: 4293 cmp r3, r2 - 8001880: d162 bne.n 8001948 + 8001ac0: 687b ldr r3, [r7, #4] + 8001ac2: 681b ldr r3, [r3, #0] + 8001ac4: 4a39 ldr r2, [pc, #228] ; (8001bac ) + 8001ac6: 4293 cmp r3, r2 + 8001ac8: d162 bne.n 8001b90 __HAL_RCC_CAN2_CLK_ENABLE(); - 8001882: 4b35 ldr r3, [pc, #212] ; (8001958 ) - 8001884: 69db ldr r3, [r3, #28] - 8001886: 4a34 ldr r2, [pc, #208] ; (8001958 ) - 8001888: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 800188c: 61d3 str r3, [r2, #28] - 800188e: 4b32 ldr r3, [pc, #200] ; (8001958 ) - 8001890: 69db ldr r3, [r3, #28] - 8001892: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 8001896: 617b str r3, [r7, #20] - 8001898: 697b ldr r3, [r7, #20] + 8001aca: 4b35 ldr r3, [pc, #212] ; (8001ba0 ) + 8001acc: 69db ldr r3, [r3, #28] + 8001ace: 4a34 ldr r2, [pc, #208] ; (8001ba0 ) + 8001ad0: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 8001ad4: 61d3 str r3, [r2, #28] + 8001ad6: 4b32 ldr r3, [pc, #200] ; (8001ba0 ) + 8001ad8: 69db ldr r3, [r3, #28] + 8001ada: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 8001ade: 617b str r3, [r7, #20] + 8001ae0: 697b ldr r3, [r7, #20] HAL_RCC_CAN1_CLK_ENABLED++; - 800189a: 4b2e ldr r3, [pc, #184] ; (8001954 ) - 800189c: 681b ldr r3, [r3, #0] - 800189e: 3301 adds r3, #1 - 80018a0: 4a2c ldr r2, [pc, #176] ; (8001954 ) - 80018a2: 6013 str r3, [r2, #0] + 8001ae2: 4b2e ldr r3, [pc, #184] ; (8001b9c ) + 8001ae4: 681b ldr r3, [r3, #0] + 8001ae6: 3301 adds r3, #1 + 8001ae8: 4a2c ldr r2, [pc, #176] ; (8001b9c ) + 8001aea: 6013 str r3, [r2, #0] if(HAL_RCC_CAN1_CLK_ENABLED==1){ - 80018a4: 4b2b ldr r3, [pc, #172] ; (8001954 ) - 80018a6: 681b ldr r3, [r3, #0] - 80018a8: 2b01 cmp r3, #1 - 80018aa: d10b bne.n 80018c4 + 8001aec: 4b2b ldr r3, [pc, #172] ; (8001b9c ) + 8001aee: 681b ldr r3, [r3, #0] + 8001af0: 2b01 cmp r3, #1 + 8001af2: d10b bne.n 8001b0c __HAL_RCC_CAN1_CLK_ENABLE(); - 80018ac: 4b2a ldr r3, [pc, #168] ; (8001958 ) - 80018ae: 69db ldr r3, [r3, #28] - 80018b0: 4a29 ldr r2, [pc, #164] ; (8001958 ) - 80018b2: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 - 80018b6: 61d3 str r3, [r2, #28] - 80018b8: 4b27 ldr r3, [pc, #156] ; (8001958 ) - 80018ba: 69db ldr r3, [r3, #28] - 80018bc: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80018c0: 613b str r3, [r7, #16] - 80018c2: 693b ldr r3, [r7, #16] + 8001af4: 4b2a ldr r3, [pc, #168] ; (8001ba0 ) + 8001af6: 69db ldr r3, [r3, #28] + 8001af8: 4a29 ldr r2, [pc, #164] ; (8001ba0 ) + 8001afa: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 + 8001afe: 61d3 str r3, [r2, #28] + 8001b00: 4b27 ldr r3, [pc, #156] ; (8001ba0 ) + 8001b02: 69db ldr r3, [r3, #28] + 8001b04: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8001b08: 613b str r3, [r7, #16] + 8001b0a: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); - 80018c4: 4b24 ldr r3, [pc, #144] ; (8001958 ) - 80018c6: 699b ldr r3, [r3, #24] - 80018c8: 4a23 ldr r2, [pc, #140] ; (8001958 ) - 80018ca: f043 0308 orr.w r3, r3, #8 - 80018ce: 6193 str r3, [r2, #24] - 80018d0: 4b21 ldr r3, [pc, #132] ; (8001958 ) - 80018d2: 699b ldr r3, [r3, #24] - 80018d4: f003 0308 and.w r3, r3, #8 - 80018d8: 60fb str r3, [r7, #12] - 80018da: 68fb ldr r3, [r7, #12] + 8001b0c: 4b24 ldr r3, [pc, #144] ; (8001ba0 ) + 8001b0e: 699b ldr r3, [r3, #24] + 8001b10: 4a23 ldr r2, [pc, #140] ; (8001ba0 ) + 8001b12: f043 0308 orr.w r3, r3, #8 + 8001b16: 6193 str r3, [r2, #24] + 8001b18: 4b21 ldr r3, [pc, #132] ; (8001ba0 ) + 8001b1a: 699b ldr r3, [r3, #24] + 8001b1c: f003 0308 and.w r3, r3, #8 + 8001b20: 60fb str r3, [r7, #12] + 8001b22: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_5; - 80018dc: 2320 movs r3, #32 - 80018de: 623b str r3, [r7, #32] + 8001b24: 2320 movs r3, #32 + 8001b26: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 80018e0: 2300 movs r3, #0 - 80018e2: 627b str r3, [r7, #36] ; 0x24 + 8001b28: 2300 movs r3, #0 + 8001b2a: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80018e4: 2300 movs r3, #0 - 80018e6: 62bb str r3, [r7, #40] ; 0x28 + 8001b2c: 2300 movs r3, #0 + 8001b2e: 62bb str r3, [r7, #40] ; 0x28 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80018e8: f107 0320 add.w r3, r7, #32 - 80018ec: 4619 mov r1, r3 - 80018ee: 481e ldr r0, [pc, #120] ; (8001968 ) - 80018f0: f005 f92e bl 8006b50 + 8001b30: f107 0320 add.w r3, r7, #32 + 8001b34: 4619 mov r1, r3 + 8001b36: 481e ldr r0, [pc, #120] ; (8001bb0 ) + 8001b38: f005 f940 bl 8006dbc GPIO_InitStruct.Pin = GPIO_PIN_6; - 80018f4: 2340 movs r3, #64 ; 0x40 - 80018f6: 623b str r3, [r7, #32] + 8001b3c: 2340 movs r3, #64 ; 0x40 + 8001b3e: 623b str r3, [r7, #32] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80018f8: 2302 movs r3, #2 - 80018fa: 627b str r3, [r7, #36] ; 0x24 + 8001b40: 2302 movs r3, #2 + 8001b42: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 80018fc: 2303 movs r3, #3 - 80018fe: 62fb str r3, [r7, #44] ; 0x2c + 8001b44: 2303 movs r3, #3 + 8001b46: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001900: f107 0320 add.w r3, r7, #32 - 8001904: 4619 mov r1, r3 - 8001906: 4818 ldr r0, [pc, #96] ; (8001968 ) - 8001908: f005 f922 bl 8006b50 + 8001b48: f107 0320 add.w r3, r7, #32 + 8001b4c: 4619 mov r1, r3 + 8001b4e: 4818 ldr r0, [pc, #96] ; (8001bb0 ) + 8001b50: f005 f934 bl 8006dbc __HAL_AFIO_REMAP_CAN2_ENABLE(); - 800190c: 4b14 ldr r3, [pc, #80] ; (8001960 ) - 800190e: 685b ldr r3, [r3, #4] - 8001910: 637b str r3, [r7, #52] ; 0x34 - 8001912: 6b7b ldr r3, [r7, #52] ; 0x34 - 8001914: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000 - 8001918: 637b str r3, [r7, #52] ; 0x34 - 800191a: 6b7b ldr r3, [r7, #52] ; 0x34 - 800191c: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 - 8001920: 637b str r3, [r7, #52] ; 0x34 - 8001922: 4a0f ldr r2, [pc, #60] ; (8001960 ) - 8001924: 6b7b ldr r3, [r7, #52] ; 0x34 - 8001926: 6053 str r3, [r2, #4] + 8001b54: 4b14 ldr r3, [pc, #80] ; (8001ba8 ) + 8001b56: 685b ldr r3, [r3, #4] + 8001b58: 637b str r3, [r7, #52] ; 0x34 + 8001b5a: 6b7b ldr r3, [r7, #52] ; 0x34 + 8001b5c: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000 + 8001b60: 637b str r3, [r7, #52] ; 0x34 + 8001b62: 6b7b ldr r3, [r7, #52] ; 0x34 + 8001b64: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 + 8001b68: 637b str r3, [r7, #52] ; 0x34 + 8001b6a: 4a0f ldr r2, [pc, #60] ; (8001ba8 ) + 8001b6c: 6b7b ldr r3, [r7, #52] ; 0x34 + 8001b6e: 6053 str r3, [r2, #4] HAL_NVIC_SetPriority(CAN2_TX_IRQn, 0, 0); - 8001928: 2200 movs r2, #0 - 800192a: 2100 movs r1, #0 - 800192c: 203f movs r0, #63 ; 0x3f - 800192e: f004 ff96 bl 800685e + 8001b70: 2200 movs r2, #0 + 8001b72: 2100 movs r1, #0 + 8001b74: 203f movs r0, #63 ; 0x3f + 8001b76: f004 ffa8 bl 8006aca HAL_NVIC_EnableIRQ(CAN2_TX_IRQn); - 8001932: 203f movs r0, #63 ; 0x3f - 8001934: f004 ffaf bl 8006896 + 8001b7a: 203f movs r0, #63 ; 0x3f + 8001b7c: f004 ffc1 bl 8006b02 HAL_NVIC_SetPriority(CAN2_RX1_IRQn, 0, 0); - 8001938: 2200 movs r2, #0 - 800193a: 2100 movs r1, #0 - 800193c: 2041 movs r0, #65 ; 0x41 - 800193e: f004 ff8e bl 800685e + 8001b80: 2200 movs r2, #0 + 8001b82: 2100 movs r1, #0 + 8001b84: 2041 movs r0, #65 ; 0x41 + 8001b86: f004 ffa0 bl 8006aca HAL_NVIC_EnableIRQ(CAN2_RX1_IRQn); - 8001942: 2041 movs r0, #65 ; 0x41 - 8001944: f004 ffa7 bl 8006896 + 8001b8a: 2041 movs r0, #65 ; 0x41 + 8001b8c: f004 ffb9 bl 8006b02 } - 8001948: bf00 nop - 800194a: 3738 adds r7, #56 ; 0x38 - 800194c: 46bd mov sp, r7 - 800194e: bd80 pop {r7, pc} - 8001950: 40006400 .word 0x40006400 - 8001954: 200002e0 .word 0x200002e0 - 8001958: 40021000 .word 0x40021000 - 800195c: 40011400 .word 0x40011400 - 8001960: 40010000 .word 0x40010000 - 8001964: 40006800 .word 0x40006800 - 8001968: 40010c00 .word 0x40010c00 + 8001b90: bf00 nop + 8001b92: 3738 adds r7, #56 ; 0x38 + 8001b94: 46bd mov sp, r7 + 8001b96: bd80 pop {r7, pc} + 8001b98: 40006400 .word 0x40006400 + 8001b9c: 200002e0 .word 0x200002e0 + 8001ba0: 40021000 .word 0x40021000 + 8001ba4: 40011400 .word 0x40011400 + 8001ba8: 40010000 .word 0x40010000 + 8001bac: 40006800 .word 0x40006800 + 8001bb0: 40010c00 .word 0x40010c00 -0800196c : +08001bb4 : extern GBT_EDCAN_Output_t GBT_EDCAN_Output; extern GBT_EDCAN_Input_t GBT_EDCAN_Input; void GBT_Init(){ - 800196c: b580 push {r7, lr} - 800196e: af00 add r7, sp, #0 + 8001bb4: b580 push {r7, lr} + 8001bb6: af00 add r7, sp, #0 GBT_State = GBT_DISABLED; - 8001970: 4b03 ldr r3, [pc, #12] ; (8001980 ) - 8001972: 2210 movs r2, #16 - 8001974: 701a strb r2, [r3, #0] + 8001bb8: 4b03 ldr r3, [pc, #12] ; (8001bc8 ) + 8001bba: 2210 movs r2, #16 + 8001bbc: 701a strb r2, [r3, #0] GBT_EDCAN_Input.chargeControl == CHARGING_NOT_ALLOWED; GBT_Reset(); - 8001976: f000 fbe5 bl 8002144 + 8001bbe: f000 fbe5 bl 800238c } - 800197a: bf00 nop - 800197c: bd80 pop {r7, pc} - 800197e: bf00 nop - 8001980: 200002e4 .word 0x200002e4 + 8001bc2: bf00 nop + 8001bc4: bd80 pop {r7, pc} + 8001bc6: bf00 nop + 8001bc8: 200002e4 .word 0x200002e4 -08001984 : +08001bcc : void GBT_ChargerTask(){ - 8001984: b5b0 push {r4, r5, r7, lr} - 8001986: b082 sub sp, #8 - 8001988: af00 add r7, sp, #0 + 8001bcc: b5b0 push {r4, r5, r7, lr} + 8001bce: b082 sub sp, #8 + 8001bd0: af00 add r7, sp, #0 //GBT_LockTask(); if(j_rx.state == 2){ - 800198a: 4bb3 ldr r3, [pc, #716] ; (8001c58 ) - 800198c: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001990: 2b02 cmp r3, #2 - 8001992: f040 80c9 bne.w 8001b28 + 8001bd2: 4bb3 ldr r3, [pc, #716] ; (8001ea0 ) + 8001bd4: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001bd8: 2b02 cmp r3, #2 + 8001bda: f040 80c9 bne.w 8001d70 switch (j_rx.PGN){ - 8001996: 4bb0 ldr r3, [pc, #704] ; (8001c58 ) - 8001998: f8d3 3100 ldr.w r3, [r3, #256] ; 0x100 - 800199c: f5b3 5f1c cmp.w r3, #9984 ; 0x2700 - 80019a0: d046 beq.n 8001a30 - 80019a2: f5b3 5f1c cmp.w r3, #9984 ; 0x2700 - 80019a6: f200 80bb bhi.w 8001b20 - 80019aa: f5b3 5fe0 cmp.w r3, #7168 ; 0x1c00 - 80019ae: f000 80ae beq.w 8001b0e - 80019b2: f5b3 5fe0 cmp.w r3, #7168 ; 0x1c00 - 80019b6: f200 80b3 bhi.w 8001b20 - 80019ba: f5b3 5fb8 cmp.w r3, #5888 ; 0x1700 - 80019be: f000 80aa beq.w 8001b16 - 80019c2: f5b3 5fb8 cmp.w r3, #5888 ; 0x1700 - 80019c6: f200 80ab bhi.w 8001b20 - 80019ca: f5b3 5fb0 cmp.w r3, #5632 ; 0x1600 - 80019ce: f000 80a4 beq.w 8001b1a - 80019d2: f5b3 5fb0 cmp.w r3, #5632 ; 0x1600 - 80019d6: f200 80a3 bhi.w 8001b20 - 80019da: f5b3 5fa8 cmp.w r3, #5376 ; 0x1500 - 80019de: f000 809e beq.w 8001b1e - 80019e2: f5b3 5fa8 cmp.w r3, #5376 ; 0x1500 - 80019e6: f200 809b bhi.w 8001b20 - 80019ea: f5b3 5f98 cmp.w r3, #4864 ; 0x1300 - 80019ee: f000 8083 beq.w 8001af8 - 80019f2: f5b3 5f98 cmp.w r3, #4864 ; 0x1300 - 80019f6: f200 8093 bhi.w 8001b20 - 80019fa: f5b3 5f88 cmp.w r3, #4352 ; 0x1100 - 80019fe: d064 beq.n 8001aca - 8001a00: f5b3 5f88 cmp.w r3, #4352 ; 0x1100 - 8001a04: f200 808c bhi.w 8001b20 - 8001a08: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8001a0c: d045 beq.n 8001a9a - 8001a0e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8001a12: f200 8085 bhi.w 8001b20 - 8001a16: f5b3 6f10 cmp.w r3, #2304 ; 0x900 - 8001a1a: d02b beq.n 8001a74 - 8001a1c: f5b3 6f10 cmp.w r3, #2304 ; 0x900 - 8001a20: d87e bhi.n 8001b20 - 8001a22: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8001a26: d00b beq.n 8001a40 - 8001a28: f5b3 6fc0 cmp.w r3, #1536 ; 0x600 - 8001a2c: d018 beq.n 8001a60 - 8001a2e: e077 b.n 8001b20 + 8001bde: 4bb0 ldr r3, [pc, #704] ; (8001ea0 ) + 8001be0: f8d3 3100 ldr.w r3, [r3, #256] ; 0x100 + 8001be4: f5b3 5f1c cmp.w r3, #9984 ; 0x2700 + 8001be8: d046 beq.n 8001c78 + 8001bea: f5b3 5f1c cmp.w r3, #9984 ; 0x2700 + 8001bee: f200 80bb bhi.w 8001d68 + 8001bf2: f5b3 5fe0 cmp.w r3, #7168 ; 0x1c00 + 8001bf6: f000 80ae beq.w 8001d56 + 8001bfa: f5b3 5fe0 cmp.w r3, #7168 ; 0x1c00 + 8001bfe: f200 80b3 bhi.w 8001d68 + 8001c02: f5b3 5fb8 cmp.w r3, #5888 ; 0x1700 + 8001c06: f000 80aa beq.w 8001d5e + 8001c0a: f5b3 5fb8 cmp.w r3, #5888 ; 0x1700 + 8001c0e: f200 80ab bhi.w 8001d68 + 8001c12: f5b3 5fb0 cmp.w r3, #5632 ; 0x1600 + 8001c16: f000 80a4 beq.w 8001d62 + 8001c1a: f5b3 5fb0 cmp.w r3, #5632 ; 0x1600 + 8001c1e: f200 80a3 bhi.w 8001d68 + 8001c22: f5b3 5fa8 cmp.w r3, #5376 ; 0x1500 + 8001c26: f000 809e beq.w 8001d66 + 8001c2a: f5b3 5fa8 cmp.w r3, #5376 ; 0x1500 + 8001c2e: f200 809b bhi.w 8001d68 + 8001c32: f5b3 5f98 cmp.w r3, #4864 ; 0x1300 + 8001c36: f000 8083 beq.w 8001d40 + 8001c3a: f5b3 5f98 cmp.w r3, #4864 ; 0x1300 + 8001c3e: f200 8093 bhi.w 8001d68 + 8001c42: f5b3 5f88 cmp.w r3, #4352 ; 0x1100 + 8001c46: d064 beq.n 8001d12 + 8001c48: f5b3 5f88 cmp.w r3, #4352 ; 0x1100 + 8001c4c: f200 808c bhi.w 8001d68 + 8001c50: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 8001c54: d045 beq.n 8001ce2 + 8001c56: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 8001c5a: f200 8085 bhi.w 8001d68 + 8001c5e: f5b3 6f10 cmp.w r3, #2304 ; 0x900 + 8001c62: d02b beq.n 8001cbc + 8001c64: f5b3 6f10 cmp.w r3, #2304 ; 0x900 + 8001c68: d87e bhi.n 8001d68 + 8001c6a: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8001c6e: d00b beq.n 8001c88 + 8001c70: f5b3 6fc0 cmp.w r3, #1536 ; 0x600 + 8001c74: d018 beq.n 8001ca8 + 8001c76: e077 b.n 8001d68 case 0x2700: //PGN BHM GBT_BHM_recv = 1; - 8001a30: 4b8a ldr r3, [pc, #552] ; (8001c5c ) - 8001a32: 2201 movs r2, #1 - 8001a34: 701a strb r2, [r3, #0] - 8001a36: 4b88 ldr r3, [pc, #544] ; (8001c58 ) - 8001a38: 881a ldrh r2, [r3, #0] + 8001c78: 4b8a ldr r3, [pc, #552] ; (8001ea4 ) + 8001c7a: 2201 movs r2, #1 + 8001c7c: 701a strb r2, [r3, #0] + 8001c7e: 4b88 ldr r3, [pc, #544] ; (8001ea0 ) + 8001c80: 881a ldrh r2, [r3, #0] memcpy (&GBT_MaxVoltage, j_rx.data, sizeof(GBT_MaxVoltage)); - 8001a3a: 4b89 ldr r3, [pc, #548] ; (8001c60 ) - 8001a3c: 801a strh r2, [r3, #0] + 8001c82: 4b89 ldr r3, [pc, #548] ; (8001ea8 ) + 8001c84: 801a strh r2, [r3, #0] break; - 8001a3e: e06f b.n 8001b20 + 8001c86: e06f b.n 8001d68 case 0x0200: //PGN BRM LONG GBT_BAT_INFO_recv = 1; - 8001a40: 4b88 ldr r3, [pc, #544] ; (8001c64 ) - 8001a42: 2201 movs r2, #1 - 8001a44: 701a strb r2, [r3, #0] + 8001c88: 4b88 ldr r3, [pc, #544] ; (8001eac ) + 8001c8a: 2201 movs r2, #1 + 8001c8c: 701a strb r2, [r3, #0] memcpy (&GBT_EVInfo, j_rx.data, sizeof(GBT_EVInfo)); - 8001a46: 4a88 ldr r2, [pc, #544] ; (8001c68 ) - 8001a48: 4b83 ldr r3, [pc, #524] ; (8001c58 ) - 8001a4a: 4614 mov r4, r2 - 8001a4c: 461d mov r5, r3 - 8001a4e: cd0f ldmia r5!, {r0, r1, r2, r3} - 8001a50: c40f stmia r4!, {r0, r1, r2, r3} - 8001a52: cd0f ldmia r5!, {r0, r1, r2, r3} - 8001a54: c40f stmia r4!, {r0, r1, r2, r3} - 8001a56: cd0f ldmia r5!, {r0, r1, r2, r3} - 8001a58: c40f stmia r4!, {r0, r1, r2, r3} - 8001a5a: 682b ldr r3, [r5, #0] - 8001a5c: 7023 strb r3, [r4, #0] + 8001c8e: 4a88 ldr r2, [pc, #544] ; (8001eb0 ) + 8001c90: 4b83 ldr r3, [pc, #524] ; (8001ea0 ) + 8001c92: 4614 mov r4, r2 + 8001c94: 461d mov r5, r3 + 8001c96: cd0f ldmia r5!, {r0, r1, r2, r3} + 8001c98: c40f stmia r4!, {r0, r1, r2, r3} + 8001c9a: cd0f ldmia r5!, {r0, r1, r2, r3} + 8001c9c: c40f stmia r4!, {r0, r1, r2, r3} + 8001c9e: cd0f ldmia r5!, {r0, r1, r2, r3} + 8001ca0: c40f stmia r4!, {r0, r1, r2, r3} + 8001ca2: 682b ldr r3, [r5, #0] + 8001ca4: 7023 strb r3, [r4, #0] break; - 8001a5e: e05f b.n 8001b20 + 8001ca6: e05f b.n 8001d68 case 0x0600: //PGN BCP LONG GBT_BAT_STAT_recv = 1; - 8001a60: 4b82 ldr r3, [pc, #520] ; (8001c6c ) - 8001a62: 2201 movs r2, #1 - 8001a64: 701a strb r2, [r3, #0] + 8001ca8: 4b82 ldr r3, [pc, #520] ; (8001eb4 ) + 8001caa: 2201 movs r2, #1 + 8001cac: 701a strb r2, [r3, #0] memcpy (&GBT_BATStat, j_rx.data, sizeof(GBT_BATStat)); - 8001a66: 4a82 ldr r2, [pc, #520] ; (8001c70 ) - 8001a68: 4b7b ldr r3, [pc, #492] ; (8001c58 ) - 8001a6a: 4614 mov r4, r2 - 8001a6c: cb0f ldmia r3, {r0, r1, r2, r3} - 8001a6e: c407 stmia r4!, {r0, r1, r2} - 8001a70: 7023 strb r3, [r4, #0] + 8001cae: 4a82 ldr r2, [pc, #520] ; (8001eb8 ) + 8001cb0: 4b7b ldr r3, [pc, #492] ; (8001ea0 ) + 8001cb2: 4614 mov r4, r2 + 8001cb4: cb0f ldmia r3, {r0, r1, r2, r3} + 8001cb6: c407 stmia r4!, {r0, r1, r2} + 8001cb8: 7023 strb r3, [r4, #0] break; - 8001a72: e055 b.n 8001b20 + 8001cba: e055 b.n 8001d68 case 0x0900: //PGN BRO GBT_BRO_recv = 1; - 8001a74: 4b7f ldr r3, [pc, #508] ; (8001c74 ) - 8001a76: 2201 movs r2, #1 - 8001a78: 701a strb r2, [r3, #0] + 8001cbc: 4b7f ldr r3, [pc, #508] ; (8001ebc ) + 8001cbe: 2201 movs r2, #1 + 8001cc0: 701a strb r2, [r3, #0] if(j_rx.data[0] == 0xAA) EV_ready = 1; - 8001a7a: 4b77 ldr r3, [pc, #476] ; (8001c58 ) - 8001a7c: 781b ldrb r3, [r3, #0] - 8001a7e: 2baa cmp r3, #170 ; 0xaa - 8001a80: d103 bne.n 8001a8a - 8001a82: 4b7d ldr r3, [pc, #500] ; (8001c78 ) - 8001a84: 2201 movs r2, #1 - 8001a86: 701a strb r2, [r3, #0] - 8001a88: e002 b.n 8001a90 + 8001cc2: 4b77 ldr r3, [pc, #476] ; (8001ea0 ) + 8001cc4: 781b ldrb r3, [r3, #0] + 8001cc6: 2baa cmp r3, #170 ; 0xaa + 8001cc8: d103 bne.n 8001cd2 + 8001cca: 4b7d ldr r3, [pc, #500] ; (8001ec0 ) + 8001ccc: 2201 movs r2, #1 + 8001cce: 701a strb r2, [r3, #0] + 8001cd0: e002 b.n 8001cd8 else EV_ready = 0; - 8001a8a: 4b7b ldr r3, [pc, #492] ; (8001c78 ) - 8001a8c: 2200 movs r2, #0 - 8001a8e: 701a strb r2, [r3, #0] + 8001cd2: 4b7b ldr r3, [pc, #492] ; (8001ec0 ) + 8001cd4: 2200 movs r2, #0 + 8001cd6: 701a strb r2, [r3, #0] GBT_BRO = j_rx.data[0]; - 8001a90: 4b71 ldr r3, [pc, #452] ; (8001c58 ) - 8001a92: 781a ldrb r2, [r3, #0] - 8001a94: 4b79 ldr r3, [pc, #484] ; (8001c7c ) - 8001a96: 701a strb r2, [r3, #0] + 8001cd8: 4b71 ldr r3, [pc, #452] ; (8001ea0 ) + 8001cda: 781a ldrb r2, [r3, #0] + 8001cdc: 4b79 ldr r3, [pc, #484] ; (8001ec4 ) + 8001cde: 701a strb r2, [r3, #0] break; - 8001a98: e042 b.n 8001b20 + 8001ce0: e042 b.n 8001d68 case 0x1000: //PGN BCL //TODO: power block memcpy (&GBT_ReqPower, j_rx.data, sizeof(GBT_ReqPower)); - 8001a9a: 4b79 ldr r3, [pc, #484] ; (8001c80 ) - 8001a9c: 4a6e ldr r2, [pc, #440] ; (8001c58 ) - 8001a9e: e892 0003 ldmia.w r2, {r0, r1} - 8001aa2: 6018 str r0, [r3, #0] - 8001aa4: 3304 adds r3, #4 - 8001aa6: 7019 strb r1, [r3, #0] + 8001ce2: 4b79 ldr r3, [pc, #484] ; (8001ec8 ) + 8001ce4: 4a6e ldr r2, [pc, #440] ; (8001ea0 ) + 8001ce6: e892 0003 ldmia.w r2, {r0, r1} + 8001cea: 6018 str r0, [r3, #0] + 8001cec: 3304 adds r3, #4 + 8001cee: 7019 strb r1, [r3, #0] uint16_t volt=GBT_ReqPower.requestedVoltage; - 8001aa8: 4b75 ldr r3, [pc, #468] ; (8001c80 ) - 8001aaa: 881b ldrh r3, [r3, #0] - 8001aac: 80fb strh r3, [r7, #6] + 8001cf0: 4b75 ldr r3, [pc, #468] ; (8001ec8 ) + 8001cf2: 881b ldrh r3, [r3, #0] + 8001cf4: 80fb strh r3, [r7, #6] GBT_EDCAN_Output.requestedVoltage = volt; - 8001aae: 4b75 ldr r3, [pc, #468] ; (8001c84 ) - 8001ab0: 88fa ldrh r2, [r7, #6] - 8001ab2: f8a3 2001 strh.w r2, [r3, #1] + 8001cf6: 4b75 ldr r3, [pc, #468] ; (8001ecc ) + 8001cf8: 88fa ldrh r2, [r7, #6] + 8001cfa: f8a3 2001 strh.w r2, [r3, #1] uint16_t curr=4000-GBT_ReqPower.requestedCurrent; - 8001ab6: 4b72 ldr r3, [pc, #456] ; (8001c80 ) - 8001ab8: 885b ldrh r3, [r3, #2] - 8001aba: f5c3 637a rsb r3, r3, #4000 ; 0xfa0 - 8001abe: 80bb strh r3, [r7, #4] + 8001cfe: 4b72 ldr r3, [pc, #456] ; (8001ec8 ) + 8001d00: 885b ldrh r3, [r3, #2] + 8001d02: f5c3 637a rsb r3, r3, #4000 ; 0xfa0 + 8001d06: 80bb strh r3, [r7, #4] GBT_EDCAN_Output.requestedCurrent = curr; - 8001ac0: 4b70 ldr r3, [pc, #448] ; (8001c84 ) - 8001ac2: 88ba ldrh r2, [r7, #4] - 8001ac4: f8a3 2003 strh.w r2, [r3, #3] + 8001d08: 4b70 ldr r3, [pc, #448] ; (8001ecc ) + 8001d0a: 88ba ldrh r2, [r7, #4] + 8001d0c: f8a3 2003 strh.w r2, [r3, #3] break; - 8001ac8: e02a b.n 8001b20 + 8001d10: e02a b.n 8001d68 case 0x1100: //PGN BCS //TODO memcpy (&GBT_ChargingStatus, j_rx.data, sizeof(GBT_ChargingStatus)); - 8001aca: 4b6f ldr r3, [pc, #444] ; (8001c88 ) - 8001acc: 4a62 ldr r2, [pc, #392] ; (8001c58 ) - 8001ace: ca07 ldmia r2, {r0, r1, r2} - 8001ad0: c303 stmia r3!, {r0, r1} - 8001ad2: 801a strh r2, [r3, #0] - 8001ad4: 3302 adds r3, #2 - 8001ad6: 0c12 lsrs r2, r2, #16 - 8001ad8: 701a strb r2, [r3, #0] + 8001d12: 4b6f ldr r3, [pc, #444] ; (8001ed0 ) + 8001d14: 4a62 ldr r2, [pc, #392] ; (8001ea0 ) + 8001d16: ca07 ldmia r2, {r0, r1, r2} + 8001d18: c303 stmia r3!, {r0, r1} + 8001d1a: 801a strh r2, [r3, #0] + 8001d1c: 3302 adds r3, #2 + 8001d1e: 0c12 lsrs r2, r2, #16 + 8001d20: 701a strb r2, [r3, #0] GBT_EDCAN_Output.chargingRemainingTimeMin = GBT_ChargingStatus.estimatedRemainingChargingTime; - 8001ada: 4b6b ldr r3, [pc, #428] ; (8001c88 ) - 8001adc: f8b3 3009 ldrh.w r3, [r3, #9] - 8001ae0: b29a uxth r2, r3 - 8001ae2: 4b68 ldr r3, [pc, #416] ; (8001c84 ) - 8001ae4: f8a3 2007 strh.w r2, [r3, #7] + 8001d22: 4b6b ldr r3, [pc, #428] ; (8001ed0 ) + 8001d24: f8b3 3009 ldrh.w r3, [r3, #9] + 8001d28: b29a uxth r2, r3 + 8001d2a: 4b68 ldr r3, [pc, #416] ; (8001ecc ) + 8001d2c: f8a3 2007 strh.w r2, [r3, #7] GBT_EDCAN_Output.chargingPercentage = GBT_ChargingStatus.currentChargeState; - 8001ae8: 4b67 ldr r3, [pc, #412] ; (8001c88 ) - 8001aea: f8b3 3007 ldrh.w r3, [r3, #7] - 8001aee: b29b uxth r3, r3 - 8001af0: b2da uxtb r2, r3 - 8001af2: 4b64 ldr r3, [pc, #400] ; (8001c84 ) - 8001af4: 719a strb r2, [r3, #6] + 8001d30: 4b67 ldr r3, [pc, #412] ; (8001ed0 ) + 8001d32: f8b3 3007 ldrh.w r3, [r3, #7] + 8001d36: b29b uxth r3, r3 + 8001d38: b2da uxtb r2, r3 + 8001d3a: 4b64 ldr r3, [pc, #400] ; (8001ecc ) + 8001d3c: 719a strb r2, [r3, #6] break; - 8001af6: e013 b.n 8001b20 + 8001d3e: e013 b.n 8001d68 case 0x1300: //PGN BSM //TODO memcpy (&GBT_BatteryStatus, j_rx.data, sizeof(GBT_BatteryStatus)); - 8001af8: 4b64 ldr r3, [pc, #400] ; (8001c8c ) - 8001afa: 4a57 ldr r2, [pc, #348] ; (8001c58 ) - 8001afc: e892 0003 ldmia.w r2, {r0, r1} - 8001b00: 6018 str r0, [r3, #0] - 8001b02: 3304 adds r3, #4 - 8001b04: 8019 strh r1, [r3, #0] - 8001b06: 3302 adds r3, #2 - 8001b08: 0c0a lsrs r2, r1, #16 - 8001b0a: 701a strb r2, [r3, #0] + 8001d40: 4b64 ldr r3, [pc, #400] ; (8001ed4 ) + 8001d42: 4a57 ldr r2, [pc, #348] ; (8001ea0 ) + 8001d44: e892 0003 ldmia.w r2, {r0, r1} + 8001d48: 6018 str r0, [r3, #0] + 8001d4a: 3304 adds r3, #4 + 8001d4c: 8019 strh r1, [r3, #0] + 8001d4e: 3302 adds r3, #2 + 8001d50: 0c0a lsrs r2, r1, #16 + 8001d52: 701a strb r2, [r3, #0] break; - 8001b0c: e008 b.n 8001b20 + 8001d54: e008 b.n 8001d68 // case 0x1900: //PGN BST // break; case 0x1C00: //PGN BSD //TODO SOC Voltage Temp GBT_BSD_recv = 1; - 8001b0e: 4b60 ldr r3, [pc, #384] ; (8001c90 ) - 8001b10: 2201 movs r2, #1 - 8001b12: 701a strb r2, [r3, #0] + 8001d56: 4b60 ldr r3, [pc, #384] ; (8001ed8 ) + 8001d58: 2201 movs r2, #1 + 8001d5a: 701a strb r2, [r3, #0] break; - 8001b14: e004 b.n 8001b20 + 8001d5c: e004 b.n 8001d68 break; - 8001b16: bf00 nop - 8001b18: e002 b.n 8001b20 + 8001d5e: bf00 nop + 8001d60: e002 b.n 8001d68 break; - 8001b1a: bf00 nop - 8001b1c: e000 b.n 8001b20 + 8001d62: bf00 nop + 8001d64: e000 b.n 8001d68 break; - 8001b1e: bf00 nop + 8001d66: bf00 nop // break; //BSM BMV BMT BSP BST BSD BEM } j_rx.state = 0; - 8001b20: 4b4d ldr r3, [pc, #308] ; (8001c58 ) - 8001b22: 2200 movs r2, #0 - 8001b24: f883 210a strb.w r2, [r3, #266] ; 0x10a + 8001d68: 4b4d ldr r3, [pc, #308] ; (8001ea0 ) + 8001d6a: 2200 movs r2, #0 + 8001d6c: f883 210a strb.w r2, [r3, #266] ; 0x10a } if(GBT_delay>HAL_GetTick()){ - 8001b28: f003 f9e4 bl 8004ef4 - 8001b2c: 4602 mov r2, r0 - 8001b2e: 4b59 ldr r3, [pc, #356] ; (8001c94 ) - 8001b30: 681b ldr r3, [r3, #0] - 8001b32: 429a cmp r2, r3 - 8001b34: f0c0 81f4 bcc.w 8001f20 + 8001d70: f003 f9f6 bl 8005160 + 8001d74: 4602 mov r2, r0 + 8001d76: 4b59 ldr r3, [pc, #356] ; (8001edc ) + 8001d78: 681b ldr r3, [r3, #0] + 8001d7a: 429a cmp r2, r3 + 8001d7c: f0c0 81f4 bcc.w 8002168 //waiting }else switch (GBT_State){ - 8001b38: 4b57 ldr r3, [pc, #348] ; (8001c98 ) - 8001b3a: 781b ldrb r3, [r3, #0] - 8001b3c: 3b10 subs r3, #16 - 8001b3e: 2b14 cmp r3, #20 - 8001b40: f200 81d7 bhi.w 8001ef2 - 8001b44: a201 add r2, pc, #4 ; (adr r2, 8001b4c ) - 8001b46: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8001b4a: bf00 nop - 8001b4c: 08001ba1 .word 0x08001ba1 - 8001b50: 08001ef3 .word 0x08001ef3 - 8001b54: 08001ef3 .word 0x08001ef3 - 8001b58: 08001bbd .word 0x08001bbd - 8001b5c: 08001bcd .word 0x08001bcd - 8001b60: 08001c11 .word 0x08001c11 - 8001b64: 08001ca9 .word 0x08001ca9 - 8001b68: 08001cef .word 0x08001cef - 8001b6c: 08001d65 .word 0x08001d65 - 8001b70: 08001d93 .word 0x08001d93 - 8001b74: 08001ef3 .word 0x08001ef3 - 8001b78: 08001ef3 .word 0x08001ef3 - 8001b7c: 08001ef3 .word 0x08001ef3 - 8001b80: 08001ef3 .word 0x08001ef3 - 8001b84: 08001ef3 .word 0x08001ef3 - 8001b88: 08001ef3 .word 0x08001ef3 - 8001b8c: 08001df3 .word 0x08001df3 - 8001b90: 08001e77 .word 0x08001e77 - 8001b94: 08001eb1 .word 0x08001eb1 - 8001b98: 08001ed1 .word 0x08001ed1 - 8001b9c: 08001ee3 .word 0x08001ee3 + 8001d80: 4b57 ldr r3, [pc, #348] ; (8001ee0 ) + 8001d82: 781b ldrb r3, [r3, #0] + 8001d84: 3b10 subs r3, #16 + 8001d86: 2b14 cmp r3, #20 + 8001d88: f200 81d7 bhi.w 800213a + 8001d8c: a201 add r2, pc, #4 ; (adr r2, 8001d94 ) + 8001d8e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8001d92: bf00 nop + 8001d94: 08001de9 .word 0x08001de9 + 8001d98: 0800213b .word 0x0800213b + 8001d9c: 0800213b .word 0x0800213b + 8001da0: 08001e05 .word 0x08001e05 + 8001da4: 08001e15 .word 0x08001e15 + 8001da8: 08001e59 .word 0x08001e59 + 8001dac: 08001ef1 .word 0x08001ef1 + 8001db0: 08001f37 .word 0x08001f37 + 8001db4: 08001fad .word 0x08001fad + 8001db8: 08001fdb .word 0x08001fdb + 8001dbc: 0800213b .word 0x0800213b + 8001dc0: 0800213b .word 0x0800213b + 8001dc4: 0800213b .word 0x0800213b + 8001dc8: 0800213b .word 0x0800213b + 8001dcc: 0800213b .word 0x0800213b + 8001dd0: 0800213b .word 0x0800213b + 8001dd4: 0800203b .word 0x0800203b + 8001dd8: 080020bf .word 0x080020bf + 8001ddc: 080020f9 .word 0x080020f9 + 8001de0: 08002119 .word 0x08002119 + 8001de4: 0800212b .word 0x0800212b case GBT_DISABLED: RELAY_Write(RELAY_AUX, 0); - 8001ba0: 2100 movs r1, #0 - 8001ba2: 2000 movs r0, #0 - 8001ba4: f7ff fd20 bl 80015e8 + 8001de8: 2100 movs r1, #0 + 8001dea: 2000 movs r0, #0 + 8001dec: f7ff fc72 bl 80016d4 if(connectorState == CONN_Occupied_charging){ - 8001ba8: 4b3c ldr r3, [pc, #240] ; (8001c9c ) - 8001baa: 781b ldrb r3, [r3, #0] - 8001bac: 2b05 cmp r3, #5 - 8001bae: f040 81a4 bne.w 8001efa + 8001df0: 4b3c ldr r3, [pc, #240] ; (8001ee4 ) + 8001df2: 781b ldrb r3, [r3, #0] + 8001df4: 2b05 cmp r3, #5 + 8001df6: f040 81a4 bne.w 8002142 GBT_Reset(); - 8001bb2: f000 fac7 bl 8002144 + 8001dfa: f000 fac7 bl 800238c GBT_Start();//TODO IF protections (maybe not needed) - 8001bb6: f000 fb37 bl 8002228 + 8001dfe: f000 fb37 bl 8002470 } break; - 8001bba: e19e b.n 8001efa + 8001e02: e19e b.n 8002142 // GBT_Delay(500); // } // break; case GBT_S3_STARTED: GBT_SwitchState(GBT_S4_ISOTEST); - 8001bbc: 2014 movs r0, #20 - 8001bbe: f000 f9d9 bl 8001f74 + 8001e04: 2014 movs r0, #20 + 8001e06: f000 f9d9 bl 80021bc GBT_Delay(500); - 8001bc2: f44f 70fa mov.w r0, #500 ; 0x1f4 - 8001bc6: f000 fa71 bl 80020ac + 8001e0a: f44f 70fa mov.w r0, #500 ; 0x1f4 + 8001e0e: f000 fa71 bl 80022f4 break; - 8001bca: e1a9 b.n 8001f20 + 8001e12: e1a9 b.n 8002168 case GBT_S4_ISOTEST: if(j_rx.state == 0) GBT_SendCHM(); - 8001bcc: 4b22 ldr r3, [pc, #136] ; (8001c58 ) - 8001bce: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001bd2: 2b00 cmp r3, #0 - 8001bd4: d101 bne.n 8001bda - 8001bd6: f001 fb03 bl 80031e0 + 8001e14: 4b22 ldr r3, [pc, #136] ; (8001ea0 ) + 8001e16: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001e1a: 2b00 cmp r3, #0 + 8001e1c: d101 bne.n 8001e22 + 8001e1e: f001 fb1f bl 8003460 GBT_Delay(250); - 8001bda: 20fa movs r0, #250 ; 0xfa - 8001bdc: f000 fa66 bl 80020ac + 8001e22: 20fa movs r0, #250 ; 0xfa + 8001e24: f000 fa66 bl 80022f4 //TODO: Isolation test //if(isolation test fail) {send CST} if(GBT_BHM_recv) { - 8001be0: 4b1e ldr r3, [pc, #120] ; (8001c5c ) - 8001be2: 781b ldrb r3, [r3, #0] - 8001be4: 2b00 cmp r3, #0 - 8001be6: d002 beq.n 8001bee + 8001e28: 4b1e ldr r3, [pc, #120] ; (8001ea4 ) + 8001e2a: 781b ldrb r3, [r3, #0] + 8001e2c: 2b00 cmp r3, #0 + 8001e2e: d002 beq.n 8001e36 //Isolation test finish GBT_SwitchState(GBT_S5_BAT_INFO); - 8001be8: 2015 movs r0, #21 - 8001bea: f000 f9c3 bl 8001f74 + 8001e30: 2015 movs r0, #21 + 8001e32: f000 f9c3 bl 80021bc } //Timeout 10S if((GBT_BHM_recv == 0) && (GBT_StateTick()>10000)) { //BHM Timeout - 8001bee: 4b1b ldr r3, [pc, #108] ; (8001c5c ) - 8001bf0: 781b ldrb r3, [r3, #0] - 8001bf2: 2b00 cmp r3, #0 - 8001bf4: f040 8183 bne.w 8001efe - 8001bf8: f000 fa4c bl 8002094 - 8001bfc: 4603 mov r3, r0 - 8001bfe: f242 7210 movw r2, #10000 ; 0x2710 - 8001c02: 4293 cmp r3, r2 - 8001c04: f240 817b bls.w 8001efe + 8001e36: 4b1b ldr r3, [pc, #108] ; (8001ea4 ) + 8001e38: 781b ldrb r3, [r3, #0] + 8001e3a: 2b00 cmp r3, #0 + 8001e3c: f040 8183 bne.w 8002146 + 8001e40: f000 fa4c bl 80022dc + 8001e44: 4603 mov r3, r0 + 8001e46: f242 7210 movw r2, #10000 ; 0x2710 + 8001e4a: 4293 cmp r3, r2 + 8001e4c: f240 817b bls.w 8002146 GBT_Error(0xFCF0C0FC); - 8001c08: 4825 ldr r0, [pc, #148] ; (8001ca0 ) - 8001c0a: f000 fa77 bl 80020fc + 8001e50: 4825 ldr r0, [pc, #148] ; (8001ee8 ) + 8001e52: f000 fa77 bl 8002344 } break; - 8001c0e: e176 b.n 8001efe + 8001e56: e176 b.n 8002146 case GBT_S5_BAT_INFO: if(j_rx.state == 0) GBT_SendCRM(0x00); - 8001c10: 4b11 ldr r3, [pc, #68] ; (8001c58 ) - 8001c12: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001c16: 2b00 cmp r3, #0 - 8001c18: d102 bne.n 8001c20 - 8001c1a: 2000 movs r0, #0 - 8001c1c: f001 faf4 bl 8003208 + 8001e58: 4b11 ldr r3, [pc, #68] ; (8001ea0 ) + 8001e5a: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001e5e: 2b00 cmp r3, #0 + 8001e60: d102 bne.n 8001e68 + 8001e62: 2000 movs r0, #0 + 8001e64: f001 fb10 bl 8003488 GBT_Delay(250); - 8001c20: 20fa movs r0, #250 ; 0xfa - 8001c22: f000 fa43 bl 80020ac + 8001e68: 20fa movs r0, #250 ; 0xfa + 8001e6a: f000 fa43 bl 80022f4 if(GBT_BAT_INFO_recv){ //BRM - 8001c26: 4b0f ldr r3, [pc, #60] ; (8001c64 ) - 8001c28: 781b ldrb r3, [r3, #0] - 8001c2a: 2b00 cmp r3, #0 - 8001c2c: d002 beq.n 8001c34 + 8001e6e: 4b0f ldr r3, [pc, #60] ; (8001eac ) + 8001e70: 781b ldrb r3, [r3, #0] + 8001e72: 2b00 cmp r3, #0 + 8001e74: d002 beq.n 8001e7c //Got battery info GBT_SwitchState(GBT_S6_BAT_STAT); - 8001c2e: 2016 movs r0, #22 - 8001c30: f000 f9a0 bl 8001f74 + 8001e76: 2016 movs r0, #22 + 8001e78: f000 f9a0 bl 80021bc } //Timeout if((GBT_StateTick()>5000) && (GBT_BAT_INFO_recv == 0)){ - 8001c34: f000 fa2e bl 8002094 - 8001c38: 4603 mov r3, r0 - 8001c3a: f241 3288 movw r2, #5000 ; 0x1388 - 8001c3e: 4293 cmp r3, r2 - 8001c40: f240 815f bls.w 8001f02 - 8001c44: 4b07 ldr r3, [pc, #28] ; (8001c64 ) - 8001c46: 781b ldrb r3, [r3, #0] - 8001c48: 2b00 cmp r3, #0 - 8001c4a: f040 815a bne.w 8001f02 + 8001e7c: f000 fa2e bl 80022dc + 8001e80: 4603 mov r3, r0 + 8001e82: f241 3288 movw r2, #5000 ; 0x1388 + 8001e86: 4293 cmp r3, r2 + 8001e88: f240 815f bls.w 800214a + 8001e8c: 4b07 ldr r3, [pc, #28] ; (8001eac ) + 8001e8e: 781b ldrb r3, [r3, #0] + 8001e90: 2b00 cmp r3, #0 + 8001e92: f040 815a bne.w 800214a GBT_Error(0xFDF0C0FC); //BRM Timeout - 8001c4e: 4815 ldr r0, [pc, #84] ; (8001ca4 ) - 8001c50: f000 fa54 bl 80020fc + 8001e96: 4815 ldr r0, [pc, #84] ; (8001eec ) + 8001e98: f000 fa54 bl 8002344 } break; - 8001c54: e155 b.n 8001f02 - 8001c56: bf00 nop - 8001c58: 200004c0 .word 0x200004c0 - 8001c5c: 200002f3 .word 0x200002f3 - 8001c60: 20000308 .word 0x20000308 - 8001c64: 200002f0 .word 0x200002f0 - 8001c68: 2000030c .word 0x2000030c - 8001c6c: 200002f1 .word 0x200002f1 - 8001c70: 20000340 .word 0x20000340 - 8001c74: 200002f2 .word 0x200002f2 - 8001c78: 200002f5 .word 0x200002f5 - 8001c7c: 20000384 .word 0x20000384 - 8001c80: 20000350 .word 0x20000350 - 8001c84: 200004a8 .word 0x200004a8 - 8001c88: 20000360 .word 0x20000360 - 8001c8c: 2000036c .word 0x2000036c - 8001c90: 200002f4 .word 0x200002f4 - 8001c94: 200002ec .word 0x200002ec - 8001c98: 200002e4 .word 0x200002e4 - 8001c9c: 20000394 .word 0x20000394 - 8001ca0: fcf0c0fc .word 0xfcf0c0fc - 8001ca4: fdf0c0fc .word 0xfdf0c0fc + 8001e9c: e155 b.n 800214a + 8001e9e: bf00 nop + 8001ea0: 200004c0 .word 0x200004c0 + 8001ea4: 200002f3 .word 0x200002f3 + 8001ea8: 20000308 .word 0x20000308 + 8001eac: 200002f0 .word 0x200002f0 + 8001eb0: 2000030c .word 0x2000030c + 8001eb4: 200002f1 .word 0x200002f1 + 8001eb8: 20000340 .word 0x20000340 + 8001ebc: 200002f2 .word 0x200002f2 + 8001ec0: 200002f5 .word 0x200002f5 + 8001ec4: 20000384 .word 0x20000384 + 8001ec8: 20000350 .word 0x20000350 + 8001ecc: 200004a8 .word 0x200004a8 + 8001ed0: 20000360 .word 0x20000360 + 8001ed4: 2000036c .word 0x2000036c + 8001ed8: 200002f4 .word 0x200002f4 + 8001edc: 200002ec .word 0x200002ec + 8001ee0: 200002e4 .word 0x200002e4 + 8001ee4: 20000394 .word 0x20000394 + 8001ee8: fcf0c0fc .word 0xfcf0c0fc + 8001eec: fdf0c0fc .word 0xfdf0c0fc case GBT_S6_BAT_STAT: if(j_rx.state == 0) GBT_SendCRM(0xAA); - 8001ca8: 4b9f ldr r3, [pc, #636] ; (8001f28 ) - 8001caa: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001cae: 2b00 cmp r3, #0 - 8001cb0: d102 bne.n 8001cb8 - 8001cb2: 20aa movs r0, #170 ; 0xaa - 8001cb4: f001 faa8 bl 8003208 + 8001ef0: 4b9f ldr r3, [pc, #636] ; (8002170 ) + 8001ef2: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001ef6: 2b00 cmp r3, #0 + 8001ef8: d102 bne.n 8001f00 + 8001efa: 20aa movs r0, #170 ; 0xaa + 8001efc: f001 fac4 bl 8003488 GBT_Delay(250); - 8001cb8: 20fa movs r0, #250 ; 0xfa - 8001cba: f000 f9f7 bl 80020ac + 8001f00: 20fa movs r0, #250 ; 0xfa + 8001f02: f000 f9f7 bl 80022f4 if(GBT_BAT_STAT_recv){ - 8001cbe: 4b9b ldr r3, [pc, #620] ; (8001f2c ) - 8001cc0: 781b ldrb r3, [r3, #0] - 8001cc2: 2b00 cmp r3, #0 - 8001cc4: d002 beq.n 8001ccc + 8001f06: 4b9b ldr r3, [pc, #620] ; (8002174 ) + 8001f08: 781b ldrb r3, [r3, #0] + 8001f0a: 2b00 cmp r3, #0 + 8001f0c: d002 beq.n 8001f14 //Got battery status GBT_SwitchState(GBT_S7_BMS_WAIT); - 8001cc6: 2017 movs r0, #23 - 8001cc8: f000 f954 bl 8001f74 + 8001f0e: 2017 movs r0, #23 + 8001f10: f000 f954 bl 80021bc } if((GBT_StateTick()>5000) && (GBT_BAT_STAT_recv == 0)){ - 8001ccc: f000 f9e2 bl 8002094 - 8001cd0: 4603 mov r3, r0 - 8001cd2: f241 3288 movw r2, #5000 ; 0x1388 - 8001cd6: 4293 cmp r3, r2 - 8001cd8: f240 8115 bls.w 8001f06 - 8001cdc: 4b93 ldr r3, [pc, #588] ; (8001f2c ) - 8001cde: 781b ldrb r3, [r3, #0] - 8001ce0: 2b00 cmp r3, #0 - 8001ce2: f040 8110 bne.w 8001f06 + 8001f14: f000 f9e2 bl 80022dc + 8001f18: 4603 mov r3, r0 + 8001f1a: f241 3288 movw r2, #5000 ; 0x1388 + 8001f1e: 4293 cmp r3, r2 + 8001f20: f240 8115 bls.w 800214e + 8001f24: 4b93 ldr r3, [pc, #588] ; (8002174 ) + 8001f26: 781b ldrb r3, [r3, #0] + 8001f28: 2b00 cmp r3, #0 + 8001f2a: f040 8110 bne.w 800214e GBT_Error(0xFCF1C0FC); //BCP Timeout - 8001ce6: 4892 ldr r0, [pc, #584] ; (8001f30 ) - 8001ce8: f000 fa08 bl 80020fc + 8001f2e: 4892 ldr r0, [pc, #584] ; (8002178 ) + 8001f30: f000 fa08 bl 8002344 } break; - 8001cec: e10b b.n 8001f06 + 8001f34: e10b b.n 800214e case GBT_S7_BMS_WAIT: if(j_rx.state == 0) GBT_SendCTS(); - 8001cee: 4b8e ldr r3, [pc, #568] ; (8001f28 ) - 8001cf0: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001cf4: 2b00 cmp r3, #0 - 8001cf6: d101 bne.n 8001cfc - 8001cf8: f001 fa4e bl 8003198 + 8001f36: 4b8e ldr r3, [pc, #568] ; (8002170 ) + 8001f38: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001f3c: 2b00 cmp r3, #0 + 8001f3e: d101 bne.n 8001f44 + 8001f40: f001 fa6a bl 8003418 HAL_Delay(2); - 8001cfc: 2002 movs r0, #2 - 8001cfe: f003 f903 bl 8004f08 + 8001f44: 2002 movs r0, #2 + 8001f46: f003 f915 bl 8005174 if(j_rx.state == 0) GBT_SendCML(); - 8001d02: 4b89 ldr r3, [pc, #548] ; (8001f28 ) - 8001d04: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001d08: 2b00 cmp r3, #0 - 8001d0a: d101 bne.n 8001d10 - 8001d0c: f001 fa5a bl 80031c4 + 8001f4a: 4b89 ldr r3, [pc, #548] ; (8002170 ) + 8001f4c: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001f50: 2b00 cmp r3, #0 + 8001f52: d101 bne.n 8001f58 + 8001f54: f001 fa76 bl 8003444 GBT_Delay(250); - 8001d10: 20fa movs r0, #250 ; 0xfa - 8001d12: f000 f9cb bl 80020ac + 8001f58: 20fa movs r0, #250 ; 0xfa + 8001f5a: f000 f9cb bl 80022f4 if((GBT_StateTick()>5000) && (GBT_BRO_recv == 0)){ - 8001d16: f000 f9bd bl 8002094 - 8001d1a: 4603 mov r3, r0 - 8001d1c: f241 3288 movw r2, #5000 ; 0x1388 - 8001d20: 4293 cmp r3, r2 - 8001d22: d906 bls.n 8001d32 - 8001d24: 4b83 ldr r3, [pc, #524] ; (8001f34 ) - 8001d26: 781b ldrb r3, [r3, #0] - 8001d28: 2b00 cmp r3, #0 - 8001d2a: d102 bne.n 8001d32 + 8001f5e: f000 f9bd bl 80022dc + 8001f62: 4603 mov r3, r0 + 8001f64: f241 3288 movw r2, #5000 ; 0x1388 + 8001f68: 4293 cmp r3, r2 + 8001f6a: d906 bls.n 8001f7a + 8001f6c: 4b83 ldr r3, [pc, #524] ; (800217c ) + 8001f6e: 781b ldrb r3, [r3, #0] + 8001f70: 2b00 cmp r3, #0 + 8001f72: d102 bne.n 8001f7a GBT_Error(0xFCF4C0FC); //BRO Timeout - 8001d2c: 4882 ldr r0, [pc, #520] ; (8001f38 ) - 8001d2e: f000 f9e5 bl 80020fc + 8001f74: 4882 ldr r0, [pc, #520] ; (8002180 ) + 8001f76: f000 f9e5 bl 8002344 } if(EV_ready){ - 8001d32: 4b82 ldr r3, [pc, #520] ; (8001f3c ) - 8001d34: 781b ldrb r3, [r3, #0] - 8001d36: 2b00 cmp r3, #0 - 8001d38: d003 beq.n 8001d42 + 8001f7a: 4b82 ldr r3, [pc, #520] ; (8002184 ) + 8001f7c: 781b ldrb r3, [r3, #0] + 8001f7e: 2b00 cmp r3, #0 + 8001f80: d003 beq.n 8001f8a //EV ready (AA) GBT_SwitchState(GBT_S8_INIT_CHARGER); - 8001d3a: 2018 movs r0, #24 - 8001d3c: f000 f91a bl 8001f74 + 8001f82: 2018 movs r0, #24 + 8001f84: f000 f91a bl 80021bc }else{ if((GBT_StateTick()>60000) && (GBT_BRO_recv == 1)){ GBT_Error(0xFCF4C0FC); //BRO Timeout } } break; - 8001d40: e0e3 b.n 8001f0a + 8001f88: e0e3 b.n 8002152 if((GBT_StateTick()>60000) && (GBT_BRO_recv == 1)){ - 8001d42: f000 f9a7 bl 8002094 - 8001d46: 4603 mov r3, r0 - 8001d48: f64e 2260 movw r2, #60000 ; 0xea60 - 8001d4c: 4293 cmp r3, r2 - 8001d4e: f240 80dc bls.w 8001f0a - 8001d52: 4b78 ldr r3, [pc, #480] ; (8001f34 ) - 8001d54: 781b ldrb r3, [r3, #0] - 8001d56: 2b01 cmp r3, #1 - 8001d58: f040 80d7 bne.w 8001f0a + 8001f8a: f000 f9a7 bl 80022dc + 8001f8e: 4603 mov r3, r0 + 8001f90: f64e 2260 movw r2, #60000 ; 0xea60 + 8001f94: 4293 cmp r3, r2 + 8001f96: f240 80dc bls.w 8002152 + 8001f9a: 4b78 ldr r3, [pc, #480] ; (800217c ) + 8001f9c: 781b ldrb r3, [r3, #0] + 8001f9e: 2b01 cmp r3, #1 + 8001fa0: f040 80d7 bne.w 8002152 GBT_Error(0xFCF4C0FC); //BRO Timeout - 8001d5c: 4876 ldr r0, [pc, #472] ; (8001f38 ) - 8001d5e: f000 f9cd bl 80020fc + 8001fa4: 4876 ldr r0, [pc, #472] ; (8002180 ) + 8001fa6: f000 f9cd bl 8002344 break; - 8001d62: e0d2 b.n 8001f0a + 8001faa: e0d2 b.n 8002152 case GBT_S8_INIT_CHARGER: if(j_rx.state == 0) GBT_SendCRO(0x00); - 8001d64: 4b70 ldr r3, [pc, #448] ; (8001f28 ) - 8001d66: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001d6a: 2b00 cmp r3, #0 - 8001d6c: d102 bne.n 8001d74 - 8001d6e: 2000 movs r0, #0 - 8001d70: f001 fa60 bl 8003234 + 8001fac: 4b70 ldr r3, [pc, #448] ; (8002170 ) + 8001fae: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001fb2: 2b00 cmp r3, #0 + 8001fb4: d102 bne.n 8001fbc + 8001fb6: 2000 movs r0, #0 + 8001fb8: f001 fa7c bl 80034b4 //TODO GBT_Delay(250); - 8001d74: 20fa movs r0, #250 ; 0xfa - 8001d76: f000 f999 bl 80020ac + 8001fbc: 20fa movs r0, #250 ; 0xfa + 8001fbe: f000 f999 bl 80022f4 if(GBT_StateTick()>1500){ - 8001d7a: f000 f98b bl 8002094 - 8001d7e: 4603 mov r3, r0 - 8001d80: f240 52dc movw r2, #1500 ; 0x5dc - 8001d84: 4293 cmp r3, r2 - 8001d86: f240 80c2 bls.w 8001f0e + 8001fc2: f000 f98b bl 80022dc + 8001fc6: 4603 mov r3, r0 + 8001fc8: f240 52dc movw r2, #1500 ; 0x5dc + 8001fcc: 4293 cmp r3, r2 + 8001fce: f240 80c2 bls.w 8002156 //Power Modules initiated GBT_SwitchState(GBT_S9_WAIT_BCL); - 8001d8a: 2019 movs r0, #25 - 8001d8c: f000 f8f2 bl 8001f74 + 8001fd2: 2019 movs r0, #25 + 8001fd4: f000 f8f2 bl 80021bc } break; - 8001d90: e0bd b.n 8001f0e + 8001fd8: e0bd b.n 8002156 case GBT_S9_WAIT_BCL: if(j_rx.state == 0) GBT_SendCRO(0xAA); - 8001d92: 4b65 ldr r3, [pc, #404] ; (8001f28 ) - 8001d94: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001d98: 2b00 cmp r3, #0 - 8001d9a: d102 bne.n 8001da2 - 8001d9c: 20aa movs r0, #170 ; 0xaa - 8001d9e: f001 fa49 bl 8003234 + 8001fda: 4b65 ldr r3, [pc, #404] ; (8002170 ) + 8001fdc: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8001fe0: 2b00 cmp r3, #0 + 8001fe2: d102 bne.n 8001fea + 8001fe4: 20aa movs r0, #170 ; 0xaa + 8001fe6: f001 fa65 bl 80034b4 GBT_Delay(250); - 8001da2: 20fa movs r0, #250 ; 0xfa - 8001da4: f000 f982 bl 80020ac + 8001fea: 20fa movs r0, #250 ; 0xfa + 8001fec: f000 f982 bl 80022f4 if(GBT_ReqPower.chargingMode != 0){ //REFACTORING - 8001da8: 4b65 ldr r3, [pc, #404] ; (8001f40 ) - 8001daa: 791b ldrb r3, [r3, #4] - 8001dac: 2b00 cmp r3, #0 - 8001dae: f000 80b0 beq.w 8001f12 + 8001ff0: 4b65 ldr r3, [pc, #404] ; (8002188 ) + 8001ff2: 791b ldrb r3, [r3, #4] + 8001ff4: 2b00 cmp r3, #0 + 8001ff6: f000 80b0 beq.w 800215a //BCL power requirements received GBT_SwitchState(GBT_S10_CHARGING); - 8001db2: 2020 movs r0, #32 - 8001db4: f000 f8de bl 8001f74 + 8001ffa: 2020 movs r0, #32 + 8001ffc: f000 f8de bl 80021bc CONN_SetState(CONN_Occupied_charging); - 8001db8: 2005 movs r0, #5 - 8001dba: f000 facd bl 8002358 + 8002000: 2005 movs r0, #5 + 8002002: f000 fac5 bl 8002590 uint16_t curr=4000-GBT_ReqPower.requestedCurrent; - 8001dbe: 4b60 ldr r3, [pc, #384] ; (8001f40 ) - 8001dc0: 885b ldrh r3, [r3, #2] - 8001dc2: f5c3 637a rsb r3, r3, #4000 ; 0xfa0 - 8001dc6: 807b strh r3, [r7, #2] + 8002006: 4b60 ldr r3, [pc, #384] ; (8002188 ) + 8002008: 885b ldrh r3, [r3, #2] + 800200a: f5c3 637a rsb r3, r3, #4000 ; 0xfa0 + 800200e: 807b strh r3, [r7, #2] uint16_t volt=GBT_ReqPower.requestedVoltage; - 8001dc8: 4b5d ldr r3, [pc, #372] ; (8001f40 ) - 8001dca: 881b ldrh r3, [r3, #0] - 8001dcc: 803b strh r3, [r7, #0] + 8002010: 4b5d ldr r3, [pc, #372] ; (8002188 ) + 8002012: 881b ldrh r3, [r3, #0] + 8002014: 803b strh r3, [r7, #0] //TODO Limits GBT_EDCAN_Output.requestedVoltage = volt; - 8001dce: 4b5d ldr r3, [pc, #372] ; (8001f44 ) - 8001dd0: 883a ldrh r2, [r7, #0] - 8001dd2: f8a3 2001 strh.w r2, [r3, #1] + 8002016: 4b5d ldr r3, [pc, #372] ; (800218c ) + 8002018: 883a ldrh r2, [r7, #0] + 800201a: f8a3 2001 strh.w r2, [r3, #1] GBT_EDCAN_Output.requestedCurrent = curr; - 8001dd6: 4b5b ldr r3, [pc, #364] ; (8001f44 ) - 8001dd8: 887a ldrh r2, [r7, #2] - 8001dda: f8a3 2003 strh.w r2, [r3, #3] + 800201e: 4b5b ldr r3, [pc, #364] ; (800218c ) + 8002020: 887a ldrh r2, [r7, #2] + 8002022: f8a3 2003 strh.w r2, [r3, #3] GBT_EDCAN_Output.enablePSU = 1; - 8001dde: 4b59 ldr r3, [pc, #356] ; (8001f44 ) - 8001de0: 2201 movs r2, #1 - 8001de2: 701a strb r2, [r3, #0] + 8002026: 4b59 ldr r3, [pc, #356] ; (800218c ) + 8002028: 2201 movs r2, #1 + 800202a: 701a strb r2, [r3, #0] GBT_TimeChargingStarted = get_Current_Time(); - 8001de4: f002 fca8 bl 8004738 - 8001de8: 4603 mov r3, r0 - 8001dea: 461a mov r2, r3 - 8001dec: 4b56 ldr r3, [pc, #344] ; (8001f48 ) - 8001dee: 601a str r2, [r3, #0] + 800202c: f002 fcba bl 80049a4 + 8002030: 4603 mov r3, r0 + 8002032: 461a mov r2, r3 + 8002034: 4b56 ldr r3, [pc, #344] ; (8002190 ) + 8002036: 601a str r2, [r3, #0] //TODO: EDCAN_SendPacketRead } break; - 8001df0: e08f b.n 8001f12 + 8002038: e08f b.n 800215a case GBT_S10_CHARGING: //CHARGING //TODO BCL BCS BSM missing ERRORS if(GBT_EDCAN_Input.chargeControl == CHARGING_NOT_ALLOWED) GBT_Stop(GBT_CST_SUSPENDS_ARTIFICIALLY); - 8001df2: 4b56 ldr r3, [pc, #344] ; (8001f4c ) - 8001df4: 795b ldrb r3, [r3, #5] - 8001df6: 2b01 cmp r3, #1 - 8001df8: d102 bne.n 8001e00 - 8001dfa: 4855 ldr r0, [pc, #340] ; (8001f50 ) - 8001dfc: f000 f968 bl 80020d0 + 800203a: 4b56 ldr r3, [pc, #344] ; (8002194 ) + 800203c: 795b ldrb r3, [r3, #5] + 800203e: 2b01 cmp r3, #1 + 8002040: d102 bne.n 8002048 + 8002042: 4855 ldr r0, [pc, #340] ; (8002198 ) + 8002044: f000 f968 bl 8002318 if(GBT_EDCAN_Input.chargeControl == FORCE_UNLOCK) GBT_Stop(GBT_CST_SUSPENDS_ARTIFICIALLY);//GBT_ForceStop(); - 8001e00: 4b52 ldr r3, [pc, #328] ; (8001f4c ) - 8001e02: 795b ldrb r3, [r3, #5] - 8001e04: 2b03 cmp r3, #3 - 8001e06: d102 bne.n 8001e0e - 8001e08: 4851 ldr r0, [pc, #324] ; (8001f50 ) - 8001e0a: f000 f961 bl 80020d0 + 8002048: 4b52 ldr r3, [pc, #328] ; (8002194 ) + 800204a: 795b ldrb r3, [r3, #5] + 800204c: 2b03 cmp r3, #3 + 800204e: d102 bne.n 8002056 + 8002050: 4851 ldr r0, [pc, #324] ; (8002198 ) + 8002052: f000 f961 bl 8002318 if(GBT_LockState.error) GBT_Stop(GBT_CST_OTHERFALUT); - 8001e0e: 4b51 ldr r3, [pc, #324] ; (8001f54 ) - 8001e10: 785b ldrb r3, [r3, #1] - 8001e12: 2b00 cmp r3, #0 - 8001e14: d003 beq.n 8001e1e - 8001e16: f24f 40f0 movw r0, #62704 ; 0xf4f0 - 8001e1a: f000 f959 bl 80020d0 + 8002056: 4b51 ldr r3, [pc, #324] ; (800219c ) + 8002058: 785b ldrb r3, [r3, #1] + 800205a: 2b00 cmp r3, #0 + 800205c: d003 beq.n 8002066 + 800205e: f24f 40f0 movw r0, #62704 ; 0xf4f0 + 8002062: f000 f959 bl 8002318 //GBT_ChargerCurrentStatus.chargingPermissible = 0b1111111111111100;//NOT PERMITTED GBT_ChargerCurrentStatus.chargingPermissible = 0b1111111111111101; - 8001e1e: 4b4e ldr r3, [pc, #312] ; (8001f58 ) - 8001e20: f64f 72fd movw r2, #65533 ; 0xfffd - 8001e24: 80da strh r2, [r3, #6] + 8002066: 4b4e ldr r3, [pc, #312] ; (80021a0 ) + 8002068: f64f 72fd movw r2, #65533 ; 0xfffd + 800206c: 80da strh r2, [r3, #6] GBT_ChargerCurrentStatus.chargingTime = (get_Current_Time() - GBT_TimeChargingStarted)/60; - 8001e26: f002 fc87 bl 8004738 - 8001e2a: 4603 mov r3, r0 - 8001e2c: 461a mov r2, r3 - 8001e2e: 4b46 ldr r3, [pc, #280] ; (8001f48 ) - 8001e30: 681b ldr r3, [r3, #0] - 8001e32: 1ad3 subs r3, r2, r3 - 8001e34: 4a49 ldr r2, [pc, #292] ; (8001f5c ) - 8001e36: fba2 2303 umull r2, r3, r2, r3 - 8001e3a: 095b lsrs r3, r3, #5 - 8001e3c: b29a uxth r2, r3 - 8001e3e: 4b46 ldr r3, [pc, #280] ; (8001f58 ) - 8001e40: 809a strh r2, [r3, #4] + 800206e: f002 fc99 bl 80049a4 + 8002072: 4603 mov r3, r0 + 8002074: 461a mov r2, r3 + 8002076: 4b46 ldr r3, [pc, #280] ; (8002190 ) + 8002078: 681b ldr r3, [r3, #0] + 800207a: 1ad3 subs r3, r2, r3 + 800207c: 4a49 ldr r2, [pc, #292] ; (80021a4 ) + 800207e: fba2 2303 umull r2, r3, r2, r3 + 8002082: 095b lsrs r3, r3, #5 + 8002084: b29a uxth r2, r3 + 8002086: 4b46 ldr r3, [pc, #280] ; (80021a0 ) + 8002088: 809a strh r2, [r3, #4] GBT_ChargerCurrentStatus.outputCurrent = 4000 - GBT_EDCAN_Output.requestedCurrent; - 8001e42: 4b40 ldr r3, [pc, #256] ; (8001f44 ) - 8001e44: f8b3 3003 ldrh.w r3, [r3, #3] - 8001e48: b29b uxth r3, r3 - 8001e4a: f5c3 637a rsb r3, r3, #4000 ; 0xfa0 - 8001e4e: b29a uxth r2, r3 - 8001e50: 4b41 ldr r3, [pc, #260] ; (8001f58 ) - 8001e52: 805a strh r2, [r3, #2] + 800208a: 4b40 ldr r3, [pc, #256] ; (800218c ) + 800208c: f8b3 3003 ldrh.w r3, [r3, #3] + 8002090: b29b uxth r3, r3 + 8002092: f5c3 637a rsb r3, r3, #4000 ; 0xfa0 + 8002096: b29a uxth r2, r3 + 8002098: 4b41 ldr r3, [pc, #260] ; (80021a0 ) + 800209a: 805a strh r2, [r3, #2] GBT_ChargerCurrentStatus.outputVoltage = GBT_EDCAN_Output.requestedVoltage; - 8001e54: 4b3b ldr r3, [pc, #236] ; (8001f44 ) - 8001e56: f8b3 3001 ldrh.w r3, [r3, #1] - 8001e5a: b29a uxth r2, r3 - 8001e5c: 4b3e ldr r3, [pc, #248] ; (8001f58 ) - 8001e5e: 801a strh r2, [r3, #0] + 800209c: 4b3b ldr r3, [pc, #236] ; (800218c ) + 800209e: f8b3 3001 ldrh.w r3, [r3, #1] + 80020a2: b29a uxth r2, r3 + 80020a4: 4b3e ldr r3, [pc, #248] ; (80021a0 ) + 80020a6: 801a strh r2, [r3, #0] if(j_rx.state == 0) GBT_SendCCS(); - 8001e60: 4b31 ldr r3, [pc, #196] ; (8001f28 ) - 8001e62: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8001e66: 2b00 cmp r3, #0 - 8001e68: d101 bne.n 8001e6e - 8001e6a: f001 f9f7 bl 800325c + 80020a8: 4b31 ldr r3, [pc, #196] ; (8002170 ) + 80020aa: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 80020ae: 2b00 cmp r3, #0 + 80020b0: d101 bne.n 80020b6 + 80020b2: f001 fa13 bl 80034dc GBT_Delay(50); - 8001e6e: 2032 movs r0, #50 ; 0x32 - 8001e70: f000 f91c bl 80020ac + 80020b6: 2032 movs r0, #50 ; 0x32 + 80020b8: f000 f91c bl 80022f4 break; - 8001e74: e054 b.n 8001f20 + 80020bc: e054 b.n 8002168 case GBT_STOP: GBT_Delay(10); - 8001e76: 200a movs r0, #10 - 8001e78: f000 f918 bl 80020ac + 80020be: 200a movs r0, #10 + 80020c0: f000 f918 bl 80022f4 GBT_EDCAN_Output.enablePSU = 0; - 8001e7c: 4b31 ldr r3, [pc, #196] ; (8001f44 ) - 8001e7e: 2200 movs r2, #0 - 8001e80: 701a strb r2, [r3, #0] + 80020c4: 4b31 ldr r3, [pc, #196] ; (800218c ) + 80020c6: 2200 movs r2, #0 + 80020c8: 701a strb r2, [r3, #0] GBT_SendCST(GBT_StopCauseCode); - 8001e82: 4b37 ldr r3, [pc, #220] ; (8001f60 ) - 8001e84: 681b ldr r3, [r3, #0] - 8001e86: 4618 mov r0, r3 - 8001e88: f001 f9f6 bl 8003278 + 80020ca: 4b37 ldr r3, [pc, #220] ; (80021a8 ) + 80020cc: 681b ldr r3, [r3, #0] + 80020ce: 4618 mov r0, r3 + 80020d0: f001 fa12 bl 80034f8 //RELAY_Write(RELAY_OUTPUT, 0); //GBT_SwitchState(GBT_DISABLED); if(GBT_StateTick()>10000){ - 8001e8c: f000 f902 bl 8002094 - 8001e90: 4603 mov r3, r0 - 8001e92: f242 7210 movw r2, #10000 ; 0x2710 - 8001e96: 4293 cmp r3, r2 - 8001e98: d902 bls.n 8001ea0 + 80020d4: f000 f902 bl 80022dc + 80020d8: 4603 mov r3, r0 + 80020da: f242 7210 movw r2, #10000 ; 0x2710 + 80020de: 4293 cmp r3, r2 + 80020e0: d902 bls.n 80020e8 GBT_Error(0xFCF0C0FD); //BSD Timeout - 8001e9a: 4832 ldr r0, [pc, #200] ; (8001f64 ) - 8001e9c: f000 f92e bl 80020fc + 80020e2: 4832 ldr r0, [pc, #200] ; (80021ac ) + 80020e4: f000 f92e bl 8002344 } if(GBT_BSD_recv != 0){ - 8001ea0: 4b31 ldr r3, [pc, #196] ; (8001f68 ) - 8001ea2: 781b ldrb r3, [r3, #0] - 8001ea4: 2b00 cmp r3, #0 - 8001ea6: d036 beq.n 8001f16 + 80020e8: 4b31 ldr r3, [pc, #196] ; (80021b0 ) + 80020ea: 781b ldrb r3, [r3, #0] + 80020ec: 2b00 cmp r3, #0 + 80020ee: d036 beq.n 800215e GBT_SwitchState(GBT_STOP_CSD); - 8001ea8: 2022 movs r0, #34 ; 0x22 - 8001eaa: f000 f863 bl 8001f74 + 80020f0: 2022 movs r0, #34 ; 0x22 + 80020f2: f000 f863 bl 80021bc } break; - 8001eae: e032 b.n 8001f16 + 80020f6: e032 b.n 800215e case GBT_STOP_CSD: GBT_Delay(250); - 8001eb0: 20fa movs r0, #250 ; 0xfa - 8001eb2: f000 f8fb bl 80020ac + 80020f8: 20fa movs r0, #250 ; 0xfa + 80020fa: f000 f8fb bl 80022f4 GBT_SendCSD(); - 8001eb6: f001 f9ff bl 80032b8 + 80020fe: f001 fa1b bl 8003538 if(GBT_StateTick()>2500){ //2.5S - 8001eba: f000 f8eb bl 8002094 - 8001ebe: 4603 mov r3, r0 - 8001ec0: f640 12c4 movw r2, #2500 ; 0x9c4 - 8001ec4: 4293 cmp r3, r2 - 8001ec6: d928 bls.n 8001f1a + 8002102: f000 f8eb bl 80022dc + 8002106: 4603 mov r3, r0 + 8002108: f640 12c4 movw r2, #2500 ; 0x9c4 + 800210c: 4293 cmp r3, r2 + 800210e: d928 bls.n 8002162 GBT_SwitchState(GBT_COMPLETE); - 8001ec8: 2024 movs r0, #36 ; 0x24 - 8001eca: f000 f853 bl 8001f74 + 8002110: 2024 movs r0, #36 ; 0x24 + 8002112: f000 f853 bl 80021bc // GBT_Reset(); //CONN_SetState(CONN_Occupied_complete); //if(connectorState == CONN_Occupied_charging) //PSU_Mode(0x0100); } break; - 8001ece: e024 b.n 8001f1a + 8002116: e024 b.n 8002162 case GBT_ERROR: GBT_SendCEM(GBT_ErrorCode); //2.5S - 8001ed0: 4b26 ldr r3, [pc, #152] ; (8001f6c ) - 8001ed2: 681b ldr r3, [r3, #0] - 8001ed4: 4618 mov r0, r3 - 8001ed6: f001 fa0f bl 80032f8 + 8002118: 4b26 ldr r3, [pc, #152] ; (80021b4 ) + 800211a: 681b ldr r3, [r3, #0] + 800211c: 4618 mov r0, r3 + 800211e: f001 fa2b bl 8003578 GBT_SwitchState(GBT_COMPLETE); - 8001eda: 2024 movs r0, #36 ; 0x24 - 8001edc: f000 f84a bl 8001f74 + 8002122: 2024 movs r0, #36 ; 0x24 + 8002124: f000 f84a bl 80021bc // GBT_Reset(); // break; - 8001ee0: e01e b.n 8001f20 + 8002128: e01e b.n 8002168 case GBT_COMPLETE: if(connectorState != CONN_Occupied_complete) GBT_SwitchState(GBT_DISABLED); - 8001ee2: 4b23 ldr r3, [pc, #140] ; (8001f70 ) - 8001ee4: 781b ldrb r3, [r3, #0] - 8001ee6: 2b06 cmp r3, #6 - 8001ee8: d019 beq.n 8001f1e - 8001eea: 2010 movs r0, #16 - 8001eec: f000 f842 bl 8001f74 + 800212a: 4b23 ldr r3, [pc, #140] ; (80021b8 ) + 800212c: 781b ldrb r3, [r3, #0] + 800212e: 2b06 cmp r3, #6 + 8002130: d019 beq.n 8002166 + 8002132: 2010 movs r0, #16 + 8002134: f000 f842 bl 80021bc break; - 8001ef0: e015 b.n 8001f1e + 8002138: e015 b.n 8002166 default: GBT_SwitchState(GBT_DISABLED); - 8001ef2: 2010 movs r0, #16 - 8001ef4: f000 f83e bl 8001f74 + 800213a: 2010 movs r0, #16 + 800213c: f000 f83e bl 80021bc } } - 8001ef8: e012 b.n 8001f20 + 8002140: e012 b.n 8002168 break; - 8001efa: bf00 nop - 8001efc: e010 b.n 8001f20 + 8002142: bf00 nop + 8002144: e010 b.n 8002168 break; - 8001efe: bf00 nop - 8001f00: e00e b.n 8001f20 + 8002146: bf00 nop + 8002148: e00e b.n 8002168 break; - 8001f02: bf00 nop - 8001f04: e00c b.n 8001f20 + 800214a: bf00 nop + 800214c: e00c b.n 8002168 break; - 8001f06: bf00 nop - 8001f08: e00a b.n 8001f20 + 800214e: bf00 nop + 8002150: e00a b.n 8002168 break; - 8001f0a: bf00 nop - 8001f0c: e008 b.n 8001f20 + 8002152: bf00 nop + 8002154: e008 b.n 8002168 break; - 8001f0e: bf00 nop - 8001f10: e006 b.n 8001f20 + 8002156: bf00 nop + 8002158: e006 b.n 8002168 break; - 8001f12: bf00 nop - 8001f14: e004 b.n 8001f20 + 800215a: bf00 nop + 800215c: e004 b.n 8002168 break; - 8001f16: bf00 nop - 8001f18: e002 b.n 8001f20 + 800215e: bf00 nop + 8002160: e002 b.n 8002168 break; - 8001f1a: bf00 nop - 8001f1c: e000 b.n 8001f20 + 8002162: bf00 nop + 8002164: e000 b.n 8002168 break; - 8001f1e: bf00 nop + 8002166: bf00 nop } - 8001f20: bf00 nop - 8001f22: 3708 adds r7, #8 - 8001f24: 46bd mov sp, r7 - 8001f26: bdb0 pop {r4, r5, r7, pc} - 8001f28: 200004c0 .word 0x200004c0 - 8001f2c: 200002f1 .word 0x200002f1 - 8001f30: fcf1c0fc .word 0xfcf1c0fc - 8001f34: 200002f2 .word 0x200002f2 - 8001f38: fcf4c0fc .word 0xfcf4c0fc - 8001f3c: 200002f5 .word 0x200002f5 - 8001f40: 20000350 .word 0x20000350 - 8001f44: 200004a8 .word 0x200004a8 - 8001f48: 20000388 .word 0x20000388 - 8001f4c: 200004b8 .word 0x200004b8 - 8001f50: 0400f0f0 .word 0x0400f0f0 - 8001f54: 200005d0 .word 0x200005d0 - 8001f58: 20000374 .word 0x20000374 - 8001f5c: 88888889 .word 0x88888889 - 8001f60: 2000038c .word 0x2000038c - 8001f64: fcf0c0fd .word 0xfcf0c0fd - 8001f68: 200002f4 .word 0x200002f4 - 8001f6c: 20000390 .word 0x20000390 - 8001f70: 20000394 .word 0x20000394 + 8002168: bf00 nop + 800216a: 3708 adds r7, #8 + 800216c: 46bd mov sp, r7 + 800216e: bdb0 pop {r4, r5, r7, pc} + 8002170: 200004c0 .word 0x200004c0 + 8002174: 200002f1 .word 0x200002f1 + 8002178: fcf1c0fc .word 0xfcf1c0fc + 800217c: 200002f2 .word 0x200002f2 + 8002180: fcf4c0fc .word 0xfcf4c0fc + 8002184: 200002f5 .word 0x200002f5 + 8002188: 20000350 .word 0x20000350 + 800218c: 200004a8 .word 0x200004a8 + 8002190: 20000388 .word 0x20000388 + 8002194: 200004b8 .word 0x200004b8 + 8002198: 0400f0f0 .word 0x0400f0f0 + 800219c: 200005d0 .word 0x200005d0 + 80021a0: 20000374 .word 0x20000374 + 80021a4: 88888889 .word 0x88888889 + 80021a8: 2000038c .word 0x2000038c + 80021ac: fcf0c0fd .word 0xfcf0c0fd + 80021b0: 200002f4 .word 0x200002f4 + 80021b4: 20000390 .word 0x20000390 + 80021b8: 20000394 .word 0x20000394 -08001f74 : +080021bc : void GBT_SwitchState(gbtState_t state){ - 8001f74: b580 push {r7, lr} - 8001f76: b082 sub sp, #8 - 8001f78: af00 add r7, sp, #0 - 8001f7a: 4603 mov r3, r0 - 8001f7c: 71fb strb r3, [r7, #7] + 80021bc: b580 push {r7, lr} + 80021be: b082 sub sp, #8 + 80021c0: af00 add r7, sp, #0 + 80021c2: 4603 mov r3, r0 + 80021c4: 71fb strb r3, [r7, #7] GBT_State = state; - 8001f7e: 4a35 ldr r2, [pc, #212] ; (8002054 ) - 8001f80: 79fb ldrb r3, [r7, #7] - 8001f82: 7013 strb r3, [r2, #0] + 80021c6: 4a35 ldr r2, [pc, #212] ; (800229c ) + 80021c8: 79fb ldrb r3, [r7, #7] + 80021ca: 7013 strb r3, [r2, #0] ED_status = state; - 8001f84: 4a34 ldr r2, [pc, #208] ; (8002058 ) - 8001f86: 79fb ldrb r3, [r7, #7] - 8001f88: 7013 strb r3, [r2, #0] + 80021cc: 4a34 ldr r2, [pc, #208] ; (80022a0 ) + 80021ce: 79fb ldrb r3, [r7, #7] + 80021d0: 7013 strb r3, [r2, #0] GBT_state_tick = HAL_GetTick(); - 8001f8a: f002 ffb3 bl 8004ef4 - 8001f8e: 4603 mov r3, r0 - 8001f90: 4a32 ldr r2, [pc, #200] ; (800205c ) - 8001f92: 6013 str r3, [r2, #0] + 80021d2: f002 ffc5 bl 8005160 + 80021d6: 4603 mov r3, r0 + 80021d8: 4a32 ldr r2, [pc, #200] ; (80022a4 ) + 80021da: 6013 str r3, [r2, #0] if(GBT_State == GBT_DISABLED) printf ("GBT_DISABLED\n"); - 8001f94: 4b2f ldr r3, [pc, #188] ; (8002054 ) - 8001f96: 781b ldrb r3, [r3, #0] - 8001f98: 2b10 cmp r3, #16 - 8001f9a: d102 bne.n 8001fa2 - 8001f9c: 4830 ldr r0, [pc, #192] ; (8002060 ) - 8001f9e: f007 fdaf bl 8009b00 + 80021dc: 4b2f ldr r3, [pc, #188] ; (800229c ) + 80021de: 781b ldrb r3, [r3, #0] + 80021e0: 2b10 cmp r3, #16 + 80021e2: d102 bne.n 80021ea + 80021e4: 4830 ldr r0, [pc, #192] ; (80022a8 ) + 80021e6: f007 fdc1 bl 8009d6c // if(GBT_State == GBT_S0_UNCONNECTED) printf ("GBT_S0_UNCONNECTED\n"); // if(GBT_State == GBT_S1_CONNECTED) printf ("GBT_S1_CONNECTED\n"); // if(GBT_State == GBT_S2_LOCKED) printf ("GBT_S2_LOCKED\n"); if(GBT_State == GBT_S3_STARTED) printf ("GBT_S3_STARTED\n"); - 8001fa2: 4b2c ldr r3, [pc, #176] ; (8002054 ) - 8001fa4: 781b ldrb r3, [r3, #0] - 8001fa6: 2b13 cmp r3, #19 - 8001fa8: d102 bne.n 8001fb0 - 8001faa: 482e ldr r0, [pc, #184] ; (8002064 ) - 8001fac: f007 fda8 bl 8009b00 + 80021ea: 4b2c ldr r3, [pc, #176] ; (800229c ) + 80021ec: 781b ldrb r3, [r3, #0] + 80021ee: 2b13 cmp r3, #19 + 80021f0: d102 bne.n 80021f8 + 80021f2: 482e ldr r0, [pc, #184] ; (80022ac ) + 80021f4: f007 fdba bl 8009d6c if(GBT_State == GBT_S4_ISOTEST) printf ("GBT_S4_ISOTEST\n"); - 8001fb0: 4b28 ldr r3, [pc, #160] ; (8002054 ) - 8001fb2: 781b ldrb r3, [r3, #0] - 8001fb4: 2b14 cmp r3, #20 - 8001fb6: d102 bne.n 8001fbe - 8001fb8: 482b ldr r0, [pc, #172] ; (8002068 ) - 8001fba: f007 fda1 bl 8009b00 + 80021f8: 4b28 ldr r3, [pc, #160] ; (800229c ) + 80021fa: 781b ldrb r3, [r3, #0] + 80021fc: 2b14 cmp r3, #20 + 80021fe: d102 bne.n 8002206 + 8002200: 482b ldr r0, [pc, #172] ; (80022b0 ) + 8002202: f007 fdb3 bl 8009d6c if(GBT_State == GBT_S5_BAT_INFO) printf ("GBT_S5_BAT_INFO\n"); - 8001fbe: 4b25 ldr r3, [pc, #148] ; (8002054 ) - 8001fc0: 781b ldrb r3, [r3, #0] - 8001fc2: 2b15 cmp r3, #21 - 8001fc4: d102 bne.n 8001fcc - 8001fc6: 4829 ldr r0, [pc, #164] ; (800206c ) - 8001fc8: f007 fd9a bl 8009b00 + 8002206: 4b25 ldr r3, [pc, #148] ; (800229c ) + 8002208: 781b ldrb r3, [r3, #0] + 800220a: 2b15 cmp r3, #21 + 800220c: d102 bne.n 8002214 + 800220e: 4829 ldr r0, [pc, #164] ; (80022b4 ) + 8002210: f007 fdac bl 8009d6c if(GBT_State == GBT_S6_BAT_STAT) printf ("GBT_S6_BAT_STAT\n"); - 8001fcc: 4b21 ldr r3, [pc, #132] ; (8002054 ) - 8001fce: 781b ldrb r3, [r3, #0] - 8001fd0: 2b16 cmp r3, #22 - 8001fd2: d102 bne.n 8001fda - 8001fd4: 4826 ldr r0, [pc, #152] ; (8002070 ) - 8001fd6: f007 fd93 bl 8009b00 + 8002214: 4b21 ldr r3, [pc, #132] ; (800229c ) + 8002216: 781b ldrb r3, [r3, #0] + 8002218: 2b16 cmp r3, #22 + 800221a: d102 bne.n 8002222 + 800221c: 4826 ldr r0, [pc, #152] ; (80022b8 ) + 800221e: f007 fda5 bl 8009d6c if(GBT_State == GBT_S7_BMS_WAIT) printf ("GBT_S7_BMS_WAIT\n"); - 8001fda: 4b1e ldr r3, [pc, #120] ; (8002054 ) - 8001fdc: 781b ldrb r3, [r3, #0] - 8001fde: 2b17 cmp r3, #23 - 8001fe0: d102 bne.n 8001fe8 - 8001fe2: 4824 ldr r0, [pc, #144] ; (8002074 ) - 8001fe4: f007 fd8c bl 8009b00 + 8002222: 4b1e ldr r3, [pc, #120] ; (800229c ) + 8002224: 781b ldrb r3, [r3, #0] + 8002226: 2b17 cmp r3, #23 + 8002228: d102 bne.n 8002230 + 800222a: 4824 ldr r0, [pc, #144] ; (80022bc ) + 800222c: f007 fd9e bl 8009d6c if(GBT_State == GBT_S8_INIT_CHARGER)printf ("GBT_S8_INIT_CHARGER\n"); - 8001fe8: 4b1a ldr r3, [pc, #104] ; (8002054 ) - 8001fea: 781b ldrb r3, [r3, #0] - 8001fec: 2b18 cmp r3, #24 - 8001fee: d102 bne.n 8001ff6 - 8001ff0: 4821 ldr r0, [pc, #132] ; (8002078 ) - 8001ff2: f007 fd85 bl 8009b00 + 8002230: 4b1a ldr r3, [pc, #104] ; (800229c ) + 8002232: 781b ldrb r3, [r3, #0] + 8002234: 2b18 cmp r3, #24 + 8002236: d102 bne.n 800223e + 8002238: 4821 ldr r0, [pc, #132] ; (80022c0 ) + 800223a: f007 fd97 bl 8009d6c if(GBT_State == GBT_S9_WAIT_BCL) printf ("GBT_S9_WAIT_BCL\n"); - 8001ff6: 4b17 ldr r3, [pc, #92] ; (8002054 ) - 8001ff8: 781b ldrb r3, [r3, #0] - 8001ffa: 2b19 cmp r3, #25 - 8001ffc: d102 bne.n 8002004 - 8001ffe: 481f ldr r0, [pc, #124] ; (800207c ) - 8002000: f007 fd7e bl 8009b00 + 800223e: 4b17 ldr r3, [pc, #92] ; (800229c ) + 8002240: 781b ldrb r3, [r3, #0] + 8002242: 2b19 cmp r3, #25 + 8002244: d102 bne.n 800224c + 8002246: 481f ldr r0, [pc, #124] ; (80022c4 ) + 8002248: f007 fd90 bl 8009d6c if(GBT_State == GBT_S10_CHARGING) printf ("GBT_S10_CHARGING\n"); - 8002004: 4b13 ldr r3, [pc, #76] ; (8002054 ) - 8002006: 781b ldrb r3, [r3, #0] - 8002008: 2b20 cmp r3, #32 - 800200a: d102 bne.n 8002012 - 800200c: 481c ldr r0, [pc, #112] ; (8002080 ) - 800200e: f007 fd77 bl 8009b00 + 800224c: 4b13 ldr r3, [pc, #76] ; (800229c ) + 800224e: 781b ldrb r3, [r3, #0] + 8002250: 2b20 cmp r3, #32 + 8002252: d102 bne.n 800225a + 8002254: 481c ldr r0, [pc, #112] ; (80022c8 ) + 8002256: f007 fd89 bl 8009d6c if(GBT_State == GBT_STOP) printf ("GBT_STOP\n"); - 8002012: 4b10 ldr r3, [pc, #64] ; (8002054 ) - 8002014: 781b ldrb r3, [r3, #0] - 8002016: 2b21 cmp r3, #33 ; 0x21 - 8002018: d102 bne.n 8002020 - 800201a: 481a ldr r0, [pc, #104] ; (8002084 ) - 800201c: f007 fd70 bl 8009b00 + 800225a: 4b10 ldr r3, [pc, #64] ; (800229c ) + 800225c: 781b ldrb r3, [r3, #0] + 800225e: 2b21 cmp r3, #33 ; 0x21 + 8002260: d102 bne.n 8002268 + 8002262: 481a ldr r0, [pc, #104] ; (80022cc ) + 8002264: f007 fd82 bl 8009d6c if(GBT_State == GBT_STOP_CSD) printf ("GBT_STOP_CSD\n"); - 8002020: 4b0c ldr r3, [pc, #48] ; (8002054 ) - 8002022: 781b ldrb r3, [r3, #0] - 8002024: 2b22 cmp r3, #34 ; 0x22 - 8002026: d102 bne.n 800202e - 8002028: 4817 ldr r0, [pc, #92] ; (8002088 ) - 800202a: f007 fd69 bl 8009b00 + 8002268: 4b0c ldr r3, [pc, #48] ; (800229c ) + 800226a: 781b ldrb r3, [r3, #0] + 800226c: 2b22 cmp r3, #34 ; 0x22 + 800226e: d102 bne.n 8002276 + 8002270: 4817 ldr r0, [pc, #92] ; (80022d0 ) + 8002272: f007 fd7b bl 8009d6c if(GBT_State == GBT_ERROR) printf ("GBT_ERROR\n"); - 800202e: 4b09 ldr r3, [pc, #36] ; (8002054 ) - 8002030: 781b ldrb r3, [r3, #0] - 8002032: 2b23 cmp r3, #35 ; 0x23 - 8002034: d102 bne.n 800203c - 8002036: 4815 ldr r0, [pc, #84] ; (800208c ) - 8002038: f007 fd62 bl 8009b00 + 8002276: 4b09 ldr r3, [pc, #36] ; (800229c ) + 8002278: 781b ldrb r3, [r3, #0] + 800227a: 2b23 cmp r3, #35 ; 0x23 + 800227c: d102 bne.n 8002284 + 800227e: 4815 ldr r0, [pc, #84] ; (80022d4 ) + 8002280: f007 fd74 bl 8009d6c if(GBT_State == GBT_COMPLETE) printf ("GBT_COMPLETE\n"); - 800203c: 4b05 ldr r3, [pc, #20] ; (8002054 ) - 800203e: 781b ldrb r3, [r3, #0] - 8002040: 2b24 cmp r3, #36 ; 0x24 - 8002042: d102 bne.n 800204a - 8002044: 4812 ldr r0, [pc, #72] ; (8002090 ) - 8002046: f007 fd5b bl 8009b00 + 8002284: 4b05 ldr r3, [pc, #20] ; (800229c ) + 8002286: 781b ldrb r3, [r3, #0] + 8002288: 2b24 cmp r3, #36 ; 0x24 + 800228a: d102 bne.n 8002292 + 800228c: 4812 ldr r0, [pc, #72] ; (80022d8 ) + 800228e: f007 fd6d bl 8009d6c } - 800204a: bf00 nop - 800204c: 3708 adds r7, #8 - 800204e: 46bd mov sp, r7 - 8002050: bd80 pop {r7, pc} - 8002052: bf00 nop - 8002054: 200002e4 .word 0x200002e4 - 8002058: 20001ca6 .word 0x20001ca6 - 800205c: 200002e8 .word 0x200002e8 - 8002060: 0800c9e8 .word 0x0800c9e8 - 8002064: 0800c9f8 .word 0x0800c9f8 - 8002068: 0800ca08 .word 0x0800ca08 - 800206c: 0800ca18 .word 0x0800ca18 - 8002070: 0800ca28 .word 0x0800ca28 - 8002074: 0800ca38 .word 0x0800ca38 - 8002078: 0800ca48 .word 0x0800ca48 - 800207c: 0800ca5c .word 0x0800ca5c - 8002080: 0800ca6c .word 0x0800ca6c - 8002084: 0800ca80 .word 0x0800ca80 - 8002088: 0800ca8c .word 0x0800ca8c - 800208c: 0800ca9c .word 0x0800ca9c - 8002090: 0800caa8 .word 0x0800caa8 + 8002292: bf00 nop + 8002294: 3708 adds r7, #8 + 8002296: 46bd mov sp, r7 + 8002298: bd80 pop {r7, pc} + 800229a: bf00 nop + 800229c: 200002e4 .word 0x200002e4 + 80022a0: 20003326 .word 0x20003326 + 80022a4: 200002e8 .word 0x200002e8 + 80022a8: 0800cc58 .word 0x0800cc58 + 80022ac: 0800cc68 .word 0x0800cc68 + 80022b0: 0800cc78 .word 0x0800cc78 + 80022b4: 0800cc88 .word 0x0800cc88 + 80022b8: 0800cc98 .word 0x0800cc98 + 80022bc: 0800cca8 .word 0x0800cca8 + 80022c0: 0800ccb8 .word 0x0800ccb8 + 80022c4: 0800cccc .word 0x0800cccc + 80022c8: 0800ccdc .word 0x0800ccdc + 80022cc: 0800ccf0 .word 0x0800ccf0 + 80022d0: 0800ccfc .word 0x0800ccfc + 80022d4: 0800cd0c .word 0x0800cd0c + 80022d8: 0800cd18 .word 0x0800cd18 -08002094 : +080022dc : uint32_t GBT_StateTick(){ - 8002094: b580 push {r7, lr} - 8002096: af00 add r7, sp, #0 + 80022dc: b580 push {r7, lr} + 80022de: af00 add r7, sp, #0 return HAL_GetTick() - GBT_state_tick; - 8002098: f002 ff2c bl 8004ef4 - 800209c: 4602 mov r2, r0 - 800209e: 4b02 ldr r3, [pc, #8] ; (80020a8 ) - 80020a0: 681b ldr r3, [r3, #0] - 80020a2: 1ad3 subs r3, r2, r3 + 80022e0: f002 ff3e bl 8005160 + 80022e4: 4602 mov r2, r0 + 80022e6: 4b02 ldr r3, [pc, #8] ; (80022f0 ) + 80022e8: 681b ldr r3, [r3, #0] + 80022ea: 1ad3 subs r3, r2, r3 } - 80020a4: 4618 mov r0, r3 - 80020a6: bd80 pop {r7, pc} - 80020a8: 200002e8 .word 0x200002e8 + 80022ec: 4618 mov r0, r3 + 80022ee: bd80 pop {r7, pc} + 80022f0: 200002e8 .word 0x200002e8 -080020ac : +080022f4 : void GBT_Delay(uint32_t delay){ - 80020ac: b580 push {r7, lr} - 80020ae: b082 sub sp, #8 - 80020b0: af00 add r7, sp, #0 - 80020b2: 6078 str r0, [r7, #4] + 80022f4: b580 push {r7, lr} + 80022f6: b082 sub sp, #8 + 80022f8: af00 add r7, sp, #0 + 80022fa: 6078 str r0, [r7, #4] GBT_delay = HAL_GetTick()+delay; - 80020b4: f002 ff1e bl 8004ef4 - 80020b8: 4602 mov r2, r0 - 80020ba: 687b ldr r3, [r7, #4] - 80020bc: 4413 add r3, r2 - 80020be: 4a03 ldr r2, [pc, #12] ; (80020cc ) - 80020c0: 6013 str r3, [r2, #0] + 80022fc: f002 ff30 bl 8005160 + 8002300: 4602 mov r2, r0 + 8002302: 687b ldr r3, [r7, #4] + 8002304: 4413 add r3, r2 + 8002306: 4a03 ldr r2, [pc, #12] ; (8002314 ) + 8002308: 6013 str r3, [r2, #0] } - 80020c2: bf00 nop - 80020c4: 3708 adds r7, #8 - 80020c6: 46bd mov sp, r7 - 80020c8: bd80 pop {r7, pc} - 80020ca: bf00 nop - 80020cc: 200002ec .word 0x200002ec + 800230a: bf00 nop + 800230c: 3708 adds r7, #8 + 800230e: 46bd mov sp, r7 + 8002310: bd80 pop {r7, pc} + 8002312: bf00 nop + 8002314: 200002ec .word 0x200002ec -080020d0 : +08002318 : void GBT_Stop(uint32_t causecode){ - 80020d0: b580 push {r7, lr} - 80020d2: b082 sub sp, #8 - 80020d4: af00 add r7, sp, #0 - 80020d6: 6078 str r0, [r7, #4] + 8002318: b580 push {r7, lr} + 800231a: b082 sub sp, #8 + 800231c: af00 add r7, sp, #0 + 800231e: 6078 str r0, [r7, #4] GBT_StopCauseCode = causecode; - 80020d8: 4a06 ldr r2, [pc, #24] ; (80020f4 ) - 80020da: 687b ldr r3, [r7, #4] - 80020dc: 6013 str r3, [r2, #0] + 8002320: 4a06 ldr r2, [pc, #24] ; (800233c ) + 8002322: 687b ldr r3, [r7, #4] + 8002324: 6013 str r3, [r2, #0] if(GBT_State != GBT_STOP) GBT_SwitchState(GBT_STOP); - 80020de: 4b06 ldr r3, [pc, #24] ; (80020f8 ) - 80020e0: 781b ldrb r3, [r3, #0] - 80020e2: 2b21 cmp r3, #33 ; 0x21 - 80020e4: d002 beq.n 80020ec - 80020e6: 2021 movs r0, #33 ; 0x21 - 80020e8: f7ff ff44 bl 8001f74 + 8002326: 4b06 ldr r3, [pc, #24] ; (8002340 ) + 8002328: 781b ldrb r3, [r3, #0] + 800232a: 2b21 cmp r3, #33 ; 0x21 + 800232c: d002 beq.n 8002334 + 800232e: 2021 movs r0, #33 ; 0x21 + 8002330: f7ff ff44 bl 80021bc } - 80020ec: bf00 nop - 80020ee: 3708 adds r7, #8 - 80020f0: 46bd mov sp, r7 - 80020f2: bd80 pop {r7, pc} - 80020f4: 2000038c .word 0x2000038c - 80020f8: 200002e4 .word 0x200002e4 + 8002334: bf00 nop + 8002336: 3708 adds r7, #8 + 8002338: 46bd mov sp, r7 + 800233a: bd80 pop {r7, pc} + 800233c: 2000038c .word 0x2000038c + 8002340: 200002e4 .word 0x200002e4 -080020fc : +08002344 : void GBT_Error(uint32_t errorcode){ - 80020fc: b580 push {r7, lr} - 80020fe: b082 sub sp, #8 - 8002100: af00 add r7, sp, #0 - 8002102: 6078 str r0, [r7, #4] + 8002344: b580 push {r7, lr} + 8002346: b082 sub sp, #8 + 8002348: af00 add r7, sp, #0 + 800234a: 6078 str r0, [r7, #4] GBT_ErrorCode = errorcode; - 8002104: 4a04 ldr r2, [pc, #16] ; (8002118 ) - 8002106: 687b ldr r3, [r7, #4] - 8002108: 6013 str r3, [r2, #0] + 800234c: 4a04 ldr r2, [pc, #16] ; (8002360 ) + 800234e: 687b ldr r3, [r7, #4] + 8002350: 6013 str r3, [r2, #0] GBT_SwitchState(GBT_ERROR); - 800210a: 2023 movs r0, #35 ; 0x23 - 800210c: f7ff ff32 bl 8001f74 + 8002352: 2023 movs r0, #35 ; 0x23 + 8002354: f7ff ff32 bl 80021bc } - 8002110: bf00 nop - 8002112: 3708 adds r7, #8 - 8002114: 46bd mov sp, r7 - 8002116: bd80 pop {r7, pc} - 8002118: 20000390 .word 0x20000390 + 8002358: bf00 nop + 800235a: 3708 adds r7, #8 + 800235c: 46bd mov sp, r7 + 800235e: bd80 pop {r7, pc} + 8002360: 20000390 .word 0x20000390 -0800211c : +08002364 : void GBT_ForceStop(){ - 800211c: b580 push {r7, lr} - 800211e: af00 add r7, sp, #0 + 8002364: b580 push {r7, lr} + 8002366: af00 add r7, sp, #0 GBT_EDCAN_Output.enablePSU = 0; - 8002120: 4b07 ldr r3, [pc, #28] ; (8002140 ) - 8002122: 2200 movs r2, #0 - 8002124: 701a strb r2, [r3, #0] + 8002368: 4b07 ldr r3, [pc, #28] ; (8002388 ) + 800236a: 2200 movs r2, #0 + 800236c: 701a strb r2, [r3, #0] GBT_SwitchState(GBT_COMPLETE); - 8002126: 2024 movs r0, #36 ; 0x24 - 8002128: f7ff ff24 bl 8001f74 + 800236e: 2024 movs r0, #36 ; 0x24 + 8002370: f7ff ff24 bl 80021bc GBT_Lock(0); - 800212c: 2000 movs r0, #0 - 800212e: f001 fc45 bl 80039bc + 8002374: 2000 movs r0, #0 + 8002376: f001 fc61 bl 8003c3c RELAY_Write(RELAY_AUX, 0); - 8002132: 2100 movs r1, #0 - 8002134: 2000 movs r0, #0 - 8002136: f7ff fa57 bl 80015e8 + 800237a: 2100 movs r1, #0 + 800237c: 2000 movs r0, #0 + 800237e: f7ff f9a9 bl 80016d4 } - 800213a: bf00 nop - 800213c: bd80 pop {r7, pc} - 800213e: bf00 nop - 8002140: 200004a8 .word 0x200004a8 + 8002382: bf00 nop + 8002384: bd80 pop {r7, pc} + 8002386: bf00 nop + 8002388: 200004a8 .word 0x200004a8 -08002144 : +0800238c : void GBT_Reset(){ - 8002144: b580 push {r7, lr} - 8002146: af00 add r7, sp, #0 + 800238c: b580 push {r7, lr} + 800238e: af00 add r7, sp, #0 GBT_BAT_INFO_recv = 0; - 8002148: 4b26 ldr r3, [pc, #152] ; (80021e4 ) - 800214a: 2200 movs r2, #0 - 800214c: 701a strb r2, [r3, #0] + 8002390: 4b26 ldr r3, [pc, #152] ; (800242c ) + 8002392: 2200 movs r2, #0 + 8002394: 701a strb r2, [r3, #0] GBT_BAT_STAT_recv = 0; - 800214e: 4b26 ldr r3, [pc, #152] ; (80021e8 ) - 8002150: 2200 movs r2, #0 - 8002152: 701a strb r2, [r3, #0] + 8002396: 4b26 ldr r3, [pc, #152] ; (8002430 ) + 8002398: 2200 movs r2, #0 + 800239a: 701a strb r2, [r3, #0] GBT_BRO_recv = 0; - 8002154: 4b25 ldr r3, [pc, #148] ; (80021ec ) - 8002156: 2200 movs r2, #0 - 8002158: 701a strb r2, [r3, #0] + 800239c: 4b25 ldr r3, [pc, #148] ; (8002434 ) + 800239e: 2200 movs r2, #0 + 80023a0: 701a strb r2, [r3, #0] GBT_BHM_recv = 0; - 800215a: 4b25 ldr r3, [pc, #148] ; (80021f0 ) - 800215c: 2200 movs r2, #0 - 800215e: 701a strb r2, [r3, #0] + 80023a2: 4b25 ldr r3, [pc, #148] ; (8002438 ) + 80023a4: 2200 movs r2, #0 + 80023a6: 701a strb r2, [r3, #0] GBT_BSD_recv = 0; - 8002160: 4b24 ldr r3, [pc, #144] ; (80021f4 ) - 8002162: 2200 movs r2, #0 - 8002164: 701a strb r2, [r3, #0] + 80023a8: 4b24 ldr r3, [pc, #144] ; (800243c ) + 80023aa: 2200 movs r2, #0 + 80023ac: 701a strb r2, [r3, #0] EV_ready = 0; - 8002166: 4b24 ldr r3, [pc, #144] ; (80021f8 ) - 8002168: 2200 movs r2, #0 - 800216a: 701a strb r2, [r3, #0] + 80023ae: 4b24 ldr r3, [pc, #144] ; (8002440 ) + 80023b0: 2200 movs r2, #0 + 80023b2: 701a strb r2, [r3, #0] memset(&GBT_EVInfo, 0, sizeof (GBT_EVInfo)); - 800216c: 2231 movs r2, #49 ; 0x31 - 800216e: 2100 movs r1, #0 - 8002170: 4822 ldr r0, [pc, #136] ; (80021fc ) - 8002172: f006 fefb bl 8008f6c + 80023b4: 2231 movs r2, #49 ; 0x31 + 80023b6: 2100 movs r1, #0 + 80023b8: 4822 ldr r0, [pc, #136] ; (8002444 ) + 80023ba: f006 ff0d bl 80091d8 memset(&GBT_BATStat, 0, sizeof (GBT_BATStat)); - 8002176: 220d movs r2, #13 - 8002178: 2100 movs r1, #0 - 800217a: 4821 ldr r0, [pc, #132] ; (8002200 ) - 800217c: f006 fef6 bl 8008f6c + 80023be: 220d movs r2, #13 + 80023c0: 2100 movs r1, #0 + 80023c2: 4821 ldr r0, [pc, #132] ; (8002448 ) + 80023c4: f006 ff08 bl 80091d8 memset(&GBT_ReqPower, 0, sizeof (GBT_ReqPower)); - 8002180: 2205 movs r2, #5 - 8002182: 2100 movs r1, #0 - 8002184: 481f ldr r0, [pc, #124] ; (8002204 ) - 8002186: f006 fef1 bl 8008f6c + 80023c8: 2205 movs r2, #5 + 80023ca: 2100 movs r1, #0 + 80023cc: 481f ldr r0, [pc, #124] ; (800244c ) + 80023ce: f006 ff03 bl 80091d8 memset(&GBT_CurrPower, 0, sizeof (GBT_CurrPower)); - 800218a: 2205 movs r2, #5 - 800218c: 2100 movs r1, #0 - 800218e: 481e ldr r0, [pc, #120] ; (8002208 ) - 8002190: f006 feec bl 8008f6c + 80023d2: 2205 movs r2, #5 + 80023d4: 2100 movs r1, #0 + 80023d6: 481e ldr r0, [pc, #120] ; (8002450 ) + 80023d8: f006 fefe bl 80091d8 memset(&GBT_MaxVoltage, 0, sizeof (GBT_MaxVoltage)); - 8002194: 2202 movs r2, #2 - 8002196: 2100 movs r1, #0 - 8002198: 481c ldr r0, [pc, #112] ; (800220c ) - 800219a: f006 fee7 bl 8008f6c + 80023dc: 2202 movs r2, #2 + 80023de: 2100 movs r1, #0 + 80023e0: 481c ldr r0, [pc, #112] ; (8002454 ) + 80023e2: f006 fef9 bl 80091d8 memset(&GBT_ChargingStatus, 0, sizeof (GBT_ChargingStatus)); - 800219e: 220b movs r2, #11 - 80021a0: 2100 movs r1, #0 - 80021a2: 481b ldr r0, [pc, #108] ; (8002210 ) - 80021a4: f006 fee2 bl 8008f6c + 80023e6: 220b movs r2, #11 + 80023e8: 2100 movs r1, #0 + 80023ea: 481b ldr r0, [pc, #108] ; (8002458 ) + 80023ec: f006 fef4 bl 80091d8 memset(&GBT_BatteryStatus, 0, sizeof (GBT_BatteryStatus)); - 80021a8: 2207 movs r2, #7 - 80021aa: 2100 movs r1, #0 - 80021ac: 4819 ldr r0, [pc, #100] ; (8002214 ) - 80021ae: f006 fedd bl 8008f6c + 80023f0: 2207 movs r2, #7 + 80023f2: 2100 movs r1, #0 + 80023f4: 4819 ldr r0, [pc, #100] ; (800245c ) + 80023f6: f006 feef bl 80091d8 memset(&GBT_ChargerCurrentStatus, 0, sizeof (GBT_ChargerCurrentStatus)); - 80021b2: 2208 movs r2, #8 - 80021b4: 2100 movs r1, #0 - 80021b6: 4818 ldr r0, [pc, #96] ; (8002218 ) - 80021b8: f006 fed8 bl 8008f6c + 80023fa: 2208 movs r2, #8 + 80023fc: 2100 movs r1, #0 + 80023fe: 4818 ldr r0, [pc, #96] ; (8002460 ) + 8002400: f006 feea bl 80091d8 memset(&GBT_ChargerStop, 0, sizeof (GBT_ChargerStop)); - 80021bc: 2208 movs r2, #8 - 80021be: 2100 movs r1, #0 - 80021c0: 4816 ldr r0, [pc, #88] ; (800221c ) - 80021c2: f006 fed3 bl 8008f6c + 8002404: 2208 movs r2, #8 + 8002406: 2100 movs r1, #0 + 8002408: 4816 ldr r0, [pc, #88] ; (8002464 ) + 800240a: f006 fee5 bl 80091d8 GBT_CurrPower.requestedCurrent = 4000; //0A - 80021c6: 4b10 ldr r3, [pc, #64] ; (8002208 ) - 80021c8: f44f 627a mov.w r2, #4000 ; 0xfa0 - 80021cc: 805a strh r2, [r3, #2] + 800240e: 4b10 ldr r3, [pc, #64] ; (8002450 ) + 8002410: f44f 627a mov.w r2, #4000 ; 0xfa0 + 8002414: 805a strh r2, [r3, #2] GBT_CurrPower.requestedVoltage = 0; //0V - 80021ce: 4b0e ldr r3, [pc, #56] ; (8002208 ) - 80021d0: 2200 movs r2, #0 - 80021d2: 801a strh r2, [r3, #0] + 8002416: 4b0e ldr r3, [pc, #56] ; (8002450 ) + 8002418: 2200 movs r2, #0 + 800241a: 801a strh r2, [r3, #0] GBT_TimeChargingStarted = 0; - 80021d4: 4b12 ldr r3, [pc, #72] ; (8002220 ) - 80021d6: 2200 movs r2, #0 - 80021d8: 601a str r2, [r3, #0] + 800241c: 4b12 ldr r3, [pc, #72] ; (8002468 ) + 800241e: 2200 movs r2, #0 + 8002420: 601a str r2, [r3, #0] GBT_BRO = 0x00; - 80021da: 4b12 ldr r3, [pc, #72] ; (8002224 ) - 80021dc: 2200 movs r2, #0 - 80021de: 701a strb r2, [r3, #0] + 8002422: 4b12 ldr r3, [pc, #72] ; (800246c ) + 8002424: 2200 movs r2, #0 + 8002426: 701a strb r2, [r3, #0] } - 80021e0: bf00 nop - 80021e2: bd80 pop {r7, pc} - 80021e4: 200002f0 .word 0x200002f0 - 80021e8: 200002f1 .word 0x200002f1 - 80021ec: 200002f2 .word 0x200002f2 - 80021f0: 200002f3 .word 0x200002f3 - 80021f4: 200002f4 .word 0x200002f4 - 80021f8: 200002f5 .word 0x200002f5 - 80021fc: 2000030c .word 0x2000030c - 8002200: 20000340 .word 0x20000340 - 8002204: 20000350 .word 0x20000350 - 8002208: 20000358 .word 0x20000358 - 800220c: 20000308 .word 0x20000308 - 8002210: 20000360 .word 0x20000360 - 8002214: 2000036c .word 0x2000036c - 8002218: 20000374 .word 0x20000374 - 800221c: 2000037c .word 0x2000037c - 8002220: 20000388 .word 0x20000388 - 8002224: 20000384 .word 0x20000384 + 8002428: bf00 nop + 800242a: bd80 pop {r7, pc} + 800242c: 200002f0 .word 0x200002f0 + 8002430: 200002f1 .word 0x200002f1 + 8002434: 200002f2 .word 0x200002f2 + 8002438: 200002f3 .word 0x200002f3 + 800243c: 200002f4 .word 0x200002f4 + 8002440: 200002f5 .word 0x200002f5 + 8002444: 2000030c .word 0x2000030c + 8002448: 20000340 .word 0x20000340 + 800244c: 20000350 .word 0x20000350 + 8002450: 20000358 .word 0x20000358 + 8002454: 20000308 .word 0x20000308 + 8002458: 20000360 .word 0x20000360 + 800245c: 2000036c .word 0x2000036c + 8002460: 20000374 .word 0x20000374 + 8002464: 2000037c .word 0x2000037c + 8002468: 20000388 .word 0x20000388 + 800246c: 20000384 .word 0x20000384 -08002228 : +08002470 : void GBT_Start(){ - 8002228: b580 push {r7, lr} - 800222a: af00 add r7, sp, #0 + 8002470: b580 push {r7, lr} + 8002472: af00 add r7, sp, #0 RELAY_Write(RELAY_AUX, 1); - 800222c: 2101 movs r1, #1 - 800222e: 2000 movs r0, #0 - 8002230: f7ff f9da bl 80015e8 + 8002474: 2101 movs r1, #1 + 8002476: 2000 movs r0, #0 + 8002478: f7ff f92c bl 80016d4 GBT_SwitchState(GBT_S3_STARTED); - 8002234: 2013 movs r0, #19 - 8002236: f7ff fe9d bl 8001f74 + 800247c: 2013 movs r0, #19 + 800247e: f7ff fe9d bl 80021bc } - 800223a: bf00 nop - 800223c: bd80 pop {r7, pc} + 8002482: bf00 nop + 8002484: bd80 pop {r7, pc} -0800223e : +08002486 : extern GBT_EDCAN_Output_t GBT_EDCAN_Output; extern GBT_EDCAN_Input_t GBT_EDCAN_Input; uint8_t CC_STATE_FILTERED; void CONN_Init(){ - 800223e: b580 push {r7, lr} - 8002240: af00 add r7, sp, #0 + 8002486: b580 push {r7, lr} + 8002488: af00 add r7, sp, #0 CONN_SetState(CONN_Initializing); - 8002242: 2001 movs r0, #1 - 8002244: f000 f888 bl 8002358 + 800248a: 2001 movs r0, #1 + 800248c: f000 f880 bl 8002590 } - 8002248: bf00 nop - 800224a: bd80 pop {r7, pc} + 8002490: bf00 nop + 8002492: bd80 pop {r7, pc} -0800224c : +08002494 : void CONN_Task(){ - 800224c: b580 push {r7, lr} - 800224e: af00 add r7, sp, #0 + 8002494: b580 push {r7, lr} + 8002496: af00 add r7, sp, #0 switch (connectorState){ - 8002250: 4b3d ldr r3, [pc, #244] ; (8002348 ) - 8002252: 781b ldrb r3, [r3, #0] - 8002254: 3b01 subs r3, #1 - 8002256: 2b05 cmp r3, #5 - 8002258: d868 bhi.n 800232c - 800225a: a201 add r2, pc, #4 ; (adr r2, 8002260 ) - 800225c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002260: 08002279 .word 0x08002279 - 8002264: 0800228d .word 0x0800228d - 8002268: 08002295 .word 0x08002295 - 800226c: 080022bb .word 0x080022bb - 8002270: 080022f1 .word 0x080022f1 - 8002274: 08002307 .word 0x08002307 + 8002498: 4b39 ldr r3, [pc, #228] ; (8002580 ) + 800249a: 781b ldrb r3, [r3, #0] + 800249c: 3b01 subs r3, #1 + 800249e: 2b05 cmp r3, #5 + 80024a0: d861 bhi.n 8002566 + 80024a2: a201 add r2, pc, #4 ; (adr r2, 80024a8 ) + 80024a4: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80024a8: 080024c1 .word 0x080024c1 + 80024ac: 080024d5 .word 0x080024d5 + 80024b0: 080024dd .word 0x080024dd + 80024b4: 08002503 .word 0x08002503 + 80024b8: 08002539 .word 0x08002539 + 80024bc: 0800254f .word 0x0800254f case CONN_Initializing: // unlocked GBT_Lock(0); - 8002278: 2000 movs r0, #0 - 800227a: f001 fb9f bl 80039bc + 80024c0: 2000 movs r0, #0 + 80024c2: f001 fbbb bl 8003c3c CONN_SetState(CONN_Available); - 800227e: 2003 movs r0, #3 - 8002280: f000 f86a bl 8002358 + 80024c6: 2003 movs r0, #3 + 80024c8: f000 f862 bl 8002590 GBT_LockState.error = 0; - 8002284: 4b31 ldr r3, [pc, #196] ; (800234c ) - 8002286: 2200 movs r2, #0 - 8002288: 705a strb r2, [r3, #1] + 80024cc: 4b2d ldr r3, [pc, #180] ; (8002584 ) + 80024ce: 2200 movs r2, #0 + 80024d0: 705a strb r2, [r3, #1] break; - 800228a: e05a b.n 8002342 + 80024d2: e053 b.n 800257c case CONN_Error: //unlocked GBT_Lock(0); - 800228c: 2000 movs r0, #0 - 800228e: f001 fb95 bl 80039bc + 80024d4: 2000 movs r0, #0 + 80024d6: f001 fbb1 bl 8003c3c break; - 8002292: e056 b.n 8002342 + 80024da: e04f b.n 800257c case CONN_Available: //unlocked, waiting to connect GBT_Lock(0); - 8002294: 2000 movs r0, #0 - 8002296: f001 fb91 bl 80039bc + 80024dc: 2000 movs r0, #0 + 80024de: f001 fbad bl 8003c3c if((CONN_CC_GetState()==GBT_CC_4V) && (GBT_EDCAN_Input.chargeControl != FORCE_UNLOCK)){ - 800229a: f000 f8e5 bl 8002468 - 800229e: 4603 mov r3, r0 - 80022a0: 2b03 cmp r3, #3 - 80022a2: d147 bne.n 8002334 - 80022a4: 4b2a ldr r3, [pc, #168] ; (8002350 ) - 80022a6: 795b ldrb r3, [r3, #5] - 80022a8: 2b03 cmp r3, #3 - 80022aa: d043 beq.n 8002334 + 80024e2: f000 f8dd bl 80026a0 + 80024e6: 4603 mov r3, r0 + 80024e8: 2b03 cmp r3, #3 + 80024ea: d140 bne.n 800256e + 80024ec: 4b26 ldr r3, [pc, #152] ; (8002588 ) + 80024ee: 795b ldrb r3, [r3, #5] + 80024f0: 2b03 cmp r3, #3 + 80024f2: d03c beq.n 800256e CONN_SetState(CONN_Occupied_waiting); - 80022ac: 2004 movs r0, #4 - 80022ae: f000 f853 bl 8002358 + 80024f4: 2004 movs r0, #4 + 80024f6: f000 f84b bl 8002590 GBT_Lock(1); - 80022b2: 2001 movs r0, #1 - 80022b4: f001 fb82 bl 80039bc + 80024fa: 2001 movs r0, #1 + 80024fc: f001 fb9e bl 8003c3c } break; - 80022b8: e03c b.n 8002334 + 8002500: e035 b.n 800256e case CONN_Occupied_waiting: //locked, waiting to charge GBT_Lock(1); - 80022ba: 2001 movs r0, #1 - 80022bc: f001 fb7e bl 80039bc + 8002502: 2001 movs r0, #1 + 8002504: f001 fb9a bl 8003c3c if(CONN_CC_GetState()==GBT_CC_4V){ - 80022c0: f000 f8d2 bl 8002468 - 80022c4: 4603 mov r3, r0 - 80022c6: 2b03 cmp r3, #3 - 80022c8: d10e bne.n 80022e8 + 8002508: f000 f8ca bl 80026a0 + 800250c: 4603 mov r3, r0 + 800250e: 2b03 cmp r3, #3 + 8002510: d10e bne.n 8002530 if(GBT_EDCAN_Input.chargeControl == CHARGING_ALLOWED){ - 80022ca: 4b21 ldr r3, [pc, #132] ; (8002350 ) - 80022cc: 795b ldrb r3, [r3, #5] - 80022ce: 2b02 cmp r3, #2 - 80022d0: d102 bne.n 80022d8 + 8002512: 4b1d ldr r3, [pc, #116] ; (8002588 ) + 8002514: 795b ldrb r3, [r3, #5] + 8002516: 2b02 cmp r3, #2 + 8002518: d102 bne.n 8002520 // RELAY_Write(RELAY_AUX, 1); // GBT_Start(); CONN_SetState(CONN_Occupied_charging); - 80022d2: 2005 movs r0, #5 - 80022d4: f000 f840 bl 8002358 + 800251a: 2005 movs r0, #5 + 800251c: f000 f838 bl 8002590 } if(GBT_EDCAN_Input.chargeControl == FORCE_UNLOCK){ - 80022d8: 4b1d ldr r3, [pc, #116] ; (8002350 ) - 80022da: 795b ldrb r3, [r3, #5] - 80022dc: 2b03 cmp r3, #3 - 80022de: d12b bne.n 8002338 + 8002520: 4b19 ldr r3, [pc, #100] ; (8002588 ) + 8002522: 795b ldrb r3, [r3, #5] + 8002524: 2b03 cmp r3, #3 + 8002526: d124 bne.n 8002572 CONN_SetState(CONN_Available); - 80022e0: 2003 movs r0, #3 - 80022e2: f000 f839 bl 8002358 + 8002528: 2003 movs r0, #3 + 800252a: f000 f831 bl 8002590 } //if (CHARGING_NOT_ALLOWED) stay here }else{ CONN_SetState(CONN_Available); } break; - 80022e6: e027 b.n 8002338 + 800252e: e020 b.n 8002572 CONN_SetState(CONN_Available); - 80022e8: 2003 movs r0, #3 - 80022ea: f000 f835 bl 8002358 + 8002530: 2003 movs r0, #3 + 8002532: f000 f82d bl 8002590 break; - 80022ee: e023 b.n 8002338 + 8002536: e01c b.n 8002572 case CONN_Occupied_charging://charging, locked GBT_Lock(1); - 80022f0: 2001 movs r0, #1 - 80022f2: f001 fb63 bl 80039bc + 8002538: 2001 movs r0, #1 + 800253a: f001 fb7f bl 8003c3c if(GBT_State == GBT_COMPLETE){ - 80022f6: 4b17 ldr r3, [pc, #92] ; (8002354 ) - 80022f8: 781b ldrb r3, [r3, #0] - 80022fa: 2b24 cmp r3, #36 ; 0x24 - 80022fc: d11e bne.n 800233c + 800253e: 4b13 ldr r3, [pc, #76] ; (800258c ) + 8002540: 781b ldrb r3, [r3, #0] + 8002542: 2b24 cmp r3, #36 ; 0x24 + 8002544: d117 bne.n 8002576 CONN_SetState(CONN_Occupied_complete); - 80022fe: 2006 movs r0, #6 - 8002300: f000 f82a bl 8002358 + 8002546: 2006 movs r0, #6 + 8002548: f000 f822 bl 8002590 } // break; - 8002304: e01a b.n 800233c + 800254c: e013 b.n 8002576 case CONN_Occupied_complete://charging completed, waiting to disconnect, unlocked GBT_Lock(0); - 8002306: 2000 movs r0, #0 - 8002308: f001 fb58 bl 80039bc + 800254e: 2000 movs r0, #0 + 8002550: f001 fb74 bl 8003c3c // RELAY_Write(RELAY_AUX, 0); //TODO: Reconnection - if(GBT_EDCAN_Input.chargeControl == CHARGING_NOT_ALLOWED){ - 800230c: 4b10 ldr r3, [pc, #64] ; (8002350 ) - 800230e: 795b ldrb r3, [r3, #5] - 8002310: 2b01 cmp r3, #1 - 8002312: d102 bne.n 800231a - CONN_SetState(CONN_Initializing); - 8002314: 2001 movs r0, #1 - 8002316: f000 f81f bl 8002358 - } +// if(GBT_EDCAN_Input.chargeControl == CHARGING_NOT_ALLOWED){ +// CONN_SetState(CONN_Initializing); +// } if(CONN_CC_GetState()==GBT_CC_6V){ - 800231a: f000 f8a5 bl 8002468 - 800231e: 4603 mov r3, r0 - 8002320: 2b02 cmp r3, #2 - 8002322: d10d bne.n 8002340 + 8002554: f000 f8a4 bl 80026a0 + 8002558: 4603 mov r3, r0 + 800255a: 2b02 cmp r3, #2 + 800255c: d10d bne.n 800257a CONN_SetState(CONN_Initializing); - 8002324: 2001 movs r0, #1 - 8002326: f000 f817 bl 8002358 + 800255e: 2001 movs r0, #1 + 8002560: f000 f816 bl 8002590 } //Проблема, если нажать кнопку и не вынуть пистолет, то он снова блочится break; - 800232a: e009 b.n 8002340 + 8002564: e009 b.n 800257a default: CONN_SetState(CONN_Initializing); - 800232c: 2001 movs r0, #1 - 800232e: f000 f813 bl 8002358 + 8002566: 2001 movs r0, #1 + 8002568: f000 f812 bl 8002590 } } - 8002332: e006 b.n 8002342 + 800256c: e006 b.n 800257c break; - 8002334: bf00 nop - 8002336: e004 b.n 8002342 + 800256e: bf00 nop + 8002570: e004 b.n 800257c break; - 8002338: bf00 nop - 800233a: e002 b.n 8002342 + 8002572: bf00 nop + 8002574: e002 b.n 800257c break; - 800233c: bf00 nop - 800233e: e000 b.n 8002342 + 8002576: bf00 nop + 8002578: e000 b.n 800257c break; - 8002340: bf00 nop + 800257a: bf00 nop } - 8002342: bf00 nop - 8002344: bd80 pop {r7, pc} - 8002346: bf00 nop - 8002348: 20000394 .word 0x20000394 - 800234c: 200005d0 .word 0x200005d0 - 8002350: 200004b8 .word 0x200004b8 - 8002354: 200002e4 .word 0x200002e4 + 800257c: bf00 nop + 800257e: bd80 pop {r7, pc} + 8002580: 20000394 .word 0x20000394 + 8002584: 200005d0 .word 0x200005d0 + 8002588: 200004b8 .word 0x200004b8 + 800258c: 200002e4 .word 0x200002e4 -08002358 : +08002590 : //external //CONN_SetState(CONN_Error); //CONN_SetState(CONN_Occupied_charging); //CONN_SetState(CONN_Occupied_Complete); void CONN_SetState(CONN_State_t state){ - 8002358: b580 push {r7, lr} - 800235a: b082 sub sp, #8 - 800235c: af00 add r7, sp, #0 - 800235e: 4603 mov r3, r0 - 8002360: 71fb strb r3, [r7, #7] + 8002590: b580 push {r7, lr} + 8002592: b082 sub sp, #8 + 8002594: af00 add r7, sp, #0 + 8002596: 4603 mov r3, r0 + 8002598: 71fb strb r3, [r7, #7] connectorState = state; - 8002362: 4a1a ldr r2, [pc, #104] ; (80023cc ) - 8002364: 79fb ldrb r3, [r7, #7] - 8002366: 7013 strb r3, [r2, #0] + 800259a: 4a1a ldr r2, [pc, #104] ; (8002604 ) + 800259c: 79fb ldrb r3, [r7, #7] + 800259e: 7013 strb r3, [r2, #0] if(connectorState == CONN_Initializing) printf ("CONN_Initializing\n"); - 8002368: 4b18 ldr r3, [pc, #96] ; (80023cc ) - 800236a: 781b ldrb r3, [r3, #0] - 800236c: 2b01 cmp r3, #1 - 800236e: d102 bne.n 8002376 - 8002370: 4817 ldr r0, [pc, #92] ; (80023d0 ) - 8002372: f007 fbc5 bl 8009b00 + 80025a0: 4b18 ldr r3, [pc, #96] ; (8002604 ) + 80025a2: 781b ldrb r3, [r3, #0] + 80025a4: 2b01 cmp r3, #1 + 80025a6: d102 bne.n 80025ae + 80025a8: 4817 ldr r0, [pc, #92] ; (8002608 ) + 80025aa: f007 fbdf bl 8009d6c if(connectorState == CONN_Error) printf ("CONN_Error\n"); - 8002376: 4b15 ldr r3, [pc, #84] ; (80023cc ) - 8002378: 781b ldrb r3, [r3, #0] - 800237a: 2b02 cmp r3, #2 - 800237c: d102 bne.n 8002384 - 800237e: 4815 ldr r0, [pc, #84] ; (80023d4 ) - 8002380: f007 fbbe bl 8009b00 + 80025ae: 4b15 ldr r3, [pc, #84] ; (8002604 ) + 80025b0: 781b ldrb r3, [r3, #0] + 80025b2: 2b02 cmp r3, #2 + 80025b4: d102 bne.n 80025bc + 80025b6: 4815 ldr r0, [pc, #84] ; (800260c ) + 80025b8: f007 fbd8 bl 8009d6c if(connectorState == CONN_Available) printf ("CONN_Available\n"); - 8002384: 4b11 ldr r3, [pc, #68] ; (80023cc ) - 8002386: 781b ldrb r3, [r3, #0] - 8002388: 2b03 cmp r3, #3 - 800238a: d102 bne.n 8002392 - 800238c: 4812 ldr r0, [pc, #72] ; (80023d8 ) - 800238e: f007 fbb7 bl 8009b00 + 80025bc: 4b11 ldr r3, [pc, #68] ; (8002604 ) + 80025be: 781b ldrb r3, [r3, #0] + 80025c0: 2b03 cmp r3, #3 + 80025c2: d102 bne.n 80025ca + 80025c4: 4812 ldr r0, [pc, #72] ; (8002610 ) + 80025c6: f007 fbd1 bl 8009d6c if(connectorState == CONN_Occupied_waiting) printf ("CONN_Occupied_waiting\n"); - 8002392: 4b0e ldr r3, [pc, #56] ; (80023cc ) - 8002394: 781b ldrb r3, [r3, #0] - 8002396: 2b04 cmp r3, #4 - 8002398: d102 bne.n 80023a0 - 800239a: 4810 ldr r0, [pc, #64] ; (80023dc ) - 800239c: f007 fbb0 bl 8009b00 + 80025ca: 4b0e ldr r3, [pc, #56] ; (8002604 ) + 80025cc: 781b ldrb r3, [r3, #0] + 80025ce: 2b04 cmp r3, #4 + 80025d0: d102 bne.n 80025d8 + 80025d2: 4810 ldr r0, [pc, #64] ; (8002614 ) + 80025d4: f007 fbca bl 8009d6c if(connectorState == CONN_Occupied_charging) printf ("CONN_Occupied_charging\n"); - 80023a0: 4b0a ldr r3, [pc, #40] ; (80023cc ) - 80023a2: 781b ldrb r3, [r3, #0] - 80023a4: 2b05 cmp r3, #5 - 80023a6: d102 bne.n 80023ae - 80023a8: 480d ldr r0, [pc, #52] ; (80023e0 ) - 80023aa: f007 fba9 bl 8009b00 + 80025d8: 4b0a ldr r3, [pc, #40] ; (8002604 ) + 80025da: 781b ldrb r3, [r3, #0] + 80025dc: 2b05 cmp r3, #5 + 80025de: d102 bne.n 80025e6 + 80025e0: 480d ldr r0, [pc, #52] ; (8002618 ) + 80025e2: f007 fbc3 bl 8009d6c if(connectorState == CONN_Occupied_complete) printf ("CONN_Occupied_complete\n"); - 80023ae: 4b07 ldr r3, [pc, #28] ; (80023cc ) - 80023b0: 781b ldrb r3, [r3, #0] - 80023b2: 2b06 cmp r3, #6 - 80023b4: d102 bne.n 80023bc - 80023b6: 480b ldr r0, [pc, #44] ; (80023e4 ) - 80023b8: f007 fba2 bl 8009b00 + 80025e6: 4b07 ldr r3, [pc, #28] ; (8002604 ) + 80025e8: 781b ldrb r3, [r3, #0] + 80025ea: 2b06 cmp r3, #6 + 80025ec: d102 bne.n 80025f4 + 80025ee: 480b ldr r0, [pc, #44] ; (800261c ) + 80025f0: f007 fbbc bl 8009d6c GBT_EDCAN_Output.connectorState = state; - 80023bc: 4a0a ldr r2, [pc, #40] ; (80023e8 ) - 80023be: 79fb ldrb r3, [r7, #7] - 80023c0: 7313 strb r3, [r2, #12] + 80025f4: 4a0a ldr r2, [pc, #40] ; (8002620 ) + 80025f6: 79fb ldrb r3, [r7, #7] + 80025f8: 7313 strb r3, [r2, #12] } - 80023c2: bf00 nop - 80023c4: 3708 adds r7, #8 - 80023c6: 46bd mov sp, r7 - 80023c8: bd80 pop {r7, pc} - 80023ca: bf00 nop - 80023cc: 20000394 .word 0x20000394 - 80023d0: 0800cab8 .word 0x0800cab8 - 80023d4: 0800cacc .word 0x0800cacc - 80023d8: 0800cad8 .word 0x0800cad8 - 80023dc: 0800cae8 .word 0x0800cae8 - 80023e0: 0800cb00 .word 0x0800cb00 - 80023e4: 0800cb18 .word 0x0800cb18 - 80023e8: 200004a8 .word 0x200004a8 + 80025fa: bf00 nop + 80025fc: 3708 adds r7, #8 + 80025fe: 46bd mov sp, r7 + 8002600: bd80 pop {r7, pc} + 8002602: bf00 nop + 8002604: 20000394 .word 0x20000394 + 8002608: 0800cd28 .word 0x0800cd28 + 800260c: 0800cd3c .word 0x0800cd3c + 8002610: 0800cd48 .word 0x0800cd48 + 8002614: 0800cd58 .word 0x0800cd58 + 8002618: 0800cd70 .word 0x0800cd70 + 800261c: 0800cd88 .word 0x0800cd88 + 8002620: 200004a8 .word 0x200004a8 -080023ec : +08002624 : void CONN_CC_ReadStateFiltered() { - 80023ec: b590 push {r4, r7, lr} - 80023ee: b083 sub sp, #12 - 80023f0: af00 add r7, sp, #0 + 8002624: b590 push {r4, r7, lr} + 8002626: b083 sub sp, #12 + 8002628: af00 add r7, sp, #0 static uint32_t last_change_time; static uint32_t last_check_time; static uint8_t prev_state; if((last_check_time+100)>HAL_GetTick()) return; - 80023f2: 4b19 ldr r3, [pc, #100] ; (8002458 ) - 80023f4: 681b ldr r3, [r3, #0] - 80023f6: f103 0464 add.w r4, r3, #100 ; 0x64 - 80023fa: f002 fd7b bl 8004ef4 - 80023fe: 4603 mov r3, r0 - 8002400: 429c cmp r4, r3 - 8002402: d824 bhi.n 800244e + 800262a: 4b19 ldr r3, [pc, #100] ; (8002690 ) + 800262c: 681b ldr r3, [r3, #0] + 800262e: f103 0464 add.w r4, r3, #100 ; 0x64 + 8002632: f002 fd95 bl 8005160 + 8002636: 4603 mov r3, r0 + 8002638: 429c cmp r4, r3 + 800263a: d824 bhi.n 8002686 last_check_time = HAL_GetTick(); - 8002404: f002 fd76 bl 8004ef4 - 8002408: 4603 mov r3, r0 - 800240a: 4a13 ldr r2, [pc, #76] ; (8002458 ) - 800240c: 6013 str r3, [r2, #0] + 800263c: f002 fd90 bl 8005160 + 8002640: 4603 mov r3, r0 + 8002642: 4a13 ldr r2, [pc, #76] ; (8002690 ) + 8002644: 6013 str r3, [r2, #0] uint8_t new_state = CONN_CC_GetStateRaw(); - 800240e: f000 f835 bl 800247c - 8002412: 4603 mov r3, r0 - 8002414: 71fb strb r3, [r7, #7] + 8002646: f000 f835 bl 80026b4 + 800264a: 4603 mov r3, r0 + 800264c: 71fb strb r3, [r7, #7] if (new_state != prev_state) { - 8002416: 4b11 ldr r3, [pc, #68] ; (800245c ) - 8002418: 781b ldrb r3, [r3, #0] - 800241a: 79fa ldrb r2, [r7, #7] - 800241c: 429a cmp r2, r3 - 800241e: d008 beq.n 8002432 + 800264e: 4b11 ldr r3, [pc, #68] ; (8002694 ) + 8002650: 781b ldrb r3, [r3, #0] + 8002652: 79fa ldrb r2, [r7, #7] + 8002654: 429a cmp r2, r3 + 8002656: d008 beq.n 800266a last_change_time = HAL_GetTick(); - 8002420: f002 fd68 bl 8004ef4 - 8002424: 4603 mov r3, r0 - 8002426: 4a0e ldr r2, [pc, #56] ; (8002460 ) - 8002428: 6013 str r3, [r2, #0] + 8002658: f002 fd82 bl 8005160 + 800265c: 4603 mov r3, r0 + 800265e: 4a0e ldr r2, [pc, #56] ; (8002698 ) + 8002660: 6013 str r3, [r2, #0] prev_state = new_state; - 800242a: 4a0c ldr r2, [pc, #48] ; (800245c ) - 800242c: 79fb ldrb r3, [r7, #7] - 800242e: 7013 strb r3, [r2, #0] - 8002430: e00e b.n 8002450 + 8002662: 4a0c ldr r2, [pc, #48] ; (8002694 ) + 8002664: 79fb ldrb r3, [r7, #7] + 8002666: 7013 strb r3, [r2, #0] + 8002668: e00e b.n 8002688 } else if ((HAL_GetTick() - last_change_time) >= 300) { - 8002432: f002 fd5f bl 8004ef4 - 8002436: 4602 mov r2, r0 - 8002438: 4b09 ldr r3, [pc, #36] ; (8002460 ) - 800243a: 681b ldr r3, [r3, #0] - 800243c: 1ad3 subs r3, r2, r3 - 800243e: f5b3 7f96 cmp.w r3, #300 ; 0x12c - 8002442: d305 bcc.n 8002450 + 800266a: f002 fd79 bl 8005160 + 800266e: 4602 mov r2, r0 + 8002670: 4b09 ldr r3, [pc, #36] ; (8002698 ) + 8002672: 681b ldr r3, [r3, #0] + 8002674: 1ad3 subs r3, r2, r3 + 8002676: f5b3 7f96 cmp.w r3, #300 ; 0x12c + 800267a: d305 bcc.n 8002688 CC_STATE_FILTERED = prev_state; - 8002444: 4b05 ldr r3, [pc, #20] ; (800245c ) - 8002446: 781a ldrb r2, [r3, #0] - 8002448: 4b06 ldr r3, [pc, #24] ; (8002464 ) - 800244a: 701a strb r2, [r3, #0] - 800244c: e000 b.n 8002450 + 800267c: 4b05 ldr r3, [pc, #20] ; (8002694 ) + 800267e: 781a ldrb r2, [r3, #0] + 8002680: 4b06 ldr r3, [pc, #24] ; (800269c ) + 8002682: 701a strb r2, [r3, #0] + 8002684: e000 b.n 8002688 if((last_check_time+100)>HAL_GetTick()) return; - 800244e: bf00 nop + 8002686: bf00 nop // case GBT_CC_2V: // printf("FGBT_CC_2V\n"); // break; // // } } - 8002450: 370c adds r7, #12 - 8002452: 46bd mov sp, r7 - 8002454: bd90 pop {r4, r7, pc} - 8002456: bf00 nop - 8002458: 20000398 .word 0x20000398 - 800245c: 2000039c .word 0x2000039c - 8002460: 200003a0 .word 0x200003a0 - 8002464: 20000395 .word 0x20000395 + 8002688: 370c adds r7, #12 + 800268a: 46bd mov sp, r7 + 800268c: bd90 pop {r4, r7, pc} + 800268e: bf00 nop + 8002690: 20000398 .word 0x20000398 + 8002694: 2000039c .word 0x2000039c + 8002698: 200003a0 .word 0x200003a0 + 800269c: 20000395 .word 0x20000395 -08002468 : +080026a0 : uint8_t CONN_CC_GetState(){ - 8002468: b480 push {r7} - 800246a: af00 add r7, sp, #0 + 80026a0: b480 push {r7} + 80026a2: af00 add r7, sp, #0 return CC_STATE_FILTERED; - 800246c: 4b02 ldr r3, [pc, #8] ; (8002478 ) - 800246e: 781b ldrb r3, [r3, #0] + 80026a4: 4b02 ldr r3, [pc, #8] ; (80026b0 ) + 80026a6: 781b ldrb r3, [r3, #0] } - 8002470: 4618 mov r0, r3 - 8002472: 46bd mov sp, r7 - 8002474: bc80 pop {r7} - 8002476: 4770 bx lr - 8002478: 20000395 .word 0x20000395 + 80026a8: 4618 mov r0, r3 + 80026aa: 46bd mov sp, r7 + 80026ac: bc80 pop {r7} + 80026ae: 4770 bx lr + 80026b0: 20000395 .word 0x20000395 -0800247c : +080026b4 : uint8_t CONN_CC_GetStateRaw(){ - 800247c: b580 push {r7, lr} - 800247e: b082 sub sp, #8 - 8002480: af00 add r7, sp, #0 + 80026b4: b580 push {r7, lr} + 80026b6: b082 sub sp, #8 + 80026b8: af00 add r7, sp, #0 //Vin*k= 1.09v //12vin = 1353 ADC //TODO: Filter 100ms uint32_t adc; float volt; ADC_Select_Channel(ADC_CHANNEL_6); - 8002482: 2006 movs r0, #6 - 8002484: f7ff f8e6 bl 8001654 + 80026ba: 2006 movs r0, #6 + 80026bc: f7ff f8ee bl 800189c HAL_ADC_Start(&hadc1); - 8002488: 482e ldr r0, [pc, #184] ; (8002544 ) - 800248a: f002 fe39 bl 8005100 + 80026c0: 482e ldr r0, [pc, #184] ; (800277c ) + 80026c2: f002 fe53 bl 800536c HAL_ADC_PollForConversion(&hadc1, 100); - 800248e: 2164 movs r1, #100 ; 0x64 - 8002490: 482c ldr r0, [pc, #176] ; (8002544 ) - 8002492: f002 ff0f bl 80052b4 + 80026c6: 2164 movs r1, #100 ; 0x64 + 80026c8: 482c ldr r0, [pc, #176] ; (800277c ) + 80026ca: f002 ff29 bl 8005520 adc = HAL_ADC_GetValue(&hadc1); - 8002496: 482b ldr r0, [pc, #172] ; (8002544 ) - 8002498: f003 f812 bl 80054c0 - 800249c: 6078 str r0, [r7, #4] + 80026ce: 482b ldr r0, [pc, #172] ; (800277c ) + 80026d0: f003 f82c bl 800572c + 80026d4: 6078 str r0, [r7, #4] HAL_ADC_Stop(&hadc1); - 800249e: 4829 ldr r0, [pc, #164] ; (8002544 ) - 80024a0: f002 fedc bl 800525c + 80026d6: 4829 ldr r0, [pc, #164] ; (800277c ) + 80026d8: f002 fef6 bl 80054c8 volt = (float)adc/113.4f; - 80024a4: 6878 ldr r0, [r7, #4] - 80024a6: f7fe fc1b bl 8000ce0 <__aeabi_ui2f> - 80024aa: 4603 mov r3, r0 - 80024ac: 4926 ldr r1, [pc, #152] ; (8002548 ) - 80024ae: 4618 mov r0, r3 - 80024b0: f7fe fd22 bl 8000ef8 <__aeabi_fdiv> - 80024b4: 4603 mov r3, r0 - 80024b6: 603b str r3, [r7, #0] + 80026dc: 6878 ldr r0, [r7, #4] + 80026de: f7fe fb4f bl 8000d80 <__aeabi_ui2f> + 80026e2: 4603 mov r3, r0 + 80026e4: 4926 ldr r1, [pc, #152] ; (8002780 ) + 80026e6: 4618 mov r0, r3 + 80026e8: f7fe fc56 bl 8000f98 <__aeabi_fdiv> + 80026ec: 4603 mov r3, r0 + 80026ee: 603b str r3, [r7, #0] // if((volt<12.6f) && (volt>11.4f)) return GBT_CC_12V; // if((volt<6.8f) && (volt>5.2f)) return GBT_CC_6V; // if((volt<4.8f) && (volt>3.2f)) return GBT_CC_4V; // if((volt<2.8f) && (volt>1.2f)) return GBT_CC_2V; if((volt<13.0f) && (volt>11.0f)) return GBT_CC_12V; - 80024b8: 4924 ldr r1, [pc, #144] ; (800254c ) - 80024ba: 6838 ldr r0, [r7, #0] - 80024bc: f7fe fe06 bl 80010cc <__aeabi_fcmplt> - 80024c0: 4603 mov r3, r0 - 80024c2: 2b00 cmp r3, #0 - 80024c4: d008 beq.n 80024d8 - 80024c6: 4922 ldr r1, [pc, #136] ; (8002550 ) - 80024c8: 6838 ldr r0, [r7, #0] - 80024ca: f7fe fe1d bl 8001108 <__aeabi_fcmpgt> - 80024ce: 4603 mov r3, r0 - 80024d0: 2b00 cmp r3, #0 - 80024d2: d001 beq.n 80024d8 - 80024d4: 2301 movs r3, #1 - 80024d6: e031 b.n 800253c + 80026f0: 4924 ldr r1, [pc, #144] ; (8002784 ) + 80026f2: 6838 ldr r0, [r7, #0] + 80026f4: f7fe fd3a bl 800116c <__aeabi_fcmplt> + 80026f8: 4603 mov r3, r0 + 80026fa: 2b00 cmp r3, #0 + 80026fc: d008 beq.n 8002710 + 80026fe: 4922 ldr r1, [pc, #136] ; (8002788 ) + 8002700: 6838 ldr r0, [r7, #0] + 8002702: f7fe fd51 bl 80011a8 <__aeabi_fcmpgt> + 8002706: 4603 mov r3, r0 + 8002708: 2b00 cmp r3, #0 + 800270a: d001 beq.n 8002710 + 800270c: 2301 movs r3, #1 + 800270e: e031 b.n 8002774 if((volt<7.2f) && (volt>4.8f)) return GBT_CC_6V; - 80024d8: 491e ldr r1, [pc, #120] ; (8002554 ) - 80024da: 6838 ldr r0, [r7, #0] - 80024dc: f7fe fdf6 bl 80010cc <__aeabi_fcmplt> - 80024e0: 4603 mov r3, r0 - 80024e2: 2b00 cmp r3, #0 - 80024e4: d008 beq.n 80024f8 - 80024e6: 491c ldr r1, [pc, #112] ; (8002558 ) - 80024e8: 6838 ldr r0, [r7, #0] - 80024ea: f7fe fe0d bl 8001108 <__aeabi_fcmpgt> - 80024ee: 4603 mov r3, r0 - 80024f0: 2b00 cmp r3, #0 - 80024f2: d001 beq.n 80024f8 - 80024f4: 2302 movs r3, #2 - 80024f6: e021 b.n 800253c + 8002710: 491e ldr r1, [pc, #120] ; (800278c ) + 8002712: 6838 ldr r0, [r7, #0] + 8002714: f7fe fd2a bl 800116c <__aeabi_fcmplt> + 8002718: 4603 mov r3, r0 + 800271a: 2b00 cmp r3, #0 + 800271c: d008 beq.n 8002730 + 800271e: 491c ldr r1, [pc, #112] ; (8002790 ) + 8002720: 6838 ldr r0, [r7, #0] + 8002722: f7fe fd41 bl 80011a8 <__aeabi_fcmpgt> + 8002726: 4603 mov r3, r0 + 8002728: 2b00 cmp r3, #0 + 800272a: d001 beq.n 8002730 + 800272c: 2302 movs r3, #2 + 800272e: e021 b.n 8002774 if((volt<4.8f) && (volt>3.0f)) return GBT_CC_4V; - 80024f8: 4917 ldr r1, [pc, #92] ; (8002558 ) - 80024fa: 6838 ldr r0, [r7, #0] - 80024fc: f7fe fde6 bl 80010cc <__aeabi_fcmplt> - 8002500: 4603 mov r3, r0 - 8002502: 2b00 cmp r3, #0 - 8002504: d008 beq.n 8002518 - 8002506: 4915 ldr r1, [pc, #84] ; (800255c ) - 8002508: 6838 ldr r0, [r7, #0] - 800250a: f7fe fdfd bl 8001108 <__aeabi_fcmpgt> - 800250e: 4603 mov r3, r0 - 8002510: 2b00 cmp r3, #0 - 8002512: d001 beq.n 8002518 - 8002514: 2303 movs r3, #3 - 8002516: e011 b.n 800253c + 8002730: 4917 ldr r1, [pc, #92] ; (8002790 ) + 8002732: 6838 ldr r0, [r7, #0] + 8002734: f7fe fd1a bl 800116c <__aeabi_fcmplt> + 8002738: 4603 mov r3, r0 + 800273a: 2b00 cmp r3, #0 + 800273c: d008 beq.n 8002750 + 800273e: 4915 ldr r1, [pc, #84] ; (8002794 ) + 8002740: 6838 ldr r0, [r7, #0] + 8002742: f7fe fd31 bl 80011a8 <__aeabi_fcmpgt> + 8002746: 4603 mov r3, r0 + 8002748: 2b00 cmp r3, #0 + 800274a: d001 beq.n 8002750 + 800274c: 2303 movs r3, #3 + 800274e: e011 b.n 8002774 if((volt<3.0f) && (volt>1.0f)) return GBT_CC_2V; - 8002518: 4910 ldr r1, [pc, #64] ; (800255c ) - 800251a: 6838 ldr r0, [r7, #0] - 800251c: f7fe fdd6 bl 80010cc <__aeabi_fcmplt> - 8002520: 4603 mov r3, r0 - 8002522: 2b00 cmp r3, #0 - 8002524: d009 beq.n 800253a - 8002526: f04f 517e mov.w r1, #1065353216 ; 0x3f800000 - 800252a: 6838 ldr r0, [r7, #0] - 800252c: f7fe fdec bl 8001108 <__aeabi_fcmpgt> - 8002530: 4603 mov r3, r0 - 8002532: 2b00 cmp r3, #0 - 8002534: d001 beq.n 800253a - 8002536: 2304 movs r3, #4 - 8002538: e000 b.n 800253c + 8002750: 4910 ldr r1, [pc, #64] ; (8002794 ) + 8002752: 6838 ldr r0, [r7, #0] + 8002754: f7fe fd0a bl 800116c <__aeabi_fcmplt> + 8002758: 4603 mov r3, r0 + 800275a: 2b00 cmp r3, #0 + 800275c: d009 beq.n 8002772 + 800275e: f04f 517e mov.w r1, #1065353216 ; 0x3f800000 + 8002762: 6838 ldr r0, [r7, #0] + 8002764: f7fe fd20 bl 80011a8 <__aeabi_fcmpgt> + 8002768: 4603 mov r3, r0 + 800276a: 2b00 cmp r3, #0 + 800276c: d001 beq.n 8002772 + 800276e: 2304 movs r3, #4 + 8002770: e000 b.n 8002774 return GBT_CC_UNKNOWN; - 800253a: 2300 movs r3, #0 + 8002772: 2300 movs r3, #0 } - 800253c: 4618 mov r0, r3 - 800253e: 3708 adds r7, #8 - 8002540: 46bd mov sp, r7 - 8002542: bd80 pop {r7, pc} - 8002544: 20000260 .word 0x20000260 - 8002548: 42e2cccd .word 0x42e2cccd - 800254c: 41500000 .word 0x41500000 - 8002550: 41300000 .word 0x41300000 - 8002554: 40e66666 .word 0x40e66666 - 8002558: 4099999a .word 0x4099999a - 800255c: 40400000 .word 0x40400000 + 8002774: 4618 mov r0, r3 + 8002776: 3708 adds r7, #8 + 8002778: 46bd mov sp, r7 + 800277a: bd80 pop {r7, pc} + 800277c: 20000260 .word 0x20000260 + 8002780: 42e2cccd .word 0x42e2cccd + 8002784: 41500000 .word 0x41500000 + 8002788: 41300000 .word 0x41300000 + 800278c: 40e66666 .word 0x40e66666 + 8002790: 4099999a .word 0x4099999a + 8002794: 40400000 .word 0x40400000 -08002560 : +08002798 : float CONN_CC_GetAdc(){ - 8002560: b580 push {r7, lr} - 8002562: b082 sub sp, #8 - 8002564: af00 add r7, sp, #0 + 8002798: b580 push {r7, lr} + 800279a: b082 sub sp, #8 + 800279c: af00 add r7, sp, #0 //Vin*k= 1.09v //12vin = 1353 ADC uint32_t adc; float volt; ADC_Select_Channel(ADC_CHANNEL_6); - 8002566: 2006 movs r0, #6 - 8002568: f7ff f874 bl 8001654 + 800279e: 2006 movs r0, #6 + 80027a0: f7ff f87c bl 800189c HAL_ADC_Start(&hadc1); - 800256c: 480e ldr r0, [pc, #56] ; (80025a8 ) - 800256e: f002 fdc7 bl 8005100 + 80027a4: 480e ldr r0, [pc, #56] ; (80027e0 ) + 80027a6: f002 fde1 bl 800536c HAL_ADC_PollForConversion(&hadc1, 100); - 8002572: 2164 movs r1, #100 ; 0x64 - 8002574: 480c ldr r0, [pc, #48] ; (80025a8 ) - 8002576: f002 fe9d bl 80052b4 + 80027aa: 2164 movs r1, #100 ; 0x64 + 80027ac: 480c ldr r0, [pc, #48] ; (80027e0 ) + 80027ae: f002 feb7 bl 8005520 adc = HAL_ADC_GetValue(&hadc1); - 800257a: 480b ldr r0, [pc, #44] ; (80025a8 ) - 800257c: f002 ffa0 bl 80054c0 - 8002580: 6078 str r0, [r7, #4] + 80027b2: 480b ldr r0, [pc, #44] ; (80027e0 ) + 80027b4: f002 ffba bl 800572c + 80027b8: 6078 str r0, [r7, #4] HAL_ADC_Stop(&hadc1); - 8002582: 4809 ldr r0, [pc, #36] ; (80025a8 ) - 8002584: f002 fe6a bl 800525c + 80027ba: 4809 ldr r0, [pc, #36] ; (80027e0 ) + 80027bc: f002 fe84 bl 80054c8 volt = (float)adc/113.4f; - 8002588: 6878 ldr r0, [r7, #4] - 800258a: f7fe fba9 bl 8000ce0 <__aeabi_ui2f> - 800258e: 4603 mov r3, r0 - 8002590: 4906 ldr r1, [pc, #24] ; (80025ac ) - 8002592: 4618 mov r0, r3 - 8002594: f7fe fcb0 bl 8000ef8 <__aeabi_fdiv> - 8002598: 4603 mov r3, r0 - 800259a: 603b str r3, [r7, #0] + 80027c0: 6878 ldr r0, [r7, #4] + 80027c2: f7fe fadd bl 8000d80 <__aeabi_ui2f> + 80027c6: 4603 mov r3, r0 + 80027c8: 4906 ldr r1, [pc, #24] ; (80027e4 ) + 80027ca: 4618 mov r0, r3 + 80027cc: f7fe fbe4 bl 8000f98 <__aeabi_fdiv> + 80027d0: 4603 mov r3, r0 + 80027d2: 603b str r3, [r7, #0] return volt; - 800259c: 683b ldr r3, [r7, #0] + 80027d4: 683b ldr r3, [r7, #0] } - 800259e: 4618 mov r0, r3 - 80025a0: 3708 adds r7, #8 - 80025a2: 46bd mov sp, r7 - 80025a4: bd80 pop {r7, pc} - 80025a6: bf00 nop - 80025a8: 20000260 .word 0x20000260 - 80025ac: 42e2cccd .word 0x42e2cccd + 80027d6: 4618 mov r0, r3 + 80027d8: 3708 adds r7, #8 + 80027da: 46bd mov sp, r7 + 80027dc: bd80 pop {r7, pc} + 80027de: bf00 nop + 80027e0: 20000260 .word 0x20000260 + 80027e4: 42e2cccd .word 0x42e2cccd -080025b0 <__NVIC_SystemReset>: +080027e8 <__NVIC_SystemReset>: /** \brief System Reset \details Initiates a system reset request to reset the MCU. */ __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void) { - 80025b0: b480 push {r7} - 80025b2: af00 add r7, sp, #0 + 80027e8: b480 push {r7} + 80027ea: af00 add r7, sp, #0 \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ __STATIC_FORCEINLINE void __DSB(void) { __ASM volatile ("dsb 0xF":::"memory"); - 80025b4: f3bf 8f4f dsb sy + 80027ec: f3bf 8f4f dsb sy } - 80025b8: bf00 nop + 80027f0: bf00 nop __DSB(); /* Ensure all outstanding memory accesses included buffered write are completed before reset */ SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - 80025ba: 4b06 ldr r3, [pc, #24] ; (80025d4 <__NVIC_SystemReset+0x24>) - 80025bc: 68db ldr r3, [r3, #12] - 80025be: f403 62e0 and.w r2, r3, #1792 ; 0x700 + 80027f2: 4b06 ldr r3, [pc, #24] ; (800280c <__NVIC_SystemReset+0x24>) + 80027f4: 68db ldr r3, [r3, #12] + 80027f6: f403 62e0 and.w r2, r3, #1792 ; 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 80025c2: 4904 ldr r1, [pc, #16] ; (80025d4 <__NVIC_SystemReset+0x24>) - 80025c4: 4b04 ldr r3, [pc, #16] ; (80025d8 <__NVIC_SystemReset+0x28>) - 80025c6: 4313 orrs r3, r2 - 80025c8: 60cb str r3, [r1, #12] + 80027fa: 4904 ldr r1, [pc, #16] ; (800280c <__NVIC_SystemReset+0x24>) + 80027fc: 4b04 ldr r3, [pc, #16] ; (8002810 <__NVIC_SystemReset+0x28>) + 80027fe: 4313 orrs r3, r2 + 8002800: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); - 80025ca: f3bf 8f4f dsb sy + 8002802: f3bf 8f4f dsb sy } - 80025ce: bf00 nop + 8002806: bf00 nop SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */ __DSB(); /* Ensure completion of memory access */ for(;;) /* wait until reset */ { __NOP(); - 80025d0: bf00 nop - 80025d2: e7fd b.n 80025d0 <__NVIC_SystemReset+0x20> - 80025d4: e000ed00 .word 0xe000ed00 - 80025d8: 05fa0004 .word 0x05fa0004 + 8002808: bf00 nop + 800280a: e7fd b.n 8002808 <__NVIC_SystemReset+0x20> + 800280c: e000ed00 .word 0xe000ed00 + 8002810: 05fa0004 .word 0x05fa0004 -080025dc <_write>: +08002814 <_write>: extern UART_HandleTypeDef huart2; #if defined(__GNUC__) int _write(int fd, char * ptr, int len) { - 80025dc: b580 push {r7, lr} - 80025de: b084 sub sp, #16 - 80025e0: af00 add r7, sp, #0 - 80025e2: 60f8 str r0, [r7, #12] - 80025e4: 60b9 str r1, [r7, #8] - 80025e6: 607a str r2, [r7, #4] + 8002814: b580 push {r7, lr} + 8002816: b084 sub sp, #16 + 8002818: af00 add r7, sp, #0 + 800281a: 60f8 str r0, [r7, #12] + 800281c: 60b9 str r1, [r7, #8] + 800281e: 607a str r2, [r7, #4] HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, 1); - 80025e8: 2201 movs r2, #1 - 80025ea: 2110 movs r1, #16 - 80025ec: 480a ldr r0, [pc, #40] ; (8002618 <_write+0x3c>) - 80025ee: f004 fc4a bl 8006e86 + 8002820: 2201 movs r2, #1 + 8002822: 2110 movs r1, #16 + 8002824: 480a ldr r0, [pc, #40] ; (8002850 <_write+0x3c>) + 8002826: f004 fc64 bl 80070f2 HAL_UART_Transmit(&huart2, (uint8_t *) ptr, len, HAL_MAX_DELAY); - 80025f2: 687b ldr r3, [r7, #4] - 80025f4: b29a uxth r2, r3 - 80025f6: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 80025fa: 68b9 ldr r1, [r7, #8] - 80025fc: 4807 ldr r0, [pc, #28] ; (800261c <_write+0x40>) - 80025fe: f005 fd89 bl 8008114 + 800282a: 687b ldr r3, [r7, #4] + 800282c: b29a uxth r2, r3 + 800282e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8002832: 68b9 ldr r1, [r7, #8] + 8002834: 4807 ldr r0, [pc, #28] ; (8002854 <_write+0x40>) + 8002836: f005 fda3 bl 8008380 HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, 0); - 8002602: 2200 movs r2, #0 - 8002604: 2110 movs r1, #16 - 8002606: 4804 ldr r0, [pc, #16] ; (8002618 <_write+0x3c>) - 8002608: f004 fc3d bl 8006e86 + 800283a: 2200 movs r2, #0 + 800283c: 2110 movs r1, #16 + 800283e: 4804 ldr r0, [pc, #16] ; (8002850 <_write+0x3c>) + 8002840: f004 fc57 bl 80070f2 return len; - 800260c: 687b ldr r3, [r7, #4] + 8002844: 687b ldr r3, [r7, #4] } - 800260e: 4618 mov r0, r3 - 8002610: 3710 adds r7, #16 - 8002612: 46bd mov sp, r7 - 8002614: bd80 pop {r7, pc} - 8002616: bf00 nop - 8002618: 40011400 .word 0x40011400 - 800261c: 20001cd0 .word 0x20001cd0 + 8002846: 4618 mov r0, r3 + 8002848: 3710 adds r7, #16 + 800284a: 46bd mov sp, r7 + 800284c: bd80 pop {r7, pc} + 800284e: bf00 nop + 8002850: 40011400 .word 0x40011400 + 8002854: 20003350 .word 0x20003350 -08002620 : +08002858 : #endif void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size){ - 8002620: b580 push {r7, lr} - 8002622: b082 sub sp, #8 - 8002624: af00 add r7, sp, #0 - 8002626: 6078 str r0, [r7, #4] - 8002628: 460b mov r3, r1 - 800262a: 807b strh r3, [r7, #2] + 8002858: b580 push {r7, lr} + 800285a: b082 sub sp, #8 + 800285c: af00 add r7, sp, #0 + 800285e: 6078 str r0, [r7, #4] + 8002860: 460b mov r3, r1 + 8002862: 807b strh r3, [r7, #2] // if(huart->Instance == USART1){ // mm_rx_interrupt(huart, Size); // } if(huart->Instance == USART2){ - 800262c: 687b ldr r3, [r7, #4] - 800262e: 681b ldr r3, [r3, #0] - 8002630: 4a05 ldr r2, [pc, #20] ; (8002648 ) - 8002632: 4293 cmp r3, r2 - 8002634: d104 bne.n 8002640 + 8002864: 687b ldr r3, [r7, #4] + 8002866: 681b ldr r3, [r3, #0] + 8002868: 4a05 ldr r2, [pc, #20] ; (8002880 ) + 800286a: 4293 cmp r3, r2 + 800286c: d104 bne.n 8002878 debug_rx_interrupt(huart, Size); - 8002636: 887b ldrh r3, [r7, #2] - 8002638: 4619 mov r1, r3 - 800263a: 6878 ldr r0, [r7, #4] - 800263c: f000 f806 bl 800264c + 800286e: 887b ldrh r3, [r7, #2] + 8002870: 4619 mov r1, r3 + 8002872: 6878 ldr r0, [r7, #4] + 8002874: f000 f806 bl 8002884 } } - 8002640: bf00 nop - 8002642: 3708 adds r7, #8 - 8002644: 46bd mov sp, r7 - 8002646: bd80 pop {r7, pc} - 8002648: 40004400 .word 0x40004400 + 8002878: bf00 nop + 800287a: 3708 adds r7, #8 + 800287c: 46bd mov sp, r7 + 800287e: bd80 pop {r7, pc} + 8002880: 40004400 .word 0x40004400 -0800264c : +08002884 : void debug_rx_interrupt(UART_HandleTypeDef *huart, uint16_t Size){ - 800264c: b480 push {r7} - 800264e: b083 sub sp, #12 - 8002650: af00 add r7, sp, #0 - 8002652: 6078 str r0, [r7, #4] - 8002654: 460b mov r3, r1 - 8002656: 807b strh r3, [r7, #2] + 8002884: b480 push {r7} + 8002886: b083 sub sp, #12 + 8002888: af00 add r7, sp, #0 + 800288a: 6078 str r0, [r7, #4] + 800288c: 460b mov r3, r1 + 800288e: 807b strh r3, [r7, #2] debug_rx_buffer[Size] = '\0'; - 8002658: 887b ldrh r3, [r7, #2] - 800265a: 4a07 ldr r2, [pc, #28] ; (8002678 ) - 800265c: 2100 movs r1, #0 - 800265e: 54d1 strb r1, [r2, r3] + 8002890: 887b ldrh r3, [r7, #2] + 8002892: 4a07 ldr r2, [pc, #28] ; (80028b0 ) + 8002894: 2100 movs r1, #0 + 8002896: 54d1 strb r1, [r2, r3] debug_rx_buffer_size = Size; - 8002660: 887b ldrh r3, [r7, #2] - 8002662: b2da uxtb r2, r3 - 8002664: 4b05 ldr r3, [pc, #20] ; (800267c ) - 8002666: 701a strb r2, [r3, #0] + 8002898: 887b ldrh r3, [r7, #2] + 800289a: b2da uxtb r2, r3 + 800289c: 4b05 ldr r3, [pc, #20] ; (80028b4 ) + 800289e: 701a strb r2, [r3, #0] debug_cmd_received = 1; - 8002668: 4b05 ldr r3, [pc, #20] ; (8002680 ) - 800266a: 2201 movs r2, #1 - 800266c: 701a strb r2, [r3, #0] + 80028a0: 4b05 ldr r3, [pc, #20] ; (80028b8 ) + 80028a2: 2201 movs r2, #1 + 80028a4: 701a strb r2, [r3, #0] } - 800266e: bf00 nop - 8002670: 370c adds r7, #12 - 8002672: 46bd mov sp, r7 - 8002674: bc80 pop {r7} - 8002676: 4770 bx lr - 8002678: 200003a4 .word 0x200003a4 - 800267c: 200004a5 .word 0x200004a5 - 8002680: 200004a4 .word 0x200004a4 + 80028a6: bf00 nop + 80028a8: 370c adds r7, #12 + 80028aa: 46bd mov sp, r7 + 80028ac: bc80 pop {r7} + 80028ae: 4770 bx lr + 80028b0: 200003a4 .word 0x200003a4 + 80028b4: 200004a5 .word 0x200004a5 + 80028b8: 200004a4 .word 0x200004a4 -08002684 : +080028bc : void debug_init(){ - 8002684: b580 push {r7, lr} - 8002686: af00 add r7, sp, #0 + 80028bc: b580 push {r7, lr} + 80028be: af00 add r7, sp, #0 HAL_UARTEx_ReceiveToIdle_IT(&huart2,debug_rx_buffer,255); - 8002688: 22ff movs r2, #255 ; 0xff - 800268a: 4903 ldr r1, [pc, #12] ; (8002698 ) - 800268c: 4803 ldr r0, [pc, #12] ; (800269c ) - 800268e: f005 fdd3 bl 8008238 + 80028c0: 22ff movs r2, #255 ; 0xff + 80028c2: 4903 ldr r1, [pc, #12] ; (80028d0 ) + 80028c4: 4803 ldr r0, [pc, #12] ; (80028d4 ) + 80028c6: f005 fded bl 80084a4 // mm_schedule_write(0x02, 0x00FF, 0xFFFF); //for (int i=0;i<60;i++) // mm_schedule_write(0x02, 0x0000, 0xFF00); // mm_schedule_write(0x01, 0x0000, 0x0100); // mm_schedule_write(0x01, 0x0000, 0x0100); } - 8002692: bf00 nop - 8002694: bd80 pop {r7, pc} - 8002696: bf00 nop - 8002698: 200003a4 .word 0x200003a4 - 800269c: 20001cd0 .word 0x20001cd0 + 80028ca: bf00 nop + 80028cc: bd80 pop {r7, pc} + 80028ce: bf00 nop + 80028d0: 200003a4 .word 0x200003a4 + 80028d4: 20003350 .word 0x20003350 -080026a0 : +080028d8 : void parse_command(uint8_t* buffer, size_t length) { - 80026a0: b5b0 push {r4, r5, r7, lr} - 80026a2: b086 sub sp, #24 - 80026a4: af00 add r7, sp, #0 - 80026a6: 6078 str r0, [r7, #4] - 80026a8: 6039 str r1, [r7, #0] + 80028d8: b5b0 push {r4, r5, r7, lr} + 80028da: b086 sub sp, #24 + 80028dc: af00 add r7, sp, #0 + 80028de: 6078 str r0, [r7, #4] + 80028e0: 6039 str r1, [r7, #0] // ignore \r \n symbols size_t i = 0; - 80026aa: 2300 movs r3, #0 - 80026ac: 617b str r3, [r7, #20] + 80028e2: 2300 movs r3, #0 + 80028e4: 617b str r3, [r7, #20] for (i = 0; i < length; i++) { - 80026ae: 2300 movs r3, #0 - 80026b0: 617b str r3, [r7, #20] - 80026b2: e016 b.n 80026e2 + 80028e6: 2300 movs r3, #0 + 80028e8: 617b str r3, [r7, #20] + 80028ea: e016 b.n 800291a if (buffer[i] == '\r' || buffer[i] == '\n') { - 80026b4: 687a ldr r2, [r7, #4] - 80026b6: 697b ldr r3, [r7, #20] - 80026b8: 4413 add r3, r2 - 80026ba: 781b ldrb r3, [r3, #0] - 80026bc: 2b0d cmp r3, #13 - 80026be: d005 beq.n 80026cc - 80026c0: 687a ldr r2, [r7, #4] - 80026c2: 697b ldr r3, [r7, #20] - 80026c4: 4413 add r3, r2 - 80026c6: 781b ldrb r3, [r3, #0] - 80026c8: 2b0a cmp r3, #10 - 80026ca: d107 bne.n 80026dc + 80028ec: 687a ldr r2, [r7, #4] + 80028ee: 697b ldr r3, [r7, #20] + 80028f0: 4413 add r3, r2 + 80028f2: 781b ldrb r3, [r3, #0] + 80028f4: 2b0d cmp r3, #13 + 80028f6: d005 beq.n 8002904 + 80028f8: 687a ldr r2, [r7, #4] + 80028fa: 697b ldr r3, [r7, #20] + 80028fc: 4413 add r3, r2 + 80028fe: 781b ldrb r3, [r3, #0] + 8002900: 2b0a cmp r3, #10 + 8002902: d107 bne.n 8002914 buffer[i] = '\0'; - 80026cc: 687a ldr r2, [r7, #4] - 80026ce: 697b ldr r3, [r7, #20] - 80026d0: 4413 add r3, r2 - 80026d2: 2200 movs r2, #0 - 80026d4: 701a strb r2, [r3, #0] + 8002904: 687a ldr r2, [r7, #4] + 8002906: 697b ldr r3, [r7, #20] + 8002908: 4413 add r3, r2 + 800290a: 2200 movs r2, #0 + 800290c: 701a strb r2, [r3, #0] length = i; - 80026d6: 697b ldr r3, [r7, #20] - 80026d8: 603b str r3, [r7, #0] + 800290e: 697b ldr r3, [r7, #20] + 8002910: 603b str r3, [r7, #0] break; - 80026da: e006 b.n 80026ea + 8002912: e006 b.n 8002922 for (i = 0; i < length; i++) { - 80026dc: 697b ldr r3, [r7, #20] - 80026de: 3301 adds r3, #1 - 80026e0: 617b str r3, [r7, #20] - 80026e2: 697a ldr r2, [r7, #20] - 80026e4: 683b ldr r3, [r7, #0] - 80026e6: 429a cmp r2, r3 - 80026e8: d3e4 bcc.n 80026b4 + 8002914: 697b ldr r3, [r7, #20] + 8002916: 3301 adds r3, #1 + 8002918: 617b str r3, [r7, #20] + 800291a: 697a ldr r2, [r7, #20] + 800291c: 683b ldr r3, [r7, #0] + 800291e: 429a cmp r2, r3 + 8002920: d3e4 bcc.n 80028ec } } if (buffer[0] == 0) return; - 80026ea: 687b ldr r3, [r7, #4] - 80026ec: 781b ldrb r3, [r3, #0] - 80026ee: 2b00 cmp r3, #0 - 80026f0: f000 82b1 beq.w 8002c56 + 8002922: 687b ldr r3, [r7, #4] + 8002924: 781b ldrb r3, [r3, #0] + 8002926: 2b00 cmp r3, #0 + 8002928: f000 82d4 beq.w 8002ed4 if (strncmp((const char*)buffer, "reset", length) == 0) { - 80026f4: 683a ldr r2, [r7, #0] - 80026f6: 49a0 ldr r1, [pc, #640] ; (8002978 ) - 80026f8: 6878 ldr r0, [r7, #4] - 80026fa: f007 fa19 bl 8009b30 - 80026fe: 4603 mov r3, r0 - 8002700: 2b00 cmp r3, #0 - 8002702: d104 bne.n 800270e + 800292c: 683a ldr r2, [r7, #0] + 800292e: 49ad ldr r1, [pc, #692] ; (8002be4 ) + 8002930: 6878 ldr r0, [r7, #4] + 8002932: f007 fa33 bl 8009d9c + 8002936: 4603 mov r3, r0 + 8002938: 2b00 cmp r3, #0 + 800293a: d104 bne.n 8002946 printf("Resetting...\n"); - 8002704: 489d ldr r0, [pc, #628] ; (800297c ) - 8002706: f007 f9fb bl 8009b00 + 800293c: 48aa ldr r0, [pc, #680] ; (8002be8 ) + 800293e: f007 fa15 bl 8009d6c NVIC_SystemReset(); - 800270a: f7ff ff51 bl 80025b0 <__NVIC_SystemReset> + 8002942: f7ff ff51 bl 80027e8 <__NVIC_SystemReset> } else if (strncmp((const char*)buffer, "relayaux", length) == 0) { - 800270e: 683a ldr r2, [r7, #0] - 8002710: 499b ldr r1, [pc, #620] ; (8002980 ) - 8002712: 6878 ldr r0, [r7, #4] - 8002714: f007 fa0c bl 8009b30 - 8002718: 4603 mov r3, r0 - 800271a: 2b00 cmp r3, #0 - 800271c: d10e bne.n 800273c + 8002946: 683a ldr r2, [r7, #0] + 8002948: 49a8 ldr r1, [pc, #672] ; (8002bec ) + 800294a: 6878 ldr r0, [r7, #4] + 800294c: f007 fa26 bl 8009d9c + 8002950: 4603 mov r3, r0 + 8002952: 2b00 cmp r3, #0 + 8002954: d10e bne.n 8002974 printf("Relaying...\n"); - 800271e: 4899 ldr r0, [pc, #612] ; (8002984 ) - 8002720: f007 f9ee bl 8009b00 + 8002956: 48a6 ldr r0, [pc, #664] ; (8002bf0 ) + 8002958: f007 fa08 bl 8009d6c RELAY_Write(RELAY_AUX, 1); - 8002724: 2101 movs r1, #1 - 8002726: 2000 movs r0, #0 - 8002728: f7fe ff5e bl 80015e8 + 800295c: 2101 movs r1, #1 + 800295e: 2000 movs r0, #0 + 8002960: f7fe feb8 bl 80016d4 HAL_Delay(200); - 800272c: 20c8 movs r0, #200 ; 0xc8 - 800272e: f002 fbeb bl 8004f08 + 8002964: 20c8 movs r0, #200 ; 0xc8 + 8002966: f002 fc05 bl 8005174 RELAY_Write(RELAY_AUX, 0); - 8002732: 2100 movs r1, #0 - 8002734: 2000 movs r0, #0 - 8002736: f7fe ff57 bl 80015e8 - 800273a: e28d b.n 8002c58 + 800296a: 2100 movs r1, #0 + 800296c: 2000 movs r0, #0 + 800296e: f7fe feb1 bl 80016d4 + 8002972: e2b0 b.n 8002ed6 } else if (strncmp((const char*)buffer, "relaycc", length) == 0) { - 800273c: 683a ldr r2, [r7, #0] - 800273e: 4992 ldr r1, [pc, #584] ; (8002988 ) - 8002740: 6878 ldr r0, [r7, #4] - 8002742: f007 f9f5 bl 8009b30 - 8002746: 4603 mov r3, r0 - 8002748: 2b00 cmp r3, #0 - 800274a: d10e bne.n 800276a + 8002974: 683a ldr r2, [r7, #0] + 8002976: 499f ldr r1, [pc, #636] ; (8002bf4 ) + 8002978: 6878 ldr r0, [r7, #4] + 800297a: f007 fa0f bl 8009d9c + 800297e: 4603 mov r3, r0 + 8002980: 2b00 cmp r3, #0 + 8002982: d10e bne.n 80029a2 printf("Relaying...\n"); - 800274c: 488d ldr r0, [pc, #564] ; (8002984 ) - 800274e: f007 f9d7 bl 8009b00 + 8002984: 489a ldr r0, [pc, #616] ; (8002bf0 ) + 8002986: f007 f9f1 bl 8009d6c RELAY_Write(RELAY_CC, 1); - 8002752: 2101 movs r1, #1 - 8002754: 2001 movs r0, #1 - 8002756: f7fe ff47 bl 80015e8 + 800298a: 2101 movs r1, #1 + 800298c: 2001 movs r0, #1 + 800298e: f7fe fea1 bl 80016d4 HAL_Delay(200); - 800275a: 20c8 movs r0, #200 ; 0xc8 - 800275c: f002 fbd4 bl 8004f08 + 8002992: 20c8 movs r0, #200 ; 0xc8 + 8002994: f002 fbee bl 8005174 RELAY_Write(RELAY_CC, 0); - 8002760: 2100 movs r1, #0 - 8002762: 2001 movs r0, #1 - 8002764: f7fe ff40 bl 80015e8 - 8002768: e276 b.n 8002c58 + 8002998: 2100 movs r1, #0 + 800299a: 2001 movs r0, #1 + 800299c: f7fe fe9a bl 80016d4 + 80029a0: e299 b.n 8002ed6 // } else if (strncmp((const char*)buffer, "voltage", length) == 0) { // printf("Voltaging...\n"); // mm_schedule_read(0x02, 0x0001); } else if (strncmp((const char*)buffer, "adc", length) == 0) { - 800276a: 683a ldr r2, [r7, #0] - 800276c: 4987 ldr r1, [pc, #540] ; (800298c ) - 800276e: 6878 ldr r0, [r7, #4] - 8002770: f007 f9de bl 8009b30 - 8002774: 4603 mov r3, r0 - 8002776: 2b00 cmp r3, #0 - 8002778: d10b bne.n 8002792 + 80029a2: 683a ldr r2, [r7, #0] + 80029a4: 4994 ldr r1, [pc, #592] ; (8002bf8 ) + 80029a6: 6878 ldr r0, [r7, #4] + 80029a8: f007 f9f8 bl 8009d9c + 80029ac: 4603 mov r3, r0 + 80029ae: 2b00 cmp r3, #0 + 80029b0: d10b bne.n 80029ca printf("CC1=%.2f\n", CONN_CC_GetAdc()); - 800277a: f7ff fef1 bl 8002560 - 800277e: 4603 mov r3, r0 - 8002780: 4618 mov r0, r3 - 8002782: f7fd fec7 bl 8000514 <__aeabi_f2d> - 8002786: 4602 mov r2, r0 - 8002788: 460b mov r3, r1 - 800278a: 4881 ldr r0, [pc, #516] ; (8002990 ) - 800278c: f007 f932 bl 80099f4 - 8002790: e262 b.n 8002c58 + 80029b2: f7ff fef1 bl 8002798 + 80029b6: 4603 mov r3, r0 + 80029b8: 4618 mov r0, r3 + 80029ba: f7fd fdab bl 8000514 <__aeabi_f2d> + 80029be: 4602 mov r2, r0 + 80029c0: 460b mov r3, r1 + 80029c2: 488e ldr r0, [pc, #568] ; (8002bfc ) + 80029c4: f007 f94c bl 8009c60 + 80029c8: e285 b.n 8002ed6 } else if (strncmp((const char*)buffer, "lock_state", length) == 0) { - 8002792: 683a ldr r2, [r7, #0] - 8002794: 497f ldr r1, [pc, #508] ; (8002994 ) - 8002796: 6878 ldr r0, [r7, #4] - 8002798: f007 f9ca bl 8009b30 - 800279c: 4603 mov r3, r0 - 800279e: 2b00 cmp r3, #0 - 80027a0: d107 bne.n 80027b2 + 80029ca: 683a ldr r2, [r7, #0] + 80029cc: 498c ldr r1, [pc, #560] ; (8002c00 ) + 80029ce: 6878 ldr r0, [r7, #4] + 80029d0: f007 f9e4 bl 8009d9c + 80029d4: 4603 mov r3, r0 + 80029d6: 2b00 cmp r3, #0 + 80029d8: d107 bne.n 80029ea printf("Lock state=%d\n", GBT_LockGetState()); - 80027a2: f001 f8ed bl 8003980 - 80027a6: 4603 mov r3, r0 - 80027a8: 4619 mov r1, r3 - 80027aa: 487b ldr r0, [pc, #492] ; (8002998 ) - 80027ac: f007 f922 bl 80099f4 - 80027b0: e252 b.n 8002c58 + 80029da: f001 f911 bl 8003c00 + 80029de: 4603 mov r3, r0 + 80029e0: 4619 mov r1, r3 + 80029e2: 4888 ldr r0, [pc, #544] ; (8002c04 ) + 80029e4: f007 f93c bl 8009c60 + 80029e8: e275 b.n 8002ed6 } else if (strncmp((const char*)buffer, "lock_lock", length) == 0) { - 80027b2: 683a ldr r2, [r7, #0] - 80027b4: 4979 ldr r1, [pc, #484] ; (800299c ) - 80027b6: 6878 ldr r0, [r7, #4] - 80027b8: f007 f9ba bl 8009b30 - 80027bc: 4603 mov r3, r0 - 80027be: 2b00 cmp r3, #0 - 80027c0: d106 bne.n 80027d0 + 80029ea: 683a ldr r2, [r7, #0] + 80029ec: 4986 ldr r1, [pc, #536] ; (8002c08 ) + 80029ee: 6878 ldr r0, [r7, #4] + 80029f0: f007 f9d4 bl 8009d9c + 80029f4: 4603 mov r3, r0 + 80029f6: 2b00 cmp r3, #0 + 80029f8: d106 bne.n 8002a08 printf("Locked\n"); - 80027c2: 4877 ldr r0, [pc, #476] ; (80029a0 ) - 80027c4: f007 f99c bl 8009b00 + 80029fa: 4884 ldr r0, [pc, #528] ; (8002c0c ) + 80029fc: f007 f9b6 bl 8009d6c GBT_Lock(1); - 80027c8: 2001 movs r0, #1 - 80027ca: f001 f8f7 bl 80039bc - 80027ce: e243 b.n 8002c58 + 8002a00: 2001 movs r0, #1 + 8002a02: f001 f91b bl 8003c3c + 8002a06: e266 b.n 8002ed6 } else if (strncmp((const char*)buffer, "lock_unlock", length) == 0) { - 80027d0: 683a ldr r2, [r7, #0] - 80027d2: 4974 ldr r1, [pc, #464] ; (80029a4 ) - 80027d4: 6878 ldr r0, [r7, #4] - 80027d6: f007 f9ab bl 8009b30 - 80027da: 4603 mov r3, r0 - 80027dc: 2b00 cmp r3, #0 - 80027de: d106 bne.n 80027ee + 8002a08: 683a ldr r2, [r7, #0] + 8002a0a: 4981 ldr r1, [pc, #516] ; (8002c10 ) + 8002a0c: 6878 ldr r0, [r7, #4] + 8002a0e: f007 f9c5 bl 8009d9c + 8002a12: 4603 mov r3, r0 + 8002a14: 2b00 cmp r3, #0 + 8002a16: d106 bne.n 8002a26 printf("Unlocked\n"); - 80027e0: 4871 ldr r0, [pc, #452] ; (80029a8 ) - 80027e2: f007 f98d bl 8009b00 + 8002a18: 487e ldr r0, [pc, #504] ; (8002c14 ) + 8002a1a: f007 f9a7 bl 8009d6c GBT_Lock(0); - 80027e6: 2000 movs r0, #0 - 80027e8: f001 f8e8 bl 80039bc - 80027ec: e234 b.n 8002c58 + 8002a1e: 2000 movs r0, #0 + 8002a20: f001 f90c bl 8003c3c + 8002a24: e257 b.n 8002ed6 } else if (strncmp((const char*)buffer, "complete", length) == 0) { - 80027ee: 683a ldr r2, [r7, #0] - 80027f0: 496e ldr r1, [pc, #440] ; (80029ac ) - 80027f2: 6878 ldr r0, [r7, #4] - 80027f4: f007 f99c bl 8009b30 - 80027f8: 4603 mov r3, r0 - 80027fa: 2b00 cmp r3, #0 - 80027fc: d103 bne.n 8002806 + 8002a26: 683a ldr r2, [r7, #0] + 8002a28: 497b ldr r1, [pc, #492] ; (8002c18 ) + 8002a2a: 6878 ldr r0, [r7, #4] + 8002a2c: f007 f9b6 bl 8009d9c + 8002a30: 4603 mov r3, r0 + 8002a32: 2b00 cmp r3, #0 + 8002a34: d103 bne.n 8002a3e CONN_SetState(CONN_Occupied_complete); - 80027fe: 2006 movs r0, #6 - 8002800: f7ff fdaa bl 8002358 - 8002804: e228 b.n 8002c58 + 8002a36: 2006 movs r0, #6 + 8002a38: f7ff fdaa bl 8002590 + 8002a3c: e24b b.n 8002ed6 } else if (strncmp((const char*)buffer, "start", length) == 0) { - 8002806: 683a ldr r2, [r7, #0] - 8002808: 4969 ldr r1, [pc, #420] ; (80029b0 ) - 800280a: 6878 ldr r0, [r7, #4] - 800280c: f007 f990 bl 8009b30 - 8002810: 4603 mov r3, r0 - 8002812: 2b00 cmp r3, #0 - 8002814: d105 bne.n 8002822 + 8002a3e: 683a ldr r2, [r7, #0] + 8002a40: 4976 ldr r1, [pc, #472] ; (8002c1c ) + 8002a42: 6878 ldr r0, [r7, #4] + 8002a44: f007 f9aa bl 8009d9c + 8002a48: 4603 mov r3, r0 + 8002a4a: 2b00 cmp r3, #0 + 8002a4c: d105 bne.n 8002a5a printf("Started\n"); - 8002816: 4867 ldr r0, [pc, #412] ; (80029b4 ) - 8002818: f007 f972 bl 8009b00 + 8002a4e: 4874 ldr r0, [pc, #464] ; (8002c20 ) + 8002a50: f007 f98c bl 8009d6c GBT_Start(); - 800281c: f7ff fd04 bl 8002228 - 8002820: e21a b.n 8002c58 + 8002a54: f7ff fd0c bl 8002470 + 8002a58: e23d b.n 8002ed6 } else if (strncmp((const char*)buffer, "stop", length) == 0) { - 8002822: 683a ldr r2, [r7, #0] - 8002824: 4964 ldr r1, [pc, #400] ; (80029b8 ) - 8002826: 6878 ldr r0, [r7, #4] - 8002828: f007 f982 bl 8009b30 - 800282c: 4603 mov r3, r0 - 800282e: 2b00 cmp r3, #0 - 8002830: d106 bne.n 8002840 + 8002a5a: 683a ldr r2, [r7, #0] + 8002a5c: 4971 ldr r1, [pc, #452] ; (8002c24 ) + 8002a5e: 6878 ldr r0, [r7, #4] + 8002a60: f007 f99c bl 8009d9c + 8002a64: 4603 mov r3, r0 + 8002a66: 2b00 cmp r3, #0 + 8002a68: d106 bne.n 8002a78 printf("Stopped\n"); - 8002832: 4862 ldr r0, [pc, #392] ; (80029bc ) - 8002834: f007 f964 bl 8009b00 + 8002a6a: 486f ldr r0, [pc, #444] ; (8002c28 ) + 8002a6c: f007 f97e bl 8009d6c GBT_Stop(GBT_CST_SUSPENDS_ARTIFICIALLY); - 8002838: 4861 ldr r0, [pc, #388] ; (80029c0 ) - 800283a: f7ff fc49 bl 80020d0 - 800283e: e20b b.n 8002c58 + 8002a70: 486e ldr r0, [pc, #440] ; (8002c2c ) + 8002a72: f7ff fc51 bl 8002318 + 8002a76: e22e b.n 8002ed6 } else if (strncmp((const char*)buffer, "stop1", length) == 0) { - 8002840: 683a ldr r2, [r7, #0] - 8002842: 4960 ldr r1, [pc, #384] ; (80029c4 ) - 8002844: 6878 ldr r0, [r7, #4] - 8002846: f007 f973 bl 8009b30 - 800284a: 4603 mov r3, r0 - 800284c: 2b00 cmp r3, #0 - 800284e: d105 bne.n 800285c + 8002a78: 683a ldr r2, [r7, #0] + 8002a7a: 496d ldr r1, [pc, #436] ; (8002c30 ) + 8002a7c: 6878 ldr r0, [r7, #4] + 8002a7e: f007 f98d bl 8009d9c + 8002a82: 4603 mov r3, r0 + 8002a84: 2b00 cmp r3, #0 + 8002a86: d105 bne.n 8002a94 printf("Stopped\n"); - 8002850: 485a ldr r0, [pc, #360] ; (80029bc ) - 8002852: f007 f955 bl 8009b00 + 8002a88: 4867 ldr r0, [pc, #412] ; (8002c28 ) + 8002a8a: f007 f96f bl 8009d6c GBT_ForceStop(); - 8002856: f7ff fc61 bl 800211c - 800285a: e1fd b.n 8002c58 + 8002a8e: f7ff fc69 bl 8002364 + 8002a92: e220 b.n 8002ed6 // printf("Stopped\n"); // GBT_Lock(1); // GBT_SwitchState(GBT_S2_LOCKED); // GBT_Delay(500); } else if (strncmp((const char*)buffer, "cc_state", length) == 0) { - 800285c: 683a ldr r2, [r7, #0] - 800285e: 495a ldr r1, [pc, #360] ; (80029c8 ) - 8002860: 6878 ldr r0, [r7, #4] - 8002862: f007 f965 bl 8009b30 - 8002866: 4603 mov r3, r0 - 8002868: 2b00 cmp r3, #0 - 800286a: d127 bne.n 80028bc + 8002a94: 683a ldr r2, [r7, #0] + 8002a96: 4967 ldr r1, [pc, #412] ; (8002c34 ) + 8002a98: 6878 ldr r0, [r7, #4] + 8002a9a: f007 f97f bl 8009d9c + 8002a9e: 4603 mov r3, r0 + 8002aa0: 2b00 cmp r3, #0 + 8002aa2: d127 bne.n 8002af4 switch(CONN_CC_GetState()){ - 800286c: f7ff fdfc bl 8002468 - 8002870: 4603 mov r3, r0 - 8002872: 2b04 cmp r3, #4 - 8002874: f200 81f0 bhi.w 8002c58 - 8002878: a201 add r2, pc, #4 ; (adr r2, 8002880 ) - 800287a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800287e: bf00 nop - 8002880: 08002895 .word 0x08002895 - 8002884: 0800289d .word 0x0800289d - 8002888: 080028a5 .word 0x080028a5 - 800288c: 080028ad .word 0x080028ad - 8002890: 080028b5 .word 0x080028b5 + 8002aa4: f7ff fdfc bl 80026a0 + 8002aa8: 4603 mov r3, r0 + 8002aaa: 2b04 cmp r3, #4 + 8002aac: f200 8213 bhi.w 8002ed6 + 8002ab0: a201 add r2, pc, #4 ; (adr r2, 8002ab8 ) + 8002ab2: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8002ab6: bf00 nop + 8002ab8: 08002acd .word 0x08002acd + 8002abc: 08002ad5 .word 0x08002ad5 + 8002ac0: 08002add .word 0x08002add + 8002ac4: 08002ae5 .word 0x08002ae5 + 8002ac8: 08002aed .word 0x08002aed case GBT_CC_UNKNOWN: printf("GBT_CC_UNKNOWN\n"); - 8002894: 484d ldr r0, [pc, #308] ; (80029cc ) - 8002896: f007 f933 bl 8009b00 + 8002acc: 485a ldr r0, [pc, #360] ; (8002c38 ) + 8002ace: f007 f94d bl 8009d6c break; - 800289a: e1dd b.n 8002c58 + 8002ad2: e200 b.n 8002ed6 case GBT_CC_12V: printf("GBT_CC_12V\n"); - 800289c: 484c ldr r0, [pc, #304] ; (80029d0 ) - 800289e: f007 f92f bl 8009b00 + 8002ad4: 4859 ldr r0, [pc, #356] ; (8002c3c ) + 8002ad6: f007 f949 bl 8009d6c break; - 80028a2: e1d9 b.n 8002c58 + 8002ada: e1fc b.n 8002ed6 case GBT_CC_6V: printf("GBT_CC_6V\n"); - 80028a4: 484b ldr r0, [pc, #300] ; (80029d4 ) - 80028a6: f007 f92b bl 8009b00 + 8002adc: 4858 ldr r0, [pc, #352] ; (8002c40 ) + 8002ade: f007 f945 bl 8009d6c break; - 80028aa: e1d5 b.n 8002c58 + 8002ae2: e1f8 b.n 8002ed6 case GBT_CC_4V: printf("GBT_CC_4V\n"); - 80028ac: 484a ldr r0, [pc, #296] ; (80029d8 ) - 80028ae: f007 f927 bl 8009b00 + 8002ae4: 4857 ldr r0, [pc, #348] ; (8002c44 ) + 8002ae6: f007 f941 bl 8009d6c break; - 80028b2: e1d1 b.n 8002c58 + 8002aea: e1f4 b.n 8002ed6 case GBT_CC_2V: printf("GBT_CC_2V\n"); - 80028b4: 4849 ldr r0, [pc, #292] ; (80029dc ) - 80028b6: f007 f923 bl 8009b00 + 8002aec: 4856 ldr r0, [pc, #344] ; (8002c48 ) + 8002aee: f007 f93d bl 8009d6c break; - 80028ba: e1cd b.n 8002c58 + 8002af2: e1f0 b.n 8002ed6 } + } else if (strncmp((const char*)buffer, "temp", length) == 0) { + 8002af4: 683a ldr r2, [r7, #0] + 8002af6: 4955 ldr r1, [pc, #340] ; (8002c4c ) + 8002af8: 6878 ldr r0, [r7, #4] + 8002afa: f007 f94f bl 8009d9c + 8002afe: 4603 mov r3, r0 + 8002b00: 2b00 cmp r3, #0 + 8002b02: d110 bne.n 8002b26 + printf("temp1 %d\n",GBT_ReadTemp(0)); + 8002b04: 2000 movs r0, #0 + 8002b06: f7fe fe89 bl 800181c + 8002b0a: 4603 mov r3, r0 + 8002b0c: 4619 mov r1, r3 + 8002b0e: 4850 ldr r0, [pc, #320] ; (8002c50 ) + 8002b10: f007 f8a6 bl 8009c60 + printf("temp2 %d\n",GBT_ReadTemp(1)); + 8002b14: 2001 movs r0, #1 + 8002b16: f7fe fe81 bl 800181c + 8002b1a: 4603 mov r3, r0 + 8002b1c: 4619 mov r1, r3 + 8002b1e: 484d ldr r0, [pc, #308] ; (8002c54 ) + 8002b20: f007 f89e bl 8009c60 + 8002b24: e1d7 b.n 8002ed6 } else if (strncmp((const char*)buffer, "info1", length) == 0) { - 80028bc: 683a ldr r2, [r7, #0] - 80028be: 4948 ldr r1, [pc, #288] ; (80029e0 ) - 80028c0: 6878 ldr r0, [r7, #4] - 80028c2: f007 f935 bl 8009b30 - 80028c6: 4603 mov r3, r0 - 80028c8: 2b00 cmp r3, #0 - 80028ca: f040 809f bne.w 8002a0c + 8002b26: 683a ldr r2, [r7, #0] + 8002b28: 494b ldr r1, [pc, #300] ; (8002c58 ) + 8002b2a: 6878 ldr r0, [r7, #4] + 8002b2c: f007 f936 bl 8009d9c + 8002b30: 4603 mov r3, r0 + 8002b32: 2b00 cmp r3, #0 + 8002b34: f040 80a6 bne.w 8002c84 printf("Battery info:\n"); - 80028ce: 4845 ldr r0, [pc, #276] ; (80029e4 ) - 80028d0: f007 f916 bl 8009b00 + 8002b38: 4848 ldr r0, [pc, #288] ; (8002c5c ) + 8002b3a: f007 f917 bl 8009d6c printf("maxCV %dV\n",GBT_BATStat.maxCellVoltage/100); // 0.01v/bit - 80028d4: 4b44 ldr r3, [pc, #272] ; (80029e8 ) - 80028d6: 881b ldrh r3, [r3, #0] - 80028d8: b29b uxth r3, r3 - 80028da: 4a44 ldr r2, [pc, #272] ; (80029ec ) - 80028dc: fba2 2303 umull r2, r3, r2, r3 - 80028e0: 095b lsrs r3, r3, #5 - 80028e2: b29b uxth r3, r3 - 80028e4: 4619 mov r1, r3 - 80028e6: 4842 ldr r0, [pc, #264] ; (80029f0 ) - 80028e8: f007 f884 bl 80099f4 + 8002b3e: 4b48 ldr r3, [pc, #288] ; (8002c60 ) + 8002b40: 881b ldrh r3, [r3, #0] + 8002b42: b29b uxth r3, r3 + 8002b44: 4a47 ldr r2, [pc, #284] ; (8002c64 ) + 8002b46: fba2 2303 umull r2, r3, r2, r3 + 8002b4a: 095b lsrs r3, r3, #5 + 8002b4c: b29b uxth r3, r3 + 8002b4e: 4619 mov r1, r3 + 8002b50: 4845 ldr r0, [pc, #276] ; (8002c68 ) + 8002b52: f007 f885 bl 8009c60 printf("maxCC %dA\n",GBT_BATStat.maxChargingCurrent/10); // 0.1A/bit - 80028ec: 4b3e ldr r3, [pc, #248] ; (80029e8 ) - 80028ee: 885b ldrh r3, [r3, #2] - 80028f0: b29b uxth r3, r3 - 80028f2: 4a40 ldr r2, [pc, #256] ; (80029f4 ) - 80028f4: fba2 2303 umull r2, r3, r2, r3 - 80028f8: 08db lsrs r3, r3, #3 - 80028fa: b29b uxth r3, r3 - 80028fc: 4619 mov r1, r3 - 80028fe: 483e ldr r0, [pc, #248] ; (80029f8 ) - 8002900: f007 f878 bl 80099f4 + 8002b56: 4b42 ldr r3, [pc, #264] ; (8002c60 ) + 8002b58: 885b ldrh r3, [r3, #2] + 8002b5a: b29b uxth r3, r3 + 8002b5c: 4a43 ldr r2, [pc, #268] ; (8002c6c ) + 8002b5e: fba2 2303 umull r2, r3, r2, r3 + 8002b62: 08db lsrs r3, r3, #3 + 8002b64: b29b uxth r3, r3 + 8002b66: 4619 mov r1, r3 + 8002b68: 4841 ldr r0, [pc, #260] ; (8002c70 ) + 8002b6a: f007 f879 bl 8009c60 printf("totE %dkWh\n",GBT_BATStat.totalEnergy/10); // 0.1kWh - 8002904: 4b38 ldr r3, [pc, #224] ; (80029e8 ) - 8002906: 889b ldrh r3, [r3, #4] - 8002908: b29b uxth r3, r3 - 800290a: 4a3a ldr r2, [pc, #232] ; (80029f4 ) - 800290c: fba2 2303 umull r2, r3, r2, r3 - 8002910: 08db lsrs r3, r3, #3 - 8002912: b29b uxth r3, r3 - 8002914: 4619 mov r1, r3 - 8002916: 4839 ldr r0, [pc, #228] ; (80029fc ) - 8002918: f007 f86c bl 80099f4 + 8002b6e: 4b3c ldr r3, [pc, #240] ; (8002c60 ) + 8002b70: 889b ldrh r3, [r3, #4] + 8002b72: b29b uxth r3, r3 + 8002b74: 4a3d ldr r2, [pc, #244] ; (8002c6c ) + 8002b76: fba2 2303 umull r2, r3, r2, r3 + 8002b7a: 08db lsrs r3, r3, #3 + 8002b7c: b29b uxth r3, r3 + 8002b7e: 4619 mov r1, r3 + 8002b80: 483c ldr r0, [pc, #240] ; (8002c74 ) + 8002b82: f007 f86d bl 8009c60 printf("maxCV %dV\n",GBT_BATStat.maxChargingVoltage/10); // 0.1V/ bit - 800291c: 4b32 ldr r3, [pc, #200] ; (80029e8 ) - 800291e: 88db ldrh r3, [r3, #6] - 8002920: b29b uxth r3, r3 - 8002922: 4a34 ldr r2, [pc, #208] ; (80029f4 ) - 8002924: fba2 2303 umull r2, r3, r2, r3 - 8002928: 08db lsrs r3, r3, #3 - 800292a: b29b uxth r3, r3 - 800292c: 4619 mov r1, r3 - 800292e: 4830 ldr r0, [pc, #192] ; (80029f0 ) - 8002930: f007 f860 bl 80099f4 + 8002b86: 4b36 ldr r3, [pc, #216] ; (8002c60 ) + 8002b88: 88db ldrh r3, [r3, #6] + 8002b8a: b29b uxth r3, r3 + 8002b8c: 4a37 ldr r2, [pc, #220] ; (8002c6c ) + 8002b8e: fba2 2303 umull r2, r3, r2, r3 + 8002b92: 08db lsrs r3, r3, #3 + 8002b94: b29b uxth r3, r3 + 8002b96: 4619 mov r1, r3 + 8002b98: 4833 ldr r0, [pc, #204] ; (8002c68 ) + 8002b9a: f007 f861 bl 8009c60 printf("maxT %dC\n",(int16_t)GBT_BATStat.maxTemp-50); // 1C/bit, -50C offset - 8002934: 4b2c ldr r3, [pc, #176] ; (80029e8 ) - 8002936: 7a1b ldrb r3, [r3, #8] - 8002938: 3b32 subs r3, #50 ; 0x32 - 800293a: 4619 mov r1, r3 - 800293c: 4830 ldr r0, [pc, #192] ; (8002a00 ) - 800293e: f007 f859 bl 80099f4 + 8002b9e: 4b30 ldr r3, [pc, #192] ; (8002c60 ) + 8002ba0: 7a1b ldrb r3, [r3, #8] + 8002ba2: 3b32 subs r3, #50 ; 0x32 + 8002ba4: 4619 mov r1, r3 + 8002ba6: 4834 ldr r0, [pc, #208] ; (8002c78 ) + 8002ba8: f007 f85a bl 8009c60 printf("SOC %dp\n",GBT_BATStat.SOC/10); // 0.1%/bit , 0..100% - 8002942: 4b29 ldr r3, [pc, #164] ; (80029e8 ) - 8002944: f8b3 3009 ldrh.w r3, [r3, #9] - 8002948: b29b uxth r3, r3 - 800294a: 4a2a ldr r2, [pc, #168] ; (80029f4 ) - 800294c: fba2 2303 umull r2, r3, r2, r3 - 8002950: 08db lsrs r3, r3, #3 - 8002952: b29b uxth r3, r3 - 8002954: 4619 mov r1, r3 - 8002956: 482b ldr r0, [pc, #172] ; (8002a04 ) - 8002958: f007 f84c bl 80099f4 + 8002bac: 4b2c ldr r3, [pc, #176] ; (8002c60 ) + 8002bae: f8b3 3009 ldrh.w r3, [r3, #9] + 8002bb2: b29b uxth r3, r3 + 8002bb4: 4a2d ldr r2, [pc, #180] ; (8002c6c ) + 8002bb6: fba2 2303 umull r2, r3, r2, r3 + 8002bba: 08db lsrs r3, r3, #3 + 8002bbc: b29b uxth r3, r3 + 8002bbe: 4619 mov r1, r3 + 8002bc0: 482e ldr r0, [pc, #184] ; (8002c7c ) + 8002bc2: f007 f84d bl 8009c60 printf("Volt. %dV\n",GBT_BATStat.measVoltage/10); // 0.1V/bit - 800295c: 4b22 ldr r3, [pc, #136] ; (80029e8 ) - 800295e: f8b3 300b ldrh.w r3, [r3, #11] - 8002962: b29b uxth r3, r3 - 8002964: 4a23 ldr r2, [pc, #140] ; (80029f4 ) - 8002966: fba2 2303 umull r2, r3, r2, r3 - 800296a: 08db lsrs r3, r3, #3 - 800296c: b29b uxth r3, r3 - 800296e: 4619 mov r1, r3 - 8002970: 4825 ldr r0, [pc, #148] ; (8002a08 ) - 8002972: f007 f83f bl 80099f4 - 8002976: e16f b.n 8002c58 - 8002978: 0800cb30 .word 0x0800cb30 - 800297c: 0800cb38 .word 0x0800cb38 - 8002980: 0800cb48 .word 0x0800cb48 - 8002984: 0800cb54 .word 0x0800cb54 - 8002988: 0800cb60 .word 0x0800cb60 - 800298c: 0800cb68 .word 0x0800cb68 - 8002990: 0800cb6c .word 0x0800cb6c - 8002994: 0800cb78 .word 0x0800cb78 - 8002998: 0800cb84 .word 0x0800cb84 - 800299c: 0800cb94 .word 0x0800cb94 - 80029a0: 0800cba0 .word 0x0800cba0 - 80029a4: 0800cba8 .word 0x0800cba8 - 80029a8: 0800cbb4 .word 0x0800cbb4 - 80029ac: 0800cbc0 .word 0x0800cbc0 - 80029b0: 0800cbcc .word 0x0800cbcc - 80029b4: 0800cbd4 .word 0x0800cbd4 - 80029b8: 0800cbdc .word 0x0800cbdc - 80029bc: 0800cbe4 .word 0x0800cbe4 - 80029c0: 0400f0f0 .word 0x0400f0f0 - 80029c4: 0800cbec .word 0x0800cbec - 80029c8: 0800cbf4 .word 0x0800cbf4 - 80029cc: 0800cc00 .word 0x0800cc00 - 80029d0: 0800cc10 .word 0x0800cc10 - 80029d4: 0800cc1c .word 0x0800cc1c - 80029d8: 0800cc28 .word 0x0800cc28 - 80029dc: 0800cc34 .word 0x0800cc34 - 80029e0: 0800cc40 .word 0x0800cc40 - 80029e4: 0800cc48 .word 0x0800cc48 - 80029e8: 20000340 .word 0x20000340 - 80029ec: 51eb851f .word 0x51eb851f - 80029f0: 0800cc58 .word 0x0800cc58 - 80029f4: cccccccd .word 0xcccccccd - 80029f8: 0800cc64 .word 0x0800cc64 - 80029fc: 0800cc70 .word 0x0800cc70 - 8002a00: 0800cc7c .word 0x0800cc7c - 8002a04: 0800cc88 .word 0x0800cc88 - 8002a08: 0800cc94 .word 0x0800cc94 + 8002bc6: 4b26 ldr r3, [pc, #152] ; (8002c60 ) + 8002bc8: f8b3 300b ldrh.w r3, [r3, #11] + 8002bcc: b29b uxth r3, r3 + 8002bce: 4a27 ldr r2, [pc, #156] ; (8002c6c ) + 8002bd0: fba2 2303 umull r2, r3, r2, r3 + 8002bd4: 08db lsrs r3, r3, #3 + 8002bd6: b29b uxth r3, r3 + 8002bd8: 4619 mov r1, r3 + 8002bda: 4829 ldr r0, [pc, #164] ; (8002c80 ) + 8002bdc: f007 f840 bl 8009c60 + 8002be0: e179 b.n 8002ed6 + 8002be2: bf00 nop + 8002be4: 0800cda0 .word 0x0800cda0 + 8002be8: 0800cda8 .word 0x0800cda8 + 8002bec: 0800cdb8 .word 0x0800cdb8 + 8002bf0: 0800cdc4 .word 0x0800cdc4 + 8002bf4: 0800cdd0 .word 0x0800cdd0 + 8002bf8: 0800cdd8 .word 0x0800cdd8 + 8002bfc: 0800cddc .word 0x0800cddc + 8002c00: 0800cde8 .word 0x0800cde8 + 8002c04: 0800cdf4 .word 0x0800cdf4 + 8002c08: 0800ce04 .word 0x0800ce04 + 8002c0c: 0800ce10 .word 0x0800ce10 + 8002c10: 0800ce18 .word 0x0800ce18 + 8002c14: 0800ce24 .word 0x0800ce24 + 8002c18: 0800ce30 .word 0x0800ce30 + 8002c1c: 0800ce3c .word 0x0800ce3c + 8002c20: 0800ce44 .word 0x0800ce44 + 8002c24: 0800ce4c .word 0x0800ce4c + 8002c28: 0800ce54 .word 0x0800ce54 + 8002c2c: 0400f0f0 .word 0x0400f0f0 + 8002c30: 0800ce5c .word 0x0800ce5c + 8002c34: 0800ce64 .word 0x0800ce64 + 8002c38: 0800ce70 .word 0x0800ce70 + 8002c3c: 0800ce80 .word 0x0800ce80 + 8002c40: 0800ce8c .word 0x0800ce8c + 8002c44: 0800ce98 .word 0x0800ce98 + 8002c48: 0800cea4 .word 0x0800cea4 + 8002c4c: 0800ceb0 .word 0x0800ceb0 + 8002c50: 0800ceb8 .word 0x0800ceb8 + 8002c54: 0800cec4 .word 0x0800cec4 + 8002c58: 0800ced0 .word 0x0800ced0 + 8002c5c: 0800ced8 .word 0x0800ced8 + 8002c60: 20000340 .word 0x20000340 + 8002c64: 51eb851f .word 0x51eb851f + 8002c68: 0800cee8 .word 0x0800cee8 + 8002c6c: cccccccd .word 0xcccccccd + 8002c70: 0800cef4 .word 0x0800cef4 + 8002c74: 0800cf00 .word 0x0800cf00 + 8002c78: 0800cf0c .word 0x0800cf0c + 8002c7c: 0800cf18 .word 0x0800cf18 + 8002c80: 0800cf24 .word 0x0800cf24 } else if (strncmp((const char*)buffer, "info2", length) == 0) { - 8002a0c: 683a ldr r2, [r7, #0] - 8002a0e: 4994 ldr r1, [pc, #592] ; (8002c60 ) - 8002a10: 6878 ldr r0, [r7, #4] - 8002a12: f007 f88d bl 8009b30 - 8002a16: 4603 mov r3, r0 - 8002a18: 2b00 cmp r3, #0 - 8002a1a: d153 bne.n 8002ac4 + 8002c84: 683a ldr r2, [r7, #0] + 8002c86: 4995 ldr r1, [pc, #596] ; (8002edc ) + 8002c88: 6878 ldr r0, [r7, #4] + 8002c8a: f007 f887 bl 8009d9c + 8002c8e: 4603 mov r3, r0 + 8002c90: 2b00 cmp r3, #0 + 8002c92: d153 bne.n 8002d3c printf("EV info:\n"); - 8002a1c: 4891 ldr r0, [pc, #580] ; (8002c64 ) - 8002a1e: f007 f86f bl 8009b00 + 8002c94: 4892 ldr r0, [pc, #584] ; (8002ee0 ) + 8002c96: f007 f869 bl 8009d6c printf("GBT_ver V%d.%d%d\n",GBT_EVInfo.version[0],GBT_EVInfo.version[1],GBT_EVInfo.version[2]); - 8002a22: 4b91 ldr r3, [pc, #580] ; (8002c68 ) - 8002a24: 781b ldrb r3, [r3, #0] - 8002a26: 4619 mov r1, r3 - 8002a28: 4b8f ldr r3, [pc, #572] ; (8002c68 ) - 8002a2a: 785b ldrb r3, [r3, #1] - 8002a2c: 461a mov r2, r3 - 8002a2e: 4b8e ldr r3, [pc, #568] ; (8002c68 ) - 8002a30: 789b ldrb r3, [r3, #2] - 8002a32: 488e ldr r0, [pc, #568] ; (8002c6c ) - 8002a34: f006 ffde bl 80099f4 + 8002c9a: 4b92 ldr r3, [pc, #584] ; (8002ee4 ) + 8002c9c: 781b ldrb r3, [r3, #0] + 8002c9e: 4619 mov r1, r3 + 8002ca0: 4b90 ldr r3, [pc, #576] ; (8002ee4 ) + 8002ca2: 785b ldrb r3, [r3, #1] + 8002ca4: 461a mov r2, r3 + 8002ca6: 4b8f ldr r3, [pc, #572] ; (8002ee4 ) + 8002ca8: 789b ldrb r3, [r3, #2] + 8002caa: 488f ldr r0, [pc, #572] ; (8002ee8 ) + 8002cac: f006 ffd8 bl 8009c60 printf("Battery type: %d\n",GBT_EVInfo.batteryType); - 8002a38: 4b8b ldr r3, [pc, #556] ; (8002c68 ) - 8002a3a: 78db ldrb r3, [r3, #3] - 8002a3c: 4619 mov r1, r3 - 8002a3e: 488c ldr r0, [pc, #560] ; (8002c70 ) - 8002a40: f006 ffd8 bl 80099f4 + 8002cb0: 4b8c ldr r3, [pc, #560] ; (8002ee4 ) + 8002cb2: 78db ldrb r3, [r3, #3] + 8002cb4: 4619 mov r1, r3 + 8002cb6: 488d ldr r0, [pc, #564] ; (8002eec ) + 8002cb8: f006 ffd2 bl 8009c60 printf("Battery capacity: %d\n", GBT_EVInfo.batteryCapacity); // 0.1Ah/bit - 8002a44: 4b88 ldr r3, [pc, #544] ; (8002c68 ) - 8002a46: 889b ldrh r3, [r3, #4] - 8002a48: b29b uxth r3, r3 - 8002a4a: 4619 mov r1, r3 - 8002a4c: 4889 ldr r0, [pc, #548] ; (8002c74 ) - 8002a4e: f006 ffd1 bl 80099f4 + 8002cbc: 4b89 ldr r3, [pc, #548] ; (8002ee4 ) + 8002cbe: 889b ldrh r3, [r3, #4] + 8002cc0: b29b uxth r3, r3 + 8002cc2: 4619 mov r1, r3 + 8002cc4: 488a ldr r0, [pc, #552] ; (8002ef0 ) + 8002cc6: f006 ffcb bl 8009c60 printf("Battery voltage: %d\n", GBT_EVInfo.batteryVoltage); // 0.1V/bit - 8002a52: 4b85 ldr r3, [pc, #532] ; (8002c68 ) - 8002a54: 88db ldrh r3, [r3, #6] - 8002a56: b29b uxth r3, r3 - 8002a58: 4619 mov r1, r3 - 8002a5a: 4887 ldr r0, [pc, #540] ; (8002c78 ) - 8002a5c: f006 ffca bl 80099f4 + 8002cca: 4b86 ldr r3, [pc, #536] ; (8002ee4 ) + 8002ccc: 88db ldrh r3, [r3, #6] + 8002cce: b29b uxth r3, r3 + 8002cd0: 4619 mov r1, r3 + 8002cd2: 4888 ldr r0, [pc, #544] ; (8002ef4 ) + 8002cd4: f006 ffc4 bl 8009c60 printf("Battery vendor: %.4s\n", GBT_EVInfo.batteryVendor); // Battery vendor (ASCII string) - 8002a60: 4986 ldr r1, [pc, #536] ; (8002c7c ) - 8002a62: 4887 ldr r0, [pc, #540] ; (8002c80 ) - 8002a64: f006 ffc6 bl 80099f4 + 8002cd8: 4987 ldr r1, [pc, #540] ; (8002ef8 ) + 8002cda: 4888 ldr r0, [pc, #544] ; (8002efc ) + 8002cdc: f006 ffc0 bl 8009c60 printf("Battery SN: %lu\n", GBT_EVInfo.batterySN); // int - 8002a68: 4b7f ldr r3, [pc, #508] ; (8002c68 ) - 8002a6a: 68db ldr r3, [r3, #12] - 8002a6c: 4619 mov r1, r3 - 8002a6e: 4885 ldr r0, [pc, #532] ; (8002c84 ) - 8002a70: f006 ffc0 bl 80099f4 + 8002ce0: 4b80 ldr r3, [pc, #512] ; (8002ee4 ) + 8002ce2: 68db ldr r3, [r3, #12] + 8002ce4: 4619 mov r1, r3 + 8002ce6: 4886 ldr r0, [pc, #536] ; (8002f00 ) + 8002ce8: f006 ffba bl 8009c60 printf("Battery manufacture date: %02d.%02d.%04d\n", GBT_EVInfo.batteryManuD, GBT_EVInfo.batteryManuM ,GBT_EVInfo.batteryManuY+1985); // year (offset 1985) - 8002a74: 4b7c ldr r3, [pc, #496] ; (8002c68 ) - 8002a76: 7c9b ldrb r3, [r3, #18] - 8002a78: 4619 mov r1, r3 - 8002a7a: 4b7b ldr r3, [pc, #492] ; (8002c68 ) - 8002a7c: 7c5b ldrb r3, [r3, #17] - 8002a7e: 461a mov r2, r3 - 8002a80: 4b79 ldr r3, [pc, #484] ; (8002c68 ) - 8002a82: 7c1b ldrb r3, [r3, #16] - 8002a84: f203 73c1 addw r3, r3, #1985 ; 0x7c1 - 8002a88: 487f ldr r0, [pc, #508] ; (8002c88 ) - 8002a8a: f006 ffb3 bl 80099f4 + 8002cec: 4b7d ldr r3, [pc, #500] ; (8002ee4 ) + 8002cee: 7c9b ldrb r3, [r3, #18] + 8002cf0: 4619 mov r1, r3 + 8002cf2: 4b7c ldr r3, [pc, #496] ; (8002ee4 ) + 8002cf4: 7c5b ldrb r3, [r3, #17] + 8002cf6: 461a mov r2, r3 + 8002cf8: 4b7a ldr r3, [pc, #488] ; (8002ee4 ) + 8002cfa: 7c1b ldrb r3, [r3, #16] + 8002cfc: f203 73c1 addw r3, r3, #1985 ; 0x7c1 + 8002d00: 4880 ldr r0, [pc, #512] ; (8002f04 ) + 8002d02: f006 ffad bl 8009c60 printf("Battery cycles: %d\n", GBT_EVInfo.batteryCycleCount); //uint24_t - 8002a8e: 4b76 ldr r3, [pc, #472] ; (8002c68 ) - 8002a90: 7cda ldrb r2, [r3, #19] - 8002a92: 7d19 ldrb r1, [r3, #20] - 8002a94: 0209 lsls r1, r1, #8 - 8002a96: 430a orrs r2, r1 - 8002a98: 7d5b ldrb r3, [r3, #21] - 8002a9a: 041b lsls r3, r3, #16 - 8002a9c: 4313 orrs r3, r2 - 8002a9e: 4619 mov r1, r3 - 8002aa0: 487a ldr r0, [pc, #488] ; (8002c8c ) - 8002aa2: f006 ffa7 bl 80099f4 + 8002d06: 4b77 ldr r3, [pc, #476] ; (8002ee4 ) + 8002d08: 7cda ldrb r2, [r3, #19] + 8002d0a: 7d19 ldrb r1, [r3, #20] + 8002d0c: 0209 lsls r1, r1, #8 + 8002d0e: 430a orrs r2, r1 + 8002d10: 7d5b ldrb r3, [r3, #21] + 8002d12: 041b lsls r3, r3, #16 + 8002d14: 4313 orrs r3, r2 + 8002d16: 4619 mov r1, r3 + 8002d18: 487b ldr r0, [pc, #492] ; (8002f08 ) + 8002d1a: f006 ffa1 bl 8009c60 printf("Own auto: %d\n", GBT_EVInfo.ownAuto); // 0 = lizing, 1 = own auto - 8002aa6: 4b70 ldr r3, [pc, #448] ; (8002c68 ) - 8002aa8: 7d9b ldrb r3, [r3, #22] - 8002aaa: 4619 mov r1, r3 - 8002aac: 4878 ldr r0, [pc, #480] ; (8002c90 ) - 8002aae: f006 ffa1 bl 80099f4 + 8002d1e: 4b71 ldr r3, [pc, #452] ; (8002ee4 ) + 8002d20: 7d9b ldrb r3, [r3, #22] + 8002d22: 4619 mov r1, r3 + 8002d24: 4879 ldr r0, [pc, #484] ; (8002f0c ) + 8002d26: f006 ff9b bl 8009c60 printf("EVIN: %.17s\n", GBT_EVInfo.EVIN); //EVIN - 8002ab2: 4978 ldr r1, [pc, #480] ; (8002c94 ) - 8002ab4: 4878 ldr r0, [pc, #480] ; (8002c98 ) - 8002ab6: f006 ff9d bl 80099f4 + 8002d2a: 4979 ldr r1, [pc, #484] ; (8002f10 ) + 8002d2c: 4879 ldr r0, [pc, #484] ; (8002f14 ) + 8002d2e: f006 ff97 bl 8009c60 printf("EV_SW_VER: %.8s\n", GBT_EVInfo.EV_SW_VER); - 8002aba: 4978 ldr r1, [pc, #480] ; (8002c9c ) - 8002abc: 4878 ldr r0, [pc, #480] ; (8002ca0 ) - 8002abe: f006 ff99 bl 80099f4 - 8002ac2: e0c9 b.n 8002c58 + 8002d32: 4979 ldr r1, [pc, #484] ; (8002f18 ) + 8002d34: 4879 ldr r0, [pc, #484] ; (8002f1c ) + 8002d36: f006 ff93 bl 8009c60 + 8002d3a: e0cc b.n 8002ed6 } else if (strncmp((const char*)buffer, "info3", length) == 0) { - 8002ac4: 683a ldr r2, [r7, #0] - 8002ac6: 4977 ldr r1, [pc, #476] ; (8002ca4 ) - 8002ac8: 6878 ldr r0, [r7, #4] - 8002aca: f007 f831 bl 8009b30 - 8002ace: 4603 mov r3, r0 - 8002ad0: 2b00 cmp r3, #0 - 8002ad2: d133 bne.n 8002b3c + 8002d3c: 683a ldr r2, [r7, #0] + 8002d3e: 4978 ldr r1, [pc, #480] ; (8002f20 ) + 8002d40: 6878 ldr r0, [r7, #4] + 8002d42: f007 f82b bl 8009d9c + 8002d46: 4603 mov r3, r0 + 8002d48: 2b00 cmp r3, #0 + 8002d4a: d133 bne.n 8002db4 printf("GBT_MaxLoad info:\n"); - 8002ad4: 4874 ldr r0, [pc, #464] ; (8002ca8 ) - 8002ad6: f007 f813 bl 8009b00 + 8002d4c: 4875 ldr r0, [pc, #468] ; (8002f24 ) + 8002d4e: f007 f80d bl 8009d6c printf("Output max current: %d\n",GBT_MaxLoad.maxOutputCurrent); - 8002ada: 4b74 ldr r3, [pc, #464] ; (8002cac ) - 8002adc: 889b ldrh r3, [r3, #4] - 8002ade: b29b uxth r3, r3 - 8002ae0: 4619 mov r1, r3 - 8002ae2: 4873 ldr r0, [pc, #460] ; (8002cb0 ) - 8002ae4: f006 ff86 bl 80099f4 + 8002d52: 4b75 ldr r3, [pc, #468] ; (8002f28 ) + 8002d54: 889b ldrh r3, [r3, #4] + 8002d56: b29b uxth r3, r3 + 8002d58: 4619 mov r1, r3 + 8002d5a: 4874 ldr r0, [pc, #464] ; (8002f2c ) + 8002d5c: f006 ff80 bl 8009c60 printf("Output min current: %d\n",GBT_MaxLoad.minOutputCurrent); - 8002ae8: 4b70 ldr r3, [pc, #448] ; (8002cac ) - 8002aea: 88db ldrh r3, [r3, #6] - 8002aec: b29b uxth r3, r3 - 8002aee: 4619 mov r1, r3 - 8002af0: 4870 ldr r0, [pc, #448] ; (8002cb4 ) - 8002af2: f006 ff7f bl 80099f4 + 8002d60: 4b71 ldr r3, [pc, #452] ; (8002f28 ) + 8002d62: 88db ldrh r3, [r3, #6] + 8002d64: b29b uxth r3, r3 + 8002d66: 4619 mov r1, r3 + 8002d68: 4871 ldr r0, [pc, #452] ; (8002f30 ) + 8002d6a: f006 ff79 bl 8009c60 printf("Output max voltage: %d\n",GBT_MaxLoad.maxOutputVoltage); - 8002af6: 4b6d ldr r3, [pc, #436] ; (8002cac ) - 8002af8: 881b ldrh r3, [r3, #0] - 8002afa: b29b uxth r3, r3 - 8002afc: 4619 mov r1, r3 - 8002afe: 486e ldr r0, [pc, #440] ; (8002cb8 ) - 8002b00: f006 ff78 bl 80099f4 + 8002d6e: 4b6e ldr r3, [pc, #440] ; (8002f28 ) + 8002d70: 881b ldrh r3, [r3, #0] + 8002d72: b29b uxth r3, r3 + 8002d74: 4619 mov r1, r3 + 8002d76: 486f ldr r0, [pc, #444] ; (8002f34 ) + 8002d78: f006 ff72 bl 8009c60 printf("Output min voltage: %d\n",GBT_MaxLoad.minOutputVoltage); - 8002b04: 4b69 ldr r3, [pc, #420] ; (8002cac ) - 8002b06: 885b ldrh r3, [r3, #2] - 8002b08: b29b uxth r3, r3 - 8002b0a: 4619 mov r1, r3 - 8002b0c: 486b ldr r0, [pc, #428] ; (8002cbc ) - 8002b0e: f006 ff71 bl 80099f4 + 8002d7c: 4b6a ldr r3, [pc, #424] ; (8002f28 ) + 8002d7e: 885b ldrh r3, [r3, #2] + 8002d80: b29b uxth r3, r3 + 8002d82: 4619 mov r1, r3 + 8002d84: 486c ldr r0, [pc, #432] ; (8002f38 ) + 8002d86: f006 ff6b bl 8009c60 printf("\nGBT_ChargerInfo info:\n"); - 8002b12: 486b ldr r0, [pc, #428] ; (8002cc0 ) - 8002b14: f006 fff4 bl 8009b00 + 8002d8a: 486c ldr r0, [pc, #432] ; (8002f3c ) + 8002d8c: f006 ffee bl 8009d6c printf("BMS Recognized: %d\n",GBT_ChargerInfo.bmsIdentified); - 8002b18: 4b6a ldr r3, [pc, #424] ; (8002cc4 ) - 8002b1a: 781b ldrb r3, [r3, #0] - 8002b1c: 4619 mov r1, r3 - 8002b1e: 486a ldr r0, [pc, #424] ; (8002cc8 ) - 8002b20: f006 ff68 bl 80099f4 + 8002d90: 4b6b ldr r3, [pc, #428] ; (8002f40 ) + 8002d92: 781b ldrb r3, [r3, #0] + 8002d94: 4619 mov r1, r3 + 8002d96: 486b ldr r0, [pc, #428] ; (8002f44 ) + 8002d98: f006 ff62 bl 8009c60 printf("Charger location: %.3s\n",GBT_ChargerInfo.chargerLocation); - 8002b24: 4969 ldr r1, [pc, #420] ; (8002ccc ) - 8002b26: 486a ldr r0, [pc, #424] ; (8002cd0 ) - 8002b28: f006 ff64 bl 80099f4 + 8002d9c: 496a ldr r1, [pc, #424] ; (8002f48 ) + 8002d9e: 486b ldr r0, [pc, #428] ; (8002f4c ) + 8002da0: f006 ff5e bl 8009c60 printf("Charger number: %lu\n",GBT_ChargerInfo.chargerNumber); - 8002b2c: 4b65 ldr r3, [pc, #404] ; (8002cc4 ) - 8002b2e: f8d3 3001 ldr.w r3, [r3, #1] - 8002b32: 4619 mov r1, r3 - 8002b34: 4867 ldr r0, [pc, #412] ; (8002cd4 ) - 8002b36: f006 ff5d bl 80099f4 - 8002b3a: e08d b.n 8002c58 + 8002da4: 4b66 ldr r3, [pc, #408] ; (8002f40 ) + 8002da6: f8d3 3001 ldr.w r3, [r3, #1] + 8002daa: 4619 mov r1, r3 + 8002dac: 4868 ldr r0, [pc, #416] ; (8002f50 ) + 8002dae: f006 ff57 bl 8009c60 + 8002db2: e090 b.n 8002ed6 } else if (strncmp((const char*)buffer, "help", length) == 0) { - 8002b3c: 683a ldr r2, [r7, #0] - 8002b3e: 4966 ldr r1, [pc, #408] ; (8002cd8 ) - 8002b40: 6878 ldr r0, [r7, #4] - 8002b42: f006 fff5 bl 8009b30 - 8002b46: 4603 mov r3, r0 - 8002b48: 2b00 cmp r3, #0 - 8002b4a: d133 bne.n 8002bb4 + 8002db4: 683a ldr r2, [r7, #0] + 8002db6: 4967 ldr r1, [pc, #412] ; (8002f54 ) + 8002db8: 6878 ldr r0, [r7, #4] + 8002dba: f006 ffef bl 8009d9c + 8002dbe: 4603 mov r3, r0 + 8002dc0: 2b00 cmp r3, #0 + 8002dc2: d136 bne.n 8002e32 printf("Command list:\n"); - 8002b4c: 4863 ldr r0, [pc, #396] ; (8002cdc ) - 8002b4e: f006 ffd7 bl 8009b00 + 8002dc4: 4864 ldr r0, [pc, #400] ; (8002f58 ) + 8002dc6: f006 ffd1 bl 8009d6c printf("reset\n"); - 8002b52: 4863 ldr r0, [pc, #396] ; (8002ce0 ) - 8002b54: f006 ffd4 bl 8009b00 + 8002dca: 4864 ldr r0, [pc, #400] ; (8002f5c ) + 8002dcc: f006 ffce bl 8009d6c printf("help\n"); - 8002b58: 485f ldr r0, [pc, #380] ; (8002cd8 ) - 8002b5a: f006 ffd1 bl 8009b00 + 8002dd0: 4860 ldr r0, [pc, #384] ; (8002f54 ) + 8002dd2: f006 ffcb bl 8009d6c printf("cc_state\n"); - 8002b5e: 4861 ldr r0, [pc, #388] ; (8002ce4 ) - 8002b60: f006 ffce bl 8009b00 + 8002dd6: 4862 ldr r0, [pc, #392] ; (8002f60 ) + 8002dd8: f006 ffc8 bl 8009d6c printf("lock_lock\n"); - 8002b64: 4860 ldr r0, [pc, #384] ; (8002ce8 ) - 8002b66: f006 ffcb bl 8009b00 + 8002ddc: 4861 ldr r0, [pc, #388] ; (8002f64 ) + 8002dde: f006 ffc5 bl 8009d6c printf("lock_unlock\n"); - 8002b6a: 4860 ldr r0, [pc, #384] ; (8002cec ) - 8002b6c: f006 ffc8 bl 8009b00 + 8002de2: 4861 ldr r0, [pc, #388] ; (8002f68 ) + 8002de4: f006 ffc2 bl 8009d6c printf("lock_state\n"); - 8002b70: 485f ldr r0, [pc, #380] ; (8002cf0 ) - 8002b72: f006 ffc5 bl 8009b00 + 8002de8: 4860 ldr r0, [pc, #384] ; (8002f6c ) + 8002dea: f006 ffbf bl 8009d6c printf("adc\n"); - 8002b76: 485f ldr r0, [pc, #380] ; (8002cf4 ) - 8002b78: f006 ffc2 bl 8009b00 + 8002dee: 4860 ldr r0, [pc, #384] ; (8002f70 ) + 8002df0: f006 ffbc bl 8009d6c printf("relay(cc,aux)\n"); - 8002b7c: 485e ldr r0, [pc, #376] ; (8002cf8 ) - 8002b7e: f006 ffbf bl 8009b00 + 8002df4: 485f ldr r0, [pc, #380] ; (8002f74 ) + 8002df6: f006 ffb9 bl 8009d6c printf("start\n"); - 8002b82: 485e ldr r0, [pc, #376] ; (8002cfc ) - 8002b84: f006 ffbc bl 8009b00 + 8002dfa: 485f ldr r0, [pc, #380] ; (8002f78 ) + 8002dfc: f006 ffb6 bl 8009d6c printf("stop\n"); - 8002b88: 485d ldr r0, [pc, #372] ; (8002d00 ) - 8002b8a: f006 ffb9 bl 8009b00 + 8002e00: 485e ldr r0, [pc, #376] ; (8002f7c ) + 8002e02: f006 ffb3 bl 8009d6c printf("stop1\n"); - 8002b8e: 485d ldr r0, [pc, #372] ; (8002d04 ) - 8002b90: f006 ffb6 bl 8009b00 + 8002e06: 485e ldr r0, [pc, #376] ; (8002f80 ) + 8002e08: f006 ffb0 bl 8009d6c // printf("force\n"); + printf("temp\n"); + 8002e0c: 485d ldr r0, [pc, #372] ; (8002f84 ) + 8002e0e: f006 ffad bl 8009d6c printf("info1\n"); - 8002b94: 485c ldr r0, [pc, #368] ; (8002d08 ) - 8002b96: f006 ffb3 bl 8009b00 + 8002e12: 485d ldr r0, [pc, #372] ; (8002f88 ) + 8002e14: f006 ffaa bl 8009d6c printf("info2\n"); - 8002b9a: 4831 ldr r0, [pc, #196] ; (8002c60 ) - 8002b9c: f006 ffb0 bl 8009b00 + 8002e18: 4830 ldr r0, [pc, #192] ; (8002edc ) + 8002e1a: f006 ffa7 bl 8009d6c printf("info3\n"); - 8002ba0: 4840 ldr r0, [pc, #256] ; (8002ca4 ) - 8002ba2: f006 ffad bl 8009b00 + 8002e1e: 4840 ldr r0, [pc, #256] ; (8002f20 ) + 8002e20: f006 ffa4 bl 8009d6c printf("time\n"); - 8002ba6: 4859 ldr r0, [pc, #356] ; (8002d0c ) - 8002ba8: f006 ffaa bl 8009b00 + 8002e24: 4859 ldr r0, [pc, #356] ; (8002f8c ) + 8002e26: f006 ffa1 bl 8009d6c printf("cantest\n"); - 8002bac: 4858 ldr r0, [pc, #352] ; (8002d10 ) - 8002bae: f006 ffa7 bl 8009b00 - 8002bb2: e051 b.n 8002c58 + 8002e2a: 4859 ldr r0, [pc, #356] ; (8002f90 ) + 8002e2c: f006 ff9e bl 8009d6c + 8002e30: e051 b.n 8002ed6 //TODO: info commands } else if (strncmp((const char*)buffer, "time", length) == 0) { - 8002bb4: 683a ldr r2, [r7, #0] - 8002bb6: 4955 ldr r1, [pc, #340] ; (8002d0c ) - 8002bb8: 6878 ldr r0, [r7, #4] - 8002bba: f006 ffb9 bl 8009b30 - 8002bbe: 4603 mov r3, r0 - 8002bc0: 2b00 cmp r3, #0 - 8002bc2: d135 bne.n 8002c30 + 8002e32: 683a ldr r2, [r7, #0] + 8002e34: 4955 ldr r1, [pc, #340] ; (8002f8c ) + 8002e36: 6878 ldr r0, [r7, #4] + 8002e38: f006 ffb0 bl 8009d9c + 8002e3c: 4603 mov r3, r0 + 8002e3e: 2b00 cmp r3, #0 + 8002e40: d135 bne.n 8002eae time_t unix_time = (time_t)get_Current_Time(); - 8002bc4: f001 fdb8 bl 8004738 - 8002bc8: 4603 mov r3, r0 - 8002bca: 17da asrs r2, r3, #31 - 8002bcc: 461c mov r4, r3 - 8002bce: 4615 mov r5, r2 - 8002bd0: e9c7 4502 strd r4, r5, [r7, #8] + 8002e42: f001 fdaf bl 80049a4 + 8002e46: 4603 mov r3, r0 + 8002e48: 17da asrs r2, r3, #31 + 8002e4a: 461c mov r4, r3 + 8002e4c: 4615 mov r5, r2 + 8002e4e: e9c7 4502 strd r4, r5, [r7, #8] struct tm *parts = localtime(&unix_time); - 8002bd4: f107 0308 add.w r3, r7, #8 - 8002bd8: 4618 mov r0, r3 - 8002bda: f006 f899 bl 8008d10 - 8002bde: 6138 str r0, [r7, #16] + 8002e52: f107 0308 add.w r3, r7, #8 + 8002e56: 4618 mov r0, r3 + 8002e58: f006 f890 bl 8008f7c + 8002e5c: 6138 str r0, [r7, #16] printf("Year: %d\n", parts->tm_year + 1900); - 8002be0: 693b ldr r3, [r7, #16] - 8002be2: 695b ldr r3, [r3, #20] - 8002be4: f203 736c addw r3, r3, #1900 ; 0x76c - 8002be8: 4619 mov r1, r3 - 8002bea: 484a ldr r0, [pc, #296] ; (8002d14 ) - 8002bec: f006 ff02 bl 80099f4 + 8002e5e: 693b ldr r3, [r7, #16] + 8002e60: 695b ldr r3, [r3, #20] + 8002e62: f203 736c addw r3, r3, #1900 ; 0x76c + 8002e66: 4619 mov r1, r3 + 8002e68: 484a ldr r0, [pc, #296] ; (8002f94 ) + 8002e6a: f006 fef9 bl 8009c60 printf("Month: %d\n", parts->tm_mon + 1); - 8002bf0: 693b ldr r3, [r7, #16] - 8002bf2: 691b ldr r3, [r3, #16] - 8002bf4: 3301 adds r3, #1 - 8002bf6: 4619 mov r1, r3 - 8002bf8: 4847 ldr r0, [pc, #284] ; (8002d18 ) - 8002bfa: f006 fefb bl 80099f4 + 8002e6e: 693b ldr r3, [r7, #16] + 8002e70: 691b ldr r3, [r3, #16] + 8002e72: 3301 adds r3, #1 + 8002e74: 4619 mov r1, r3 + 8002e76: 4848 ldr r0, [pc, #288] ; (8002f98 ) + 8002e78: f006 fef2 bl 8009c60 printf("Day: %d\n", parts->tm_mday); - 8002bfe: 693b ldr r3, [r7, #16] - 8002c00: 68db ldr r3, [r3, #12] - 8002c02: 4619 mov r1, r3 - 8002c04: 4845 ldr r0, [pc, #276] ; (8002d1c ) - 8002c06: f006 fef5 bl 80099f4 + 8002e7c: 693b ldr r3, [r7, #16] + 8002e7e: 68db ldr r3, [r3, #12] + 8002e80: 4619 mov r1, r3 + 8002e82: 4846 ldr r0, [pc, #280] ; (8002f9c ) + 8002e84: f006 feec bl 8009c60 printf("Hour: %d\n", parts->tm_hour); - 8002c0a: 693b ldr r3, [r7, #16] - 8002c0c: 689b ldr r3, [r3, #8] - 8002c0e: 4619 mov r1, r3 - 8002c10: 4843 ldr r0, [pc, #268] ; (8002d20 ) - 8002c12: f006 feef bl 80099f4 + 8002e88: 693b ldr r3, [r7, #16] + 8002e8a: 689b ldr r3, [r3, #8] + 8002e8c: 4619 mov r1, r3 + 8002e8e: 4844 ldr r0, [pc, #272] ; (8002fa0 ) + 8002e90: f006 fee6 bl 8009c60 printf("Minute: %d\n", parts->tm_min); - 8002c16: 693b ldr r3, [r7, #16] - 8002c18: 685b ldr r3, [r3, #4] - 8002c1a: 4619 mov r1, r3 - 8002c1c: 4841 ldr r0, [pc, #260] ; (8002d24 ) - 8002c1e: f006 fee9 bl 80099f4 + 8002e94: 693b ldr r3, [r7, #16] + 8002e96: 685b ldr r3, [r3, #4] + 8002e98: 4619 mov r1, r3 + 8002e9a: 4842 ldr r0, [pc, #264] ; (8002fa4 ) + 8002e9c: f006 fee0 bl 8009c60 printf("Second: %d\n", parts->tm_sec); - 8002c22: 693b ldr r3, [r7, #16] - 8002c24: 681b ldr r3, [r3, #0] - 8002c26: 4619 mov r1, r3 - 8002c28: 483f ldr r0, [pc, #252] ; (8002d28 ) - 8002c2a: f006 fee3 bl 80099f4 - 8002c2e: e013 b.n 8002c58 + 8002ea0: 693b ldr r3, [r7, #16] + 8002ea2: 681b ldr r3, [r3, #0] + 8002ea4: 4619 mov r1, r3 + 8002ea6: 4840 ldr r0, [pc, #256] ; (8002fa8 ) + 8002ea8: f006 feda bl 8009c60 + 8002eac: e013 b.n 8002ed6 } else if (strncmp((const char*)buffer, "cantest", length) == 0) { - 8002c30: 683a ldr r2, [r7, #0] - 8002c32: 4937 ldr r1, [pc, #220] ; (8002d10 ) - 8002c34: 6878 ldr r0, [r7, #4] - 8002c36: f006 ff7b bl 8009b30 - 8002c3a: 4603 mov r3, r0 - 8002c3c: 2b00 cmp r3, #0 - 8002c3e: d106 bne.n 8002c4e + 8002eae: 683a ldr r2, [r7, #0] + 8002eb0: 4937 ldr r1, [pc, #220] ; (8002f90 ) + 8002eb2: 6878 ldr r0, [r7, #4] + 8002eb4: f006 ff72 bl 8009d9c + 8002eb8: 4603 mov r3, r0 + 8002eba: 2b00 cmp r3, #0 + 8002ebc: d106 bne.n 8002ecc //GBT_SendCHM(); GBT_Error(0xFDF0C0FC); //BRM Timeout - 8002c40: 483a ldr r0, [pc, #232] ; (8002d2c ) - 8002c42: f7ff fa5b bl 80020fc + 8002ebe: 483b ldr r0, [pc, #236] ; (8002fac ) + 8002ec0: f7ff fa40 bl 8002344 printf("can test\n"); - 8002c46: 483a ldr r0, [pc, #232] ; (8002d30 ) - 8002c48: f006 ff5a bl 8009b00 - 8002c4c: e004 b.n 8002c58 + 8002ec4: 483a ldr r0, [pc, #232] ; (8002fb0 ) + 8002ec6: f006 ff51 bl 8009d6c + 8002eca: e004 b.n 8002ed6 } else { printf("Unknown command\n"); - 8002c4e: 4839 ldr r0, [pc, #228] ; (8002d34 ) - 8002c50: f006 ff56 bl 8009b00 - 8002c54: e000 b.n 8002c58 + 8002ecc: 4839 ldr r0, [pc, #228] ; (8002fb4 ) + 8002ece: f006 ff4d bl 8009d6c + 8002ed2: e000 b.n 8002ed6 if (buffer[0] == 0) return; - 8002c56: bf00 nop + 8002ed4: bf00 nop } } - 8002c58: 3718 adds r7, #24 - 8002c5a: 46bd mov sp, r7 - 8002c5c: bdb0 pop {r4, r5, r7, pc} - 8002c5e: bf00 nop - 8002c60: 0800cca0 .word 0x0800cca0 - 8002c64: 0800cca8 .word 0x0800cca8 - 8002c68: 2000030c .word 0x2000030c - 8002c6c: 0800ccb4 .word 0x0800ccb4 - 8002c70: 0800ccc8 .word 0x0800ccc8 - 8002c74: 0800ccdc .word 0x0800ccdc - 8002c78: 0800ccf4 .word 0x0800ccf4 - 8002c7c: 20000314 .word 0x20000314 - 8002c80: 0800cd0c .word 0x0800cd0c - 8002c84: 0800cd24 .word 0x0800cd24 - 8002c88: 0800cd38 .word 0x0800cd38 - 8002c8c: 0800cd64 .word 0x0800cd64 - 8002c90: 0800cd78 .word 0x0800cd78 - 8002c94: 20000324 .word 0x20000324 - 8002c98: 0800cd88 .word 0x0800cd88 - 8002c9c: 20000335 .word 0x20000335 - 8002ca0: 0800cd98 .word 0x0800cd98 - 8002ca4: 0800cdac .word 0x0800cdac - 8002ca8: 0800cdb4 .word 0x0800cdb4 - 8002cac: 200002f8 .word 0x200002f8 - 8002cb0: 0800cdc8 .word 0x0800cdc8 - 8002cb4: 0800cde0 .word 0x0800cde0 - 8002cb8: 0800cdf8 .word 0x0800cdf8 - 8002cbc: 0800ce10 .word 0x0800ce10 - 8002cc0: 0800ce28 .word 0x0800ce28 - 8002cc4: 20000300 .word 0x20000300 - 8002cc8: 0800ce40 .word 0x0800ce40 - 8002ccc: 20000305 .word 0x20000305 - 8002cd0: 0800ce54 .word 0x0800ce54 - 8002cd4: 0800ce6c .word 0x0800ce6c - 8002cd8: 0800ce84 .word 0x0800ce84 - 8002cdc: 0800ce8c .word 0x0800ce8c - 8002ce0: 0800cb30 .word 0x0800cb30 - 8002ce4: 0800cbf4 .word 0x0800cbf4 - 8002ce8: 0800cb94 .word 0x0800cb94 - 8002cec: 0800cba8 .word 0x0800cba8 - 8002cf0: 0800cb78 .word 0x0800cb78 - 8002cf4: 0800cb68 .word 0x0800cb68 - 8002cf8: 0800ce9c .word 0x0800ce9c - 8002cfc: 0800cbcc .word 0x0800cbcc - 8002d00: 0800cbdc .word 0x0800cbdc - 8002d04: 0800cbec .word 0x0800cbec - 8002d08: 0800cc40 .word 0x0800cc40 - 8002d0c: 0800ceac .word 0x0800ceac - 8002d10: 0800ceb4 .word 0x0800ceb4 - 8002d14: 0800cebc .word 0x0800cebc - 8002d18: 0800cec8 .word 0x0800cec8 - 8002d1c: 0800ced4 .word 0x0800ced4 - 8002d20: 0800cee0 .word 0x0800cee0 - 8002d24: 0800ceec .word 0x0800ceec - 8002d28: 0800cef8 .word 0x0800cef8 - 8002d2c: fdf0c0fc .word 0xfdf0c0fc - 8002d30: 0800cf04 .word 0x0800cf04 - 8002d34: 0800cf10 .word 0x0800cf10 + 8002ed6: 3718 adds r7, #24 + 8002ed8: 46bd mov sp, r7 + 8002eda: bdb0 pop {r4, r5, r7, pc} + 8002edc: 0800cf30 .word 0x0800cf30 + 8002ee0: 0800cf38 .word 0x0800cf38 + 8002ee4: 2000030c .word 0x2000030c + 8002ee8: 0800cf44 .word 0x0800cf44 + 8002eec: 0800cf58 .word 0x0800cf58 + 8002ef0: 0800cf6c .word 0x0800cf6c + 8002ef4: 0800cf84 .word 0x0800cf84 + 8002ef8: 20000314 .word 0x20000314 + 8002efc: 0800cf9c .word 0x0800cf9c + 8002f00: 0800cfb4 .word 0x0800cfb4 + 8002f04: 0800cfc8 .word 0x0800cfc8 + 8002f08: 0800cff4 .word 0x0800cff4 + 8002f0c: 0800d008 .word 0x0800d008 + 8002f10: 20000324 .word 0x20000324 + 8002f14: 0800d018 .word 0x0800d018 + 8002f18: 20000335 .word 0x20000335 + 8002f1c: 0800d028 .word 0x0800d028 + 8002f20: 0800d03c .word 0x0800d03c + 8002f24: 0800d044 .word 0x0800d044 + 8002f28: 200002f8 .word 0x200002f8 + 8002f2c: 0800d058 .word 0x0800d058 + 8002f30: 0800d070 .word 0x0800d070 + 8002f34: 0800d088 .word 0x0800d088 + 8002f38: 0800d0a0 .word 0x0800d0a0 + 8002f3c: 0800d0b8 .word 0x0800d0b8 + 8002f40: 20000300 .word 0x20000300 + 8002f44: 0800d0d0 .word 0x0800d0d0 + 8002f48: 20000305 .word 0x20000305 + 8002f4c: 0800d0e4 .word 0x0800d0e4 + 8002f50: 0800d0fc .word 0x0800d0fc + 8002f54: 0800d114 .word 0x0800d114 + 8002f58: 0800d11c .word 0x0800d11c + 8002f5c: 0800cda0 .word 0x0800cda0 + 8002f60: 0800ce64 .word 0x0800ce64 + 8002f64: 0800ce04 .word 0x0800ce04 + 8002f68: 0800ce18 .word 0x0800ce18 + 8002f6c: 0800cde8 .word 0x0800cde8 + 8002f70: 0800cdd8 .word 0x0800cdd8 + 8002f74: 0800d12c .word 0x0800d12c + 8002f78: 0800ce3c .word 0x0800ce3c + 8002f7c: 0800ce4c .word 0x0800ce4c + 8002f80: 0800ce5c .word 0x0800ce5c + 8002f84: 0800ceb0 .word 0x0800ceb0 + 8002f88: 0800ced0 .word 0x0800ced0 + 8002f8c: 0800d13c .word 0x0800d13c + 8002f90: 0800d144 .word 0x0800d144 + 8002f94: 0800d14c .word 0x0800d14c + 8002f98: 0800d158 .word 0x0800d158 + 8002f9c: 0800d164 .word 0x0800d164 + 8002fa0: 0800d170 .word 0x0800d170 + 8002fa4: 0800d17c .word 0x0800d17c + 8002fa8: 0800d188 .word 0x0800d188 + 8002fac: fdf0c0fc .word 0xfdf0c0fc + 8002fb0: 0800d194 .word 0x0800d194 + 8002fb4: 0800d1a0 .word 0x0800d1a0 -08002d38 : +08002fb8 : void debug_task(){ - 8002d38: b580 push {r7, lr} - 8002d3a: af00 add r7, sp, #0 + 8002fb8: b580 push {r7, lr} + 8002fba: af00 add r7, sp, #0 if(debug_cmd_received){ - 8002d3c: 4b09 ldr r3, [pc, #36] ; (8002d64 ) - 8002d3e: 781b ldrb r3, [r3, #0] - 8002d40: 2b00 cmp r3, #0 - 8002d42: d00d beq.n 8002d60 + 8002fbc: 4b09 ldr r3, [pc, #36] ; (8002fe4 ) + 8002fbe: 781b ldrb r3, [r3, #0] + 8002fc0: 2b00 cmp r3, #0 + 8002fc2: d00d beq.n 8002fe0 parse_command(debug_rx_buffer, debug_rx_buffer_size); - 8002d44: 4b08 ldr r3, [pc, #32] ; (8002d68 ) - 8002d46: 781b ldrb r3, [r3, #0] - 8002d48: 4619 mov r1, r3 - 8002d4a: 4808 ldr r0, [pc, #32] ; (8002d6c ) - 8002d4c: f7ff fca8 bl 80026a0 + 8002fc4: 4b08 ldr r3, [pc, #32] ; (8002fe8 ) + 8002fc6: 781b ldrb r3, [r3, #0] + 8002fc8: 4619 mov r1, r3 + 8002fca: 4808 ldr r0, [pc, #32] ; (8002fec ) + 8002fcc: f7ff fc84 bl 80028d8 HAL_UARTEx_ReceiveToIdle_IT(&huart2,debug_rx_buffer,255); - 8002d50: 22ff movs r2, #255 ; 0xff - 8002d52: 4906 ldr r1, [pc, #24] ; (8002d6c ) - 8002d54: 4806 ldr r0, [pc, #24] ; (8002d70 ) - 8002d56: f005 fa6f bl 8008238 + 8002fd0: 22ff movs r2, #255 ; 0xff + 8002fd2: 4906 ldr r1, [pc, #24] ; (8002fec ) + 8002fd4: 4806 ldr r0, [pc, #24] ; (8002ff0 ) + 8002fd6: f005 fa65 bl 80084a4 debug_cmd_received = 0; - 8002d5a: 4b02 ldr r3, [pc, #8] ; (8002d64 ) - 8002d5c: 2200 movs r2, #0 - 8002d5e: 701a strb r2, [r3, #0] + 8002fda: 4b02 ldr r3, [pc, #8] ; (8002fe4 ) + 8002fdc: 2200 movs r2, #0 + 8002fde: 701a strb r2, [r3, #0] } } - 8002d60: bf00 nop - 8002d62: bd80 pop {r7, pc} - 8002d64: 200004a4 .word 0x200004a4 - 8002d68: 200004a5 .word 0x200004a5 - 8002d6c: 200003a4 .word 0x200003a4 - 8002d70: 20001cd0 .word 0x20001cd0 + 8002fe0: bf00 nop + 8002fe2: bd80 pop {r7, pc} + 8002fe4: 200004a4 .word 0x200004a4 + 8002fe8: 200004a5 .word 0x200004a5 + 8002fec: 200003a4 .word 0x200003a4 + 8002ff0: 20003350 .word 0x20003350 -08002d74 : +08002ff4 : * DestinationID: Packet Destination ID * Addr: First register address in sequence * *data: pointer for data array * len: length of data (1..255) */ void EDCAN_ReadHandler(uint8_t SourceID, uint8_t DestinationID, uint16_t Addr, uint8_t *data, uint8_t len){ - 8002d74: b480 push {r7} - 8002d76: b085 sub sp, #20 - 8002d78: af00 add r7, sp, #0 - 8002d7a: 603b str r3, [r7, #0] - 8002d7c: 4603 mov r3, r0 - 8002d7e: 71fb strb r3, [r7, #7] - 8002d80: 460b mov r3, r1 - 8002d82: 71bb strb r3, [r7, #6] - 8002d84: 4613 mov r3, r2 - 8002d86: 80bb strh r3, [r7, #4] + 8002ff4: b480 push {r7} + 8002ff6: b085 sub sp, #20 + 8002ff8: af00 add r7, sp, #0 + 8002ffa: 603b str r3, [r7, #0] + 8002ffc: 4603 mov r3, r0 + 8002ffe: 71fb strb r3, [r7, #7] + 8003000: 460b mov r3, r1 + 8003002: 71bb strb r3, [r7, #6] + 8003004: 4613 mov r3, r2 + 8003006: 80bb strh r3, [r7, #4] // printf("Destination ID = %d\n", DestinationID); // printf("Address = %d\n", Addr); // printf("Len = %d\n", len); // printf("\n"); for (uint16_t AddrOffset = 0; AddrOffset < len; AddrOffset++){ //по очереди перебираем все полученные регистры через Handler - 8002d88: 2300 movs r3, #0 - 8002d8a: 81fb strh r3, [r7, #14] - 8002d8c: e002 b.n 8002d94 - 8002d8e: 89fb ldrh r3, [r7, #14] - 8002d90: 3301 adds r3, #1 - 8002d92: 81fb strh r3, [r7, #14] - 8002d94: 7e3b ldrb r3, [r7, #24] - 8002d96: b29b uxth r3, r3 - 8002d98: 89fa ldrh r2, [r7, #14] - 8002d9a: 429a cmp r2, r3 - 8002d9c: d3f7 bcc.n 8002d8e + 8003008: 2300 movs r3, #0 + 800300a: 81fb strh r3, [r7, #14] + 800300c: e002 b.n 8003014 + 800300e: 89fb ldrh r3, [r7, #14] + 8003010: 3301 adds r3, #1 + 8003012: 81fb strh r3, [r7, #14] + 8003014: 7e3b ldrb r3, [r7, #24] + 8003016: b29b uxth r3, r3 + 8003018: 89fa ldrh r2, [r7, #14] + 800301a: 429a cmp r2, r3 + 800301c: d3f7 bcc.n 800300e // } // } } // printf("\n"); } - 8002d9e: bf00 nop - 8002da0: bf00 nop - 8002da2: 3714 adds r7, #20 - 8002da4: 46bd mov sp, r7 - 8002da6: bc80 pop {r7} - 8002da8: 4770 bx lr + 800301e: bf00 nop + 8003020: bf00 nop + 8003022: 3714 adds r7, #20 + 8003024: 46bd mov sp, r7 + 8003026: bc80 pop {r7} + 8003028: 4770 bx lr ... -08002dac : +0800302c : * DestinationID: Packet Destination ID * Addr: First register address in sequence * *data: pointer for data array * len: length of data (1..255) */ void EDCAN_WriteUserRegister(uint16_t addr, uint8_t value){ - 8002dac: b580 push {r7, lr} - 8002dae: b082 sub sp, #8 - 8002db0: af00 add r7, sp, #0 - 8002db2: 4603 mov r3, r0 - 8002db4: 460a mov r2, r1 - 8002db6: 80fb strh r3, [r7, #6] - 8002db8: 4613 mov r3, r2 - 8002dba: 717b strb r3, [r7, #5] + 800302c: b580 push {r7, lr} + 800302e: b082 sub sp, #8 + 8003030: af00 add r7, sp, #0 + 8003032: 4603 mov r3, r0 + 8003034: 460a mov r2, r1 + 8003036: 80fb strh r3, [r7, #6] + 8003038: 4613 mov r3, r2 + 800303a: 717b strb r3, [r7, #5] switch(addr){ - 8002dbc: 88fb ldrh r3, [r7, #6] - 8002dbe: f5b3 7f0a cmp.w r3, #552 ; 0x228 - 8002dc2: dc5d bgt.n 8002e80 - 8002dc4: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8002dc8: f2c0 808f blt.w 8002eea - 8002dcc: f5a3 7300 sub.w r3, r3, #512 ; 0x200 - 8002dd0: 2b28 cmp r3, #40 ; 0x28 - 8002dd2: f200 808a bhi.w 8002eea - 8002dd6: a201 add r2, pc, #4 ; (adr r2, 8002ddc ) - 8002dd8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002ddc: 08002ecb .word 0x08002ecb - 8002de0: 08002ecb .word 0x08002ecb - 8002de4: 08002ecb .word 0x08002ecb - 8002de8: 08002ecb .word 0x08002ecb - 8002dec: 08002ecb .word 0x08002ecb - 8002df0: 08002ecb .word 0x08002ecb - 8002df4: 08002ecb .word 0x08002ecb - 8002df8: 08002ecb .word 0x08002ecb - 8002dfc: 08002ecb .word 0x08002ecb - 8002e00: 08002eeb .word 0x08002eeb - 8002e04: 08002eeb .word 0x08002eeb - 8002e08: 08002eeb .word 0x08002eeb - 8002e0c: 08002eeb .word 0x08002eeb - 8002e10: 08002eeb .word 0x08002eeb - 8002e14: 08002eeb .word 0x08002eeb - 8002e18: 08002eeb .word 0x08002eeb - 8002e1c: 08002e8b .word 0x08002e8b - 8002e20: 08002e97 .word 0x08002e97 - 8002e24: 08002ea3 .word 0x08002ea3 - 8002e28: 08002eaf .word 0x08002eaf - 8002e2c: 08002eeb .word 0x08002eeb - 8002e30: 08002eeb .word 0x08002eeb - 8002e34: 08002eeb .word 0x08002eeb - 8002e38: 08002eeb .word 0x08002eeb - 8002e3c: 08002eeb .word 0x08002eeb - 8002e40: 08002eeb .word 0x08002eeb - 8002e44: 08002eeb .word 0x08002eeb - 8002e48: 08002eeb .word 0x08002eeb - 8002e4c: 08002eeb .word 0x08002eeb - 8002e50: 08002eeb .word 0x08002eeb - 8002e54: 08002eeb .word 0x08002eeb - 8002e58: 08002eeb .word 0x08002eeb - 8002e5c: 08002ebb .word 0x08002ebb - 8002e60: 08002ebb .word 0x08002ebb - 8002e64: 08002ebb .word 0x08002ebb - 8002e68: 08002ebb .word 0x08002ebb - 8002e6c: 08002ebb .word 0x08002ebb - 8002e70: 08002ebb .word 0x08002ebb - 8002e74: 08002ebb .word 0x08002ebb - 8002e78: 08002ebb .word 0x08002ebb - 8002e7c: 08002ebb .word 0x08002ebb - 8002e80: f5a3 63b0 sub.w r3, r3, #1408 ; 0x580 - 8002e84: 2b06 cmp r3, #6 - 8002e86: d830 bhi.n 8002eea - 8002e88: e027 b.n 8002eda + 800303c: 88fb ldrh r3, [r7, #6] + 800303e: f5b3 7f0a cmp.w r3, #552 ; 0x228 + 8003042: dc5d bgt.n 8003100 + 8003044: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8003048: f2c0 808f blt.w 800316a + 800304c: f5a3 7300 sub.w r3, r3, #512 ; 0x200 + 8003050: 2b28 cmp r3, #40 ; 0x28 + 8003052: f200 808a bhi.w 800316a + 8003056: a201 add r2, pc, #4 ; (adr r2, 800305c ) + 8003058: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800305c: 0800314b .word 0x0800314b + 8003060: 0800314b .word 0x0800314b + 8003064: 0800314b .word 0x0800314b + 8003068: 0800314b .word 0x0800314b + 800306c: 0800314b .word 0x0800314b + 8003070: 0800314b .word 0x0800314b + 8003074: 0800314b .word 0x0800314b + 8003078: 0800314b .word 0x0800314b + 800307c: 0800314b .word 0x0800314b + 8003080: 0800316b .word 0x0800316b + 8003084: 0800316b .word 0x0800316b + 8003088: 0800316b .word 0x0800316b + 800308c: 0800316b .word 0x0800316b + 8003090: 0800316b .word 0x0800316b + 8003094: 0800316b .word 0x0800316b + 8003098: 0800316b .word 0x0800316b + 800309c: 0800310b .word 0x0800310b + 80030a0: 08003117 .word 0x08003117 + 80030a4: 08003123 .word 0x08003123 + 80030a8: 0800312f .word 0x0800312f + 80030ac: 0800316b .word 0x0800316b + 80030b0: 0800316b .word 0x0800316b + 80030b4: 0800316b .word 0x0800316b + 80030b8: 0800316b .word 0x0800316b + 80030bc: 0800316b .word 0x0800316b + 80030c0: 0800316b .word 0x0800316b + 80030c4: 0800316b .word 0x0800316b + 80030c8: 0800316b .word 0x0800316b + 80030cc: 0800316b .word 0x0800316b + 80030d0: 0800316b .word 0x0800316b + 80030d4: 0800316b .word 0x0800316b + 80030d8: 0800316b .word 0x0800316b + 80030dc: 0800313b .word 0x0800313b + 80030e0: 0800313b .word 0x0800313b + 80030e4: 0800313b .word 0x0800313b + 80030e8: 0800313b .word 0x0800313b + 80030ec: 0800313b .word 0x0800313b + 80030f0: 0800313b .word 0x0800313b + 80030f4: 0800313b .word 0x0800313b + 80030f8: 0800313b .word 0x0800313b + 80030fc: 0800313b .word 0x0800313b + 8003100: f5a3 63b0 sub.w r3, r3, #1408 ; 0x580 + 8003104: 2b06 cmp r3, #6 + 8003106: d830 bhi.n 800316a + 8003108: e027 b.n 800315a // if(value)GBT_Charger_Enable = 1; // else GBT_Charger_Enable = 0; // break; case EDCAN_REG_TIME_0: writeTimeReg(0, value); - 8002e8a: 797b ldrb r3, [r7, #5] - 8002e8c: 4619 mov r1, r3 - 8002e8e: 2000 movs r0, #0 - 8002e90: f001 fcfa bl 8004888 + 800310a: 797b ldrb r3, [r7, #5] + 800310c: 4619 mov r1, r3 + 800310e: 2000 movs r0, #0 + 8003110: f001 fcf0 bl 8004af4 break; - 8002e94: e02d b.n 8002ef2 + 8003114: e02d b.n 8003172 case EDCAN_REG_TIME_1: writeTimeReg(1, value); - 8002e96: 797b ldrb r3, [r7, #5] - 8002e98: 4619 mov r1, r3 - 8002e9a: 2001 movs r0, #1 - 8002e9c: f001 fcf4 bl 8004888 + 8003116: 797b ldrb r3, [r7, #5] + 8003118: 4619 mov r1, r3 + 800311a: 2001 movs r0, #1 + 800311c: f001 fcea bl 8004af4 break; - 8002ea0: e027 b.n 8002ef2 + 8003120: e027 b.n 8003172 case EDCAN_REG_TIME_2: writeTimeReg(2, value); - 8002ea2: 797b ldrb r3, [r7, #5] - 8002ea4: 4619 mov r1, r3 - 8002ea6: 2002 movs r0, #2 - 8002ea8: f001 fcee bl 8004888 + 8003122: 797b ldrb r3, [r7, #5] + 8003124: 4619 mov r1, r3 + 8003126: 2002 movs r0, #2 + 8003128: f001 fce4 bl 8004af4 break; - 8002eac: e021 b.n 8002ef2 + 800312c: e021 b.n 8003172 case EDCAN_REG_TIME_3: writeTimeReg(3, value); - 8002eae: 797b ldrb r3, [r7, #5] - 8002eb0: 4619 mov r1, r3 - 8002eb2: 2003 movs r0, #3 - 8002eb4: f001 fce8 bl 8004888 + 800312e: 797b ldrb r3, [r7, #5] + 8003130: 4619 mov r1, r3 + 8003132: 2003 movs r0, #3 + 8003134: f001 fcde bl 8004af4 break; - 8002eb8: e01b b.n 8002ef2 + 8003138: e01b b.n 8003172 //0x220 case EDCAN_REG_MAX_LOAD ... (EDCAN_REG_MAX_LOAD+sizeof(GBT_CML_t)): ((uint8_t*)&GBT_MaxLoad)[addr - EDCAN_REG_MAX_LOAD] = value; - 8002eba: 88fb ldrh r3, [r7, #6] - 8002ebc: f5a3 7308 sub.w r3, r3, #544 ; 0x220 - 8002ec0: 4a0e ldr r2, [pc, #56] ; (8002efc ) - 8002ec2: 4413 add r3, r2 - 8002ec4: 797a ldrb r2, [r7, #5] - 8002ec6: 701a strb r2, [r3, #0] + 800313a: 88fb ldrh r3, [r7, #6] + 800313c: f5a3 7308 sub.w r3, r3, #544 ; 0x220 + 8003140: 4a0e ldr r2, [pc, #56] ; (800317c ) + 8003142: 4413 add r3, r2 + 8003144: 797a ldrb r2, [r7, #5] + 8003146: 701a strb r2, [r3, #0] break; - 8002ec8: e013 b.n 8002ef2 + 8003148: e013 b.n 8003172 //0x200 case EDCAN_REG_CHARGER_INFO ... (EDCAN_REG_CHARGER_INFO+sizeof(GBT_CRM_t)): ((uint8_t*)&GBT_ChargerInfo)[addr - EDCAN_REG_CHARGER_INFO] = value; - 8002eca: 88fb ldrh r3, [r7, #6] - 8002ecc: f5a3 7300 sub.w r3, r3, #512 ; 0x200 - 8002ed0: 4a0b ldr r2, [pc, #44] ; (8002f00 ) - 8002ed2: 4413 add r3, r2 - 8002ed4: 797a ldrb r2, [r7, #5] - 8002ed6: 701a strb r2, [r3, #0] + 800314a: 88fb ldrh r3, [r7, #6] + 800314c: f5a3 7300 sub.w r3, r3, #512 ; 0x200 + 8003150: 4a0b ldr r2, [pc, #44] ; (8003180 ) + 8003152: 4413 add r3, r2 + 8003154: 797a ldrb r2, [r7, #5] + 8003156: 701a strb r2, [r3, #0] break; - 8002ed8: e00b b.n 8002ef2 + 8003158: e00b b.n 8003172 //0x580 case EDCAN_REG_INPUT ... (EDCAN_REG_INPUT+sizeof(GBT_EDCAN_Input_t)): ((uint8_t*)&GBT_EDCAN_Input)[addr - EDCAN_REG_INPUT] = value; - 8002eda: 88fb ldrh r3, [r7, #6] - 8002edc: f5a3 63b0 sub.w r3, r3, #1408 ; 0x580 - 8002ee0: 4a08 ldr r2, [pc, #32] ; (8002f04 ) - 8002ee2: 4413 add r3, r2 - 8002ee4: 797a ldrb r2, [r7, #5] - 8002ee6: 701a strb r2, [r3, #0] + 800315a: 88fb ldrh r3, [r7, #6] + 800315c: f5a3 63b0 sub.w r3, r3, #1408 ; 0x580 + 8003160: 4a08 ldr r2, [pc, #32] ; (8003184 ) + 8003162: 4413 add r3, r2 + 8003164: 797a ldrb r2, [r7, #5] + 8003166: 701a strb r2, [r3, #0] //TODO //GBT_EDCAN_Input.measuredCurrent; break; - 8002ee8: e003 b.n 8002ef2 + 8003168: e003 b.n 8003172 default: printf ("Unknown register\n"); - 8002eea: 4807 ldr r0, [pc, #28] ; (8002f08 ) - 8002eec: f006 fe08 bl 8009b00 + 800316a: 4807 ldr r0, [pc, #28] ; (8003188 ) + 800316c: f006 fdfe bl 8009d6c } } - 8002ef0: bf00 nop - 8002ef2: bf00 nop - 8002ef4: 3708 adds r7, #8 - 8002ef6: 46bd mov sp, r7 - 8002ef8: bd80 pop {r7, pc} - 8002efa: bf00 nop - 8002efc: 200002f8 .word 0x200002f8 - 8002f00: 20000300 .word 0x20000300 - 8002f04: 200004b8 .word 0x200004b8 - 8002f08: 0800cf20 .word 0x0800cf20 + 8003170: bf00 nop + 8003172: bf00 nop + 8003174: 3708 adds r7, #8 + 8003176: 46bd mov sp, r7 + 8003178: bd80 pop {r7, pc} + 800317a: bf00 nop + 800317c: 200002f8 .word 0x200002f8 + 8003180: 20000300 .word 0x20000300 + 8003184: 200004b8 .word 0x200004b8 + 8003188: 0800d1b0 .word 0x0800d1b0 -08002f0c : +0800318c : uint8_t EDCAN_GetUserRegisterValue(uint16_t addr){ - 8002f0c: b580 push {r7, lr} - 8002f0e: b082 sub sp, #8 - 8002f10: af00 add r7, sp, #0 - 8002f12: 4603 mov r3, r0 - 8002f14: 80fb strh r3, [r7, #6] + 800318c: b580 push {r7, lr} + 800318e: b082 sub sp, #8 + 8003190: af00 add r7, sp, #0 + 8003192: 4603 mov r3, r0 + 8003194: 80fb strh r3, [r7, #6] switch (addr){ - 8002f16: 88fb ldrh r3, [r7, #6] - 8002f18: f240 5286 movw r2, #1414 ; 0x586 - 8002f1c: 4293 cmp r3, r2 - 8002f1e: f300 8123 bgt.w 8003168 - 8002f22: f5b3 6fb0 cmp.w r3, #1408 ; 0x580 - 8002f26: f280 8118 bge.w 800315a - 8002f2a: f240 520d movw r2, #1293 ; 0x50d - 8002f2e: 4293 cmp r3, r2 - 8002f30: f300 811a bgt.w 8003168 - 8002f34: f5b3 6fa0 cmp.w r3, #1280 ; 0x500 - 8002f38: f280 8108 bge.w 800314c - 8002f3c: f5b3 7f62 cmp.w r3, #904 ; 0x388 - 8002f40: f280 8112 bge.w 8003168 - 8002f44: f5b3 7f54 cmp.w r3, #848 ; 0x350 - 8002f48: da07 bge.n 8002f5a - 8002f4a: f5b3 7f0a cmp.w r3, #552 ; 0x228 - 8002f4e: f300 80b7 bgt.w 80030c0 - 8002f52: f5b3 7f04 cmp.w r3, #528 ; 0x210 - 8002f56: da79 bge.n 800304c - 8002f58: e106 b.n 8003168 - 8002f5a: f5a3 7354 sub.w r3, r3, #848 ; 0x350 - 8002f5e: 2b37 cmp r3, #55 ; 0x37 - 8002f60: f200 8102 bhi.w 8003168 - 8002f64: a201 add r2, pc, #4 ; (adr r2, 8002f6c ) - 8002f66: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002f6a: bf00 nop - 8002f6c: 0800310f .word 0x0800310f - 8002f70: 0800310f .word 0x0800310f - 8002f74: 0800310f .word 0x0800310f - 8002f78: 0800310f .word 0x0800310f - 8002f7c: 0800310f .word 0x0800310f - 8002f80: 0800310f .word 0x0800310f - 8002f84: 0800310f .word 0x0800310f - 8002f88: 0800310f .word 0x0800310f - 8002f8c: 0800310f .word 0x0800310f - 8002f90: 0800310f .word 0x0800310f - 8002f94: 0800310f .word 0x0800310f - 8002f98: 0800310f .word 0x0800310f - 8002f9c: 0800310f .word 0x0800310f - 8002fa0: 0800310f .word 0x0800310f - 8002fa4: 08003169 .word 0x08003169 - 8002fa8: 0800311d .word 0x0800311d - 8002fac: 08003123 .word 0x08003123 - 8002fb0: 08003123 .word 0x08003123 - 8002fb4: 08003123 .word 0x08003123 - 8002fb8: 08003123 .word 0x08003123 - 8002fbc: 08003123 .word 0x08003123 - 8002fc0: 08003123 .word 0x08003123 - 8002fc4: 08003169 .word 0x08003169 - 8002fc8: 08003169 .word 0x08003169 - 8002fcc: 08003169 .word 0x08003169 - 8002fd0: 08003169 .word 0x08003169 - 8002fd4: 08003169 .word 0x08003169 - 8002fd8: 08003169 .word 0x08003169 - 8002fdc: 08003169 .word 0x08003169 - 8002fe0: 08003169 .word 0x08003169 - 8002fe4: 08003169 .word 0x08003169 - 8002fe8: 08003169 .word 0x08003169 - 8002fec: 08003131 .word 0x08003131 - 8002ff0: 08003131 .word 0x08003131 - 8002ff4: 08003131 .word 0x08003131 - 8002ff8: 08003131 .word 0x08003131 - 8002ffc: 08003131 .word 0x08003131 - 8003000: 08003131 .word 0x08003131 - 8003004: 08003131 .word 0x08003131 - 8003008: 08003131 .word 0x08003131 - 800300c: 08003131 .word 0x08003131 - 8003010: 08003131 .word 0x08003131 - 8003014: 08003131 .word 0x08003131 - 8003018: 08003131 .word 0x08003131 - 800301c: 08003169 .word 0x08003169 - 8003020: 08003169 .word 0x08003169 - 8003024: 08003169 .word 0x08003169 - 8003028: 08003169 .word 0x08003169 - 800302c: 0800313f .word 0x0800313f - 8003030: 0800313f .word 0x0800313f - 8003034: 0800313f .word 0x0800313f - 8003038: 0800313f .word 0x0800313f - 800303c: 0800313f .word 0x0800313f - 8003040: 0800313f .word 0x0800313f - 8003044: 0800313f .word 0x0800313f - 8003048: 0800313f .word 0x0800313f - 800304c: f5a3 7304 sub.w r3, r3, #528 ; 0x210 - 8003050: 2b18 cmp r3, #24 - 8003052: f200 8089 bhi.w 8003168 - 8003056: a201 add r2, pc, #4 ; (adr r2, 800305c ) - 8003058: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800305c: 080030cb .word 0x080030cb - 8003060: 080030d5 .word 0x080030d5 - 8003064: 080030df .word 0x080030df - 8003068: 080030e9 .word 0x080030e9 - 800306c: 08003169 .word 0x08003169 - 8003070: 08003169 .word 0x08003169 - 8003074: 08003169 .word 0x08003169 - 8003078: 08003169 .word 0x08003169 - 800307c: 08003169 .word 0x08003169 - 8003080: 08003169 .word 0x08003169 - 8003084: 08003169 .word 0x08003169 - 8003088: 08003169 .word 0x08003169 - 800308c: 08003169 .word 0x08003169 - 8003090: 08003169 .word 0x08003169 - 8003094: 08003169 .word 0x08003169 - 8003098: 08003169 .word 0x08003169 - 800309c: 080030f3 .word 0x080030f3 - 80030a0: 080030f3 .word 0x080030f3 - 80030a4: 080030f3 .word 0x080030f3 - 80030a8: 080030f3 .word 0x080030f3 - 80030ac: 080030f3 .word 0x080030f3 - 80030b0: 080030f3 .word 0x080030f3 - 80030b4: 080030f3 .word 0x080030f3 - 80030b8: 080030f3 .word 0x080030f3 - 80030bc: 080030f3 .word 0x080030f3 - 80030c0: f5a3 7344 sub.w r3, r3, #784 ; 0x310 - 80030c4: 2b30 cmp r3, #48 ; 0x30 - 80030c6: d84f bhi.n 8003168 - 80030c8: e01a b.n 8003100 + 8003196: 88fb ldrh r3, [r7, #6] + 8003198: f240 5286 movw r2, #1414 ; 0x586 + 800319c: 4293 cmp r3, r2 + 800319e: f300 8123 bgt.w 80033e8 + 80031a2: f5b3 6fb0 cmp.w r3, #1408 ; 0x580 + 80031a6: f280 8118 bge.w 80033da + 80031aa: f240 520d movw r2, #1293 ; 0x50d + 80031ae: 4293 cmp r3, r2 + 80031b0: f300 811a bgt.w 80033e8 + 80031b4: f5b3 6fa0 cmp.w r3, #1280 ; 0x500 + 80031b8: f280 8108 bge.w 80033cc + 80031bc: f5b3 7f62 cmp.w r3, #904 ; 0x388 + 80031c0: f280 8112 bge.w 80033e8 + 80031c4: f5b3 7f54 cmp.w r3, #848 ; 0x350 + 80031c8: da07 bge.n 80031da + 80031ca: f5b3 7f0a cmp.w r3, #552 ; 0x228 + 80031ce: f300 80b7 bgt.w 8003340 + 80031d2: f5b3 7f04 cmp.w r3, #528 ; 0x210 + 80031d6: da79 bge.n 80032cc + 80031d8: e106 b.n 80033e8 + 80031da: f5a3 7354 sub.w r3, r3, #848 ; 0x350 + 80031de: 2b37 cmp r3, #55 ; 0x37 + 80031e0: f200 8102 bhi.w 80033e8 + 80031e4: a201 add r2, pc, #4 ; (adr r2, 80031ec ) + 80031e6: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80031ea: bf00 nop + 80031ec: 0800338f .word 0x0800338f + 80031f0: 0800338f .word 0x0800338f + 80031f4: 0800338f .word 0x0800338f + 80031f8: 0800338f .word 0x0800338f + 80031fc: 0800338f .word 0x0800338f + 8003200: 0800338f .word 0x0800338f + 8003204: 0800338f .word 0x0800338f + 8003208: 0800338f .word 0x0800338f + 800320c: 0800338f .word 0x0800338f + 8003210: 0800338f .word 0x0800338f + 8003214: 0800338f .word 0x0800338f + 8003218: 0800338f .word 0x0800338f + 800321c: 0800338f .word 0x0800338f + 8003220: 0800338f .word 0x0800338f + 8003224: 080033e9 .word 0x080033e9 + 8003228: 0800339d .word 0x0800339d + 800322c: 080033a3 .word 0x080033a3 + 8003230: 080033a3 .word 0x080033a3 + 8003234: 080033a3 .word 0x080033a3 + 8003238: 080033a3 .word 0x080033a3 + 800323c: 080033a3 .word 0x080033a3 + 8003240: 080033a3 .word 0x080033a3 + 8003244: 080033e9 .word 0x080033e9 + 8003248: 080033e9 .word 0x080033e9 + 800324c: 080033e9 .word 0x080033e9 + 8003250: 080033e9 .word 0x080033e9 + 8003254: 080033e9 .word 0x080033e9 + 8003258: 080033e9 .word 0x080033e9 + 800325c: 080033e9 .word 0x080033e9 + 8003260: 080033e9 .word 0x080033e9 + 8003264: 080033e9 .word 0x080033e9 + 8003268: 080033e9 .word 0x080033e9 + 800326c: 080033b1 .word 0x080033b1 + 8003270: 080033b1 .word 0x080033b1 + 8003274: 080033b1 .word 0x080033b1 + 8003278: 080033b1 .word 0x080033b1 + 800327c: 080033b1 .word 0x080033b1 + 8003280: 080033b1 .word 0x080033b1 + 8003284: 080033b1 .word 0x080033b1 + 8003288: 080033b1 .word 0x080033b1 + 800328c: 080033b1 .word 0x080033b1 + 8003290: 080033b1 .word 0x080033b1 + 8003294: 080033b1 .word 0x080033b1 + 8003298: 080033b1 .word 0x080033b1 + 800329c: 080033e9 .word 0x080033e9 + 80032a0: 080033e9 .word 0x080033e9 + 80032a4: 080033e9 .word 0x080033e9 + 80032a8: 080033e9 .word 0x080033e9 + 80032ac: 080033bf .word 0x080033bf + 80032b0: 080033bf .word 0x080033bf + 80032b4: 080033bf .word 0x080033bf + 80032b8: 080033bf .word 0x080033bf + 80032bc: 080033bf .word 0x080033bf + 80032c0: 080033bf .word 0x080033bf + 80032c4: 080033bf .word 0x080033bf + 80032c8: 080033bf .word 0x080033bf + 80032cc: f5a3 7304 sub.w r3, r3, #528 ; 0x210 + 80032d0: 2b18 cmp r3, #24 + 80032d2: f200 8089 bhi.w 80033e8 + 80032d6: a201 add r2, pc, #4 ; (adr r2, 80032dc ) + 80032d8: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80032dc: 0800334b .word 0x0800334b + 80032e0: 08003355 .word 0x08003355 + 80032e4: 0800335f .word 0x0800335f + 80032e8: 08003369 .word 0x08003369 + 80032ec: 080033e9 .word 0x080033e9 + 80032f0: 080033e9 .word 0x080033e9 + 80032f4: 080033e9 .word 0x080033e9 + 80032f8: 080033e9 .word 0x080033e9 + 80032fc: 080033e9 .word 0x080033e9 + 8003300: 080033e9 .word 0x080033e9 + 8003304: 080033e9 .word 0x080033e9 + 8003308: 080033e9 .word 0x080033e9 + 800330c: 080033e9 .word 0x080033e9 + 8003310: 080033e9 .word 0x080033e9 + 8003314: 080033e9 .word 0x080033e9 + 8003318: 080033e9 .word 0x080033e9 + 800331c: 08003373 .word 0x08003373 + 8003320: 08003373 .word 0x08003373 + 8003324: 08003373 .word 0x08003373 + 8003328: 08003373 .word 0x08003373 + 800332c: 08003373 .word 0x08003373 + 8003330: 08003373 .word 0x08003373 + 8003334: 08003373 .word 0x08003373 + 8003338: 08003373 .word 0x08003373 + 800333c: 08003373 .word 0x08003373 + 8003340: f5a3 7344 sub.w r3, r3, #784 ; 0x310 + 8003344: 2b30 cmp r3, #48 ; 0x30 + 8003346: d84f bhi.n 80033e8 + 8003348: e01a b.n 8003380 // /* регистры 256..2047 используются пользовательских нужд */ // 0x400 case EDCAN_REG_TIME_0: return getTimeReg(0); - 80030ca: 2000 movs r0, #0 - 80030cc: f001 fc04 bl 80048d8 - 80030d0: 4603 mov r3, r0 - 80030d2: e04a b.n 800316a + 800334a: 2000 movs r0, #0 + 800334c: f001 fbfa bl 8004b44 + 8003350: 4603 mov r3, r0 + 8003352: e04a b.n 80033ea break; case EDCAN_REG_TIME_1: return getTimeReg(1); - 80030d4: 2001 movs r0, #1 - 80030d6: f001 fbff bl 80048d8 - 80030da: 4603 mov r3, r0 - 80030dc: e045 b.n 800316a + 8003354: 2001 movs r0, #1 + 8003356: f001 fbf5 bl 8004b44 + 800335a: 4603 mov r3, r0 + 800335c: e045 b.n 80033ea break; case EDCAN_REG_TIME_2: return getTimeReg(2); - 80030de: 2002 movs r0, #2 - 80030e0: f001 fbfa bl 80048d8 - 80030e4: 4603 mov r3, r0 - 80030e6: e040 b.n 800316a + 800335e: 2002 movs r0, #2 + 8003360: f001 fbf0 bl 8004b44 + 8003364: 4603 mov r3, r0 + 8003366: e040 b.n 80033ea break; case EDCAN_REG_TIME_3: return getTimeReg(3); - 80030e8: 2003 movs r0, #3 - 80030ea: f001 fbf5 bl 80048d8 - 80030ee: 4603 mov r3, r0 - 80030f0: e03b b.n 800316a + 8003368: 2003 movs r0, #3 + 800336a: f001 fbeb bl 8004b44 + 800336e: 4603 mov r3, r0 + 8003370: e03b b.n 80033ea break; //0x220 case EDCAN_REG_MAX_LOAD ... (EDCAN_REG_MAX_LOAD+sizeof(GBT_CML_t)): return ((uint8_t*)&GBT_MaxLoad)[addr - EDCAN_REG_MAX_LOAD]; - 80030f2: 88fb ldrh r3, [r7, #6] - 80030f4: f5a3 7308 sub.w r3, r3, #544 ; 0x220 - 80030f8: 4a1e ldr r2, [pc, #120] ; (8003174 ) - 80030fa: 4413 add r3, r2 - 80030fc: 781b ldrb r3, [r3, #0] - 80030fe: e034 b.n 800316a + 8003372: 88fb ldrh r3, [r7, #6] + 8003374: f5a3 7308 sub.w r3, r3, #544 ; 0x220 + 8003378: 4a1e ldr r2, [pc, #120] ; (80033f4 ) + 800337a: 4413 add r3, r2 + 800337c: 781b ldrb r3, [r3, #0] + 800337e: e034 b.n 80033ea //0x310 case EDCAN_REG_BRM ... (EDCAN_REG_BRM+sizeof(GBT_BRM_t)-1): return ((uint8_t*)&GBT_EVInfo)[addr - EDCAN_REG_BRM]; - 8003100: 88fb ldrh r3, [r7, #6] - 8003102: f5a3 7344 sub.w r3, r3, #784 ; 0x310 - 8003106: 4a1c ldr r2, [pc, #112] ; (8003178 ) - 8003108: 4413 add r3, r2 - 800310a: 781b ldrb r3, [r3, #0] - 800310c: e02d b.n 800316a + 8003380: 88fb ldrh r3, [r7, #6] + 8003382: f5a3 7344 sub.w r3, r3, #784 ; 0x310 + 8003386: 4a1c ldr r2, [pc, #112] ; (80033f8 ) + 8003388: 4413 add r3, r2 + 800338a: 781b ldrb r3, [r3, #0] + 800338c: e02d b.n 80033ea //0x340 case EDCAN_REG_BCP ... (EDCAN_REG_BCP+sizeof(GBT_BCP_t)): return ((uint8_t*)&GBT_BATStat)[addr - EDCAN_REG_BCP]; - 800310e: 88fb ldrh r3, [r7, #6] - 8003110: f5a3 7354 sub.w r3, r3, #848 ; 0x350 - 8003114: 4a19 ldr r2, [pc, #100] ; (800317c ) - 8003116: 4413 add r3, r2 - 8003118: 781b ldrb r3, [r3, #0] - 800311a: e026 b.n 800316a + 800338e: 88fb ldrh r3, [r7, #6] + 8003390: f5a3 7354 sub.w r3, r3, #848 ; 0x350 + 8003394: 4a19 ldr r2, [pc, #100] ; (80033fc ) + 8003396: 4413 add r3, r2 + 8003398: 781b ldrb r3, [r3, #0] + 800339a: e026 b.n 80033ea //0x34F case EDCAN_REG_BRO: return GBT_BRO; - 800311c: 4b18 ldr r3, [pc, #96] ; (8003180 ) - 800311e: 781b ldrb r3, [r3, #0] - 8003120: e023 b.n 800316a + 800339c: 4b18 ldr r3, [pc, #96] ; (8003400 ) + 800339e: 781b ldrb r3, [r3, #0] + 80033a0: e023 b.n 80033ea //0x350 case EDCAN_REG_BCL ... (EDCAN_REG_BCL+sizeof(GBT_BCL_t)): return ((uint8_t*)&GBT_ReqPower)[addr - EDCAN_REG_BCL]; - 8003122: 88fb ldrh r3, [r7, #6] - 8003124: f5a3 7358 sub.w r3, r3, #864 ; 0x360 - 8003128: 4a16 ldr r2, [pc, #88] ; (8003184 ) - 800312a: 4413 add r3, r2 - 800312c: 781b ldrb r3, [r3, #0] - 800312e: e01c b.n 800316a + 80033a2: 88fb ldrh r3, [r7, #6] + 80033a4: f5a3 7358 sub.w r3, r3, #864 ; 0x360 + 80033a8: 4a16 ldr r2, [pc, #88] ; (8003404 ) + 80033aa: 4413 add r3, r2 + 80033ac: 781b ldrb r3, [r3, #0] + 80033ae: e01c b.n 80033ea //0x360 case EDCAN_REG_BCS ... (EDCAN_REG_BCS+sizeof(GBT_BCS_t)): return ((uint8_t*)&GBT_ChargingStatus)[addr - EDCAN_REG_BCS]; - 8003130: 88fb ldrh r3, [r7, #6] - 8003132: f5a3 735c sub.w r3, r3, #880 ; 0x370 - 8003136: 4a14 ldr r2, [pc, #80] ; (8003188 ) - 8003138: 4413 add r3, r2 - 800313a: 781b ldrb r3, [r3, #0] - 800313c: e015 b.n 800316a + 80033b0: 88fb ldrh r3, [r7, #6] + 80033b2: f5a3 735c sub.w r3, r3, #880 ; 0x370 + 80033b6: 4a14 ldr r2, [pc, #80] ; (8003408 ) + 80033b8: 4413 add r3, r2 + 80033ba: 781b ldrb r3, [r3, #0] + 80033bc: e015 b.n 80033ea //0x370 case EDCAN_REG_BSM ... (EDCAN_REG_BSM+sizeof(GBT_BSM_t)): return ((uint8_t*)&GBT_BatteryStatus)[addr - EDCAN_REG_BSM]; - 800313e: 88fb ldrh r3, [r7, #6] - 8003140: f5a3 7360 sub.w r3, r3, #896 ; 0x380 - 8003144: 4a11 ldr r2, [pc, #68] ; (800318c ) - 8003146: 4413 add r3, r2 - 8003148: 781b ldrb r3, [r3, #0] - 800314a: e00e b.n 800316a + 80033be: 88fb ldrh r3, [r7, #6] + 80033c0: f5a3 7360 sub.w r3, r3, #896 ; 0x380 + 80033c4: 4a11 ldr r2, [pc, #68] ; (800340c ) + 80033c6: 4413 add r3, r2 + 80033c8: 781b ldrb r3, [r3, #0] + 80033ca: e00e b.n 80033ea //0x500 case EDCAN_REG_OUTPUT ... (EDCAN_REG_OUTPUT+sizeof(GBT_EDCAN_Output_t)): return ((uint8_t*)&GBT_EDCAN_Output)[addr - EDCAN_REG_OUTPUT]; - 800314c: 88fb ldrh r3, [r7, #6] - 800314e: f5a3 63a0 sub.w r3, r3, #1280 ; 0x500 - 8003152: 4a0f ldr r2, [pc, #60] ; (8003190 ) - 8003154: 4413 add r3, r2 - 8003156: 781b ldrb r3, [r3, #0] - 8003158: e007 b.n 800316a + 80033cc: 88fb ldrh r3, [r7, #6] + 80033ce: f5a3 63a0 sub.w r3, r3, #1280 ; 0x500 + 80033d2: 4a0f ldr r2, [pc, #60] ; (8003410 ) + 80033d4: 4413 add r3, r2 + 80033d6: 781b ldrb r3, [r3, #0] + 80033d8: e007 b.n 80033ea //0x580 case EDCAN_REG_INPUT ... (EDCAN_REG_INPUT+sizeof(GBT_EDCAN_Input_t)): return ((uint8_t*)&GBT_EDCAN_Input)[addr - EDCAN_REG_INPUT]; - 800315a: 88fb ldrh r3, [r7, #6] - 800315c: f5a3 63b0 sub.w r3, r3, #1408 ; 0x580 - 8003160: 4a0c ldr r2, [pc, #48] ; (8003194 ) - 8003162: 4413 add r3, r2 - 8003164: 781b ldrb r3, [r3, #0] - 8003166: e000 b.n 800316a + 80033da: 88fb ldrh r3, [r7, #6] + 80033dc: f5a3 63b0 sub.w r3, r3, #1408 ; 0x580 + 80033e0: 4a0c ldr r2, [pc, #48] ; (8003414 ) + 80033e2: 4413 add r3, r2 + 80033e4: 781b ldrb r3, [r3, #0] + 80033e6: e000 b.n 80033ea default: return 0x00; - 8003168: 2300 movs r3, #0 + 80033e8: 2300 movs r3, #0 } } - 800316a: 4618 mov r0, r3 - 800316c: 3708 adds r7, #8 - 800316e: 46bd mov sp, r7 - 8003170: bd80 pop {r7, pc} - 8003172: bf00 nop - 8003174: 200002f8 .word 0x200002f8 - 8003178: 2000030c .word 0x2000030c - 800317c: 20000340 .word 0x20000340 - 8003180: 20000384 .word 0x20000384 - 8003184: 20000350 .word 0x20000350 - 8003188: 20000360 .word 0x20000360 - 800318c: 2000036c .word 0x2000036c - 8003190: 200004a8 .word 0x200004a8 - 8003194: 200004b8 .word 0x200004b8 + 80033ea: 4618 mov r0, r3 + 80033ec: 3708 adds r7, #8 + 80033ee: 46bd mov sp, r7 + 80033f0: bd80 pop {r7, pc} + 80033f2: bf00 nop + 80033f4: 200002f8 .word 0x200002f8 + 80033f8: 2000030c .word 0x2000030c + 80033fc: 20000340 .word 0x20000340 + 8003400: 20000384 .word 0x20000384 + 8003404: 20000350 .word 0x20000350 + 8003408: 20000360 .word 0x20000360 + 800340c: 2000036c .word 0x2000036c + 8003410: 200004a8 .word 0x200004a8 + 8003414: 200004b8 .word 0x200004b8 -08003198 : +08003418 : // GB/T Time Synchronization Packet #include "main.h" #include "soft_rtc.h" #include "charger_gbt.h" void GBT_SendCTS(){ - 8003198: b580 push {r7, lr} - 800319a: b082 sub sp, #8 - 800319c: af00 add r7, sp, #0 + 8003418: b580 push {r7, lr} + 800341a: b082 sub sp, #8 + 800341c: af00 add r7, sp, #0 uint8_t data[7]; unix_to_bcd(get_Current_Time(), data); - 800319e: f001 facb bl 8004738 - 80031a2: 4602 mov r2, r0 - 80031a4: 463b mov r3, r7 - 80031a6: 4619 mov r1, r3 - 80031a8: 4610 mov r0, r2 - 80031aa: f001 fb01 bl 80047b0 + 800341e: f001 fac1 bl 80049a4 + 8003422: 4602 mov r2, r0 + 8003424: 463b mov r3, r7 + 8003426: 4619 mov r1, r3 + 8003428: 4610 mov r0, r2 + 800342a: f001 faf7 bl 8004a1c // data[3] = 0x05; //days // data[4] = 0x05; //month // data[5] = 0x24; //years // data[6] = 0x20; //centuries J_SendPacket(0x000700, 6, 7, data); - 80031ae: 463b mov r3, r7 - 80031b0: 2207 movs r2, #7 - 80031b2: 2106 movs r1, #6 - 80031b4: f44f 60e0 mov.w r0, #1792 ; 0x700 - 80031b8: f000 fabc bl 8003734 + 800342e: 463b mov r3, r7 + 8003430: 2207 movs r2, #7 + 8003432: 2106 movs r1, #6 + 8003434: f44f 60e0 mov.w r0, #1792 ; 0x700 + 8003438: f000 fabc bl 80039b4 } - 80031bc: bf00 nop - 80031be: 3708 adds r7, #8 - 80031c0: 46bd mov sp, r7 - 80031c2: bd80 pop {r7, pc} + 800343c: bf00 nop + 800343e: 3708 adds r7, #8 + 8003440: 46bd mov sp, r7 + 8003442: bd80 pop {r7, pc} -080031c4 : +08003444 : //GB/T Max Load Packet void GBT_SendCML(){ - 80031c4: b580 push {r7, lr} - 80031c6: af00 add r7, sp, #0 + 8003444: b580 push {r7, lr} + 8003446: af00 add r7, sp, #0 // data[4] = 0xC4; //-150A maximum output current // data[5] = 0x09; // // data[6] = 0x8C; //-2A minimum output current // data[7] = 0x0F; // J_SendPacket(0x000800, 6, 8, (uint8_t*)&GBT_MaxLoad); - 80031c8: 4b04 ldr r3, [pc, #16] ; (80031dc ) - 80031ca: 2208 movs r2, #8 - 80031cc: 2106 movs r1, #6 - 80031ce: f44f 6000 mov.w r0, #2048 ; 0x800 - 80031d2: f000 faaf bl 8003734 + 8003448: 4b04 ldr r3, [pc, #16] ; (800345c ) + 800344a: 2208 movs r2, #8 + 800344c: 2106 movs r1, #6 + 800344e: f44f 6000 mov.w r0, #2048 ; 0x800 + 8003452: f000 faaf bl 80039b4 } - 80031d6: bf00 nop - 80031d8: bd80 pop {r7, pc} - 80031da: bf00 nop - 80031dc: 200002f8 .word 0x200002f8 + 8003456: bf00 nop + 8003458: bd80 pop {r7, pc} + 800345a: bf00 nop + 800345c: 200002f8 .word 0x200002f8 -080031e0 : +08003460 : //GB/T Version packet void GBT_SendCHM(){ - 80031e0: b580 push {r7, lr} - 80031e2: b082 sub sp, #8 - 80031e4: af00 add r7, sp, #0 + 8003460: b580 push {r7, lr} + 8003462: b082 sub sp, #8 + 8003464: af00 add r7, sp, #0 uint8_t data[3]; data[0] = 0x01; - 80031e6: 2301 movs r3, #1 - 80031e8: 713b strb r3, [r7, #4] + 8003466: 2301 movs r3, #1 + 8003468: 713b strb r3, [r7, #4] data[1] = 0x01; - 80031ea: 2301 movs r3, #1 - 80031ec: 717b strb r3, [r7, #5] + 800346a: 2301 movs r3, #1 + 800346c: 717b strb r3, [r7, #5] data[2] = 0x00; - 80031ee: 2300 movs r3, #0 - 80031f0: 71bb strb r3, [r7, #6] + 800346e: 2300 movs r3, #0 + 8003470: 71bb strb r3, [r7, #6] J_SendPacket(0x2600, 6, 3, data); - 80031f2: 1d3b adds r3, r7, #4 - 80031f4: 2203 movs r2, #3 - 80031f6: 2106 movs r1, #6 - 80031f8: f44f 5018 mov.w r0, #9728 ; 0x2600 - 80031fc: f000 fa9a bl 8003734 + 8003472: 1d3b adds r3, r7, #4 + 8003474: 2203 movs r2, #3 + 8003476: 2106 movs r1, #6 + 8003478: f44f 5018 mov.w r0, #9728 ; 0x2600 + 800347c: f000 fa9a bl 80039b4 } - 8003200: bf00 nop - 8003202: 3708 adds r7, #8 - 8003204: 46bd mov sp, r7 - 8003206: bd80 pop {r7, pc} + 8003480: bf00 nop + 8003482: 3708 adds r7, #8 + 8003484: 46bd mov sp, r7 + 8003486: bd80 pop {r7, pc} -08003208 : +08003488 : //GB/T CRM Packet (state=BMS identified) void GBT_SendCRM(uint8_t state){ - 8003208: b580 push {r7, lr} - 800320a: b082 sub sp, #8 - 800320c: af00 add r7, sp, #0 - 800320e: 4603 mov r3, r0 - 8003210: 71fb strb r3, [r7, #7] + 8003488: b580 push {r7, lr} + 800348a: b082 sub sp, #8 + 800348c: af00 add r7, sp, #0 + 800348e: 4603 mov r3, r0 + 8003490: 71fb strb r3, [r7, #7] // data[3] = 0x01; // data[4] = 0x00; // data[5] = 0x42; //TODO: location BFG // data[6] = 0x46; // data[7] = 0x47; GBT_ChargerInfo.bmsIdentified = state; - 8003212: 4a07 ldr r2, [pc, #28] ; (8003230 ) - 8003214: 79fb ldrb r3, [r7, #7] - 8003216: 7013 strb r3, [r2, #0] + 8003492: 4a07 ldr r2, [pc, #28] ; (80034b0 ) + 8003494: 79fb ldrb r3, [r7, #7] + 8003496: 7013 strb r3, [r2, #0] J_SendPacket(0x100, 6, 8, (uint8_t *)&GBT_ChargerInfo); - 8003218: 4b05 ldr r3, [pc, #20] ; (8003230 ) - 800321a: 2208 movs r2, #8 - 800321c: 2106 movs r1, #6 - 800321e: f44f 7080 mov.w r0, #256 ; 0x100 - 8003222: f000 fa87 bl 8003734 + 8003498: 4b05 ldr r3, [pc, #20] ; (80034b0 ) + 800349a: 2208 movs r2, #8 + 800349c: 2106 movs r1, #6 + 800349e: f44f 7080 mov.w r0, #256 ; 0x100 + 80034a2: f000 fa87 bl 80039b4 } - 8003226: bf00 nop - 8003228: 3708 adds r7, #8 - 800322a: 46bd mov sp, r7 - 800322c: bd80 pop {r7, pc} - 800322e: bf00 nop - 8003230: 20000300 .word 0x20000300 + 80034a6: bf00 nop + 80034a8: 3708 adds r7, #8 + 80034aa: 46bd mov sp, r7 + 80034ac: bd80 pop {r7, pc} + 80034ae: bf00 nop + 80034b0: 20000300 .word 0x20000300 -08003234 : +080034b4 : //GB/T CRO packet (Charger ready) void GBT_SendCRO(uint8_t state){ - 8003234: b580 push {r7, lr} - 8003236: b084 sub sp, #16 - 8003238: af00 add r7, sp, #0 - 800323a: 4603 mov r3, r0 - 800323c: 71fb strb r3, [r7, #7] + 80034b4: b580 push {r7, lr} + 80034b6: b084 sub sp, #16 + 80034b8: af00 add r7, sp, #0 + 80034ba: 4603 mov r3, r0 + 80034bc: 71fb strb r3, [r7, #7] uint8_t data[1]; data[0] = state; - 800323e: 79fb ldrb r3, [r7, #7] - 8003240: 733b strb r3, [r7, #12] + 80034be: 79fb ldrb r3, [r7, #7] + 80034c0: 733b strb r3, [r7, #12] J_SendPacket(0xA00, 4, 1, data); - 8003242: f107 030c add.w r3, r7, #12 - 8003246: 2201 movs r2, #1 - 8003248: 2104 movs r1, #4 - 800324a: f44f 6020 mov.w r0, #2560 ; 0xa00 - 800324e: f000 fa71 bl 8003734 + 80034c2: f107 030c add.w r3, r7, #12 + 80034c6: 2201 movs r2, #1 + 80034c8: 2104 movs r1, #4 + 80034ca: f44f 6020 mov.w r0, #2560 ; 0xa00 + 80034ce: f000 fa71 bl 80039b4 } - 8003252: bf00 nop - 8003254: 3710 adds r7, #16 - 8003256: 46bd mov sp, r7 - 8003258: bd80 pop {r7, pc} + 80034d2: bf00 nop + 80034d4: 3710 adds r7, #16 + 80034d6: 46bd mov sp, r7 + 80034d8: bd80 pop {r7, pc} ... -0800325c : +080034dc : //GB/T CCS packet (Charger current status) void GBT_SendCCS(){ - 800325c: b580 push {r7, lr} - 800325e: af00 add r7, sp, #0 + 80034dc: b580 push {r7, lr} + 80034de: af00 add r7, sp, #0 // data[3] = GBT_CurrPower.requestedCurrent>>8; //TODO: current // data[4] = GBT_StateTick()/60000; //charging time (min) // data[5] = 0; //TODO: 255 min+ // data[6] = 0b11111101; //charging not permitted // data[7] = 0xFF; J_SendPacket(0x1200, 6, 8, (uint8_t *)&GBT_ChargerCurrentStatus); - 8003260: 4b04 ldr r3, [pc, #16] ; (8003274 ) - 8003262: 2208 movs r2, #8 - 8003264: 2106 movs r1, #6 - 8003266: f44f 5090 mov.w r0, #4608 ; 0x1200 - 800326a: f000 fa63 bl 8003734 + 80034e0: 4b04 ldr r3, [pc, #16] ; (80034f4 ) + 80034e2: 2208 movs r2, #8 + 80034e4: 2106 movs r1, #6 + 80034e6: f44f 5090 mov.w r0, #4608 ; 0x1200 + 80034ea: f000 fa63 bl 80039b4 } - 800326e: bf00 nop - 8003270: bd80 pop {r7, pc} - 8003272: bf00 nop - 8003274: 20000374 .word 0x20000374 + 80034ee: bf00 nop + 80034f0: bd80 pop {r7, pc} + 80034f2: bf00 nop + 80034f4: 20000374 .word 0x20000374 -08003278 : +080034f8 : // GB/T Charging Stop packet void GBT_SendCST(uint32_t Cause){ - 8003278: b580 push {r7, lr} - 800327a: b084 sub sp, #16 - 800327c: af00 add r7, sp, #0 - 800327e: 6078 str r0, [r7, #4] + 80034f8: b580 push {r7, lr} + 80034fa: b084 sub sp, #16 + 80034fc: af00 add r7, sp, #0 + 80034fe: 6078 str r0, [r7, #4] uint8_t data[8]; data[0] = (Cause>>24) & 0xFF; // Error - 8003280: 687b ldr r3, [r7, #4] - 8003282: 0e1b lsrs r3, r3, #24 - 8003284: b2db uxtb r3, r3 - 8003286: 723b strb r3, [r7, #8] + 8003500: 687b ldr r3, [r7, #4] + 8003502: 0e1b lsrs r3, r3, #24 + 8003504: b2db uxtb r3, r3 + 8003506: 723b strb r3, [r7, #8] data[1] = (Cause>>16) & 0xFF; // - 8003288: 687b ldr r3, [r7, #4] - 800328a: 0c1b lsrs r3, r3, #16 - 800328c: b2db uxtb r3, r3 - 800328e: 727b strb r3, [r7, #9] + 8003508: 687b ldr r3, [r7, #4] + 800350a: 0c1b lsrs r3, r3, #16 + 800350c: b2db uxtb r3, r3 + 800350e: 727b strb r3, [r7, #9] data[2] = (Cause>>8) & 0xFF; // - 8003290: 687b ldr r3, [r7, #4] - 8003292: 0a1b lsrs r3, r3, #8 - 8003294: b2db uxtb r3, r3 - 8003296: 72bb strb r3, [r7, #10] + 8003510: 687b ldr r3, [r7, #4] + 8003512: 0a1b lsrs r3, r3, #8 + 8003514: b2db uxtb r3, r3 + 8003516: 72bb strb r3, [r7, #10] data[3] = Cause & 0xFF; // - 8003298: 687b ldr r3, [r7, #4] - 800329a: b2db uxtb r3, r3 - 800329c: 72fb strb r3, [r7, #11] + 8003518: 687b ldr r3, [r7, #4] + 800351a: b2db uxtb r3, r3 + 800351c: 72fb strb r3, [r7, #11] J_SendPacket(0x1A00, 4, 4, data); - 800329e: f107 0308 add.w r3, r7, #8 - 80032a2: 2204 movs r2, #4 - 80032a4: 2104 movs r1, #4 - 80032a6: f44f 50d0 mov.w r0, #6656 ; 0x1a00 - 80032aa: f000 fa43 bl 8003734 + 800351e: f107 0308 add.w r3, r7, #8 + 8003522: 2204 movs r2, #4 + 8003524: 2104 movs r1, #4 + 8003526: f44f 50d0 mov.w r0, #6656 ; 0x1a00 + 800352a: f000 fa43 bl 80039b4 } - 80032ae: bf00 nop - 80032b0: 3710 adds r7, #16 - 80032b2: 46bd mov sp, r7 - 80032b4: bd80 pop {r7, pc} + 800352e: bf00 nop + 8003530: 3710 adds r7, #16 + 8003532: 46bd mov sp, r7 + 8003534: bd80 pop {r7, pc} ... -080032b8 : +08003538 : void GBT_SendCSD(){ - 80032b8: b580 push {r7, lr} - 80032ba: af00 add r7, sp, #0 + 8003538: b580 push {r7, lr} + 800353a: af00 add r7, sp, #0 GBT_ChargerStop.chargerNumber = GBT_ChargerInfo.chargerNumber; - 80032bc: 4b0b ldr r3, [pc, #44] ; (80032ec ) - 80032be: f8d3 3001 ldr.w r3, [r3, #1] - 80032c2: 4a0b ldr r2, [pc, #44] ; (80032f0 ) - 80032c4: 6053 str r3, [r2, #4] + 800353c: 4b0b ldr r3, [pc, #44] ; (800356c ) + 800353e: f8d3 3001 ldr.w r3, [r3, #1] + 8003542: 4a0b ldr r2, [pc, #44] ; (8003570 ) + 8003544: 6053 str r3, [r2, #4] GBT_ChargerStop.outputEnergy = 0; //TODO Energy meters - 80032c6: 4b0a ldr r3, [pc, #40] ; (80032f0 ) - 80032c8: 2200 movs r2, #0 - 80032ca: 709a strb r2, [r3, #2] - 80032cc: 2200 movs r2, #0 - 80032ce: 70da strb r2, [r3, #3] + 8003546: 4b0a ldr r3, [pc, #40] ; (8003570 ) + 8003548: 2200 movs r2, #0 + 800354a: 709a strb r2, [r3, #2] + 800354c: 2200 movs r2, #0 + 800354e: 70da strb r2, [r3, #3] GBT_ChargerStop.chargingTime = GBT_ChargerCurrentStatus.chargingTime; - 80032d0: 4b08 ldr r3, [pc, #32] ; (80032f4 ) - 80032d2: 889b ldrh r3, [r3, #4] - 80032d4: b29a uxth r2, r3 - 80032d6: 4b06 ldr r3, [pc, #24] ; (80032f0 ) - 80032d8: 801a strh r2, [r3, #0] + 8003550: 4b08 ldr r3, [pc, #32] ; (8003574 ) + 8003552: 889b ldrh r3, [r3, #4] + 8003554: b29a uxth r2, r3 + 8003556: 4b06 ldr r3, [pc, #24] ; (8003570 ) + 8003558: 801a strh r2, [r3, #0] J_SendPacket(0x1D00, 6, 7, (uint8_t *)&GBT_ChargerStop); - 80032da: 4b05 ldr r3, [pc, #20] ; (80032f0 ) - 80032dc: 2207 movs r2, #7 - 80032de: 2106 movs r1, #6 - 80032e0: f44f 50e8 mov.w r0, #7424 ; 0x1d00 - 80032e4: f000 fa26 bl 8003734 + 800355a: 4b05 ldr r3, [pc, #20] ; (8003570 ) + 800355c: 2207 movs r2, #7 + 800355e: 2106 movs r1, #6 + 8003560: f44f 50e8 mov.w r0, #7424 ; 0x1d00 + 8003564: f000 fa26 bl 80039b4 } - 80032e8: bf00 nop - 80032ea: bd80 pop {r7, pc} - 80032ec: 20000300 .word 0x20000300 - 80032f0: 2000037c .word 0x2000037c - 80032f4: 20000374 .word 0x20000374 + 8003568: bf00 nop + 800356a: bd80 pop {r7, pc} + 800356c: 20000300 .word 0x20000300 + 8003570: 2000037c .word 0x2000037c + 8003574: 20000374 .word 0x20000374 -080032f8 : +08003578 : void GBT_SendCEM(uint32_t ErrorCode){ - 80032f8: b580 push {r7, lr} - 80032fa: b084 sub sp, #16 - 80032fc: af00 add r7, sp, #0 - 80032fe: 6078 str r0, [r7, #4] + 8003578: b580 push {r7, lr} + 800357a: b084 sub sp, #16 + 800357c: af00 add r7, sp, #0 + 800357e: 6078 str r0, [r7, #4] uint8_t data[8]; data[0] = (ErrorCode>>24) & 0xFF; // Error - 8003300: 687b ldr r3, [r7, #4] - 8003302: 0e1b lsrs r3, r3, #24 - 8003304: b2db uxtb r3, r3 - 8003306: 723b strb r3, [r7, #8] + 8003580: 687b ldr r3, [r7, #4] + 8003582: 0e1b lsrs r3, r3, #24 + 8003584: b2db uxtb r3, r3 + 8003586: 723b strb r3, [r7, #8] data[1] = (ErrorCode>>16) & 0xFF; // - 8003308: 687b ldr r3, [r7, #4] - 800330a: 0c1b lsrs r3, r3, #16 - 800330c: b2db uxtb r3, r3 - 800330e: 727b strb r3, [r7, #9] + 8003588: 687b ldr r3, [r7, #4] + 800358a: 0c1b lsrs r3, r3, #16 + 800358c: b2db uxtb r3, r3 + 800358e: 727b strb r3, [r7, #9] data[2] = (ErrorCode>>8) & 0xFF; // - 8003310: 687b ldr r3, [r7, #4] - 8003312: 0a1b lsrs r3, r3, #8 - 8003314: b2db uxtb r3, r3 - 8003316: 72bb strb r3, [r7, #10] + 8003590: 687b ldr r3, [r7, #4] + 8003592: 0a1b lsrs r3, r3, #8 + 8003594: b2db uxtb r3, r3 + 8003596: 72bb strb r3, [r7, #10] data[3] = ErrorCode & 0xFF; // - 8003318: 687b ldr r3, [r7, #4] - 800331a: b2db uxtb r3, r3 - 800331c: 72fb strb r3, [r7, #11] + 8003598: 687b ldr r3, [r7, #4] + 800359a: b2db uxtb r3, r3 + 800359c: 72fb strb r3, [r7, #11] J_SendPacket(0x1F00, 4, 4, data); - 800331e: f107 0308 add.w r3, r7, #8 - 8003322: 2204 movs r2, #4 - 8003324: 2104 movs r1, #4 - 8003326: f44f 50f8 mov.w r0, #7936 ; 0x1f00 - 800332a: f000 fa03 bl 8003734 + 800359e: f107 0308 add.w r3, r7, #8 + 80035a2: 2204 movs r2, #4 + 80035a4: 2104 movs r1, #4 + 80035a6: f44f 50f8 mov.w r0, #7936 ; 0x1f00 + 80035aa: f000 fa03 bl 80039b4 } - 800332e: bf00 nop - 8003330: 3710 adds r7, #16 - 8003332: 46bd mov sp, r7 - 8003334: bd80 pop {r7, pc} + 80035ae: bf00 nop + 80035b0: 3710 adds r7, #16 + 80035b2: 46bd mov sp, r7 + 80035b4: bd80 pop {r7, pc} ... -08003338 : +080035b8 : * Output * EVENT_OUT * EXTI */ void MX_GPIO_Init(void) { - 8003338: b580 push {r7, lr} - 800333a: b08a sub sp, #40 ; 0x28 - 800333c: af00 add r7, sp, #0 + 80035b8: b580 push {r7, lr} + 80035ba: b08a sub sp, #40 ; 0x28 + 80035bc: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800333e: f107 0318 add.w r3, r7, #24 - 8003342: 2200 movs r2, #0 - 8003344: 601a str r2, [r3, #0] - 8003346: 605a str r2, [r3, #4] - 8003348: 609a str r2, [r3, #8] - 800334a: 60da str r2, [r3, #12] + 80035be: f107 0318 add.w r3, r7, #24 + 80035c2: 2200 movs r2, #0 + 80035c4: 601a str r2, [r3, #0] + 80035c6: 605a str r2, [r3, #4] + 80035c8: 609a str r2, [r3, #8] + 80035ca: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); - 800334c: 4b53 ldr r3, [pc, #332] ; (800349c ) - 800334e: 699b ldr r3, [r3, #24] - 8003350: 4a52 ldr r2, [pc, #328] ; (800349c ) - 8003352: f043 0310 orr.w r3, r3, #16 - 8003356: 6193 str r3, [r2, #24] - 8003358: 4b50 ldr r3, [pc, #320] ; (800349c ) - 800335a: 699b ldr r3, [r3, #24] - 800335c: f003 0310 and.w r3, r3, #16 - 8003360: 617b str r3, [r7, #20] - 8003362: 697b ldr r3, [r7, #20] + 80035cc: 4b53 ldr r3, [pc, #332] ; (800371c ) + 80035ce: 699b ldr r3, [r3, #24] + 80035d0: 4a52 ldr r2, [pc, #328] ; (800371c ) + 80035d2: f043 0310 orr.w r3, r3, #16 + 80035d6: 6193 str r3, [r2, #24] + 80035d8: 4b50 ldr r3, [pc, #320] ; (800371c ) + 80035da: 699b ldr r3, [r3, #24] + 80035dc: f003 0310 and.w r3, r3, #16 + 80035e0: 617b str r3, [r7, #20] + 80035e2: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8003364: 4b4d ldr r3, [pc, #308] ; (800349c ) - 8003366: 699b ldr r3, [r3, #24] - 8003368: 4a4c ldr r2, [pc, #304] ; (800349c ) - 800336a: f043 0304 orr.w r3, r3, #4 - 800336e: 6193 str r3, [r2, #24] - 8003370: 4b4a ldr r3, [pc, #296] ; (800349c ) - 8003372: 699b ldr r3, [r3, #24] - 8003374: f003 0304 and.w r3, r3, #4 - 8003378: 613b str r3, [r7, #16] - 800337a: 693b ldr r3, [r7, #16] + 80035e4: 4b4d ldr r3, [pc, #308] ; (800371c ) + 80035e6: 699b ldr r3, [r3, #24] + 80035e8: 4a4c ldr r2, [pc, #304] ; (800371c ) + 80035ea: f043 0304 orr.w r3, r3, #4 + 80035ee: 6193 str r3, [r2, #24] + 80035f0: 4b4a ldr r3, [pc, #296] ; (800371c ) + 80035f2: 699b ldr r3, [r3, #24] + 80035f4: f003 0304 and.w r3, r3, #4 + 80035f8: 613b str r3, [r7, #16] + 80035fa: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); - 800337c: 4b47 ldr r3, [pc, #284] ; (800349c ) - 800337e: 699b ldr r3, [r3, #24] - 8003380: 4a46 ldr r2, [pc, #280] ; (800349c ) - 8003382: f043 0308 orr.w r3, r3, #8 - 8003386: 6193 str r3, [r2, #24] - 8003388: 4b44 ldr r3, [pc, #272] ; (800349c ) - 800338a: 699b ldr r3, [r3, #24] - 800338c: f003 0308 and.w r3, r3, #8 - 8003390: 60fb str r3, [r7, #12] - 8003392: 68fb ldr r3, [r7, #12] + 80035fc: 4b47 ldr r3, [pc, #284] ; (800371c ) + 80035fe: 699b ldr r3, [r3, #24] + 8003600: 4a46 ldr r2, [pc, #280] ; (800371c ) + 8003602: f043 0308 orr.w r3, r3, #8 + 8003606: 6193 str r3, [r2, #24] + 8003608: 4b44 ldr r3, [pc, #272] ; (800371c ) + 800360a: 699b ldr r3, [r3, #24] + 800360c: f003 0308 and.w r3, r3, #8 + 8003610: 60fb str r3, [r7, #12] + 8003612: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOE_CLK_ENABLE(); - 8003394: 4b41 ldr r3, [pc, #260] ; (800349c ) - 8003396: 699b ldr r3, [r3, #24] - 8003398: 4a40 ldr r2, [pc, #256] ; (800349c ) - 800339a: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800339e: 6193 str r3, [r2, #24] - 80033a0: 4b3e ldr r3, [pc, #248] ; (800349c ) - 80033a2: 699b ldr r3, [r3, #24] - 80033a4: f003 0340 and.w r3, r3, #64 ; 0x40 - 80033a8: 60bb str r3, [r7, #8] - 80033aa: 68bb ldr r3, [r7, #8] + 8003614: 4b41 ldr r3, [pc, #260] ; (800371c ) + 8003616: 699b ldr r3, [r3, #24] + 8003618: 4a40 ldr r2, [pc, #256] ; (800371c ) + 800361a: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800361e: 6193 str r3, [r2, #24] + 8003620: 4b3e ldr r3, [pc, #248] ; (800371c ) + 8003622: 699b ldr r3, [r3, #24] + 8003624: f003 0340 and.w r3, r3, #64 ; 0x40 + 8003628: 60bb str r3, [r7, #8] + 800362a: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOD_CLK_ENABLE(); - 80033ac: 4b3b ldr r3, [pc, #236] ; (800349c ) - 80033ae: 699b ldr r3, [r3, #24] - 80033b0: 4a3a ldr r2, [pc, #232] ; (800349c ) - 80033b2: f043 0320 orr.w r3, r3, #32 - 80033b6: 6193 str r3, [r2, #24] - 80033b8: 4b38 ldr r3, [pc, #224] ; (800349c ) - 80033ba: 699b ldr r3, [r3, #24] - 80033bc: f003 0320 and.w r3, r3, #32 - 80033c0: 607b str r3, [r7, #4] - 80033c2: 687b ldr r3, [r7, #4] + 800362c: 4b3b ldr r3, [pc, #236] ; (800371c ) + 800362e: 699b ldr r3, [r3, #24] + 8003630: 4a3a ldr r2, [pc, #232] ; (800371c ) + 8003632: f043 0320 orr.w r3, r3, #32 + 8003636: 6193 str r3, [r2, #24] + 8003638: 4b38 ldr r3, [pc, #224] ; (800371c ) + 800363a: 699b ldr r3, [r3, #24] + 800363c: f003 0320 and.w r3, r3, #32 + 8003640: 607b str r3, [r7, #4] + 8003642: 687b ldr r3, [r7, #4] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOC, LOCK_A_Pin|LOCK_B_Pin, GPIO_PIN_RESET); - 80033c4: 2200 movs r2, #0 - 80033c6: 2130 movs r1, #48 ; 0x30 - 80033c8: 4835 ldr r0, [pc, #212] ; (80034a0 ) - 80033ca: f003 fd5c bl 8006e86 + 8003644: 2200 movs r2, #0 + 8003646: 2130 movs r1, #48 ; 0x30 + 8003648: 4835 ldr r0, [pc, #212] ; (8003720 ) + 800364a: f003 fd52 bl 80070f2 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(RELAY_CC_GPIO_Port, RELAY_CC_Pin, GPIO_PIN_RESET); - 80033ce: 2200 movs r2, #0 - 80033d0: f44f 4100 mov.w r1, #32768 ; 0x8000 - 80033d4: 4833 ldr r0, [pc, #204] ; (80034a4 ) - 80033d6: f003 fd56 bl 8006e86 + 800364e: 2200 movs r2, #0 + 8003650: f44f 4100 mov.w r1, #32768 ; 0x8000 + 8003654: 4833 ldr r0, [pc, #204] ; (8003724 ) + 8003656: f003 fd4c bl 80070f2 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(USART2_DIR_GPIO_Port, USART2_DIR_Pin, GPIO_PIN_RESET); - 80033da: 2200 movs r2, #0 - 80033dc: 2110 movs r1, #16 - 80033de: 4832 ldr r0, [pc, #200] ; (80034a8 ) - 80033e0: f003 fd51 bl 8006e86 + 800365a: 2200 movs r2, #0 + 800365c: 2110 movs r1, #16 + 800365e: 4832 ldr r0, [pc, #200] ; (8003728 ) + 8003660: f003 fd47 bl 80070f2 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(RELAY_AUX_GPIO_Port, RELAY_AUX_Pin, GPIO_PIN_RESET); - 80033e4: 2200 movs r2, #0 - 80033e6: 2110 movs r1, #16 - 80033e8: 4830 ldr r0, [pc, #192] ; (80034ac ) - 80033ea: f003 fd4c bl 8006e86 + 8003664: 2200 movs r2, #0 + 8003666: 2110 movs r1, #16 + 8003668: 4830 ldr r0, [pc, #192] ; (800372c ) + 800366a: f003 fd42 bl 80070f2 /*Configure GPIO pins : PCPin PCPin */ GPIO_InitStruct.Pin = LOCK_A_Pin|LOCK_B_Pin; - 80033ee: 2330 movs r3, #48 ; 0x30 - 80033f0: 61bb str r3, [r7, #24] + 800366e: 2330 movs r3, #48 ; 0x30 + 8003670: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 80033f2: 2301 movs r3, #1 - 80033f4: 61fb str r3, [r7, #28] + 8003672: 2301 movs r3, #1 + 8003674: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80033f6: 2300 movs r3, #0 - 80033f8: 623b str r3, [r7, #32] + 8003676: 2300 movs r3, #0 + 8003678: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80033fa: 2302 movs r3, #2 - 80033fc: 627b str r3, [r7, #36] ; 0x24 + 800367a: 2302 movs r3, #2 + 800367c: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 80033fe: f107 0318 add.w r3, r7, #24 - 8003402: 4619 mov r1, r3 - 8003404: 4826 ldr r0, [pc, #152] ; (80034a0 ) - 8003406: f003 fba3 bl 8006b50 + 800367e: f107 0318 add.w r3, r7, #24 + 8003682: 4619 mov r1, r3 + 8003684: 4826 ldr r0, [pc, #152] ; (8003720 ) + 8003686: f003 fb99 bl 8006dbc /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = LOCK_FB_Pin; - 800340a: f44f 7300 mov.w r3, #512 ; 0x200 - 800340e: 61bb str r3, [r7, #24] + 800368a: f44f 7300 mov.w r3, #512 ; 0x200 + 800368e: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8003410: 2300 movs r3, #0 - 8003412: 61fb str r3, [r7, #28] + 8003690: 2300 movs r3, #0 + 8003692: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003414: 2300 movs r3, #0 - 8003416: 623b str r3, [r7, #32] + 8003694: 2300 movs r3, #0 + 8003696: 623b str r3, [r7, #32] HAL_GPIO_Init(LOCK_FB_GPIO_Port, &GPIO_InitStruct); - 8003418: f107 0318 add.w r3, r7, #24 - 800341c: 4619 mov r1, r3 - 800341e: 4821 ldr r0, [pc, #132] ; (80034a4 ) - 8003420: f003 fb96 bl 8006b50 + 8003698: f107 0318 add.w r3, r7, #24 + 800369c: 4619 mov r1, r3 + 800369e: 4821 ldr r0, [pc, #132] ; (8003724 ) + 80036a0: f003 fb8c bl 8006dbc /*Configure GPIO pins : PEPin PEPin */ GPIO_InitStruct.Pin = ADDR_0_Pin|ADDR_1_Pin; - 8003424: f44f 6340 mov.w r3, #3072 ; 0xc00 - 8003428: 61bb str r3, [r7, #24] + 80036a4: f44f 6340 mov.w r3, #3072 ; 0xc00 + 80036a8: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 800342a: 2300 movs r3, #0 - 800342c: 61fb str r3, [r7, #28] + 80036aa: 2300 movs r3, #0 + 80036ac: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; - 800342e: 2301 movs r3, #1 - 8003430: 623b str r3, [r7, #32] + 80036ae: 2301 movs r3, #1 + 80036b0: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 8003432: f107 0318 add.w r3, r7, #24 - 8003436: 4619 mov r1, r3 - 8003438: 481a ldr r0, [pc, #104] ; (80034a4 ) - 800343a: f003 fb89 bl 8006b50 + 80036b2: f107 0318 add.w r3, r7, #24 + 80036b6: 4619 mov r1, r3 + 80036b8: 481a ldr r0, [pc, #104] ; (8003724 ) + 80036ba: f003 fb7f bl 8006dbc /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = RELAY_CC_Pin; - 800343e: f44f 4300 mov.w r3, #32768 ; 0x8000 - 8003442: 61bb str r3, [r7, #24] + 80036be: f44f 4300 mov.w r3, #32768 ; 0x8000 + 80036c2: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8003444: 2301 movs r3, #1 - 8003446: 61fb str r3, [r7, #28] + 80036c4: 2301 movs r3, #1 + 80036c6: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003448: 2300 movs r3, #0 - 800344a: 623b str r3, [r7, #32] + 80036c8: 2300 movs r3, #0 + 80036ca: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800344c: 2302 movs r3, #2 - 800344e: 627b str r3, [r7, #36] ; 0x24 + 80036cc: 2302 movs r3, #2 + 80036ce: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(RELAY_CC_GPIO_Port, &GPIO_InitStruct); - 8003450: f107 0318 add.w r3, r7, #24 - 8003454: 4619 mov r1, r3 - 8003456: 4813 ldr r0, [pc, #76] ; (80034a4 ) - 8003458: f003 fb7a bl 8006b50 + 80036d0: f107 0318 add.w r3, r7, #24 + 80036d4: 4619 mov r1, r3 + 80036d6: 4813 ldr r0, [pc, #76] ; (8003724 ) + 80036d8: f003 fb70 bl 8006dbc /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = USART2_DIR_Pin; - 800345c: 2310 movs r3, #16 - 800345e: 61bb str r3, [r7, #24] + 80036dc: 2310 movs r3, #16 + 80036de: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8003460: 2301 movs r3, #1 - 8003462: 61fb str r3, [r7, #28] + 80036e0: 2301 movs r3, #1 + 80036e2: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003464: 2300 movs r3, #0 - 8003466: 623b str r3, [r7, #32] + 80036e4: 2300 movs r3, #0 + 80036e6: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8003468: 2302 movs r3, #2 - 800346a: 627b str r3, [r7, #36] ; 0x24 + 80036e8: 2302 movs r3, #2 + 80036ea: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(USART2_DIR_GPIO_Port, &GPIO_InitStruct); - 800346c: f107 0318 add.w r3, r7, #24 - 8003470: 4619 mov r1, r3 - 8003472: 480d ldr r0, [pc, #52] ; (80034a8 ) - 8003474: f003 fb6c bl 8006b50 + 80036ec: f107 0318 add.w r3, r7, #24 + 80036f0: 4619 mov r1, r3 + 80036f2: 480d ldr r0, [pc, #52] ; (8003728 ) + 80036f4: f003 fb62 bl 8006dbc /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = RELAY_AUX_Pin; - 8003478: 2310 movs r3, #16 - 800347a: 61bb str r3, [r7, #24] + 80036f8: 2310 movs r3, #16 + 80036fa: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 800347c: 2301 movs r3, #1 - 800347e: 61fb str r3, [r7, #28] + 80036fc: 2301 movs r3, #1 + 80036fe: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003480: 2300 movs r3, #0 - 8003482: 623b str r3, [r7, #32] + 8003700: 2300 movs r3, #0 + 8003702: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8003484: 2302 movs r3, #2 - 8003486: 627b str r3, [r7, #36] ; 0x24 + 8003704: 2302 movs r3, #2 + 8003706: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(RELAY_AUX_GPIO_Port, &GPIO_InitStruct); - 8003488: f107 0318 add.w r3, r7, #24 - 800348c: 4619 mov r1, r3 - 800348e: 4807 ldr r0, [pc, #28] ; (80034ac ) - 8003490: f003 fb5e bl 8006b50 + 8003708: f107 0318 add.w r3, r7, #24 + 800370c: 4619 mov r1, r3 + 800370e: 4807 ldr r0, [pc, #28] ; (800372c ) + 8003710: f003 fb54 bl 8006dbc } - 8003494: bf00 nop - 8003496: 3728 adds r7, #40 ; 0x28 - 8003498: 46bd mov sp, r7 - 800349a: bd80 pop {r7, pc} - 800349c: 40021000 .word 0x40021000 - 80034a0: 40011000 .word 0x40011000 - 80034a4: 40011800 .word 0x40011800 - 80034a8: 40011400 .word 0x40011400 - 80034ac: 40010c00 .word 0x40010c00 + 8003714: bf00 nop + 8003716: 3728 adds r7, #40 ; 0x28 + 8003718: 46bd mov sp, r7 + 800371a: bd80 pop {r7, pc} + 800371c: 40021000 .word 0x40021000 + 8003720: 40011000 .word 0x40011000 + 8003724: 40011800 .word 0x40011800 + 8003728: 40011400 .word 0x40011400 + 800372c: 40010c00 .word 0x40010c00 -080034b0 : +08003730 : extern GBT_BCL_t GBT_CurrPower; j_receive_t j_rx; void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) { - 80034b0: b590 push {r4, r7, lr} - 80034b2: b0cd sub sp, #308 ; 0x134 - 80034b4: af40 add r7, sp, #256 ; 0x100 - 80034b6: 6078 str r0, [r7, #4] + 8003730: b590 push {r4, r7, lr} + 8003732: b0cd sub sp, #308 ; 0x134 + 8003734: af40 add r7, sp, #256 ; 0x100 + 8003736: 6078 str r0, [r7, #4] CAN_RxHeaderTypeDef RxHeader; uint8_t RxData[8] = {0,}; - 80034b8: 2300 movs r3, #0 - 80034ba: 60fb str r3, [r7, #12] - 80034bc: 2300 movs r3, #0 - 80034be: 613b str r3, [r7, #16] + 8003738: 2300 movs r3, #0 + 800373a: 60fb str r3, [r7, #12] + 800373c: 2300 movs r3, #0 + 800373e: 613b str r3, [r7, #16] if(HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO0, &RxHeader, RxData) == HAL_OK) - 80034c0: f107 030c add.w r3, r7, #12 - 80034c4: f107 0214 add.w r2, r7, #20 - 80034c8: 2100 movs r1, #0 - 80034ca: 6878 ldr r0, [r7, #4] - 80034cc: f002 fdbb bl 8006046 - 80034d0: 4603 mov r3, r0 - 80034d2: 2b00 cmp r3, #0 - 80034d4: f040 8111 bne.w 80036fa + 8003740: f107 030c add.w r3, r7, #12 + 8003744: f107 0214 add.w r2, r7, #20 + 8003748: 2100 movs r1, #0 + 800374a: 6878 ldr r0, [r7, #4] + 800374c: f002 fdb1 bl 80062b2 + 8003750: 4603 mov r3, r0 + 8003752: 2b00 cmp r3, #0 + 8003754: f040 8111 bne.w 800397a { if((RxHeader.ExtId & 0x00FFFF) == ((J_ID_SE << 8) | J_ID_EV)){ // SA, DA match - 80034d8: 69bb ldr r3, [r7, #24] - 80034da: b29b uxth r3, r3 - 80034dc: f245 62f4 movw r2, #22260 ; 0x56f4 - 80034e0: 4293 cmp r3, r2 - 80034e2: f040 810a bne.w 80036fa + 8003758: 69bb ldr r3, [r7, #24] + 800375a: b29b uxth r3, r3 + 800375c: f245 62f4 movw r2, #22260 ; 0x56f4 + 8003760: 4293 cmp r3, r2 + 8003762: f040 810a bne.w 800397a switch ((RxHeader.ExtId>>8) & 0x00FF00){ - 80034e6: 69bb ldr r3, [r7, #24] - 80034e8: 0a1b lsrs r3, r3, #8 - 80034ea: f403 437f and.w r3, r3, #65280 ; 0xff00 - 80034ee: f5b3 4f6c cmp.w r3, #60416 ; 0xec00 - 80034f2: d013 beq.n 800351c - 80034f4: f5b3 4f6c cmp.w r3, #60416 ; 0xec00 - 80034f8: f200 80ca bhi.w 8003690 - 80034fc: f5b3 4f6b cmp.w r3, #60160 ; 0xeb00 - 8003500: d056 beq.n 80035b0 - 8003502: f5b3 4f6b cmp.w r3, #60160 ; 0xeb00 - 8003506: f200 80c3 bhi.w 8003690 - 800350a: f5b3 5fc8 cmp.w r3, #6400 ; 0x1900 - 800350e: f000 80bb beq.w 8003688 - 8003512: f5b3 5ff0 cmp.w r3, #7680 ; 0x1e00 - 8003516: f000 80b4 beq.w 8003682 - 800351a: e0b9 b.n 8003690 + 8003766: 69bb ldr r3, [r7, #24] + 8003768: 0a1b lsrs r3, r3, #8 + 800376a: f403 437f and.w r3, r3, #65280 ; 0xff00 + 800376e: f5b3 4f6c cmp.w r3, #60416 ; 0xec00 + 8003772: d013 beq.n 800379c + 8003774: f5b3 4f6c cmp.w r3, #60416 ; 0xec00 + 8003778: f200 80ca bhi.w 8003910 + 800377c: f5b3 4f6b cmp.w r3, #60160 ; 0xeb00 + 8003780: d056 beq.n 8003830 + 8003782: f5b3 4f6b cmp.w r3, #60160 ; 0xeb00 + 8003786: f200 80c3 bhi.w 8003910 + 800378a: f5b3 5fc8 cmp.w r3, #6400 ; 0x1900 + 800378e: f000 80bb beq.w 8003908 + 8003792: f5b3 5ff0 cmp.w r3, #7680 ; 0x1e00 + 8003796: f000 80b4 beq.w 8003902 + 800379a: e0b9 b.n 8003910 case 0xEC00: //PGN Connection Management Message if(RxData[0] == 16){ //Request to Send - 800351c: 7b3b ldrb r3, [r7, #12] - 800351e: 2b10 cmp r3, #16 - 8003520: d13d bne.n 800359e + 800379c: 7b3b ldrb r3, [r7, #12] + 800379e: 2b10 cmp r3, #16 + 80037a0: d13d bne.n 800381e /* Set the RTS values */ j_rx.size = RxData[1] | (RxData[2]<<8); - 8003522: 7b7b ldrb r3, [r7, #13] - 8003524: b21a sxth r2, r3 - 8003526: 7bbb ldrb r3, [r7, #14] - 8003528: 021b lsls r3, r3, #8 - 800352a: b21b sxth r3, r3 - 800352c: 4313 orrs r3, r2 - 800352e: b21b sxth r3, r3 - 8003530: b29a uxth r2, r3 - 8003532: 4b74 ldr r3, [pc, #464] ; (8003704 ) - 8003534: f8a3 2104 strh.w r2, [r3, #260] ; 0x104 + 80037a2: 7b7b ldrb r3, [r7, #13] + 80037a4: b21a sxth r2, r3 + 80037a6: 7bbb ldrb r3, [r7, #14] + 80037a8: 021b lsls r3, r3, #8 + 80037aa: b21b sxth r3, r3 + 80037ac: 4313 orrs r3, r2 + 80037ae: b21b sxth r3, r3 + 80037b0: b29a uxth r2, r3 + 80037b2: 4b74 ldr r3, [pc, #464] ; (8003984 ) + 80037b4: f8a3 2104 strh.w r2, [r3, #260] ; 0x104 j_rx.packet = 1; - 8003538: 4b72 ldr r3, [pc, #456] ; (8003704 ) - 800353a: 2201 movs r2, #1 - 800353c: f883 2107 strb.w r2, [r3, #263] ; 0x107 + 80037b8: 4b72 ldr r3, [pc, #456] ; (8003984 ) + 80037ba: 2201 movs r2, #1 + 80037bc: f883 2107 strb.w r2, [r3, #263] ; 0x107 j_rx.packets = RxData[3]; - 8003540: 7bfa ldrb r2, [r7, #15] - 8003542: 4b70 ldr r3, [pc, #448] ; (8003704 ) - 8003544: f883 2106 strb.w r2, [r3, #262] ; 0x106 + 80037c0: 7bfa ldrb r2, [r7, #15] + 80037c2: 4b70 ldr r3, [pc, #448] ; (8003984 ) + 80037c4: f883 2106 strb.w r2, [r3, #262] ; 0x106 j_rx.step = 2; //TODO - 8003548: 4b6e ldr r3, [pc, #440] ; (8003704 ) - 800354a: 2202 movs r2, #2 - 800354c: f883 2108 strb.w r2, [r3, #264] ; 0x108 + 80037c8: 4b6e ldr r3, [pc, #440] ; (8003984 ) + 80037ca: 2202 movs r2, #2 + 80037cc: f883 2108 strb.w r2, [r3, #264] ; 0x108 j_rx.step_cts_remain = j_rx.step; - 8003550: 4b6c ldr r3, [pc, #432] ; (8003704 ) - 8003552: f893 2108 ldrb.w r2, [r3, #264] ; 0x108 - 8003556: 4b6b ldr r3, [pc, #428] ; (8003704 ) - 8003558: f883 2109 strb.w r2, [r3, #265] ; 0x109 + 80037d0: 4b6c ldr r3, [pc, #432] ; (8003984 ) + 80037d2: f893 2108 ldrb.w r2, [r3, #264] ; 0x108 + 80037d6: 4b6b ldr r3, [pc, #428] ; (8003984 ) + 80037d8: f883 2109 strb.w r2, [r3, #265] ; 0x109 j_rx.PGN = (RxData[7] << 16) | (RxData[6] << 8) | RxData[5]; - 800355c: 7cfb ldrb r3, [r7, #19] - 800355e: 041a lsls r2, r3, #16 - 8003560: 7cbb ldrb r3, [r7, #18] - 8003562: 021b lsls r3, r3, #8 - 8003564: 4313 orrs r3, r2 - 8003566: 7c7a ldrb r2, [r7, #17] - 8003568: 4313 orrs r3, r2 - 800356a: 461a mov r2, r3 - 800356c: 4b65 ldr r3, [pc, #404] ; (8003704 ) - 800356e: f8c3 2100 str.w r2, [r3, #256] ; 0x100 + 80037dc: 7cfb ldrb r3, [r7, #19] + 80037de: 041a lsls r2, r3, #16 + 80037e0: 7cbb ldrb r3, [r7, #18] + 80037e2: 021b lsls r3, r3, #8 + 80037e4: 4313 orrs r3, r2 + 80037e6: 7c7a ldrb r2, [r7, #17] + 80037e8: 4313 orrs r3, r2 + 80037ea: 461a mov r2, r3 + 80037ec: 4b65 ldr r3, [pc, #404] ; (8003984 ) + 80037ee: f8c3 2100 str.w r2, [r3, #256] ; 0x100 if(j_rx.size<256) { //TODO: valid check - 8003572: 4b64 ldr r3, [pc, #400] ; (8003704 ) - 8003574: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 - 8003578: 2bff cmp r3, #255 ; 0xff - 800357a: d810 bhi.n 800359e + 80037f2: 4b64 ldr r3, [pc, #400] ; (8003984 ) + 80037f4: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 + 80037f8: 2bff cmp r3, #255 ; 0xff + 80037fa: d810 bhi.n 800381e J_SendCTS(j_rx); - 800357c: 4c61 ldr r4, [pc, #388] ; (8003704 ) - 800357e: 4668 mov r0, sp - 8003580: f104 0310 add.w r3, r4, #16 - 8003584: f44f 7280 mov.w r2, #256 ; 0x100 - 8003588: 4619 mov r1, r3 - 800358a: f005 fce1 bl 8008f50 - 800358e: e894 000f ldmia.w r4, {r0, r1, r2, r3} - 8003592: f000 f8f7 bl 8003784 + 80037fc: 4c61 ldr r4, [pc, #388] ; (8003984 ) + 80037fe: 4668 mov r0, sp + 8003800: f104 0310 add.w r3, r4, #16 + 8003804: f44f 7280 mov.w r2, #256 ; 0x100 + 8003808: 4619 mov r1, r3 + 800380a: f005 fcd7 bl 80091bc + 800380e: e894 000f ldmia.w r4, {r0, r1, r2, r3} + 8003812: f000 f8f7 bl 8003a04 j_rx.state = 1; - 8003596: 4b5b ldr r3, [pc, #364] ; (8003704 ) - 8003598: 2201 movs r2, #1 - 800359a: f883 210a strb.w r2, [r3, #266] ; 0x10a + 8003816: 4b5b ldr r3, [pc, #364] ; (8003984 ) + 8003818: 2201 movs r2, #1 + 800381a: f883 210a strb.w r2, [r3, #266] ; 0x10a } } if(RxData[0] == 255){ //Connection Abort - 800359e: 7b3b ldrb r3, [r7, #12] - 80035a0: 2bff cmp r3, #255 ; 0xff - 80035a2: f040 80a5 bne.w 80036f0 + 800381e: 7b3b ldrb r3, [r7, #12] + 8003820: 2bff cmp r3, #255 ; 0xff + 8003822: f040 80a5 bne.w 8003970 j_rx.state = 0; - 80035a6: 4b57 ldr r3, [pc, #348] ; (8003704 ) - 80035a8: 2200 movs r2, #0 - 80035aa: f883 210a strb.w r2, [r3, #266] ; 0x10a + 8003826: 4b57 ldr r3, [pc, #348] ; (8003984 ) + 8003828: 2200 movs r2, #0 + 800382a: f883 210a strb.w r2, [r3, #266] ; 0x10a * 1CECF456 11 02 01 FF FF 00 02 00 * 1CEB56F4 01 01 01 00 03 46 05 40 * 1CEC56F4 FF FF FF FF FF 00 00 00 */ break; - 80035ae: e09f b.n 80036f0 + 800382e: e09f b.n 8003970 case 0xEB00: //PGN Data Message if(j_rx.state != 1) break; - 80035b0: 4b54 ldr r3, [pc, #336] ; (8003704 ) - 80035b2: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 80035b6: 2b01 cmp r3, #1 - 80035b8: f040 809c bne.w 80036f4 + 8003830: 4b54 ldr r3, [pc, #336] ; (8003984 ) + 8003832: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8003836: 2b01 cmp r3, #1 + 8003838: f040 809c bne.w 8003974 if((RxData[0]>0) && (RxData[0]<35)){ //Array limit check - 80035bc: 7b3b ldrb r3, [r7, #12] - 80035be: 2b00 cmp r3, #0 - 80035c0: f000 809a beq.w 80036f8 - 80035c4: 7b3b ldrb r3, [r7, #12] - 80035c6: 2b22 cmp r3, #34 ; 0x22 - 80035c8: f200 8096 bhi.w 80036f8 + 800383c: 7b3b ldrb r3, [r7, #12] + 800383e: 2b00 cmp r3, #0 + 8003840: f000 809a beq.w 8003978 + 8003844: 7b3b ldrb r3, [r7, #12] + 8003846: 2b22 cmp r3, #34 ; 0x22 + 8003848: f200 8096 bhi.w 8003978 if(j_rx.packet == RxData[0]){ //step check - 80035cc: 4b4d ldr r3, [pc, #308] ; (8003704 ) - 80035ce: f893 2107 ldrb.w r2, [r3, #263] ; 0x107 - 80035d2: 7b3b ldrb r3, [r7, #12] - 80035d4: 429a cmp r2, r3 - 80035d6: f040 808f bne.w 80036f8 + 800384c: 4b4d ldr r3, [pc, #308] ; (8003984 ) + 800384e: f893 2107 ldrb.w r2, [r3, #263] ; 0x107 + 8003852: 7b3b ldrb r3, [r7, #12] + 8003854: 429a cmp r2, r3 + 8003856: f040 808f bne.w 8003978 memcpy (&j_rx.data[(RxData[0]-1)*7], &RxData[1],7); - 80035da: 7b3b ldrb r3, [r7, #12] - 80035dc: 1e5a subs r2, r3, #1 - 80035de: 4613 mov r3, r2 - 80035e0: 00db lsls r3, r3, #3 - 80035e2: 1a9b subs r3, r3, r2 - 80035e4: 4a47 ldr r2, [pc, #284] ; (8003704 ) - 80035e6: 1898 adds r0, r3, r2 - 80035e8: f107 030c add.w r3, r7, #12 - 80035ec: 3301 adds r3, #1 - 80035ee: 2207 movs r2, #7 - 80035f0: 4619 mov r1, r3 - 80035f2: f005 fcad bl 8008f50 + 800385a: 7b3b ldrb r3, [r7, #12] + 800385c: 1e5a subs r2, r3, #1 + 800385e: 4613 mov r3, r2 + 8003860: 00db lsls r3, r3, #3 + 8003862: 1a9b subs r3, r3, r2 + 8003864: 4a47 ldr r2, [pc, #284] ; (8003984 ) + 8003866: 1898 adds r0, r3, r2 + 8003868: f107 030c add.w r3, r7, #12 + 800386c: 3301 adds r3, #1 + 800386e: 2207 movs r2, #7 + 8003870: 4619 mov r1, r3 + 8003872: f005 fca3 bl 80091bc j_rx.packet++; - 80035f6: 4b43 ldr r3, [pc, #268] ; (8003704 ) - 80035f8: f893 3107 ldrb.w r3, [r3, #263] ; 0x107 - 80035fc: 3301 adds r3, #1 - 80035fe: b2da uxtb r2, r3 - 8003600: 4b40 ldr r3, [pc, #256] ; (8003704 ) - 8003602: f883 2107 strb.w r2, [r3, #263] ; 0x107 + 8003876: 4b43 ldr r3, [pc, #268] ; (8003984 ) + 8003878: f893 3107 ldrb.w r3, [r3, #263] ; 0x107 + 800387c: 3301 adds r3, #1 + 800387e: b2da uxtb r2, r3 + 8003880: 4b40 ldr r3, [pc, #256] ; (8003984 ) + 8003882: f883 2107 strb.w r2, [r3, #263] ; 0x107 if(j_rx.packet > j_rx.packets){ - 8003606: 4b3f ldr r3, [pc, #252] ; (8003704 ) - 8003608: f893 2107 ldrb.w r2, [r3, #263] ; 0x107 - 800360c: 4b3d ldr r3, [pc, #244] ; (8003704 ) - 800360e: f893 3106 ldrb.w r3, [r3, #262] ; 0x106 - 8003612: 429a cmp r2, r3 - 8003614: d911 bls.n 800363a + 8003886: 4b3f ldr r3, [pc, #252] ; (8003984 ) + 8003888: f893 2107 ldrb.w r2, [r3, #263] ; 0x107 + 800388c: 4b3d ldr r3, [pc, #244] ; (8003984 ) + 800388e: f893 3106 ldrb.w r3, [r3, #262] ; 0x106 + 8003892: 429a cmp r2, r3 + 8003894: d911 bls.n 80038ba //End of transmission J_SendACK(j_rx); - 8003616: 4c3b ldr r4, [pc, #236] ; (8003704 ) - 8003618: 4668 mov r0, sp - 800361a: f104 0310 add.w r3, r4, #16 - 800361e: f44f 7280 mov.w r2, #256 ; 0x100 - 8003622: 4619 mov r1, r3 - 8003624: f005 fc94 bl 8008f50 - 8003628: e894 000f ldmia.w r4, {r0, r1, r2, r3} - 800362c: f000 f8f0 bl 8003810 + 8003896: 4c3b ldr r4, [pc, #236] ; (8003984 ) + 8003898: 4668 mov r0, sp + 800389a: f104 0310 add.w r3, r4, #16 + 800389e: f44f 7280 mov.w r2, #256 ; 0x100 + 80038a2: 4619 mov r1, r3 + 80038a4: f005 fc8a bl 80091bc + 80038a8: e894 000f ldmia.w r4, {r0, r1, r2, r3} + 80038ac: f000 f8f0 bl 8003a90 j_rx.state = 2; - 8003630: 4b34 ldr r3, [pc, #208] ; (8003704 ) - 8003632: 2202 movs r2, #2 - 8003634: f883 210a strb.w r2, [r3, #266] ; 0x10a + 80038b0: 4b34 ldr r3, [pc, #208] ; (8003984 ) + 80038b2: 2202 movs r2, #2 + 80038b4: f883 210a strb.w r2, [r3, #266] ; 0x10a j_rx.step_cts_remain = 2; } } } } break; - 8003638: e05e b.n 80036f8 + 80038b8: e05e b.n 8003978 if(j_rx.step_cts_remain > 0) j_rx.step_cts_remain--; - 800363a: 4b32 ldr r3, [pc, #200] ; (8003704 ) - 800363c: f893 3109 ldrb.w r3, [r3, #265] ; 0x109 - 8003640: 2b00 cmp r3, #0 - 8003642: d007 beq.n 8003654 - 8003644: 4b2f ldr r3, [pc, #188] ; (8003704 ) - 8003646: f893 3109 ldrb.w r3, [r3, #265] ; 0x109 - 800364a: 3b01 subs r3, #1 - 800364c: b2da uxtb r2, r3 - 800364e: 4b2d ldr r3, [pc, #180] ; (8003704 ) - 8003650: f883 2109 strb.w r2, [r3, #265] ; 0x109 + 80038ba: 4b32 ldr r3, [pc, #200] ; (8003984 ) + 80038bc: f893 3109 ldrb.w r3, [r3, #265] ; 0x109 + 80038c0: 2b00 cmp r3, #0 + 80038c2: d007 beq.n 80038d4 + 80038c4: 4b2f ldr r3, [pc, #188] ; (8003984 ) + 80038c6: f893 3109 ldrb.w r3, [r3, #265] ; 0x109 + 80038ca: 3b01 subs r3, #1 + 80038cc: b2da uxtb r2, r3 + 80038ce: 4b2d ldr r3, [pc, #180] ; (8003984 ) + 80038d0: f883 2109 strb.w r2, [r3, #265] ; 0x109 if(j_rx.step_cts_remain == 0){ - 8003654: 4b2b ldr r3, [pc, #172] ; (8003704 ) - 8003656: f893 3109 ldrb.w r3, [r3, #265] ; 0x109 - 800365a: 2b00 cmp r3, #0 - 800365c: d14c bne.n 80036f8 + 80038d4: 4b2b ldr r3, [pc, #172] ; (8003984 ) + 80038d6: f893 3109 ldrb.w r3, [r3, #265] ; 0x109 + 80038da: 2b00 cmp r3, #0 + 80038dc: d14c bne.n 8003978 J_SendCTS(j_rx); - 800365e: 4c29 ldr r4, [pc, #164] ; (8003704 ) - 8003660: 4668 mov r0, sp - 8003662: f104 0310 add.w r3, r4, #16 - 8003666: f44f 7280 mov.w r2, #256 ; 0x100 - 800366a: 4619 mov r1, r3 - 800366c: f005 fc70 bl 8008f50 - 8003670: e894 000f ldmia.w r4, {r0, r1, r2, r3} - 8003674: f000 f886 bl 8003784 + 80038de: 4c29 ldr r4, [pc, #164] ; (8003984 ) + 80038e0: 4668 mov r0, sp + 80038e2: f104 0310 add.w r3, r4, #16 + 80038e6: f44f 7280 mov.w r2, #256 ; 0x100 + 80038ea: 4619 mov r1, r3 + 80038ec: f005 fc66 bl 80091bc + 80038f0: e894 000f ldmia.w r4, {r0, r1, r2, r3} + 80038f4: f000 f886 bl 8003a04 j_rx.step_cts_remain = 2; - 8003678: 4b22 ldr r3, [pc, #136] ; (8003704 ) - 800367a: 2202 movs r2, #2 - 800367c: f883 2109 strb.w r2, [r3, #265] ; 0x109 + 80038f8: 4b22 ldr r3, [pc, #136] ; (8003984 ) + 80038fa: 2202 movs r2, #2 + 80038fc: f883 2109 strb.w r2, [r3, #265] ; 0x109 break; - 8003680: e03a b.n 80036f8 + 8003900: e03a b.n 8003978 case 0x1E00: //PGN BEM (ERROR) //Error force stop GBT_ForceStop(); - 8003682: f7fe fd4b bl 800211c + 8003902: f7fe fd2f bl 8002364 break; - 8003686: e038 b.n 80036fa + 8003906: e038 b.n 800397a case 0x1900: //PGN BST (STOP) //Normal stop GBT_Stop(GBT_CST_BMS_ACTIVELY_SUSPENDS); - 8003688: 481f ldr r0, [pc, #124] ; (8003708 ) - 800368a: f7fe fd21 bl 80020d0 + 8003908: 481f ldr r0, [pc, #124] ; (8003988 ) + 800390a: f7fe fd05 bl 8002318 break; - 800368e: e034 b.n 80036fa + 800390e: e034 b.n 800397a default: if(j_rx.state == 0){//TODO protections - 8003690: 4b1c ldr r3, [pc, #112] ; (8003704 ) - 8003692: f893 310a ldrb.w r3, [r3, #266] ; 0x10a - 8003696: 2b00 cmp r3, #0 - 8003698: d12f bne.n 80036fa + 8003910: 4b1c ldr r3, [pc, #112] ; (8003984 ) + 8003912: f893 310a ldrb.w r3, [r3, #266] ; 0x10a + 8003916: 2b00 cmp r3, #0 + 8003918: d12f bne.n 800397a //Short packet j_rx.size = RxHeader.DLC; - 800369a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800369c: b29a uxth r2, r3 - 800369e: 4b19 ldr r3, [pc, #100] ; (8003704 ) - 80036a0: f8a3 2104 strh.w r2, [r3, #260] ; 0x104 + 800391a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800391c: b29a uxth r2, r3 + 800391e: 4b19 ldr r3, [pc, #100] ; (8003984 ) + 8003920: f8a3 2104 strh.w r2, [r3, #260] ; 0x104 j_rx.packet = 1; - 80036a4: 4b17 ldr r3, [pc, #92] ; (8003704 ) - 80036a6: 2201 movs r2, #1 - 80036a8: f883 2107 strb.w r2, [r3, #263] ; 0x107 + 8003924: 4b17 ldr r3, [pc, #92] ; (8003984 ) + 8003926: 2201 movs r2, #1 + 8003928: f883 2107 strb.w r2, [r3, #263] ; 0x107 j_rx.packets = 1; - 80036ac: 4b15 ldr r3, [pc, #84] ; (8003704 ) - 80036ae: 2201 movs r2, #1 - 80036b0: f883 2106 strb.w r2, [r3, #262] ; 0x106 + 800392c: 4b15 ldr r3, [pc, #84] ; (8003984 ) + 800392e: 2201 movs r2, #1 + 8003930: f883 2106 strb.w r2, [r3, #262] ; 0x106 j_rx.step = 1; - 80036b4: 4b13 ldr r3, [pc, #76] ; (8003704 ) - 80036b6: 2201 movs r2, #1 - 80036b8: f883 2108 strb.w r2, [r3, #264] ; 0x108 + 8003934: 4b13 ldr r3, [pc, #76] ; (8003984 ) + 8003936: 2201 movs r2, #1 + 8003938: f883 2108 strb.w r2, [r3, #264] ; 0x108 j_rx.step_cts_remain = 0; - 80036bc: 4b11 ldr r3, [pc, #68] ; (8003704 ) - 80036be: 2200 movs r2, #0 - 80036c0: f883 2109 strb.w r2, [r3, #265] ; 0x109 + 800393c: 4b11 ldr r3, [pc, #68] ; (8003984 ) + 800393e: 2200 movs r2, #0 + 8003940: f883 2109 strb.w r2, [r3, #265] ; 0x109 j_rx.PGN = (RxHeader.ExtId>>8) & 0x00FF00; - 80036c4: 69bb ldr r3, [r7, #24] - 80036c6: 0a1b lsrs r3, r3, #8 - 80036c8: f403 437f and.w r3, r3, #65280 ; 0xff00 - 80036cc: 4a0d ldr r2, [pc, #52] ; (8003704 ) - 80036ce: f8c2 3100 str.w r3, [r2, #256] ; 0x100 + 8003944: 69bb ldr r3, [r7, #24] + 8003946: 0a1b lsrs r3, r3, #8 + 8003948: f403 437f and.w r3, r3, #65280 ; 0xff00 + 800394c: 4a0d ldr r2, [pc, #52] ; (8003984 ) + 800394e: f8c2 3100 str.w r3, [r2, #256] ; 0x100 j_rx.state = 2; - 80036d2: 4b0c ldr r3, [pc, #48] ; (8003704 ) - 80036d4: 2202 movs r2, #2 - 80036d6: f883 210a strb.w r2, [r3, #266] ; 0x10a + 8003952: 4b0c ldr r3, [pc, #48] ; (8003984 ) + 8003954: 2202 movs r2, #2 + 8003956: f883 210a strb.w r2, [r3, #266] ; 0x10a memcpy (j_rx.data, RxData, j_rx.size); - 80036da: 4b0a ldr r3, [pc, #40] ; (8003704 ) - 80036dc: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 - 80036e0: 461a mov r2, r3 - 80036e2: f107 030c add.w r3, r7, #12 - 80036e6: 4619 mov r1, r3 - 80036e8: 4806 ldr r0, [pc, #24] ; (8003704 ) - 80036ea: f005 fc31 bl 8008f50 + 800395a: 4b0a ldr r3, [pc, #40] ; (8003984 ) + 800395c: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 + 8003960: 461a mov r2, r3 + 8003962: f107 030c add.w r3, r7, #12 + 8003966: 4619 mov r1, r3 + 8003968: 4806 ldr r0, [pc, #24] ; (8003984 ) + 800396a: f005 fc27 bl 80091bc } } } } } - 80036ee: e004 b.n 80036fa + 800396e: e004 b.n 800397a break; - 80036f0: bf00 nop - 80036f2: e002 b.n 80036fa + 8003970: bf00 nop + 8003972: e002 b.n 800397a if(j_rx.state != 1) break; - 80036f4: bf00 nop - 80036f6: e000 b.n 80036fa + 8003974: bf00 nop + 8003976: e000 b.n 800397a break; - 80036f8: bf00 nop + 8003978: bf00 nop } - 80036fa: bf00 nop - 80036fc: 3734 adds r7, #52 ; 0x34 - 80036fe: 46bd mov sp, r7 - 8003700: bd90 pop {r4, r7, pc} - 8003702: bf00 nop - 8003704: 200004c0 .word 0x200004c0 - 8003708: 4000f0f0 .word 0x4000f0f0 + 800397a: bf00 nop + 800397c: 3734 adds r7, #52 ; 0x34 + 800397e: 46bd mov sp, r7 + 8003980: bd90 pop {r4, r7, pc} + 8003982: bf00 nop + 8003984: 200004c0 .word 0x200004c0 + 8003988: 4000f0f0 .word 0x4000f0f0 -0800370c : +0800398c : void GBT_CAN_ReInit(){ - 800370c: b580 push {r7, lr} - 800370e: af00 add r7, sp, #0 + 800398c: b580 push {r7, lr} + 800398e: af00 add r7, sp, #0 HAL_CAN_Stop(&hcan1); - 8003710: 4807 ldr r0, [pc, #28] ; (8003730 ) - 8003712: f002 fb41 bl 8005d98 + 8003990: 4807 ldr r0, [pc, #28] ; (80039b0 ) + 8003992: f002 fb37 bl 8006004 MX_CAN1_Init(); - 8003716: f7fd ffdf bl 80016d8 + 8003996: f7fd ffc3 bl 8001920 HAL_CAN_Start(&hcan1); - 800371a: 4805 ldr r0, [pc, #20] ; (8003730 ) - 800371c: f002 faf8 bl 8005d10 + 800399a: 4805 ldr r0, [pc, #20] ; (80039b0 ) + 800399c: f002 faee bl 8005f7c HAL_CAN_ActivateNotification(&hcan1, CAN_IT_RX_FIFO0_MSG_PENDING); - 8003720: 2102 movs r1, #2 - 8003722: 4803 ldr r0, [pc, #12] ; (8003730 ) - 8003724: f002 fda0 bl 8006268 + 80039a0: 2102 movs r1, #2 + 80039a2: 4803 ldr r0, [pc, #12] ; (80039b0 ) + 80039a4: f002 fd96 bl 80064d4 GBT_CAN_FilterInit(); - 8003728: f000 f8ac bl 8003884 + 80039a8: f000 f8ac bl 8003b04 } - 800372c: bf00 nop - 800372e: bd80 pop {r7, pc} - 8003730: 20000290 .word 0x20000290 + 80039ac: bf00 nop + 80039ae: bd80 pop {r7, pc} + 80039b0: 20000290 .word 0x20000290 -08003734 : +080039b4 : void J_SendPacket(uint32_t PGN, uint8_t pri, uint8_t DLC, uint8_t *data){ - 8003734: b580 push {r7, lr} - 8003736: b08c sub sp, #48 ; 0x30 - 8003738: af00 add r7, sp, #0 - 800373a: 60f8 str r0, [r7, #12] - 800373c: 607b str r3, [r7, #4] - 800373e: 460b mov r3, r1 - 8003740: 72fb strb r3, [r7, #11] - 8003742: 4613 mov r3, r2 - 8003744: 72bb strb r3, [r7, #10] + 80039b4: b580 push {r7, lr} + 80039b6: b08c sub sp, #48 ; 0x30 + 80039b8: af00 add r7, sp, #0 + 80039ba: 60f8 str r0, [r7, #12] + 80039bc: 607b str r3, [r7, #4] + 80039be: 460b mov r3, r1 + 80039c0: 72fb strb r3, [r7, #11] + 80039c2: 4613 mov r3, r2 + 80039c4: 72bb strb r3, [r7, #10] CAN_TxHeaderTypeDef tx_header; uint32_t tx_mailbox; tx_header.ExtId = (pri << 26) | (PGN << 8) | (J_ID_EV << 8) | J_ID_SE; - 8003746: 7afb ldrb r3, [r7, #11] - 8003748: 069b lsls r3, r3, #26 - 800374a: 461a mov r2, r3 - 800374c: 68fb ldr r3, [r7, #12] - 800374e: 021b lsls r3, r3, #8 - 8003750: 4313 orrs r3, r2 - 8003752: f443 4374 orr.w r3, r3, #62464 ; 0xf400 - 8003756: f043 0356 orr.w r3, r3, #86 ; 0x56 - 800375a: 61fb str r3, [r7, #28] + 80039c6: 7afb ldrb r3, [r7, #11] + 80039c8: 069b lsls r3, r3, #26 + 80039ca: 461a mov r2, r3 + 80039cc: 68fb ldr r3, [r7, #12] + 80039ce: 021b lsls r3, r3, #8 + 80039d0: 4313 orrs r3, r2 + 80039d2: f443 4374 orr.w r3, r3, #62464 ; 0xf400 + 80039d6: f043 0356 orr.w r3, r3, #86 ; 0x56 + 80039da: 61fb str r3, [r7, #28] tx_header.RTR = CAN_RTR_DATA; - 800375c: 2300 movs r3, #0 - 800375e: 627b str r3, [r7, #36] ; 0x24 + 80039dc: 2300 movs r3, #0 + 80039de: 627b str r3, [r7, #36] ; 0x24 tx_header.IDE = CAN_ID_EXT; - 8003760: 2304 movs r3, #4 - 8003762: 623b str r3, [r7, #32] + 80039e0: 2304 movs r3, #4 + 80039e2: 623b str r3, [r7, #32] tx_header.DLC = DLC; - 8003764: 7abb ldrb r3, [r7, #10] - 8003766: 62bb str r3, [r7, #40] ; 0x28 + 80039e4: 7abb ldrb r3, [r7, #10] + 80039e6: 62bb str r3, [r7, #40] ; 0x28 HAL_CAN_AddTxMessage(&hcan1, &tx_header, data, &tx_mailbox); - 8003768: f107 0314 add.w r3, r7, #20 - 800376c: f107 0118 add.w r1, r7, #24 - 8003770: 687a ldr r2, [r7, #4] - 8003772: 4803 ldr r0, [pc, #12] ; (8003780 ) - 8003774: f002 fb59 bl 8005e2a + 80039e8: f107 0314 add.w r3, r7, #20 + 80039ec: f107 0118 add.w r1, r7, #24 + 80039f0: 687a ldr r2, [r7, #4] + 80039f2: 4803 ldr r0, [pc, #12] ; (8003a00 ) + 80039f4: f002 fb4f bl 8006096 //HAL_Delay(2); } - 8003778: bf00 nop - 800377a: 3730 adds r7, #48 ; 0x30 - 800377c: 46bd mov sp, r7 - 800377e: bd80 pop {r7, pc} - 8003780: 20000290 .word 0x20000290 + 80039f8: bf00 nop + 80039fa: 3730 adds r7, #48 ; 0x30 + 80039fc: 46bd mov sp, r7 + 80039fe: bd80 pop {r7, pc} + 8003a00: 20000290 .word 0x20000290 -08003784 : +08003a04 : //void J_SendPacketLong(){ // //TODO (no need) //} // J1939 sequence Clear To Send packet void J_SendCTS(j_receive_t rx){ - 8003784: b084 sub sp, #16 - 8003786: b580 push {r7, lr} - 8003788: b082 sub sp, #8 - 800378a: af00 add r7, sp, #0 - 800378c: f107 0c10 add.w ip, r7, #16 - 8003790: e88c 000f stmia.w ip, {r0, r1, r2, r3} + 8003a04: b084 sub sp, #16 + 8003a06: b580 push {r7, lr} + 8003a08: b082 sub sp, #8 + 8003a0a: af00 add r7, sp, #0 + 8003a0c: f107 0c10 add.w ip, r7, #16 + 8003a10: e88c 000f stmia.w ip, {r0, r1, r2, r3} //if(rx.packets <= rx.packet) return; TODO uint8_t data[8]; data[0] = 17; //CONTROL_BYTE_TP_CM_CTS - 8003794: 2311 movs r3, #17 - 8003796: 703b strb r3, [r7, #0] + 8003a14: 2311 movs r3, #17 + 8003a16: 703b strb r3, [r7, #0] data[1] = rx.step;//total_number_of_packages_transmitted - 8003798: f897 3118 ldrb.w r3, [r7, #280] ; 0x118 - 800379c: 707b strb r3, [r7, #1] + 8003a18: f897 3118 ldrb.w r3, [r7, #280] ; 0x118 + 8003a1c: 707b strb r3, [r7, #1] if (rx.step > (rx.packets - rx.packet+1)) data[1] = rx.packets - rx.packet+1; - 800379e: f897 3118 ldrb.w r3, [r7, #280] ; 0x118 - 80037a2: 461a mov r2, r3 - 80037a4: f897 3116 ldrb.w r3, [r7, #278] ; 0x116 - 80037a8: 4619 mov r1, r3 - 80037aa: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80037ae: 1acb subs r3, r1, r3 - 80037b0: 3301 adds r3, #1 - 80037b2: 429a cmp r2, r3 - 80037b4: dd08 ble.n 80037c8 - 80037b6: f897 2116 ldrb.w r2, [r7, #278] ; 0x116 - 80037ba: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80037be: 1ad3 subs r3, r2, r3 - 80037c0: b2db uxtb r3, r3 - 80037c2: 3301 adds r3, #1 - 80037c4: b2db uxtb r3, r3 - 80037c6: 707b strb r3, [r7, #1] + 8003a1e: f897 3118 ldrb.w r3, [r7, #280] ; 0x118 + 8003a22: 461a mov r2, r3 + 8003a24: f897 3116 ldrb.w r3, [r7, #278] ; 0x116 + 8003a28: 4619 mov r1, r3 + 8003a2a: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 + 8003a2e: 1acb subs r3, r1, r3 + 8003a30: 3301 adds r3, #1 + 8003a32: 429a cmp r2, r3 + 8003a34: dd08 ble.n 8003a48 + 8003a36: f897 2116 ldrb.w r2, [r7, #278] ; 0x116 + 8003a3a: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 + 8003a3e: 1ad3 subs r3, r2, r3 + 8003a40: b2db uxtb r3, r3 + 8003a42: 3301 adds r3, #1 + 8003a44: b2db uxtb r3, r3 + 8003a46: 707b strb r3, [r7, #1] data[2] = rx.packet;//next_packet_number_transmitted - 80037c8: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 - 80037cc: 70bb strb r3, [r7, #2] + 8003a48: f897 3117 ldrb.w r3, [r7, #279] ; 0x117 + 8003a4c: 70bb strb r3, [r7, #2] data[3] = 0xFF; /* Reserved */ - 80037ce: 23ff movs r3, #255 ; 0xff - 80037d0: 70fb strb r3, [r7, #3] + 8003a4e: 23ff movs r3, #255 ; 0xff + 8003a50: 70fb strb r3, [r7, #3] data[4] = 0xFF; - 80037d2: 23ff movs r3, #255 ; 0xff - 80037d4: 713b strb r3, [r7, #4] + 8003a52: 23ff movs r3, #255 ; 0xff + 8003a54: 713b strb r3, [r7, #4] data[5] = rx.PGN; - 80037d6: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 80037da: b2db uxtb r3, r3 - 80037dc: 717b strb r3, [r7, #5] + 8003a56: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 + 8003a5a: b2db uxtb r3, r3 + 8003a5c: 717b strb r3, [r7, #5] data[6] = rx.PGN >> 8; - 80037de: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 80037e2: 0a1b lsrs r3, r3, #8 - 80037e4: b2db uxtb r3, r3 - 80037e6: 71bb strb r3, [r7, #6] + 8003a5e: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 + 8003a62: 0a1b lsrs r3, r3, #8 + 8003a64: b2db uxtb r3, r3 + 8003a66: 71bb strb r3, [r7, #6] data[7] = rx.PGN >> 16; - 80037e8: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 80037ec: 0c1b lsrs r3, r3, #16 - 80037ee: b2db uxtb r3, r3 - 80037f0: 71fb strb r3, [r7, #7] + 8003a68: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 + 8003a6c: 0c1b lsrs r3, r3, #16 + 8003a6e: b2db uxtb r3, r3 + 8003a70: 71fb strb r3, [r7, #7] J_SendPacket(0x00EC00, 7, 8, data); - 80037f2: 463b mov r3, r7 - 80037f4: 2208 movs r2, #8 - 80037f6: 2107 movs r1, #7 - 80037f8: f44f 406c mov.w r0, #60416 ; 0xec00 - 80037fc: f7ff ff9a bl 8003734 + 8003a72: 463b mov r3, r7 + 8003a74: 2208 movs r2, #8 + 8003a76: 2107 movs r1, #7 + 8003a78: f44f 406c mov.w r0, #60416 ; 0xec00 + 8003a7c: f7ff ff9a bl 80039b4 } - 8003800: bf00 nop - 8003802: 3708 adds r7, #8 - 8003804: 46bd mov sp, r7 - 8003806: e8bd 4080 ldmia.w sp!, {r7, lr} - 800380a: b004 add sp, #16 - 800380c: 4770 bx lr + 8003a80: bf00 nop + 8003a82: 3708 adds r7, #8 + 8003a84: 46bd mov sp, r7 + 8003a86: e8bd 4080 ldmia.w sp!, {r7, lr} + 8003a8a: b004 add sp, #16 + 8003a8c: 4770 bx lr ... -08003810 : +08003a90 : // J1939 sequence ACK packet void J_SendACK(j_receive_t rx){//uint32_t PGN, uint8_t step, uint8_t packet){ - 8003810: b084 sub sp, #16 - 8003812: b580 push {r7, lr} - 8003814: b082 sub sp, #8 - 8003816: af00 add r7, sp, #0 - 8003818: f107 0c10 add.w ip, r7, #16 - 800381c: e88c 000f stmia.w ip, {r0, r1, r2, r3} + 8003a90: b084 sub sp, #16 + 8003a92: b580 push {r7, lr} + 8003a94: b082 sub sp, #8 + 8003a96: af00 add r7, sp, #0 + 8003a98: f107 0c10 add.w ip, r7, #16 + 8003a9c: e88c 000f stmia.w ip, {r0, r1, r2, r3} uint8_t data[8]; data[0] = 19; //CONTROL_BYTE_TP_CM_ACK - 8003820: 2313 movs r3, #19 - 8003822: 703b strb r3, [r7, #0] + 8003aa0: 2313 movs r3, #19 + 8003aa2: 703b strb r3, [r7, #0] data[1] = j_rx.size; - 8003824: 4b16 ldr r3, [pc, #88] ; (8003880 ) - 8003826: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 - 800382a: b2db uxtb r3, r3 - 800382c: 707b strb r3, [r7, #1] + 8003aa4: 4b16 ldr r3, [pc, #88] ; (8003b00 ) + 8003aa6: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 + 8003aaa: b2db uxtb r3, r3 + 8003aac: 707b strb r3, [r7, #1] data[2] = j_rx.size>>8; - 800382e: 4b14 ldr r3, [pc, #80] ; (8003880 ) - 8003830: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 - 8003834: 0a1b lsrs r3, r3, #8 - 8003836: b29b uxth r3, r3 - 8003838: b2db uxtb r3, r3 - 800383a: 70bb strb r3, [r7, #2] + 8003aae: 4b14 ldr r3, [pc, #80] ; (8003b00 ) + 8003ab0: f8b3 3104 ldrh.w r3, [r3, #260] ; 0x104 + 8003ab4: 0a1b lsrs r3, r3, #8 + 8003ab6: b29b uxth r3, r3 + 8003ab8: b2db uxtb r3, r3 + 8003aba: 70bb strb r3, [r7, #2] data[3] = j_rx.packets; - 800383c: 4b10 ldr r3, [pc, #64] ; (8003880 ) - 800383e: f893 3106 ldrb.w r3, [r3, #262] ; 0x106 - 8003842: 70fb strb r3, [r7, #3] + 8003abc: 4b10 ldr r3, [pc, #64] ; (8003b00 ) + 8003abe: f893 3106 ldrb.w r3, [r3, #262] ; 0x106 + 8003ac2: 70fb strb r3, [r7, #3] data[4] = 0xFF;//TODO - 8003844: 23ff movs r3, #255 ; 0xff - 8003846: 713b strb r3, [r7, #4] + 8003ac4: 23ff movs r3, #255 ; 0xff + 8003ac6: 713b strb r3, [r7, #4] data[5] = rx.PGN; - 8003848: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800384c: b2db uxtb r3, r3 - 800384e: 717b strb r3, [r7, #5] + 8003ac8: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 + 8003acc: b2db uxtb r3, r3 + 8003ace: 717b strb r3, [r7, #5] data[6] = rx.PGN >> 8; - 8003850: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 8003854: 0a1b lsrs r3, r3, #8 - 8003856: b2db uxtb r3, r3 - 8003858: 71bb strb r3, [r7, #6] + 8003ad0: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 + 8003ad4: 0a1b lsrs r3, r3, #8 + 8003ad6: b2db uxtb r3, r3 + 8003ad8: 71bb strb r3, [r7, #6] data[7] = rx.PGN >> 16; - 800385a: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 - 800385e: 0c1b lsrs r3, r3, #16 - 8003860: b2db uxtb r3, r3 - 8003862: 71fb strb r3, [r7, #7] + 8003ada: f8d7 3110 ldr.w r3, [r7, #272] ; 0x110 + 8003ade: 0c1b lsrs r3, r3, #16 + 8003ae0: b2db uxtb r3, r3 + 8003ae2: 71fb strb r3, [r7, #7] J_SendPacket(0x00EC00, 7, 8, data); - 8003864: 463b mov r3, r7 - 8003866: 2208 movs r2, #8 - 8003868: 2107 movs r1, #7 - 800386a: f44f 406c mov.w r0, #60416 ; 0xec00 - 800386e: f7ff ff61 bl 8003734 + 8003ae4: 463b mov r3, r7 + 8003ae6: 2208 movs r2, #8 + 8003ae8: 2107 movs r1, #7 + 8003aea: f44f 406c mov.w r0, #60416 ; 0xec00 + 8003aee: f7ff ff61 bl 80039b4 } - 8003872: bf00 nop - 8003874: 3708 adds r7, #8 - 8003876: 46bd mov sp, r7 - 8003878: e8bd 4080 ldmia.w sp!, {r7, lr} - 800387c: b004 add sp, #16 - 800387e: 4770 bx lr - 8003880: 200004c0 .word 0x200004c0 + 8003af2: bf00 nop + 8003af4: 3708 adds r7, #8 + 8003af6: 46bd mov sp, r7 + 8003af8: e8bd 4080 ldmia.w sp!, {r7, lr} + 8003afc: b004 add sp, #16 + 8003afe: 4770 bx lr + 8003b00: 200004c0 .word 0x200004c0 -08003884 : +08003b04 : void GBT_CAN_FilterInit(){ - 8003884: b580 push {r7, lr} - 8003886: b08a sub sp, #40 ; 0x28 - 8003888: af00 add r7, sp, #0 + 8003b04: b580 push {r7, lr} + 8003b06: b08a sub sp, #40 ; 0x28 + 8003b08: af00 add r7, sp, #0 CAN_FilterTypeDef sFilterConfig; sFilterConfig.FilterBank = 0; - 800388a: 2300 movs r3, #0 - 800388c: 617b str r3, [r7, #20] + 8003b0a: 2300 movs r3, #0 + 8003b0c: 617b str r3, [r7, #20] sFilterConfig.FilterMode = CAN_FILTERMODE_IDMASK; - 800388e: 2300 movs r3, #0 - 8003890: 61bb str r3, [r7, #24] + 8003b0e: 2300 movs r3, #0 + 8003b10: 61bb str r3, [r7, #24] sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT; - 8003892: 2301 movs r3, #1 - 8003894: 61fb str r3, [r7, #28] + 8003b12: 2301 movs r3, #1 + 8003b14: 61fb str r3, [r7, #28] sFilterConfig.FilterIdHigh = 0x0000; - 8003896: 2300 movs r3, #0 - 8003898: 603b str r3, [r7, #0] + 8003b16: 2300 movs r3, #0 + 8003b18: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = 0x0000; - 800389a: 2300 movs r3, #0 - 800389c: 607b str r3, [r7, #4] + 8003b1a: 2300 movs r3, #0 + 8003b1c: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; - 800389e: 2300 movs r3, #0 - 80038a0: 60bb str r3, [r7, #8] + 8003b1e: 2300 movs r3, #0 + 8003b20: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = 0x0000; - 80038a2: 2300 movs r3, #0 - 80038a4: 60fb str r3, [r7, #12] + 8003b22: 2300 movs r3, #0 + 8003b24: 60fb str r3, [r7, #12] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0; - 80038a6: 2300 movs r3, #0 - 80038a8: 613b str r3, [r7, #16] + 8003b26: 2300 movs r3, #0 + 8003b28: 613b str r3, [r7, #16] sFilterConfig.FilterActivation = ENABLE; - 80038aa: 2301 movs r3, #1 - 80038ac: 623b str r3, [r7, #32] + 8003b2a: 2301 movs r3, #1 + 8003b2c: 623b str r3, [r7, #32] //sFilterConfig.SlaveStartFilterBank = 14; if(HAL_CAN_ConfigFilter(&hcan1, &sFilterConfig) != HAL_OK) - 80038ae: 463b mov r3, r7 - 80038b0: 4619 mov r1, r3 - 80038b2: 4806 ldr r0, [pc, #24] ; (80038cc ) - 80038b4: f002 f94c bl 8005b50 - 80038b8: 4603 mov r3, r0 - 80038ba: 2b00 cmp r3, #0 - 80038bc: d001 beq.n 80038c2 + 8003b2e: 463b mov r3, r7 + 8003b30: 4619 mov r1, r3 + 8003b32: 4806 ldr r0, [pc, #24] ; (8003b4c ) + 8003b34: f002 f942 bl 8005dbc + 8003b38: 4603 mov r3, r0 + 8003b3a: 2b00 cmp r3, #0 + 8003b3c: d001 beq.n 8003b42 { Error_Handler(); - 80038be: f000 fef5 bl 80046ac + 8003b3e: f000 feeb bl 8004918 } } - 80038c2: bf00 nop - 80038c4: 3728 adds r7, #40 ; 0x28 - 80038c6: 46bd mov sp, r7 - 80038c8: bd80 pop {r7, pc} - 80038ca: bf00 nop - 80038cc: 20000290 .word 0x20000290 + 8003b42: bf00 nop + 8003b44: 3728 adds r7, #40 ; 0x28 + 8003b46: 46bd mov sp, r7 + 8003b48: bd80 pop {r7, pc} + 8003b4a: bf00 nop + 8003b4c: 20000290 .word 0x20000290 -080038d0 : +08003b50 : uint8_t LOCK_DELAY = 50; GBT_LockState_t GBT_LockState; void GBT_ForceLock(uint8_t state){ - 80038d0: b580 push {r7, lr} - 80038d2: b082 sub sp, #8 - 80038d4: af00 add r7, sp, #0 - 80038d6: 4603 mov r3, r0 - 80038d8: 71fb strb r3, [r7, #7] + 8003b50: b580 push {r7, lr} + 8003b52: b082 sub sp, #8 + 8003b54: af00 add r7, sp, #0 + 8003b56: 4603 mov r3, r0 + 8003b58: 71fb strb r3, [r7, #7] if(LOCK_MOTOR_POLARITY){ - 80038da: 4b26 ldr r3, [pc, #152] ; (8003974 ) - 80038dc: 781b ldrb r3, [r3, #0] - 80038de: 2b00 cmp r3, #0 - 80038e0: d022 beq.n 8003928 + 8003b5a: 4b26 ldr r3, [pc, #152] ; (8003bf4 ) + 8003b5c: 781b ldrb r3, [r3, #0] + 8003b5e: 2b00 cmp r3, #0 + 8003b60: d022 beq.n 8003ba8 if(state){//LOCK - 80038e2: 79fb ldrb r3, [r7, #7] - 80038e4: 2b00 cmp r3, #0 - 80038e6: d00f beq.n 8003908 + 8003b62: 79fb ldrb r3, [r7, #7] + 8003b64: 2b00 cmp r3, #0 + 8003b66: d00f beq.n 8003b88 HAL_GPIO_WritePin(LOCK_B_GPIO_Port, LOCK_B_Pin, 1); - 80038e8: 2201 movs r2, #1 - 80038ea: 2120 movs r1, #32 - 80038ec: 4822 ldr r0, [pc, #136] ; (8003978 ) - 80038ee: f003 faca bl 8006e86 + 8003b68: 2201 movs r2, #1 + 8003b6a: 2120 movs r1, #32 + 8003b6c: 4822 ldr r0, [pc, #136] ; (8003bf8 ) + 8003b6e: f003 fac0 bl 80070f2 HAL_Delay(LOCK_DELAY); - 80038f2: 4b22 ldr r3, [pc, #136] ; (800397c ) - 80038f4: 781b ldrb r3, [r3, #0] - 80038f6: 4618 mov r0, r3 - 80038f8: f001 fb06 bl 8004f08 + 8003b72: 4b22 ldr r3, [pc, #136] ; (8003bfc ) + 8003b74: 781b ldrb r3, [r3, #0] + 8003b76: 4618 mov r0, r3 + 8003b78: f001 fafc bl 8005174 HAL_GPIO_WritePin(LOCK_B_GPIO_Port, LOCK_B_Pin, 0); - 80038fc: 2200 movs r2, #0 - 80038fe: 2120 movs r1, #32 - 8003900: 481d ldr r0, [pc, #116] ; (8003978 ) - 8003902: f003 fac0 bl 8006e86 + 8003b7c: 2200 movs r2, #0 + 8003b7e: 2120 movs r1, #32 + 8003b80: 481d ldr r0, [pc, #116] ; (8003bf8 ) + 8003b82: f003 fab6 bl 80070f2 HAL_GPIO_WritePin(LOCK_B_GPIO_Port, LOCK_B_Pin, 1); HAL_Delay(LOCK_DELAY); HAL_GPIO_WritePin(LOCK_B_GPIO_Port, LOCK_B_Pin, 0); } } } - 8003906: e031 b.n 800396c + 8003b86: e031 b.n 8003bec HAL_GPIO_WritePin(LOCK_A_GPIO_Port, LOCK_A_Pin, 1); - 8003908: 2201 movs r2, #1 - 800390a: 2110 movs r1, #16 - 800390c: 481a ldr r0, [pc, #104] ; (8003978 ) - 800390e: f003 faba bl 8006e86 + 8003b88: 2201 movs r2, #1 + 8003b8a: 2110 movs r1, #16 + 8003b8c: 481a ldr r0, [pc, #104] ; (8003bf8 ) + 8003b8e: f003 fab0 bl 80070f2 HAL_Delay(LOCK_DELAY); - 8003912: 4b1a ldr r3, [pc, #104] ; (800397c ) - 8003914: 781b ldrb r3, [r3, #0] - 8003916: 4618 mov r0, r3 - 8003918: f001 faf6 bl 8004f08 + 8003b92: 4b1a ldr r3, [pc, #104] ; (8003bfc ) + 8003b94: 781b ldrb r3, [r3, #0] + 8003b96: 4618 mov r0, r3 + 8003b98: f001 faec bl 8005174 HAL_GPIO_WritePin(LOCK_A_GPIO_Port, LOCK_A_Pin, 0); - 800391c: 2200 movs r2, #0 - 800391e: 2110 movs r1, #16 - 8003920: 4815 ldr r0, [pc, #84] ; (8003978 ) - 8003922: f003 fab0 bl 8006e86 + 8003b9c: 2200 movs r2, #0 + 8003b9e: 2110 movs r1, #16 + 8003ba0: 4815 ldr r0, [pc, #84] ; (8003bf8 ) + 8003ba2: f003 faa6 bl 80070f2 } - 8003926: e021 b.n 800396c + 8003ba6: e021 b.n 8003bec if(state){//LOCK - 8003928: 79fb ldrb r3, [r7, #7] - 800392a: 2b00 cmp r3, #0 - 800392c: d00f beq.n 800394e + 8003ba8: 79fb ldrb r3, [r7, #7] + 8003baa: 2b00 cmp r3, #0 + 8003bac: d00f beq.n 8003bce HAL_GPIO_WritePin(LOCK_A_GPIO_Port, LOCK_A_Pin, 1); - 800392e: 2201 movs r2, #1 - 8003930: 2110 movs r1, #16 - 8003932: 4811 ldr r0, [pc, #68] ; (8003978 ) - 8003934: f003 faa7 bl 8006e86 + 8003bae: 2201 movs r2, #1 + 8003bb0: 2110 movs r1, #16 + 8003bb2: 4811 ldr r0, [pc, #68] ; (8003bf8 ) + 8003bb4: f003 fa9d bl 80070f2 HAL_Delay(LOCK_DELAY); - 8003938: 4b10 ldr r3, [pc, #64] ; (800397c ) - 800393a: 781b ldrb r3, [r3, #0] - 800393c: 4618 mov r0, r3 - 800393e: f001 fae3 bl 8004f08 + 8003bb8: 4b10 ldr r3, [pc, #64] ; (8003bfc ) + 8003bba: 781b ldrb r3, [r3, #0] + 8003bbc: 4618 mov r0, r3 + 8003bbe: f001 fad9 bl 8005174 HAL_GPIO_WritePin(LOCK_A_GPIO_Port, LOCK_A_Pin, 0); - 8003942: 2200 movs r2, #0 - 8003944: 2110 movs r1, #16 - 8003946: 480c ldr r0, [pc, #48] ; (8003978 ) - 8003948: f003 fa9d bl 8006e86 + 8003bc2: 2200 movs r2, #0 + 8003bc4: 2110 movs r1, #16 + 8003bc6: 480c ldr r0, [pc, #48] ; (8003bf8 ) + 8003bc8: f003 fa93 bl 80070f2 } - 800394c: e00e b.n 800396c + 8003bcc: e00e b.n 8003bec HAL_GPIO_WritePin(LOCK_B_GPIO_Port, LOCK_B_Pin, 1); - 800394e: 2201 movs r2, #1 - 8003950: 2120 movs r1, #32 - 8003952: 4809 ldr r0, [pc, #36] ; (8003978 ) - 8003954: f003 fa97 bl 8006e86 + 8003bce: 2201 movs r2, #1 + 8003bd0: 2120 movs r1, #32 + 8003bd2: 4809 ldr r0, [pc, #36] ; (8003bf8 ) + 8003bd4: f003 fa8d bl 80070f2 HAL_Delay(LOCK_DELAY); - 8003958: 4b08 ldr r3, [pc, #32] ; (800397c ) - 800395a: 781b ldrb r3, [r3, #0] - 800395c: 4618 mov r0, r3 - 800395e: f001 fad3 bl 8004f08 + 8003bd8: 4b08 ldr r3, [pc, #32] ; (8003bfc ) + 8003bda: 781b ldrb r3, [r3, #0] + 8003bdc: 4618 mov r0, r3 + 8003bde: f001 fac9 bl 8005174 HAL_GPIO_WritePin(LOCK_B_GPIO_Port, LOCK_B_Pin, 0); - 8003962: 2200 movs r2, #0 - 8003964: 2120 movs r1, #32 - 8003966: 4804 ldr r0, [pc, #16] ; (8003978 ) - 8003968: f003 fa8d bl 8006e86 + 8003be2: 2200 movs r2, #0 + 8003be4: 2120 movs r1, #32 + 8003be6: 4804 ldr r0, [pc, #16] ; (8003bf8 ) + 8003be8: f003 fa83 bl 80070f2 } - 800396c: bf00 nop - 800396e: 3708 adds r7, #8 - 8003970: 46bd mov sp, r7 - 8003972: bd80 pop {r7, pc} - 8003974: 20000001 .word 0x20000001 - 8003978: 40011000 .word 0x40011000 - 800397c: 20000002 .word 0x20000002 + 8003bec: bf00 nop + 8003bee: 3708 adds r7, #8 + 8003bf0: 46bd mov sp, r7 + 8003bf2: bd80 pop {r7, pc} + 8003bf4: 20000001 .word 0x20000001 + 8003bf8: 40011000 .word 0x40011000 + 8003bfc: 20000002 .word 0x20000002 -08003980 : +08003c00 : uint8_t GBT_LockGetState(){ - 8003980: b580 push {r7, lr} - 8003982: af00 add r7, sp, #0 + 8003c00: b580 push {r7, lr} + 8003c02: af00 add r7, sp, #0 //1 = locked //0 = unlocked if(LOCK_POLARITY){ - 8003984: 4b0b ldr r3, [pc, #44] ; (80039b4 ) - 8003986: 781b ldrb r3, [r3, #0] - 8003988: 2b00 cmp r3, #0 - 800398a: d006 beq.n 800399a + 8003c04: 4b0b ldr r3, [pc, #44] ; (8003c34 ) + 8003c06: 781b ldrb r3, [r3, #0] + 8003c08: 2b00 cmp r3, #0 + 8003c0a: d006 beq.n 8003c1a return HAL_GPIO_ReadPin(LOCK_FB_GPIO_Port, LOCK_FB_Pin); - 800398c: f44f 7100 mov.w r1, #512 ; 0x200 - 8003990: 4809 ldr r0, [pc, #36] ; (80039b8 ) - 8003992: f003 fa61 bl 8006e58 - 8003996: 4603 mov r3, r0 - 8003998: e00a b.n 80039b0 + 8003c0c: f44f 7100 mov.w r1, #512 ; 0x200 + 8003c10: 4809 ldr r0, [pc, #36] ; (8003c38 ) + 8003c12: f003 fa57 bl 80070c4 + 8003c16: 4603 mov r3, r0 + 8003c18: e00a b.n 8003c30 }else{ return !HAL_GPIO_ReadPin(LOCK_FB_GPIO_Port, LOCK_FB_Pin); - 800399a: f44f 7100 mov.w r1, #512 ; 0x200 - 800399e: 4806 ldr r0, [pc, #24] ; (80039b8 ) - 80039a0: f003 fa5a bl 8006e58 - 80039a4: 4603 mov r3, r0 - 80039a6: 2b00 cmp r3, #0 - 80039a8: bf0c ite eq - 80039aa: 2301 moveq r3, #1 - 80039ac: 2300 movne r3, #0 - 80039ae: b2db uxtb r3, r3 + 8003c1a: f44f 7100 mov.w r1, #512 ; 0x200 + 8003c1e: 4806 ldr r0, [pc, #24] ; (8003c38 ) + 8003c20: f003 fa50 bl 80070c4 + 8003c24: 4603 mov r3, r0 + 8003c26: 2b00 cmp r3, #0 + 8003c28: bf0c ite eq + 8003c2a: 2301 moveq r3, #1 + 8003c2c: 2300 movne r3, #0 + 8003c2e: b2db uxtb r3, r3 } } - 80039b0: 4618 mov r0, r3 - 80039b2: bd80 pop {r7, pc} - 80039b4: 20000000 .word 0x20000000 - 80039b8: 40011800 .word 0x40011800 + 8003c30: 4618 mov r0, r3 + 8003c32: bd80 pop {r7, pc} + 8003c34: 20000000 .word 0x20000000 + 8003c38: 40011800 .word 0x40011800 -080039bc : +08003c3c : void GBT_Lock(uint8_t state){ - 80039bc: b480 push {r7} - 80039be: b083 sub sp, #12 - 80039c0: af00 add r7, sp, #0 - 80039c2: 4603 mov r3, r0 - 80039c4: 71fb strb r3, [r7, #7] + 8003c3c: b480 push {r7} + 8003c3e: b083 sub sp, #12 + 8003c40: af00 add r7, sp, #0 + 8003c42: 4603 mov r3, r0 + 8003c44: 71fb strb r3, [r7, #7] GBT_LockState.demand = state; - 80039c6: 4a04 ldr r2, [pc, #16] ; (80039d8 ) - 80039c8: 79fb ldrb r3, [r7, #7] - 80039ca: 7013 strb r3, [r2, #0] + 8003c46: 4a04 ldr r2, [pc, #16] ; (8003c58 ) + 8003c48: 79fb ldrb r3, [r7, #7] + 8003c4a: 7013 strb r3, [r2, #0] } - 80039cc: bf00 nop - 80039ce: 370c adds r7, #12 - 80039d0: 46bd mov sp, r7 - 80039d2: bc80 pop {r7} - 80039d4: 4770 bx lr - 80039d6: bf00 nop - 80039d8: 200005d0 .word 0x200005d0 + 8003c4c: bf00 nop + 8003c4e: 370c adds r7, #12 + 8003c50: 46bd mov sp, r7 + 8003c52: bc80 pop {r7} + 8003c54: 4770 bx lr + 8003c56: bf00 nop + 8003c58: 200005d0 .word 0x200005d0 -080039dc : +08003c5c : void GBT_ManageLock(){ - 80039dc: b580 push {r7, lr} - 80039de: b082 sub sp, #8 - 80039e0: af00 add r7, sp, #0 + 8003c5c: b580 push {r7, lr} + 8003c5e: b082 sub sp, #8 + 8003c60: af00 add r7, sp, #0 uint8_t MAX_RETRIES = 5; - 80039e2: 2305 movs r3, #5 - 80039e4: 71bb strb r3, [r7, #6] + 8003c62: 2305 movs r3, #5 + 8003c64: 71bb strb r3, [r7, #6] if (GBT_LockState.error) { - 80039e6: 4b25 ldr r3, [pc, #148] ; (8003a7c ) - 80039e8: 785b ldrb r3, [r3, #1] - 80039ea: 2b00 cmp r3, #0 - 80039ec: d142 bne.n 8003a74 + 8003c66: 4b25 ldr r3, [pc, #148] ; (8003cfc ) + 8003c68: 785b ldrb r3, [r3, #1] + 8003c6a: 2b00 cmp r3, #0 + 8003c6c: d142 bne.n 8003cf4 return; } bool lock_is_open = GBT_LockGetState() == 0; - 80039ee: f7ff ffc7 bl 8003980 - 80039f2: 4603 mov r3, r0 - 80039f4: 2b00 cmp r3, #0 - 80039f6: bf0c ite eq - 80039f8: 2301 moveq r3, #1 - 80039fa: 2300 movne r3, #0 - 80039fc: 717b strb r3, [r7, #5] + 8003c6e: f7ff ffc7 bl 8003c00 + 8003c72: 4603 mov r3, r0 + 8003c74: 2b00 cmp r3, #0 + 8003c76: bf0c ite eq + 8003c78: 2301 moveq r3, #1 + 8003c7a: 2300 movne r3, #0 + 8003c7c: 717b strb r3, [r7, #5] bool lock_should_be_open = GBT_LockState.demand == 0; - 80039fe: 4b1f ldr r3, [pc, #124] ; (8003a7c ) - 8003a00: 781b ldrb r3, [r3, #0] - 8003a02: 2b00 cmp r3, #0 - 8003a04: bf0c ite eq - 8003a06: 2301 moveq r3, #1 - 8003a08: 2300 movne r3, #0 - 8003a0a: 713b strb r3, [r7, #4] + 8003c7e: 4b1f ldr r3, [pc, #124] ; (8003cfc ) + 8003c80: 781b ldrb r3, [r3, #0] + 8003c82: 2b00 cmp r3, #0 + 8003c84: bf0c ite eq + 8003c86: 2301 moveq r3, #1 + 8003c88: 2300 movne r3, #0 + 8003c8a: 713b strb r3, [r7, #4] uint8_t retry_count = 0; - 8003a0c: 2300 movs r3, #0 - 8003a0e: 71fb strb r3, [r7, #7] + 8003c8c: 2300 movs r3, #0 + 8003c8e: 71fb strb r3, [r7, #7] if (lock_is_open != lock_should_be_open) { - 8003a10: 797a ldrb r2, [r7, #5] - 8003a12: 793b ldrb r3, [r7, #4] - 8003a14: 429a cmp r2, r3 - 8003a16: d02e beq.n 8003a76 + 8003c90: 797a ldrb r2, [r7, #5] + 8003c92: 793b ldrb r3, [r7, #4] + 8003c94: 429a cmp r2, r3 + 8003c96: d02e beq.n 8003cf6 while (retry_count < MAX_RETRIES) { - 8003a18: e018 b.n 8003a4c + 8003c98: e018 b.n 8003ccc if (lock_should_be_open) { - 8003a1a: 793b ldrb r3, [r7, #4] - 8003a1c: 2b00 cmp r3, #0 - 8003a1e: d003 beq.n 8003a28 + 8003c9a: 793b ldrb r3, [r7, #4] + 8003c9c: 2b00 cmp r3, #0 + 8003c9e: d003 beq.n 8003ca8 GBT_ForceLock(0); - 8003a20: 2000 movs r0, #0 - 8003a22: f7ff ff55 bl 80038d0 - 8003a26: e002 b.n 8003a2e + 8003ca0: 2000 movs r0, #0 + 8003ca2: f7ff ff55 bl 8003b50 + 8003ca6: e002 b.n 8003cae } else { GBT_ForceLock(1); - 8003a28: 2001 movs r0, #1 - 8003a2a: f7ff ff51 bl 80038d0 + 8003ca8: 2001 movs r0, #1 + 8003caa: f7ff ff51 bl 8003b50 } lock_is_open = GBT_LockGetState() == 0; - 8003a2e: f7ff ffa7 bl 8003980 - 8003a32: 4603 mov r3, r0 - 8003a34: 2b00 cmp r3, #0 - 8003a36: bf0c ite eq - 8003a38: 2301 moveq r3, #1 - 8003a3a: 2300 movne r3, #0 - 8003a3c: 717b strb r3, [r7, #5] + 8003cae: f7ff ffa7 bl 8003c00 + 8003cb2: 4603 mov r3, r0 + 8003cb4: 2b00 cmp r3, #0 + 8003cb6: bf0c ite eq + 8003cb8: 2301 moveq r3, #1 + 8003cba: 2300 movne r3, #0 + 8003cbc: 717b strb r3, [r7, #5] if (lock_is_open == lock_should_be_open) { - 8003a3e: 797a ldrb r2, [r7, #5] - 8003a40: 793b ldrb r3, [r7, #4] - 8003a42: 429a cmp r2, r3 - 8003a44: d007 beq.n 8003a56 + 8003cbe: 797a ldrb r2, [r7, #5] + 8003cc0: 793b ldrb r3, [r7, #4] + 8003cc2: 429a cmp r2, r3 + 8003cc4: d007 beq.n 8003cd6 break; } retry_count++; - 8003a46: 79fb ldrb r3, [r7, #7] - 8003a48: 3301 adds r3, #1 - 8003a4a: 71fb strb r3, [r7, #7] + 8003cc6: 79fb ldrb r3, [r7, #7] + 8003cc8: 3301 adds r3, #1 + 8003cca: 71fb strb r3, [r7, #7] while (retry_count < MAX_RETRIES) { - 8003a4c: 79fa ldrb r2, [r7, #7] - 8003a4e: 79bb ldrb r3, [r7, #6] - 8003a50: 429a cmp r2, r3 - 8003a52: d3e2 bcc.n 8003a1a - 8003a54: e000 b.n 8003a58 + 8003ccc: 79fa ldrb r2, [r7, #7] + 8003cce: 79bb ldrb r3, [r7, #6] + 8003cd0: 429a cmp r2, r3 + 8003cd2: d3e2 bcc.n 8003c9a + 8003cd4: e000 b.n 8003cd8 break; - 8003a56: bf00 nop + 8003cd6: bf00 nop } if (retry_count >= MAX_RETRIES) { - 8003a58: 79fa ldrb r2, [r7, #7] - 8003a5a: 79bb ldrb r3, [r7, #6] - 8003a5c: 429a cmp r2, r3 - 8003a5e: d30a bcc.n 8003a76 + 8003cd8: 79fa ldrb r2, [r7, #7] + 8003cda: 79bb ldrb r3, [r7, #6] + 8003cdc: 429a cmp r2, r3 + 8003cde: d30a bcc.n 8003cf6 GBT_LockState.error = 1; - 8003a60: 4b06 ldr r3, [pc, #24] ; (8003a7c ) - 8003a62: 2201 movs r2, #1 - 8003a64: 705a strb r2, [r3, #1] + 8003ce0: 4b06 ldr r3, [pc, #24] ; (8003cfc ) + 8003ce2: 2201 movs r2, #1 + 8003ce4: 705a strb r2, [r3, #1] GBT_ForceLock(0); - 8003a66: 2000 movs r0, #0 - 8003a68: f7ff ff32 bl 80038d0 + 8003ce6: 2000 movs r0, #0 + 8003ce8: f7ff ff32 bl 8003b50 printf ("Lock error\n"); - 8003a6c: 4804 ldr r0, [pc, #16] ; (8003a80 ) - 8003a6e: f006 f847 bl 8009b00 - 8003a72: e000 b.n 8003a76 + 8003cec: 4804 ldr r0, [pc, #16] ; (8003d00 ) + 8003cee: f006 f83d bl 8009d6c + 8003cf2: e000 b.n 8003cf6 return; - 8003a74: bf00 nop + 8003cf4: bf00 nop } } } - 8003a76: 3708 adds r7, #8 - 8003a78: 46bd mov sp, r7 - 8003a7a: bd80 pop {r7, pc} - 8003a7c: 200005d0 .word 0x200005d0 - 8003a80: 0800cf34 .word 0x0800cf34 + 8003cf6: 3708 adds r7, #8 + 8003cf8: 46bd mov sp, r7 + 8003cfa: bd80 pop {r7, pc} + 8003cfc: 200005d0 .word 0x200005d0 + 8003d00: 0800d1c4 .word 0x0800d1c4 -08003a84 <__NVIC_SystemReset>: +08003d04 <__NVIC_SystemReset>: { - 8003a84: b480 push {r7} - 8003a86: af00 add r7, sp, #0 + 8003d04: b480 push {r7} + 8003d06: af00 add r7, sp, #0 __ASM volatile ("dsb 0xF":::"memory"); - 8003a88: f3bf 8f4f dsb sy + 8003d08: f3bf 8f4f dsb sy } - 8003a8c: bf00 nop + 8003d0c: bf00 nop (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) | - 8003a8e: 4b06 ldr r3, [pc, #24] ; (8003aa8 <__NVIC_SystemReset+0x24>) - 8003a90: 68db ldr r3, [r3, #12] - 8003a92: f403 62e0 and.w r2, r3, #1792 ; 0x700 + 8003d0e: 4b06 ldr r3, [pc, #24] ; (8003d28 <__NVIC_SystemReset+0x24>) + 8003d10: 68db ldr r3, [r3, #12] + 8003d12: f403 62e0 and.w r2, r3, #1792 ; 0x700 SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8003a96: 4904 ldr r1, [pc, #16] ; (8003aa8 <__NVIC_SystemReset+0x24>) - 8003a98: 4b04 ldr r3, [pc, #16] ; (8003aac <__NVIC_SystemReset+0x28>) - 8003a9a: 4313 orrs r3, r2 - 8003a9c: 60cb str r3, [r1, #12] + 8003d16: 4904 ldr r1, [pc, #16] ; (8003d28 <__NVIC_SystemReset+0x24>) + 8003d18: 4b04 ldr r3, [pc, #16] ; (8003d2c <__NVIC_SystemReset+0x28>) + 8003d1a: 4313 orrs r3, r2 + 8003d1c: 60cb str r3, [r1, #12] __ASM volatile ("dsb 0xF":::"memory"); - 8003a9e: f3bf 8f4f dsb sy + 8003d1e: f3bf 8f4f dsb sy } - 8003aa2: bf00 nop + 8003d22: bf00 nop __NOP(); - 8003aa4: bf00 nop - 8003aa6: e7fd b.n 8003aa4 <__NVIC_SystemReset+0x20> - 8003aa8: e000ed00 .word 0xe000ed00 - 8003aac: 05fa0004 .word 0x05fa0004 + 8003d24: bf00 nop + 8003d26: e7fd b.n 8003d24 <__NVIC_SystemReset+0x20> + 8003d28: e000ed00 .word 0xe000ed00 + 8003d2c: 05fa0004 .word 0x05fa0004 -08003ab0 : +08003d30 : /** * @brief CAN Interrupt Handler for EDCAN (CAN2) * */ void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan){ - 8003ab0: b580 push {r7, lr} - 8003ab2: b082 sub sp, #8 - 8003ab4: af00 add r7, sp, #0 - 8003ab6: 6078 str r0, [r7, #4] + 8003d30: b580 push {r7, lr} + 8003d32: b082 sub sp, #8 + 8003d34: af00 add r7, sp, #0 + 8003d36: 6078 str r0, [r7, #4] if(HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO1, &RxHeader, RxData) == HAL_OK) - 8003ab8: 4b21 ldr r3, [pc, #132] ; (8003b40 ) - 8003aba: 4a22 ldr r2, [pc, #136] ; (8003b44 ) - 8003abc: 2101 movs r1, #1 - 8003abe: 6878 ldr r0, [r7, #4] - 8003ac0: f002 fac1 bl 8006046 - 8003ac4: 4603 mov r3, r0 - 8003ac6: 2b00 cmp r3, #0 - 8003ac8: d136 bne.n 8003b38 - 8003aca: 4b1e ldr r3, [pc, #120] ; (8003b44 ) - 8003acc: 685b ldr r3, [r3, #4] + 8003d38: 4b21 ldr r3, [pc, #132] ; (8003dc0 ) + 8003d3a: 4a22 ldr r2, [pc, #136] ; (8003dc4 ) + 8003d3c: 2101 movs r1, #1 + 8003d3e: 6878 ldr r0, [r7, #4] + 8003d40: f002 fab7 bl 80062b2 + 8003d44: 4603 mov r3, r0 + 8003d46: 2b00 cmp r3, #0 + 8003d48: d136 bne.n 8003db8 + 8003d4a: 4b1e ldr r3, [pc, #120] ; (8003dc4 ) + 8003d4c: 685b ldr r3, [r3, #4] { memcpy(&RxFrame.ExtID, &RxHeader.ExtId, sizeof(RxFrame.ExtID)); - 8003ace: 4a1e ldr r2, [pc, #120] ; (8003b48 ) - 8003ad0: 6013 str r3, [r2, #0] + 8003d4e: 4a1e ldr r2, [pc, #120] ; (8003dc8 ) + 8003d50: 6013 str r3, [r2, #0] RxFrame.DLC = RxHeader.DLC; - 8003ad2: 4b1c ldr r3, [pc, #112] ; (8003b44 ) - 8003ad4: 691b ldr r3, [r3, #16] - 8003ad6: b2da uxtb r2, r3 - 8003ad8: 4b1b ldr r3, [pc, #108] ; (8003b48 ) - 8003ada: 731a strb r2, [r3, #12] + 8003d52: 4b1c ldr r3, [pc, #112] ; (8003dc4 ) + 8003d54: 691b ldr r3, [r3, #16] + 8003d56: b2da uxtb r2, r3 + 8003d58: 4b1b ldr r3, [pc, #108] ; (8003dc8 ) + 8003d5a: 731a strb r2, [r3, #12] memcpy(RxFrame.data, RxData, RxHeader.DLC); - 8003adc: 4b19 ldr r3, [pc, #100] ; (8003b44 ) - 8003ade: 691b ldr r3, [r3, #16] - 8003ae0: 461a mov r2, r3 - 8003ae2: 4917 ldr r1, [pc, #92] ; (8003b40 ) - 8003ae4: 4819 ldr r0, [pc, #100] ; (8003b4c ) - 8003ae6: f005 fa33 bl 8008f50 + 8003d5c: 4b19 ldr r3, [pc, #100] ; (8003dc4 ) + 8003d5e: 691b ldr r3, [r3, #16] + 8003d60: 461a mov r2, r3 + 8003d62: 4917 ldr r1, [pc, #92] ; (8003dc0 ) + 8003d64: 4819 ldr r0, [pc, #100] ; (8003dcc ) + 8003d66: f005 fa29 bl 80091bc if((RxFrame.ExtID.DestinationID == ED_OwnID) || (RxFrame.ExtID.DestinationID == 0xFF) || (RxFrame.ExtID.DestinationID == ED_SecondID)){ - 8003aea: 4b17 ldr r3, [pc, #92] ; (8003b48 ) - 8003aec: 781a ldrb r2, [r3, #0] - 8003aee: 4b18 ldr r3, [pc, #96] ; (8003b50 ) - 8003af0: 781b ldrb r3, [r3, #0] - 8003af2: 429a cmp r2, r3 - 8003af4: d009 beq.n 8003b0a - 8003af6: 4b14 ldr r3, [pc, #80] ; (8003b48 ) - 8003af8: 781b ldrb r3, [r3, #0] - 8003afa: 2bff cmp r3, #255 ; 0xff - 8003afc: d005 beq.n 8003b0a - 8003afe: 4b12 ldr r3, [pc, #72] ; (8003b48 ) - 8003b00: 781a ldrb r2, [r3, #0] - 8003b02: 4b14 ldr r3, [pc, #80] ; (8003b54 ) - 8003b04: 781b ldrb r3, [r3, #0] - 8003b06: 429a cmp r2, r3 - 8003b08: d116 bne.n 8003b38 + 8003d6a: 4b17 ldr r3, [pc, #92] ; (8003dc8 ) + 8003d6c: 781a ldrb r2, [r3, #0] + 8003d6e: 4b18 ldr r3, [pc, #96] ; (8003dd0 ) + 8003d70: 781b ldrb r3, [r3, #0] + 8003d72: 429a cmp r2, r3 + 8003d74: d009 beq.n 8003d8a + 8003d76: 4b14 ldr r3, [pc, #80] ; (8003dc8 ) + 8003d78: 781b ldrb r3, [r3, #0] + 8003d7a: 2bff cmp r3, #255 ; 0xff + 8003d7c: d005 beq.n 8003d8a + 8003d7e: 4b12 ldr r3, [pc, #72] ; (8003dc8 ) + 8003d80: 781a ldrb r2, [r3, #0] + 8003d82: 4b14 ldr r3, [pc, #80] ; (8003dd4 ) + 8003d84: 781b ldrb r3, [r3, #0] + 8003d86: 429a cmp r2, r3 + 8003d88: d116 bne.n 8003db8 //Мгновенная перезагрузка if(RxFrame.ExtID.RegisterAddress == 0x26){ - 8003b0a: 4b0f ldr r3, [pc, #60] ; (8003b48 ) - 8003b0c: 885b ldrh r3, [r3, #2] - 8003b0e: f3c3 030a ubfx r3, r3, #0, #11 - 8003b12: b29b uxth r3, r3 - 8003b14: 2b26 cmp r3, #38 ; 0x26 - 8003b16: d105 bne.n 8003b24 + 8003d8a: 4b0f ldr r3, [pc, #60] ; (8003dc8 ) + 8003d8c: 885b ldrh r3, [r3, #2] + 8003d8e: f3c3 030a ubfx r3, r3, #0, #11 + 8003d92: b29b uxth r3, r3 + 8003d94: 2b26 cmp r3, #38 ; 0x26 + 8003d96: d105 bne.n 8003da4 if(RxFrame.data[0] == 0x66) NVIC_SystemReset(); - 8003b18: 4b0b ldr r3, [pc, #44] ; (8003b48 ) - 8003b1a: 791b ldrb r3, [r3, #4] - 8003b1c: 2b66 cmp r3, #102 ; 0x66 - 8003b1e: d101 bne.n 8003b24 - 8003b20: f7ff ffb0 bl 8003a84 <__NVIC_SystemReset> + 8003d98: 4b0b ldr r3, [pc, #44] ; (8003dc8 ) + 8003d9a: 791b ldrb r3, [r3, #4] + 8003d9c: 2b66 cmp r3, #102 ; 0x66 + 8003d9e: d101 bne.n 8003da4 + 8003da0: f7ff ffb0 bl 8003d04 <__NVIC_SystemReset> } //Выходим из Silent Mode сразу после получения любого пакета if(silentmode_enable) EDCAN_EnterSilentMode(0); - 8003b24: 4b0c ldr r3, [pc, #48] ; (8003b58 ) - 8003b26: 681b ldr r3, [r3, #0] - 8003b28: 2b00 cmp r3, #0 - 8003b2a: d002 beq.n 8003b32 - 8003b2c: 2000 movs r0, #0 - 8003b2e: f000 f99d bl 8003e6c + 8003da4: 4b0c ldr r3, [pc, #48] ; (8003dd8 ) + 8003da6: 681b ldr r3, [r3, #0] + 8003da8: 2b00 cmp r3, #0 + 8003daa: d002 beq.n 8003db2 + 8003dac: 2000 movs r0, #0 + 8003dae: f000 f99d bl 80040ec EDCAN_RxBufferAdd (&RxFrame); - 8003b32: 4805 ldr r0, [pc, #20] ; (8003b48 ) - 8003b34: f000 fae2 bl 80040fc + 8003db2: 4805 ldr r0, [pc, #20] ; (8003dc8 ) + 8003db4: f000 fadc bl 8004370 // EDCAN_ExchangeRxBuffer(); } } } - 8003b38: bf00 nop - 8003b3a: 3708 adds r7, #8 - 8003b3c: 46bd mov sp, r7 - 8003b3e: bd80 pop {r7, pc} - 8003b40: 200005d4 .word 0x200005d4 - 8003b44: 200005dc .word 0x200005dc - 8003b48: 200005f8 .word 0x200005f8 - 8003b4c: 200005fc .word 0x200005fc - 8003b50: 200005d2 .word 0x200005d2 - 8003b54: 20000003 .word 0x20000003 - 8003b58: 2000060c .word 0x2000060c + 8003db8: bf00 nop + 8003dba: 3708 adds r7, #8 + 8003dbc: 46bd mov sp, r7 + 8003dbe: bd80 pop {r7, pc} + 8003dc0: 200005d4 .word 0x200005d4 + 8003dc4: 200005dc .word 0x200005dc + 8003dc8: 200005f8 .word 0x200005f8 + 8003dcc: 200005fc .word 0x200005fc + 8003dd0: 200005d2 .word 0x200005d2 + 8003dd4: 20000003 .word 0x20000003 + 8003dd8: 2000060c .word 0x2000060c -08003b5c : +08003ddc : #endif void HAL_CAN_TxMailbox0CompleteCallback(CAN_HandleTypeDef *hcan_){ - 8003b5c: b580 push {r7, lr} - 8003b5e: b082 sub sp, #8 - 8003b60: af00 add r7, sp, #0 - 8003b62: 6078 str r0, [r7, #4] + 8003ddc: b580 push {r7, lr} + 8003dde: b082 sub sp, #8 + 8003de0: af00 add r7, sp, #0 + 8003de2: 6078 str r0, [r7, #4] if (hcan_->Instance == ED_CAN_INSTANCE.Instance){ - 8003b64: 687b ldr r3, [r7, #4] - 8003b66: 681a ldr r2, [r3, #0] - 8003b68: 4b07 ldr r3, [pc, #28] ; (8003b88 ) - 8003b6a: 681b ldr r3, [r3, #0] - 8003b6c: 429a cmp r2, r3 - 8003b6e: d107 bne.n 8003b80 + 8003de4: 687b ldr r3, [r7, #4] + 8003de6: 681a ldr r2, [r3, #0] + 8003de8: 4b07 ldr r3, [pc, #28] ; (8003e08 ) + 8003dea: 681b ldr r3, [r3, #0] + 8003dec: 429a cmp r2, r3 + 8003dee: d107 bne.n 8003e00 lasttxexchangetime = HAL_GetTick() + 1; - 8003b70: f001 f9c0 bl 8004ef4 - 8003b74: 4603 mov r3, r0 - 8003b76: 3301 adds r3, #1 - 8003b78: 4a04 ldr r2, [pc, #16] ; (8003b8c ) - 8003b7a: 6013 str r3, [r2, #0] + 8003df0: f001 f9b6 bl 8005160 + 8003df4: 4603 mov r3, r0 + 8003df6: 3301 adds r3, #1 + 8003df8: 4a04 ldr r2, [pc, #16] ; (8003e0c ) + 8003dfa: 6013 str r3, [r2, #0] EDCAN_ExchangeTxBuffer(); - 8003b7c: f000 f9ca bl 8003f14 + 8003dfc: f000 f9ca bl 8004194 } } - 8003b80: bf00 nop - 8003b82: 3708 adds r7, #8 - 8003b84: 46bd mov sp, r7 - 8003b86: bd80 pop {r7, pc} - 8003b88: 200002b8 .word 0x200002b8 - 8003b8c: 20000610 .word 0x20000610 + 8003e00: bf00 nop + 8003e02: 3708 adds r7, #8 + 8003e04: 46bd mov sp, r7 + 8003e06: bd80 pop {r7, pc} + 8003e08: 200002b8 .word 0x200002b8 + 8003e0c: 20000610 .word 0x20000610 -08003b90 : +08003e10 : void HAL_CAN_TxMailbox1CompleteCallback(CAN_HandleTypeDef *hcan_){ - 8003b90: b580 push {r7, lr} - 8003b92: b082 sub sp, #8 - 8003b94: af00 add r7, sp, #0 - 8003b96: 6078 str r0, [r7, #4] + 8003e10: b580 push {r7, lr} + 8003e12: b082 sub sp, #8 + 8003e14: af00 add r7, sp, #0 + 8003e16: 6078 str r0, [r7, #4] if (hcan_->Instance == ED_CAN_INSTANCE.Instance){ - 8003b98: 687b ldr r3, [r7, #4] - 8003b9a: 681a ldr r2, [r3, #0] - 8003b9c: 4b07 ldr r3, [pc, #28] ; (8003bbc ) - 8003b9e: 681b ldr r3, [r3, #0] - 8003ba0: 429a cmp r2, r3 - 8003ba2: d107 bne.n 8003bb4 + 8003e18: 687b ldr r3, [r7, #4] + 8003e1a: 681a ldr r2, [r3, #0] + 8003e1c: 4b07 ldr r3, [pc, #28] ; (8003e3c ) + 8003e1e: 681b ldr r3, [r3, #0] + 8003e20: 429a cmp r2, r3 + 8003e22: d107 bne.n 8003e34 lasttxexchangetime = HAL_GetTick() + 1; - 8003ba4: f001 f9a6 bl 8004ef4 - 8003ba8: 4603 mov r3, r0 - 8003baa: 3301 adds r3, #1 - 8003bac: 4a04 ldr r2, [pc, #16] ; (8003bc0 ) - 8003bae: 6013 str r3, [r2, #0] + 8003e24: f001 f99c bl 8005160 + 8003e28: 4603 mov r3, r0 + 8003e2a: 3301 adds r3, #1 + 8003e2c: 4a04 ldr r2, [pc, #16] ; (8003e40 ) + 8003e2e: 6013 str r3, [r2, #0] EDCAN_ExchangeTxBuffer(); - 8003bb0: f000 f9b0 bl 8003f14 + 8003e30: f000 f9b0 bl 8004194 } } - 8003bb4: bf00 nop - 8003bb6: 3708 adds r7, #8 - 8003bb8: 46bd mov sp, r7 - 8003bba: bd80 pop {r7, pc} - 8003bbc: 200002b8 .word 0x200002b8 - 8003bc0: 20000610 .word 0x20000610 + 8003e34: bf00 nop + 8003e36: 3708 adds r7, #8 + 8003e38: 46bd mov sp, r7 + 8003e3a: bd80 pop {r7, pc} + 8003e3c: 200002b8 .word 0x200002b8 + 8003e40: 20000610 .word 0x20000610 -08003bc4 : +08003e44 : void HAL_CAN_TxMailbox2CompleteCallback(CAN_HandleTypeDef *hcan_){ - 8003bc4: b580 push {r7, lr} - 8003bc6: b082 sub sp, #8 - 8003bc8: af00 add r7, sp, #0 - 8003bca: 6078 str r0, [r7, #4] + 8003e44: b580 push {r7, lr} + 8003e46: b082 sub sp, #8 + 8003e48: af00 add r7, sp, #0 + 8003e4a: 6078 str r0, [r7, #4] if (hcan_->Instance == ED_CAN_INSTANCE.Instance){ - 8003bcc: 687b ldr r3, [r7, #4] - 8003bce: 681a ldr r2, [r3, #0] - 8003bd0: 4b07 ldr r3, [pc, #28] ; (8003bf0 ) - 8003bd2: 681b ldr r3, [r3, #0] - 8003bd4: 429a cmp r2, r3 - 8003bd6: d107 bne.n 8003be8 + 8003e4c: 687b ldr r3, [r7, #4] + 8003e4e: 681a ldr r2, [r3, #0] + 8003e50: 4b07 ldr r3, [pc, #28] ; (8003e70 ) + 8003e52: 681b ldr r3, [r3, #0] + 8003e54: 429a cmp r2, r3 + 8003e56: d107 bne.n 8003e68 lasttxexchangetime = HAL_GetTick() + 1; - 8003bd8: f001 f98c bl 8004ef4 - 8003bdc: 4603 mov r3, r0 - 8003bde: 3301 adds r3, #1 - 8003be0: 4a04 ldr r2, [pc, #16] ; (8003bf4 ) - 8003be2: 6013 str r3, [r2, #0] + 8003e58: f001 f982 bl 8005160 + 8003e5c: 4603 mov r3, r0 + 8003e5e: 3301 adds r3, #1 + 8003e60: 4a04 ldr r2, [pc, #16] ; (8003e74 ) + 8003e62: 6013 str r3, [r2, #0] EDCAN_ExchangeTxBuffer(); - 8003be4: f000 f996 bl 8003f14 + 8003e64: f000 f996 bl 8004194 } } - 8003be8: bf00 nop - 8003bea: 3708 adds r7, #8 - 8003bec: 46bd mov sp, r7 - 8003bee: bd80 pop {r7, pc} - 8003bf0: 200002b8 .word 0x200002b8 - 8003bf4: 20000610 .word 0x20000610 + 8003e68: bf00 nop + 8003e6a: 3708 adds r7, #8 + 8003e6c: 46bd mov sp, r7 + 8003e6e: bd80 pop {r7, pc} + 8003e70: 200002b8 .word 0x200002b8 + 8003e74: 20000610 .word 0x20000610 -08003bf8 : +08003e78 : /** * @brief EDCAN Initialization function * * @param _OwnID: EDCAN Device ID */ void EDCAN_Init(uint8_t _OwnID){ - 8003bf8: b480 push {r7} - 8003bfa: b083 sub sp, #12 - 8003bfc: af00 add r7, sp, #0 - 8003bfe: 4603 mov r3, r0 - 8003c00: 71fb strb r3, [r7, #7] + 8003e78: b480 push {r7} + 8003e7a: b083 sub sp, #12 + 8003e7c: af00 add r7, sp, #0 + 8003e7e: 4603 mov r3, r0 + 8003e80: 71fb strb r3, [r7, #7] ED_OwnID = _OwnID; - 8003c02: 4a04 ldr r2, [pc, #16] ; (8003c14 ) - 8003c04: 79fb ldrb r3, [r7, #7] - 8003c06: 7013 strb r3, [r2, #0] + 8003e82: 4a04 ldr r2, [pc, #16] ; (8003e94 ) + 8003e84: 79fb ldrb r3, [r7, #7] + 8003e86: 7013 strb r3, [r2, #0] }; - 8003c08: bf00 nop - 8003c0a: 370c adds r7, #12 - 8003c0c: 46bd mov sp, r7 - 8003c0e: bc80 pop {r7} - 8003c10: 4770 bx lr - 8003c12: bf00 nop - 8003c14: 200005d2 .word 0x200005d2 + 8003e88: bf00 nop + 8003e8a: 370c adds r7, #12 + 8003e8c: 46bd mov sp, r7 + 8003e8e: bc80 pop {r7} + 8003e90: 4770 bx lr + 8003e92: bf00 nop + 8003e94: 200005d2 .word 0x200005d2 -08003c18 : +08003e98 : /** * @brief CAN Reinitialization function * * */ void CAN_ReInit(){ - 8003c18: b580 push {r7, lr} - 8003c1a: af00 add r7, sp, #0 + 8003e98: b580 push {r7, lr} + 8003e9a: af00 add r7, sp, #0 HAL_CAN_Stop(&ED_CAN_INSTANCE); - 8003c1c: 4807 ldr r0, [pc, #28] ; (8003c3c ) - 8003c1e: f002 f8bb bl 8005d98 + 8003e9c: 4807 ldr r0, [pc, #28] ; (8003ebc ) + 8003e9e: f002 f8b1 bl 8006004 #ifdef ED_CAN1 MX_CAN1_Init(); #endif #ifdef ED_CAN2 MX_CAN2_Init(); - 8003c22: f7fd fd8f bl 8001744 + 8003ea2: f7fd fd73 bl 800198c #endif EDCAN_FilterInit(); - 8003c26: f000 f80b bl 8003c40 + 8003ea6: f000 f80b bl 8003ec0 HAL_CAN_Start(&ED_CAN_INSTANCE); - 8003c2a: 4804 ldr r0, [pc, #16] ; (8003c3c ) - 8003c2c: f002 f870 bl 8005d10 + 8003eaa: 4804 ldr r0, [pc, #16] ; (8003ebc ) + 8003eac: f002 f866 bl 8005f7c #ifdef ED_CAN1 HAL_CAN_ActivateNotification(&ED_CAN_INSTANCE, CAN_IT_RX_FIFO0_MSG_PENDING | /*CAN_IT_ERROR | CAN_IT_BUSOFF | CAN_IT_LAST_ERROR_CODE |*/ CAN_IT_TX_MAILBOX_EMPTY); #endif #ifdef ED_CAN2 HAL_CAN_ActivateNotification(&ED_CAN_INSTANCE, CAN_IT_RX_FIFO1_MSG_PENDING | /*CAN_IT_ERROR | CAN_IT_BUSOFF | CAN_IT_LAST_ERROR_CODE |*/ CAN_IT_TX_MAILBOX_EMPTY); - 8003c30: 2111 movs r1, #17 - 8003c32: 4802 ldr r0, [pc, #8] ; (8003c3c ) - 8003c34: f002 fb18 bl 8006268 + 8003eb0: 2111 movs r1, #17 + 8003eb2: 4802 ldr r0, [pc, #8] ; (8003ebc ) + 8003eb4: f002 fb0e bl 80064d4 #endif } - 8003c38: bf00 nop - 8003c3a: bd80 pop {r7, pc} - 8003c3c: 200002b8 .word 0x200002b8 + 8003eb8: bf00 nop + 8003eba: bd80 pop {r7, pc} + 8003ebc: 200002b8 .word 0x200002b8 -08003c40 : +08003ec0 : * * @param _OwnID: EDCAN Device ID * * @retval HAL status */ void EDCAN_FilterInit(){ - 8003c40: b580 push {r7, lr} - 8003c42: b08a sub sp, #40 ; 0x28 - 8003c44: af00 add r7, sp, #0 + 8003ec0: b580 push {r7, lr} + 8003ec2: b08a sub sp, #40 ; 0x28 + 8003ec4: af00 add r7, sp, #0 CAN_FilterTypeDef sFilterConfig; //Filter for Own ID sFilterConfig.FilterBank = 0; - 8003c46: 2300 movs r3, #0 - 8003c48: 617b str r3, [r7, #20] + 8003ec6: 2300 movs r3, #0 + 8003ec8: 617b str r3, [r7, #20] sFilterConfig.FilterMode = CAN_FILTERMODE_IDMASK; - 8003c4a: 2300 movs r3, #0 - 8003c4c: 61bb str r3, [r7, #24] + 8003eca: 2300 movs r3, #0 + 8003ecc: 61bb str r3, [r7, #24] sFilterConfig.FilterScale = CAN_FILTERSCALE_32BIT; - 8003c4e: 2301 movs r3, #1 - 8003c50: 61fb str r3, [r7, #28] + 8003ece: 2301 movs r3, #1 + 8003ed0: 61fb str r3, [r7, #28] sFilterConfig.FilterIdHigh = 0x0000; - 8003c52: 2300 movs r3, #0 - 8003c54: 603b str r3, [r7, #0] + 8003ed2: 2300 movs r3, #0 + 8003ed4: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = (uint16_t)(ED_OwnID<<3)|0b100; - 8003c56: 4b34 ldr r3, [pc, #208] ; (8003d28 ) - 8003c58: 781b ldrb r3, [r3, #0] - 8003c5a: b29b uxth r3, r3 - 8003c5c: 00db lsls r3, r3, #3 - 8003c5e: b29b uxth r3, r3 - 8003c60: f043 0304 orr.w r3, r3, #4 - 8003c64: b29b uxth r3, r3 - 8003c66: 607b str r3, [r7, #4] + 8003ed6: 4b34 ldr r3, [pc, #208] ; (8003fa8 ) + 8003ed8: 781b ldrb r3, [r3, #0] + 8003eda: b29b uxth r3, r3 + 8003edc: 00db lsls r3, r3, #3 + 8003ede: b29b uxth r3, r3 + 8003ee0: f043 0304 orr.w r3, r3, #4 + 8003ee4: b29b uxth r3, r3 + 8003ee6: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; - 8003c68: 2300 movs r3, #0 - 8003c6a: 60bb str r3, [r7, #8] + 8003ee8: 2300 movs r3, #0 + 8003eea: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = (uint16_t)(0xFF<<3)|0b100; - 8003c6c: f240 73fc movw r3, #2044 ; 0x7fc - 8003c70: 60fb str r3, [r7, #12] + 8003eec: f240 73fc movw r3, #2044 ; 0x7fc + 8003ef0: 60fb str r3, [r7, #12] sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO0; - 8003c72: 2300 movs r3, #0 - 8003c74: 613b str r3, [r7, #16] + 8003ef2: 2300 movs r3, #0 + 8003ef4: 613b str r3, [r7, #16] sFilterConfig.FilterActivation = ENABLE; - 8003c76: 2301 movs r3, #1 - 8003c78: 623b str r3, [r7, #32] + 8003ef6: 2301 movs r3, #1 + 8003ef8: 623b str r3, [r7, #32] #ifdef ED_CAN2 sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO1; - 8003c7a: 2301 movs r3, #1 - 8003c7c: 613b str r3, [r7, #16] + 8003efa: 2301 movs r3, #1 + 8003efc: 613b str r3, [r7, #16] sFilterConfig.SlaveStartFilterBank = 14; - 8003c7e: 230e movs r3, #14 - 8003c80: 627b str r3, [r7, #36] ; 0x24 + 8003efe: 230e movs r3, #14 + 8003f00: 627b str r3, [r7, #36] ; 0x24 sFilterConfig.FilterBank = 14; - 8003c82: 230e movs r3, #14 - 8003c84: 617b str r3, [r7, #20] + 8003f02: 230e movs r3, #14 + 8003f04: 617b str r3, [r7, #20] #endif if(HAL_CAN_ConfigFilter(&ED_CAN_INSTANCE, &sFilterConfig) != HAL_OK){ - 8003c86: 463b mov r3, r7 - 8003c88: 4619 mov r1, r3 - 8003c8a: 4828 ldr r0, [pc, #160] ; (8003d2c ) - 8003c8c: f001 ff60 bl 8005b50 - 8003c90: 4603 mov r3, r0 - 8003c92: 2b00 cmp r3, #0 - 8003c94: d001 beq.n 8003c9a + 8003f06: 463b mov r3, r7 + 8003f08: 4619 mov r1, r3 + 8003f0a: 4828 ldr r0, [pc, #160] ; (8003fac ) + 8003f0c: f001 ff56 bl 8005dbc + 8003f10: 4603 mov r3, r0 + 8003f12: 2b00 cmp r3, #0 + 8003f14: d001 beq.n 8003f1a Error_Handler(); - 8003c96: f000 fd09 bl 80046ac + 8003f16: f000 fcff bl 8004918 } // Filter for broadcast ID sFilterConfig.FilterBank = 1; - 8003c9a: 2301 movs r3, #1 - 8003c9c: 617b str r3, [r7, #20] + 8003f1a: 2301 movs r3, #1 + 8003f1c: 617b str r3, [r7, #20] sFilterConfig.FilterIdHigh = 0x0000; - 8003c9e: 2300 movs r3, #0 - 8003ca0: 603b str r3, [r7, #0] + 8003f1e: 2300 movs r3, #0 + 8003f20: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = (uint16_t)(0xFF<<3)|0b100; - 8003ca2: f240 73fc movw r3, #2044 ; 0x7fc - 8003ca6: 607b str r3, [r7, #4] + 8003f22: f240 73fc movw r3, #2044 ; 0x7fc + 8003f26: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; - 8003ca8: 2300 movs r3, #0 - 8003caa: 60bb str r3, [r7, #8] + 8003f28: 2300 movs r3, #0 + 8003f2a: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = (uint16_t)(0xFF<<3)|0b100; - 8003cac: f240 73fc movw r3, #2044 ; 0x7fc - 8003cb0: 60fb str r3, [r7, #12] + 8003f2c: f240 73fc movw r3, #2044 ; 0x7fc + 8003f30: 60fb str r3, [r7, #12] #ifdef ED_CAN2 sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO1; - 8003cb2: 2301 movs r3, #1 - 8003cb4: 613b str r3, [r7, #16] + 8003f32: 2301 movs r3, #1 + 8003f34: 613b str r3, [r7, #16] sFilterConfig.SlaveStartFilterBank = 14; - 8003cb6: 230e movs r3, #14 - 8003cb8: 627b str r3, [r7, #36] ; 0x24 + 8003f36: 230e movs r3, #14 + 8003f38: 627b str r3, [r7, #36] ; 0x24 sFilterConfig.FilterBank = 15; - 8003cba: 230f movs r3, #15 - 8003cbc: 617b str r3, [r7, #20] + 8003f3a: 230f movs r3, #15 + 8003f3c: 617b str r3, [r7, #20] #endif if(HAL_CAN_ConfigFilter(&ED_CAN_INSTANCE, &sFilterConfig) != HAL_OK) - 8003cbe: 463b mov r3, r7 - 8003cc0: 4619 mov r1, r3 - 8003cc2: 481a ldr r0, [pc, #104] ; (8003d2c ) - 8003cc4: f001 ff44 bl 8005b50 - 8003cc8: 4603 mov r3, r0 - 8003cca: 2b00 cmp r3, #0 - 8003ccc: d001 beq.n 8003cd2 + 8003f3e: 463b mov r3, r7 + 8003f40: 4619 mov r1, r3 + 8003f42: 481a ldr r0, [pc, #104] ; (8003fac ) + 8003f44: f001 ff3a bl 8005dbc + 8003f48: 4603 mov r3, r0 + 8003f4a: 2b00 cmp r3, #0 + 8003f4c: d001 beq.n 8003f52 { Error_Handler(); - 8003cce: f000 fced bl 80046ac + 8003f4e: f000 fce3 bl 8004918 } // Filter for second ID if(ED_SecondID != 0xFF){ - 8003cd2: 4b17 ldr r3, [pc, #92] ; (8003d30 ) - 8003cd4: 781b ldrb r3, [r3, #0] - 8003cd6: 2bff cmp r3, #255 ; 0xff - 8003cd8: d021 beq.n 8003d1e + 8003f52: 4b17 ldr r3, [pc, #92] ; (8003fb0 ) + 8003f54: 781b ldrb r3, [r3, #0] + 8003f56: 2bff cmp r3, #255 ; 0xff + 8003f58: d021 beq.n 8003f9e sFilterConfig.FilterBank = 2; - 8003cda: 2302 movs r3, #2 - 8003cdc: 617b str r3, [r7, #20] + 8003f5a: 2302 movs r3, #2 + 8003f5c: 617b str r3, [r7, #20] sFilterConfig.FilterIdHigh = 0x0000; - 8003cde: 2300 movs r3, #0 - 8003ce0: 603b str r3, [r7, #0] + 8003f5e: 2300 movs r3, #0 + 8003f60: 603b str r3, [r7, #0] sFilterConfig.FilterIdLow = (uint16_t)(ED_SecondID<<3)|0b100; - 8003ce2: 4b13 ldr r3, [pc, #76] ; (8003d30 ) - 8003ce4: 781b ldrb r3, [r3, #0] - 8003ce6: b29b uxth r3, r3 - 8003ce8: 00db lsls r3, r3, #3 - 8003cea: b29b uxth r3, r3 - 8003cec: f043 0304 orr.w r3, r3, #4 - 8003cf0: b29b uxth r3, r3 - 8003cf2: 607b str r3, [r7, #4] + 8003f62: 4b13 ldr r3, [pc, #76] ; (8003fb0 ) + 8003f64: 781b ldrb r3, [r3, #0] + 8003f66: b29b uxth r3, r3 + 8003f68: 00db lsls r3, r3, #3 + 8003f6a: b29b uxth r3, r3 + 8003f6c: f043 0304 orr.w r3, r3, #4 + 8003f70: b29b uxth r3, r3 + 8003f72: 607b str r3, [r7, #4] sFilterConfig.FilterMaskIdHigh = 0x0000; - 8003cf4: 2300 movs r3, #0 - 8003cf6: 60bb str r3, [r7, #8] + 8003f74: 2300 movs r3, #0 + 8003f76: 60bb str r3, [r7, #8] sFilterConfig.FilterMaskIdLow = (uint16_t)(0xFF<<3)|0b100; - 8003cf8: f240 73fc movw r3, #2044 ; 0x7fc - 8003cfc: 60fb str r3, [r7, #12] + 8003f78: f240 73fc movw r3, #2044 ; 0x7fc + 8003f7c: 60fb str r3, [r7, #12] #ifdef ED_CAN2 sFilterConfig.FilterFIFOAssignment = CAN_RX_FIFO1; - 8003cfe: 2301 movs r3, #1 - 8003d00: 613b str r3, [r7, #16] + 8003f7e: 2301 movs r3, #1 + 8003f80: 613b str r3, [r7, #16] sFilterConfig.SlaveStartFilterBank = 14; - 8003d02: 230e movs r3, #14 - 8003d04: 627b str r3, [r7, #36] ; 0x24 + 8003f82: 230e movs r3, #14 + 8003f84: 627b str r3, [r7, #36] ; 0x24 sFilterConfig.FilterBank = 16; - 8003d06: 2310 movs r3, #16 - 8003d08: 617b str r3, [r7, #20] + 8003f86: 2310 movs r3, #16 + 8003f88: 617b str r3, [r7, #20] #endif if(HAL_CAN_ConfigFilter(&ED_CAN_INSTANCE, &sFilterConfig) != HAL_OK) - 8003d0a: 463b mov r3, r7 - 8003d0c: 4619 mov r1, r3 - 8003d0e: 4807 ldr r0, [pc, #28] ; (8003d2c ) - 8003d10: f001 ff1e bl 8005b50 - 8003d14: 4603 mov r3, r0 - 8003d16: 2b00 cmp r3, #0 - 8003d18: d001 beq.n 8003d1e + 8003f8a: 463b mov r3, r7 + 8003f8c: 4619 mov r1, r3 + 8003f8e: 4807 ldr r0, [pc, #28] ; (8003fac ) + 8003f90: f001 ff14 bl 8005dbc + 8003f94: 4603 mov r3, r0 + 8003f96: 2b00 cmp r3, #0 + 8003f98: d001 beq.n 8003f9e { Error_Handler(); - 8003d1a: f000 fcc7 bl 80046ac + 8003f9a: f000 fcbd bl 8004918 } } } - 8003d1e: bf00 nop - 8003d20: 3728 adds r7, #40 ; 0x28 - 8003d22: 46bd mov sp, r7 - 8003d24: bd80 pop {r7, pc} - 8003d26: bf00 nop - 8003d28: 200005d2 .word 0x200005d2 - 8003d2c: 200002b8 .word 0x200002b8 - 8003d30: 20000003 .word 0x20000003 + 8003f9e: bf00 nop + 8003fa0: 3728 adds r7, #40 ; 0x28 + 8003fa2: 46bd mov sp, r7 + 8003fa4: bd80 pop {r7, pc} + 8003fa6: bf00 nop + 8003fa8: 200005d2 .word 0x200005d2 + 8003fac: 200002b8 .word 0x200002b8 + 8003fb0: 20000003 .word 0x20000003 -08003d34 : +08003fb4 : * @param DestinationID: Packet Destination ID * @param RegAddr: First register address in sequence * @param *data: pointer to data array to be send * @param len: length of data (1..8) */ void EDCAN_SendPacketRead(uint8_t DestinationID, uint16_t RegAddr, uint8_t *data, uint8_t len){ - 8003d34: b580 push {r7, lr} - 8003d36: b08c sub sp, #48 ; 0x30 - 8003d38: af00 add r7, sp, #0 - 8003d3a: 603a str r2, [r7, #0] - 8003d3c: 461a mov r2, r3 - 8003d3e: 4603 mov r3, r0 - 8003d40: 71fb strb r3, [r7, #7] - 8003d42: 460b mov r3, r1 - 8003d44: 80bb strh r3, [r7, #4] - 8003d46: 4613 mov r3, r2 - 8003d48: 71bb strb r3, [r7, #6] + 8003fb4: b580 push {r7, lr} + 8003fb6: b08c sub sp, #48 ; 0x30 + 8003fb8: af00 add r7, sp, #0 + 8003fba: 603a str r2, [r7, #0] + 8003fbc: 461a mov r2, r3 + 8003fbe: 4603 mov r3, r0 + 8003fc0: 71fb strb r3, [r7, #7] + 8003fc2: 460b mov r3, r1 + 8003fc4: 80bb strh r3, [r7, #4] + 8003fc6: 4613 mov r3, r2 + 8003fc8: 71bb strb r3, [r7, #6] EDCAN_TxFrame_t tx_frame; EDCAN_frameId_t ExtID; //CAN_TxHeaderTypeDef tx_header; //uint32_t tx_mailbox; ExtID.DestinationID = DestinationID; - 8003d4a: 79fb ldrb r3, [r7, #7] - 8003d4c: 733b strb r3, [r7, #12] + 8003fca: 79fb ldrb r3, [r7, #7] + 8003fcc: 733b strb r3, [r7, #12] ExtID.SourceID = ED_OwnID; - 8003d4e: 4b15 ldr r3, [pc, #84] ; (8003da4 ) - 8003d50: 781b ldrb r3, [r3, #0] - 8003d52: 737b strb r3, [r7, #13] + 8003fce: 4b15 ldr r3, [pc, #84] ; (8004024 ) + 8003fd0: 781b ldrb r3, [r3, #0] + 8003fd2: 737b strb r3, [r7, #13] ExtID.RegisterAddress = RegAddr; - 8003d54: 88bb ldrh r3, [r7, #4] - 8003d56: f3c3 030a ubfx r3, r3, #0, #11 - 8003d5a: b29a uxth r2, r3 - 8003d5c: 89fb ldrh r3, [r7, #14] - 8003d5e: f362 030a bfi r3, r2, #0, #11 - 8003d62: 81fb strh r3, [r7, #14] + 8003fd4: 88bb ldrh r3, [r7, #4] + 8003fd6: f3c3 030a ubfx r3, r3, #0, #11 + 8003fda: b29a uxth r2, r3 + 8003fdc: 89fb ldrh r3, [r7, #14] + 8003fde: f362 030a bfi r3, r2, #0, #11 + 8003fe2: 81fb strh r3, [r7, #14] ExtID.PacketType = ED_READ; - 8003d64: 7bfb ldrb r3, [r7, #15] - 8003d66: 2202 movs r2, #2 - 8003d68: f362 03c4 bfi r3, r2, #3, #2 - 8003d6c: 73fb strb r3, [r7, #15] - 8003d6e: 68fb ldr r3, [r7, #12] + 8003fe4: 7bfb ldrb r3, [r7, #15] + 8003fe6: 2202 movs r2, #2 + 8003fe8: f362 03c4 bfi r3, r2, #3, #2 + 8003fec: 73fb strb r3, [r7, #15] + 8003fee: 68fb ldr r3, [r7, #12] memcpy(&tx_frame.tx_header.ExtId, &ExtID, sizeof(ExtID)); - 8003d70: 617b str r3, [r7, #20] + 8003ff0: 617b str r3, [r7, #20] tx_frame.tx_header.RTR = CAN_RTR_DATA; - 8003d72: 2300 movs r3, #0 - 8003d74: 61fb str r3, [r7, #28] + 8003ff2: 2300 movs r3, #0 + 8003ff4: 61fb str r3, [r7, #28] tx_frame.tx_header.IDE = CAN_ID_EXT; - 8003d76: 2304 movs r3, #4 - 8003d78: 61bb str r3, [r7, #24] + 8003ff6: 2304 movs r3, #4 + 8003ff8: 61bb str r3, [r7, #24] tx_frame.tx_header.DLC = len; - 8003d7a: 79bb ldrb r3, [r7, #6] - 8003d7c: 623b str r3, [r7, #32] + 8003ffa: 79bb ldrb r3, [r7, #6] + 8003ffc: 623b str r3, [r7, #32] memcpy(&tx_frame.data, data, len); - 8003d7e: 79ba ldrb r2, [r7, #6] - 8003d80: f107 0310 add.w r3, r7, #16 - 8003d84: 3318 adds r3, #24 - 8003d86: 6839 ldr r1, [r7, #0] - 8003d88: 4618 mov r0, r3 - 8003d8a: f005 f8e1 bl 8008f50 + 8003ffe: 79ba ldrb r2, [r7, #6] + 8004000: f107 0310 add.w r3, r7, #16 + 8004004: 3318 adds r3, #24 + 8004006: 6839 ldr r1, [r7, #0] + 8004008: 4618 mov r0, r3 + 800400a: f005 f8d7 bl 80091bc //EDCAN_AddTxMessage(&ED_CAN_INSTANCE, &tx_header, data, &tx_mailbox); //Добавление пакета в буфер EDCAN_TxBufferAdd(&tx_frame); - 8003d8e: f107 0310 add.w r3, r7, #16 - 8003d92: 4618 mov r0, r3 - 8003d94: f000 f90c bl 8003fb0 + 800400e: f107 0310 add.w r3, r7, #16 + 8004012: 4618 mov r0, r3 + 8004014: f000 f90c bl 8004230 //Также, попытаемся сразу перенести пакет в CAN (если там есть свободное место) //Если свободного места нету, то пакет перенесется в CAN позже по прерыванию освобождения буфера EDCAN_ExchangeTxBuffer(); - 8003d98: f000 f8bc bl 8003f14 + 8004018: f000 f8bc bl 8004194 } - 8003d9c: bf00 nop - 8003d9e: 3730 adds r7, #48 ; 0x30 - 8003da0: 46bd mov sp, r7 - 8003da2: bd80 pop {r7, pc} - 8003da4: 200005d2 .word 0x200005d2 + 800401c: bf00 nop + 800401e: 3730 adds r7, #48 ; 0x30 + 8004020: 46bd mov sp, r7 + 8004022: bd80 pop {r7, pc} + 8004024: 200005d2 .word 0x200005d2 -08003da8 : +08004028 : /** * @brief EDCAN loop function * Функция для управления буферами, должна быть в while(1) * */ void EDCAN_Loop(){ - 8003da8: b580 push {r7, lr} - 8003daa: af00 add r7, sp, #0 + 8004028: b580 push {r7, lr} + 800402a: af00 add r7, sp, #0 //Функция переинициализации пока что не используется // if(can_error){ // CAN_ReInit(); // can_error=0; // } if(silentmode_enable){ - 8003dac: 4b21 ldr r3, [pc, #132] ; (8003e34 ) - 8003dae: 681b ldr r3, [r3, #0] - 8003db0: 2b00 cmp r3, #0 - 8003db2: d00c beq.n 8003dce + 800402c: 4b21 ldr r3, [pc, #132] ; (80040b4 ) + 800402e: 681b ldr r3, [r3, #0] + 8004030: 2b00 cmp r3, #0 + 8004032: d00c beq.n 800404e if(silentmode_time < HAL_GetTick()){ - 8003db4: f001 f89e bl 8004ef4 - 8003db8: 4602 mov r2, r0 - 8003dba: 4b1f ldr r3, [pc, #124] ; (8003e38 ) - 8003dbc: 681b ldr r3, [r3, #0] - 8003dbe: 429a cmp r2, r3 - 8003dc0: d905 bls.n 8003dce + 8004034: f001 f894 bl 8005160 + 8004038: 4602 mov r2, r0 + 800403a: 4b1f ldr r3, [pc, #124] ; (80040b8 ) + 800403c: 681b ldr r3, [r3, #0] + 800403e: 429a cmp r2, r3 + 8004040: d905 bls.n 800404e silentmode_enable = 0; - 8003dc2: 4b1c ldr r3, [pc, #112] ; (8003e34 ) - 8003dc4: 2200 movs r2, #0 - 8003dc6: 601a str r2, [r3, #0] + 8004042: 4b1c ldr r3, [pc, #112] ; (80040b4 ) + 8004044: 2200 movs r2, #0 + 8004046: 601a str r2, [r3, #0] EDCAN_SetSilentMode(0); - 8003dc8: 2000 movs r0, #0 - 8003dca: f000 f87d bl 8003ec8 + 8004048: 2000 movs r0, #0 + 800404a: f000 f87d bl 8004148 } } //every 2ms exchange buffer if (HAL_GetTick() > lasttxexchangetime){ - 8003dce: f001 f891 bl 8004ef4 - 8003dd2: 4602 mov r2, r0 - 8003dd4: 4b19 ldr r3, [pc, #100] ; (8003e3c ) - 8003dd6: 681b ldr r3, [r3, #0] - 8003dd8: 429a cmp r2, r3 - 8003dda: d90c bls.n 8003df6 + 800404e: f001 f887 bl 8005160 + 8004052: 4602 mov r2, r0 + 8004054: 4b19 ldr r3, [pc, #100] ; (80040bc ) + 8004056: 681b ldr r3, [r3, #0] + 8004058: 429a cmp r2, r3 + 800405a: d90c bls.n 8004076 if(EDCAN_getTxBufferElementCount()>0){ - 8003ddc: f000 f936 bl 800404c - 8003de0: 4603 mov r3, r0 - 8003de2: 2b00 cmp r3, #0 - 8003de4: d007 beq.n 8003df6 + 800405c: f000 f932 bl 80042c4 + 8004060: 4603 mov r3, r0 + 8004062: 2b00 cmp r3, #0 + 8004064: d007 beq.n 8004076 lasttxexchangetime = HAL_GetTick() + 1; - 8003de6: f001 f885 bl 8004ef4 - 8003dea: 4603 mov r3, r0 - 8003dec: 3301 adds r3, #1 - 8003dee: 4a13 ldr r2, [pc, #76] ; (8003e3c ) - 8003df0: 6013 str r3, [r2, #0] + 8004066: f001 f87b bl 8005160 + 800406a: 4603 mov r3, r0 + 800406c: 3301 adds r3, #1 + 800406e: 4a13 ldr r2, [pc, #76] ; (80040bc ) + 8004070: 6013 str r3, [r2, #0] EDCAN_ExchangeTxBuffer(); - 8003df2: f000 f88f bl 8003f14 + 8004072: f000 f88f bl 8004194 } } //every 1s alive packet if (HAL_GetTick() > lastalivepackettime){ - 8003df6: f001 f87d bl 8004ef4 - 8003dfa: 4602 mov r2, r0 - 8003dfc: 4b10 ldr r3, [pc, #64] ; (8003e40 ) - 8003dfe: 681b ldr r3, [r3, #0] - 8003e00: 429a cmp r2, r3 - 8003e02: d908 bls.n 8003e16 + 8004076: f001 f873 bl 8005160 + 800407a: 4602 mov r2, r0 + 800407c: 4b10 ldr r3, [pc, #64] ; (80040c0 ) + 800407e: 681b ldr r3, [r3, #0] + 8004080: 429a cmp r2, r3 + 8004082: d908 bls.n 8004096 lastalivepackettime = HAL_GetTick() + 1000; - 8003e04: f001 f876 bl 8004ef4 - 8003e08: 4603 mov r3, r0 - 8003e0a: f503 737a add.w r3, r3, #1000 ; 0x3e8 - 8003e0e: 4a0c ldr r2, [pc, #48] ; (8003e40 ) - 8003e10: 6013 str r3, [r2, #0] + 8004084: f001 f86c bl 8005160 + 8004088: 4603 mov r3, r0 + 800408a: f503 737a add.w r3, r3, #1000 ; 0x3e8 + 800408e: 4a0c ldr r2, [pc, #48] ; (80040c0 ) + 8004090: 6013 str r3, [r2, #0] EDCAN_SendAlivePacket(); - 8003e12: f000 f817 bl 8003e44 + 8004092: f000 f817 bl 80040c4 } //exchange buffer // if (HAL_GetTick() > lastrxexchangetime){ if((EDCAN_getRxBufferElementCount()>0)&&(EDCAN_getTxBufferElementCount()<(BUFFER_SIZE*3/4))){ - 8003e16: f000 f9f5 bl 8004204 - 8003e1a: 4603 mov r3, r0 - 8003e1c: 2b00 cmp r3, #0 - 8003e1e: d006 beq.n 8003e2e - 8003e20: f000 f914 bl 800404c - 8003e24: 4603 mov r3, r0 - 8003e26: 2b5f cmp r3, #95 ; 0x5f - 8003e28: d801 bhi.n 8003e2e + 8004096: f000 f9eb bl 8004470 + 800409a: 4603 mov r3, r0 + 800409c: 2b00 cmp r3, #0 + 800409e: d006 beq.n 80040ae + 80040a0: f000 f910 bl 80042c4 + 80040a4: 4603 mov r3, r0 + 80040a6: 2bbf cmp r3, #191 ; 0xbf + 80040a8: d801 bhi.n 80040ae // lastrxexchangetime = HAL_GetTick() + 1; EDCAN_ExchangeRxBuffer(); - 8003e2a: f000 f9f7 bl 800421c + 80040aa: f000 f9ed bl 8004488 } // } } - 8003e2e: bf00 nop - 8003e30: bd80 pop {r7, pc} - 8003e32: bf00 nop - 8003e34: 2000060c .word 0x2000060c - 8003e38: 20000608 .word 0x20000608 - 8003e3c: 20000610 .word 0x20000610 - 8003e40: 20000614 .word 0x20000614 + 80040ae: bf00 nop + 80040b0: bd80 pop {r7, pc} + 80040b2: bf00 nop + 80040b4: 2000060c .word 0x2000060c + 80040b8: 20000608 .word 0x20000608 + 80040bc: 20000610 .word 0x20000610 + 80040c0: 20000614 .word 0x20000614 -08003e44 : +080040c4 : void EDCAN_SendAlivePacket(){ - 8003e44: b580 push {r7, lr} - 8003e46: b082 sub sp, #8 - 8003e48: af00 add r7, sp, #0 + 80040c4: b580 push {r7, lr} + 80040c6: b082 sub sp, #8 + 80040c8: af00 add r7, sp, #0 uint8_t data[1]; uint8_t DestinationID = 0x00; - 8003e4a: 2300 movs r3, #0 - 8003e4c: 71fb strb r3, [r7, #7] + 80040ca: 2300 movs r3, #0 + 80040cc: 71fb strb r3, [r7, #7] data[0] = EDCAN_GetOwnRegisterValue(EDCAN_REG_SYS_STATUS); - 8003e4e: 2000 movs r0, #0 - 8003e50: f000 faf6 bl 8004440 - 8003e54: 4603 mov r3, r0 - 8003e56: 713b strb r3, [r7, #4] + 80040ce: 2000 movs r0, #0 + 80040d0: f000 faec bl 80046ac + 80040d4: 4603 mov r3, r0 + 80040d6: 713b strb r3, [r7, #4] EDCAN_SendPacketRead(DestinationID, EDCAN_REG_SYS_STATUS, data, 1); - 8003e58: 1d3a adds r2, r7, #4 - 8003e5a: 79f8 ldrb r0, [r7, #7] - 8003e5c: 2301 movs r3, #1 - 8003e5e: 2100 movs r1, #0 - 8003e60: f7ff ff68 bl 8003d34 + 80040d8: 1d3a adds r2, r7, #4 + 80040da: 79f8 ldrb r0, [r7, #7] + 80040dc: 2301 movs r3, #1 + 80040de: 2100 movs r1, #0 + 80040e0: f7ff ff68 bl 8003fb4 } - 8003e64: bf00 nop - 8003e66: 3708 adds r7, #8 - 8003e68: 46bd mov sp, r7 - 8003e6a: bd80 pop {r7, pc} + 80040e4: bf00 nop + 80040e6: 3708 adds r7, #8 + 80040e8: 46bd mov sp, r7 + 80040ea: bd80 pop {r7, pc} -08003e6c : +080040ec : //функция установки таймера для входа в Silent режим //По истечении времени time выход из режима silent //если time = 0, выход из режима silent и сброс таймера void EDCAN_EnterSilentMode(uint8_t time){ - 8003e6c: b580 push {r7, lr} - 8003e6e: b082 sub sp, #8 - 8003e70: af00 add r7, sp, #0 - 8003e72: 4603 mov r3, r0 - 8003e74: 71fb strb r3, [r7, #7] + 80040ec: b580 push {r7, lr} + 80040ee: b082 sub sp, #8 + 80040f0: af00 add r7, sp, #0 + 80040f2: 4603 mov r3, r0 + 80040f4: 71fb strb r3, [r7, #7] if(time==0){ - 8003e76: 79fb ldrb r3, [r7, #7] - 8003e78: 2b00 cmp r3, #0 - 8003e7a: d10b bne.n 8003e94 + 80040f6: 79fb ldrb r3, [r7, #7] + 80040f8: 2b00 cmp r3, #0 + 80040fa: d10b bne.n 8004114 EDCAN_SetSilentMode(0); - 8003e7c: 2000 movs r0, #0 - 8003e7e: f000 f823 bl 8003ec8 + 80040fc: 2000 movs r0, #0 + 80040fe: f000 f823 bl 8004148 silentmode_time = HAL_GetTick(); - 8003e82: f001 f837 bl 8004ef4 - 8003e86: 4603 mov r3, r0 - 8003e88: 4a0d ldr r2, [pc, #52] ; (8003ec0 ) - 8003e8a: 6013 str r3, [r2, #0] + 8004102: f001 f82d bl 8005160 + 8004106: 4603 mov r3, r0 + 8004108: 4a0d ldr r2, [pc, #52] ; (8004140 ) + 800410a: 6013 str r3, [r2, #0] silentmode_enable = 0; - 8003e8c: 4b0d ldr r3, [pc, #52] ; (8003ec4 ) - 8003e8e: 2200 movs r2, #0 - 8003e90: 601a str r2, [r3, #0] + 800410c: 4b0d ldr r3, [pc, #52] ; (8004144 ) + 800410e: 2200 movs r2, #0 + 8004110: 601a str r2, [r3, #0] }else{ EDCAN_SetSilentMode(1); silentmode_time = HAL_GetTick()+((uint32_t)time * 1000); silentmode_enable = 1; } } - 8003e92: e010 b.n 8003eb6 + 8004112: e010 b.n 8004136 EDCAN_SetSilentMode(1); - 8003e94: 2001 movs r0, #1 - 8003e96: f000 f817 bl 8003ec8 + 8004114: 2001 movs r0, #1 + 8004116: f000 f817 bl 8004148 silentmode_time = HAL_GetTick()+((uint32_t)time * 1000); - 8003e9a: f001 f82b bl 8004ef4 - 8003e9e: 4602 mov r2, r0 - 8003ea0: 79fb ldrb r3, [r7, #7] - 8003ea2: f44f 717a mov.w r1, #1000 ; 0x3e8 - 8003ea6: fb01 f303 mul.w r3, r1, r3 - 8003eaa: 4413 add r3, r2 - 8003eac: 4a04 ldr r2, [pc, #16] ; (8003ec0 ) - 8003eae: 6013 str r3, [r2, #0] + 800411a: f001 f821 bl 8005160 + 800411e: 4602 mov r2, r0 + 8004120: 79fb ldrb r3, [r7, #7] + 8004122: f44f 717a mov.w r1, #1000 ; 0x3e8 + 8004126: fb01 f303 mul.w r3, r1, r3 + 800412a: 4413 add r3, r2 + 800412c: 4a04 ldr r2, [pc, #16] ; (8004140 ) + 800412e: 6013 str r3, [r2, #0] silentmode_enable = 1; - 8003eb0: 4b04 ldr r3, [pc, #16] ; (8003ec4 ) - 8003eb2: 2201 movs r2, #1 - 8003eb4: 601a str r2, [r3, #0] + 8004130: 4b04 ldr r3, [pc, #16] ; (8004144 ) + 8004132: 2201 movs r2, #1 + 8004134: 601a str r2, [r3, #0] } - 8003eb6: bf00 nop - 8003eb8: 3708 adds r7, #8 - 8003eba: 46bd mov sp, r7 - 8003ebc: bd80 pop {r7, pc} - 8003ebe: bf00 nop - 8003ec0: 20000608 .word 0x20000608 - 8003ec4: 2000060c .word 0x2000060c + 8004136: bf00 nop + 8004138: 3708 adds r7, #8 + 800413a: 46bd mov sp, r7 + 800413c: bd80 pop {r7, pc} + 800413e: bf00 nop + 8004140: 20000608 .word 0x20000608 + 8004144: 2000060c .word 0x2000060c -08003ec8 : +08004148 : //Функция входа в Silent Режим void EDCAN_SetSilentMode(uint8_t state){ - 8003ec8: b580 push {r7, lr} - 8003eca: b082 sub sp, #8 - 8003ecc: af00 add r7, sp, #0 - 8003ece: 4603 mov r3, r0 - 8003ed0: 71fb strb r3, [r7, #7] + 8004148: b580 push {r7, lr} + 800414a: b082 sub sp, #8 + 800414c: af00 add r7, sp, #0 + 800414e: 4603 mov r3, r0 + 8004150: 71fb strb r3, [r7, #7] HAL_CAN_Stop(&ED_CAN_INSTANCE); - 8003ed2: 480f ldr r0, [pc, #60] ; (8003f10 ) - 8003ed4: f001 ff60 bl 8005d98 + 8004152: 480f ldr r0, [pc, #60] ; (8004190 ) + 8004154: f001 ff56 bl 8006004 if(state){ - 8003ed8: 79fb ldrb r3, [r7, #7] - 8003eda: 2b00 cmp r3, #0 - 8003edc: d008 beq.n 8003ef0 + 8004158: 79fb ldrb r3, [r7, #7] + 800415a: 2b00 cmp r3, #0 + 800415c: d008 beq.n 8004170 ED_CAN_INSTANCE.Instance->BTR |= CAN_MODE_SILENT; - 8003ede: 4b0c ldr r3, [pc, #48] ; (8003f10 ) - 8003ee0: 681b ldr r3, [r3, #0] - 8003ee2: 69da ldr r2, [r3, #28] - 8003ee4: 4b0a ldr r3, [pc, #40] ; (8003f10 ) - 8003ee6: 681b ldr r3, [r3, #0] - 8003ee8: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 - 8003eec: 61da str r2, [r3, #28] - 8003eee: e007 b.n 8003f00 + 800415e: 4b0c ldr r3, [pc, #48] ; (8004190 ) + 8004160: 681b ldr r3, [r3, #0] + 8004162: 69da ldr r2, [r3, #28] + 8004164: 4b0a ldr r3, [pc, #40] ; (8004190 ) + 8004166: 681b ldr r3, [r3, #0] + 8004168: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 + 800416c: 61da str r2, [r3, #28] + 800416e: e007 b.n 8004180 }else{ ED_CAN_INSTANCE.Instance->BTR &= ~CAN_MODE_SILENT; - 8003ef0: 4b07 ldr r3, [pc, #28] ; (8003f10 ) - 8003ef2: 681b ldr r3, [r3, #0] - 8003ef4: 69da ldr r2, [r3, #28] - 8003ef6: 4b06 ldr r3, [pc, #24] ; (8003f10 ) - 8003ef8: 681b ldr r3, [r3, #0] - 8003efa: f022 4200 bic.w r2, r2, #2147483648 ; 0x80000000 - 8003efe: 61da str r2, [r3, #28] + 8004170: 4b07 ldr r3, [pc, #28] ; (8004190 ) + 8004172: 681b ldr r3, [r3, #0] + 8004174: 69da ldr r2, [r3, #28] + 8004176: 4b06 ldr r3, [pc, #24] ; (8004190 ) + 8004178: 681b ldr r3, [r3, #0] + 800417a: f022 4200 bic.w r2, r2, #2147483648 ; 0x80000000 + 800417e: 61da str r2, [r3, #28] } HAL_CAN_Start(&ED_CAN_INSTANCE); - 8003f00: 4803 ldr r0, [pc, #12] ; (8003f10 ) - 8003f02: f001 ff05 bl 8005d10 + 8004180: 4803 ldr r0, [pc, #12] ; (8004190 ) + 8004182: f001 fefb bl 8005f7c } - 8003f06: bf00 nop - 8003f08: 3708 adds r7, #8 - 8003f0a: 46bd mov sp, r7 - 8003f0c: bd80 pop {r7, pc} - 8003f0e: bf00 nop - 8003f10: 200002b8 .word 0x200002b8 + 8004186: bf00 nop + 8004188: 3708 adds r7, #8 + 800418a: 46bd mov sp, r7 + 800418c: bd80 pop {r7, pc} + 800418e: bf00 nop + 8004190: 200002b8 .word 0x200002b8 -08003f14 : +08004194 : // Инициализация глобальных буферов TxCircularBuffer_t txBuffer = { .head = 0, .tail = 0, .count = 0 }; RxCircularBuffer_t rxBuffer = { .head = 0, .tail = 0, .count = 0 }; //Функция для передачи данных из буфера в mailbox CAN шины void EDCAN_ExchangeTxBuffer(){ - 8003f14: b580 push {r7, lr} - 8003f16: b08a sub sp, #40 ; 0x28 - 8003f18: af00 add r7, sp, #0 + 8004194: b580 push {r7, lr} + 8004196: b08a sub sp, #40 ; 0x28 + 8004198: af00 add r7, sp, #0 uint32_t tx_mailbox; HAL_StatusTypeDef CAN_result; // //если в буфере что-то есть и есть свободные Mailbox if((EDCAN_getTxBufferElementCount()>0) && (HAL_CAN_GetTxMailboxesFreeLevel(&ED_CAN_INSTANCE) > 0)){ - 8003f1a: f000 f897 bl 800404c - 8003f1e: 4603 mov r3, r0 - 8003f20: 2b00 cmp r3, #0 - 8003f22: d03c beq.n 8003f9e - 8003f24: 481f ldr r0, [pc, #124] ; (8003fa4 ) - 8003f26: f002 f85a bl 8005fde - 8003f2a: 4603 mov r3, r0 - 8003f2c: 2b00 cmp r3, #0 - 8003f2e: d036 beq.n 8003f9e + 800419a: f000 f893 bl 80042c4 + 800419e: 4603 mov r3, r0 + 80041a0: 2b00 cmp r3, #0 + 80041a2: d03c beq.n 800421e + 80041a4: 481f ldr r0, [pc, #124] ; (8004224 ) + 80041a6: f002 f850 bl 800624a + 80041aa: 4603 mov r3, r0 + 80041ac: 2b00 cmp r3, #0 + 80041ae: d036 beq.n 800421e //Извлечь первый элемент буфера if(EDCAN_TxBufferPeekFirst(&TxFrame) == false) return; - 8003f30: 1d3b adds r3, r7, #4 - 8003f32: 4618 mov r0, r3 - 8003f34: f000 f896 bl 8004064 - 8003f38: 4603 mov r3, r0 - 8003f3a: f083 0301 eor.w r3, r3, #1 - 8003f3e: b2db uxtb r3, r3 - 8003f40: 2b00 cmp r3, #0 - 8003f42: d12b bne.n 8003f9c + 80041b0: 1d3b adds r3, r7, #4 + 80041b2: 4618 mov r0, r3 + 80041b4: f000 f892 bl 80042dc + 80041b8: 4603 mov r3, r0 + 80041ba: f083 0301 eor.w r3, r3, #1 + 80041be: b2db uxtb r3, r3 + 80041c0: 2b00 cmp r3, #0 + 80041c2: d12b bne.n 800421c /* отправка сообщения */ CAN_result = HAL_CAN_AddTxMessage(&ED_CAN_INSTANCE, &TxFrame.tx_header, TxFrame.data, &tx_mailbox); - 8003f44: 4638 mov r0, r7 - 8003f46: 1d3b adds r3, r7, #4 - 8003f48: f103 0218 add.w r2, r3, #24 - 8003f4c: 1d39 adds r1, r7, #4 - 8003f4e: 4603 mov r3, r0 - 8003f50: 4814 ldr r0, [pc, #80] ; (8003fa4 ) - 8003f52: f001 ff6a bl 8005e2a - 8003f56: 4603 mov r3, r0 - 8003f58: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80041c4: 4638 mov r0, r7 + 80041c6: 1d3b adds r3, r7, #4 + 80041c8: f103 0218 add.w r2, r3, #24 + 80041cc: 1d39 adds r1, r7, #4 + 80041ce: 4603 mov r3, r0 + 80041d0: 4814 ldr r0, [pc, #80] ; (8004224 ) + 80041d2: f001 ff60 bl 8006096 + 80041d6: 4603 mov r3, r0 + 80041d8: f887 3027 strb.w r3, [r7, #39] ; 0x27 /* если отправка удалась, выход */ if(CAN_result == HAL_OK) { - 8003f5c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8003f60: 2b00 cmp r3, #0 - 8003f62: d102 bne.n 8003f6a + 80041dc: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80041e0: 2b00 cmp r3, #0 + 80041e2: d102 bne.n 80041ea //Удаление элемента буфера в случае успешной передачи EDCAN_TxBufferRemoveFirst(); - 8003f64: f000 f89e bl 80040a4 + 80041e4: f000 f89a bl 800431c return; - 8003f68: e019 b.n 8003f9e + 80041e8: e019 b.n 800421e //TODO: retry counter management //HAL_Delay(1); //retry_counter--; /* если ошибка, обработка ошибки */ if(CAN_result == HAL_ERROR) { - 8003f6a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8003f6e: 2b01 cmp r3, #1 - 8003f70: d115 bne.n 8003f9e + 80041ea: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80041ee: 2b01 cmp r3, #1 + 80041f0: d115 bne.n 800421e if(ED_CAN_INSTANCE.ErrorCode & HAL_CAN_ERROR_NOT_INITIALIZED) { - 8003f72: 4b0c ldr r3, [pc, #48] ; (8003fa4 ) - 8003f74: 6a5b ldr r3, [r3, #36] ; 0x24 - 8003f76: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 8003f7a: 2b00 cmp r3, #0 - 8003f7c: d004 beq.n 8003f88 + 80041f2: 4b0c ldr r3, [pc, #48] ; (8004224 ) + 80041f4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80041f6: f403 2380 and.w r3, r3, #262144 ; 0x40000 + 80041fa: 2b00 cmp r3, #0 + 80041fc: d004 beq.n 8004208 CAN_ReInit(); //CAN не инициализирован, переинициализация - 8003f7e: f7ff fe4b bl 8003c18 + 80041fe: f7ff fe4b bl 8003e98 printf("CAN Reinit\n"); - 8003f82: 4809 ldr r0, [pc, #36] ; (8003fa8 ) - 8003f84: f005 fdbc bl 8009b00 + 8004202: 4809 ldr r0, [pc, #36] ; (8004228 ) + 8004204: f005 fdb2 bl 8009d6c } //if(ED_CAN_INSTANCE.ErrorCode & HAL_CAN_ERROR_PARAM) printf("tx full\n"); printf("CAN.ErrorCode = %d\n",(int)ED_CAN_INSTANCE.ErrorCode); - 8003f88: 4b06 ldr r3, [pc, #24] ; (8003fa4 ) - 8003f8a: 6a5b ldr r3, [r3, #36] ; 0x24 - 8003f8c: 4619 mov r1, r3 - 8003f8e: 4807 ldr r0, [pc, #28] ; (8003fac ) - 8003f90: f005 fd30 bl 80099f4 + 8004208: 4b06 ldr r3, [pc, #24] ; (8004224 ) + 800420a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800420c: 4619 mov r1, r3 + 800420e: 4807 ldr r0, [pc, #28] ; (800422c ) + 8004210: f005 fd26 bl 8009c60 ED_CAN_INSTANCE.ErrorCode = 0; //Clear errors - 8003f94: 4b03 ldr r3, [pc, #12] ; (8003fa4 ) - 8003f96: 2200 movs r2, #0 - 8003f98: 625a str r2, [r3, #36] ; 0x24 - 8003f9a: e000 b.n 8003f9e + 8004214: 4b03 ldr r3, [pc, #12] ; (8004224 ) + 8004216: 2200 movs r2, #0 + 8004218: 625a str r2, [r3, #36] ; 0x24 + 800421a: e000 b.n 800421e if(EDCAN_TxBufferPeekFirst(&TxFrame) == false) return; - 8003f9c: bf00 nop + 800421c: bf00 nop } } // __enable_irq(); } - 8003f9e: 3728 adds r7, #40 ; 0x28 - 8003fa0: 46bd mov sp, r7 - 8003fa2: bd80 pop {r7, pc} - 8003fa4: 200002b8 .word 0x200002b8 - 8003fa8: 0800cf40 .word 0x0800cf40 - 8003fac: 0800cf4c .word 0x0800cf4c + 800421e: 3728 adds r7, #40 ; 0x28 + 8004220: 46bd mov sp, r7 + 8004222: bd80 pop {r7, pc} + 8004224: 200002b8 .word 0x200002b8 + 8004228: 0800d1d0 .word 0x0800d1d0 + 800422c: 0800d1dc .word 0x0800d1dc -08003fb0 : +08004230 : // Добавление элемента в буфер void EDCAN_TxBufferAdd(EDCAN_TxFrame_t *frame) { - 8003fb0: b580 push {r7, lr} - 8003fb2: b082 sub sp, #8 - 8003fb4: af00 add r7, sp, #0 - 8003fb6: 6078 str r0, [r7, #4] + 8004230: b580 push {r7, lr} + 8004232: b082 sub sp, #8 + 8004234: af00 add r7, sp, #0 + 8004236: 6078 str r0, [r7, #4] __ASM volatile ("cpsid i" : : : "memory"); - 8003fb8: b672 cpsid i + 8004238: b672 cpsid i } - 8003fba: bf00 nop + 800423a: bf00 nop __disable_irq(); memcpy(&txBuffer.buffer[txBuffer.head], frame, sizeof(EDCAN_TxFrame_t)); - 8003fbc: 4b22 ldr r3, [pc, #136] ; (8004048 ) - 8003fbe: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8003fc2: 881b ldrh r3, [r3, #0] - 8003fc4: 015b lsls r3, r3, #5 - 8003fc6: 4a20 ldr r2, [pc, #128] ; (8004048 ) - 8003fc8: 4413 add r3, r2 - 8003fca: 2220 movs r2, #32 - 8003fcc: 6879 ldr r1, [r7, #4] - 8003fce: 4618 mov r0, r3 - 8003fd0: f004 ffbe bl 8008f50 + 800423c: 4b20 ldr r3, [pc, #128] ; (80042c0 ) + 800423e: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004242: 881b ldrh r3, [r3, #0] + 8004244: 015b lsls r3, r3, #5 + 8004246: 4a1e ldr r2, [pc, #120] ; (80042c0 ) + 8004248: 4413 add r3, r2 + 800424a: 2220 movs r2, #32 + 800424c: 6879 ldr r1, [r7, #4] + 800424e: 4618 mov r0, r3 + 8004250: f004 ffb4 bl 80091bc txBuffer.head = (txBuffer.head + 1) % BUFFER_SIZE; - 8003fd4: 4b1c ldr r3, [pc, #112] ; (8004048 ) - 8003fd6: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8003fda: 881b ldrh r3, [r3, #0] - 8003fdc: 3301 adds r3, #1 - 8003fde: 425a negs r2, r3 - 8003fe0: f003 037f and.w r3, r3, #127 ; 0x7f - 8003fe4: f002 027f and.w r2, r2, #127 ; 0x7f - 8003fe8: bf58 it pl - 8003fea: 4253 negpl r3, r2 - 8003fec: b29a uxth r2, r3 - 8003fee: 4b16 ldr r3, [pc, #88] ; (8004048 ) - 8003ff0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8003ff4: 801a strh r2, [r3, #0] + 8004254: 4b1a ldr r3, [pc, #104] ; (80042c0 ) + 8004256: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 800425a: 881b ldrh r3, [r3, #0] + 800425c: 3301 adds r3, #1 + 800425e: 425a negs r2, r3 + 8004260: b2db uxtb r3, r3 + 8004262: b2d2 uxtb r2, r2 + 8004264: bf58 it pl + 8004266: 4253 negpl r3, r2 + 8004268: b29a uxth r2, r3 + 800426a: 4b15 ldr r3, [pc, #84] ; (80042c0 ) + 800426c: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004270: 801a strh r2, [r3, #0] if (txBuffer.count == BUFFER_SIZE) { - 8003ff6: 4b14 ldr r3, [pc, #80] ; (8004048 ) - 8003ff8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8003ffc: 889b ldrh r3, [r3, #4] - 8003ffe: 2b80 cmp r3, #128 ; 0x80 - 8004000: d111 bne.n 8004026 + 8004272: 4b13 ldr r3, [pc, #76] ; (80042c0 ) + 8004274: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004278: 889b ldrh r3, [r3, #4] + 800427a: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800427e: d10f bne.n 80042a0 txBuffer.tail = (txBuffer.tail + 1) % BUFFER_SIZE; // Перезапись старых данных - 8004002: 4b11 ldr r3, [pc, #68] ; (8004048 ) - 8004004: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004008: 885b ldrh r3, [r3, #2] - 800400a: 3301 adds r3, #1 - 800400c: 425a negs r2, r3 - 800400e: f003 037f and.w r3, r3, #127 ; 0x7f - 8004012: f002 027f and.w r2, r2, #127 ; 0x7f - 8004016: bf58 it pl - 8004018: 4253 negpl r3, r2 - 800401a: b29a uxth r2, r3 - 800401c: 4b0a ldr r3, [pc, #40] ; (8004048 ) - 800401e: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004022: 805a strh r2, [r3, #2] - 8004024: e009 b.n 800403a + 8004280: 4b0f ldr r3, [pc, #60] ; (80042c0 ) + 8004282: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004286: 885b ldrh r3, [r3, #2] + 8004288: 3301 adds r3, #1 + 800428a: 425a negs r2, r3 + 800428c: b2db uxtb r3, r3 + 800428e: b2d2 uxtb r2, r2 + 8004290: bf58 it pl + 8004292: 4253 negpl r3, r2 + 8004294: b29a uxth r2, r3 + 8004296: 4b0a ldr r3, [pc, #40] ; (80042c0 ) + 8004298: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 800429c: 805a strh r2, [r3, #2] + 800429e: e009 b.n 80042b4 } else { txBuffer.count++; - 8004026: 4b08 ldr r3, [pc, #32] ; (8004048 ) - 8004028: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800402c: 889b ldrh r3, [r3, #4] - 800402e: 3301 adds r3, #1 - 8004030: b29a uxth r2, r3 - 8004032: 4b05 ldr r3, [pc, #20] ; (8004048 ) - 8004034: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004038: 809a strh r2, [r3, #4] + 80042a0: 4b07 ldr r3, [pc, #28] ; (80042c0 ) + 80042a2: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 80042a6: 889b ldrh r3, [r3, #4] + 80042a8: 3301 adds r3, #1 + 80042aa: b29a uxth r2, r3 + 80042ac: 4b04 ldr r3, [pc, #16] ; (80042c0 ) + 80042ae: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 80042b2: 809a strh r2, [r3, #4] __ASM volatile ("cpsie i" : : : "memory"); - 800403a: b662 cpsie i + 80042b4: b662 cpsie i } - 800403c: bf00 nop + 80042b6: bf00 nop } __enable_irq(); } - 800403e: bf00 nop - 8004040: 3708 adds r7, #8 - 8004042: 46bd mov sp, r7 - 8004044: bd80 pop {r7, pc} - 8004046: bf00 nop - 8004048: 20000618 .word 0x20000618 + 80042b8: bf00 nop + 80042ba: 3708 adds r7, #8 + 80042bc: 46bd mov sp, r7 + 80042be: bd80 pop {r7, pc} + 80042c0: 20000618 .word 0x20000618 -0800404c : +080042c4 : return false; } } //Количество элементов в буфере uint16_t EDCAN_getTxBufferElementCount() { - 800404c: b480 push {r7} - 800404e: af00 add r7, sp, #0 + 80042c4: b480 push {r7} + 80042c6: af00 add r7, sp, #0 return txBuffer.count; - 8004050: 4b03 ldr r3, [pc, #12] ; (8004060 ) - 8004052: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004056: 889b ldrh r3, [r3, #4] + 80042c8: 4b03 ldr r3, [pc, #12] ; (80042d8 ) + 80042ca: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 80042ce: 889b ldrh r3, [r3, #4] } - 8004058: 4618 mov r0, r3 - 800405a: 46bd mov sp, r7 - 800405c: bc80 pop {r7} - 800405e: 4770 bx lr - 8004060: 20000618 .word 0x20000618 + 80042d0: 4618 mov r0, r3 + 80042d2: 46bd mov sp, r7 + 80042d4: bc80 pop {r7} + 80042d6: 4770 bx lr + 80042d8: 20000618 .word 0x20000618 -08004064 : +080042dc : // функция для получения первого элемента без удаления его из буфера bool EDCAN_TxBufferPeekFirst(EDCAN_TxFrame_t *frame) { - 8004064: b580 push {r7, lr} - 8004066: b082 sub sp, #8 - 8004068: af00 add r7, sp, #0 - 800406a: 6078 str r0, [r7, #4] + 80042dc: b580 push {r7, lr} + 80042de: b082 sub sp, #8 + 80042e0: af00 add r7, sp, #0 + 80042e2: 6078 str r0, [r7, #4] //__disable_irq(); if (txBuffer.count > 0) { - 800406c: 4b0c ldr r3, [pc, #48] ; (80040a0 ) - 800406e: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8004072: 889b ldrh r3, [r3, #4] - 8004074: 2b00 cmp r3, #0 - 8004076: d00d beq.n 8004094 + 80042e4: 4b0c ldr r3, [pc, #48] ; (8004318 ) + 80042e6: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 80042ea: 889b ldrh r3, [r3, #4] + 80042ec: 2b00 cmp r3, #0 + 80042ee: d00d beq.n 800430c memcpy(frame, &txBuffer.buffer[txBuffer.tail], sizeof(EDCAN_TxFrame_t)); - 8004078: 4b09 ldr r3, [pc, #36] ; (80040a0 ) - 800407a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800407e: 885b ldrh r3, [r3, #2] - 8004080: 015b lsls r3, r3, #5 - 8004082: 4a07 ldr r2, [pc, #28] ; (80040a0 ) - 8004084: 4413 add r3, r2 - 8004086: 2220 movs r2, #32 - 8004088: 4619 mov r1, r3 - 800408a: 6878 ldr r0, [r7, #4] - 800408c: f004 ff60 bl 8008f50 + 80042f0: 4b09 ldr r3, [pc, #36] ; (8004318 ) + 80042f2: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 80042f6: 885b ldrh r3, [r3, #2] + 80042f8: 015b lsls r3, r3, #5 + 80042fa: 4a07 ldr r2, [pc, #28] ; (8004318 ) + 80042fc: 4413 add r3, r2 + 80042fe: 2220 movs r2, #32 + 8004300: 4619 mov r1, r3 + 8004302: 6878 ldr r0, [r7, #4] + 8004304: f004 ff5a bl 80091bc return true; - 8004090: 2301 movs r3, #1 - 8004092: e000 b.n 8004096 + 8004308: 2301 movs r3, #1 + 800430a: e000 b.n 800430e } else { // Буфер пуст, можно добавить обработку ошибки return false; - 8004094: 2300 movs r3, #0 + 800430c: 2300 movs r3, #0 } //__enable_irq(); } - 8004096: 4618 mov r0, r3 - 8004098: 3708 adds r7, #8 - 800409a: 46bd mov sp, r7 - 800409c: bd80 pop {r7, pc} - 800409e: bf00 nop - 80040a0: 20000618 .word 0x20000618 + 800430e: 4618 mov r0, r3 + 8004310: 3708 adds r7, #8 + 8004312: 46bd mov sp, r7 + 8004314: bd80 pop {r7, pc} + 8004316: bf00 nop + 8004318: 20000618 .word 0x20000618 -080040a4 : +0800431c : // функция для удаления первого элемента из буфера bool EDCAN_TxBufferRemoveFirst() { - 80040a4: b480 push {r7} - 80040a6: af00 add r7, sp, #0 + 800431c: b480 push {r7} + 800431e: af00 add r7, sp, #0 if (txBuffer.count > 0) { - 80040a8: 4b13 ldr r3, [pc, #76] ; (80040f8 ) - 80040aa: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80040ae: 889b ldrh r3, [r3, #4] - 80040b0: 2b00 cmp r3, #0 - 80040b2: d01c beq.n 80040ee + 8004320: 4b12 ldr r3, [pc, #72] ; (800436c ) + 8004322: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004326: 889b ldrh r3, [r3, #4] + 8004328: 2b00 cmp r3, #0 + 800432a: d01a beq.n 8004362 txBuffer.tail = (txBuffer.tail + 1) % BUFFER_SIZE; - 80040b4: 4b10 ldr r3, [pc, #64] ; (80040f8 ) - 80040b6: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80040ba: 885b ldrh r3, [r3, #2] - 80040bc: 3301 adds r3, #1 - 80040be: 425a negs r2, r3 - 80040c0: f003 037f and.w r3, r3, #127 ; 0x7f - 80040c4: f002 027f and.w r2, r2, #127 ; 0x7f - 80040c8: bf58 it pl - 80040ca: 4253 negpl r3, r2 - 80040cc: b29a uxth r2, r3 - 80040ce: 4b0a ldr r3, [pc, #40] ; (80040f8 ) - 80040d0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80040d4: 805a strh r2, [r3, #2] + 800432c: 4b0f ldr r3, [pc, #60] ; (800436c ) + 800432e: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004332: 885b ldrh r3, [r3, #2] + 8004334: 3301 adds r3, #1 + 8004336: 425a negs r2, r3 + 8004338: b2db uxtb r3, r3 + 800433a: b2d2 uxtb r2, r2 + 800433c: bf58 it pl + 800433e: 4253 negpl r3, r2 + 8004340: b29a uxth r2, r3 + 8004342: 4b0a ldr r3, [pc, #40] ; (800436c ) + 8004344: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004348: 805a strh r2, [r3, #2] txBuffer.count--; - 80040d6: 4b08 ldr r3, [pc, #32] ; (80040f8 ) - 80040d8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80040dc: 889b ldrh r3, [r3, #4] - 80040de: 3b01 subs r3, #1 - 80040e0: b29a uxth r2, r3 - 80040e2: 4b05 ldr r3, [pc, #20] ; (80040f8 ) - 80040e4: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80040e8: 809a strh r2, [r3, #4] + 800434a: 4b08 ldr r3, [pc, #32] ; (800436c ) + 800434c: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 8004350: 889b ldrh r3, [r3, #4] + 8004352: 3b01 subs r3, #1 + 8004354: b29a uxth r2, r3 + 8004356: 4b05 ldr r3, [pc, #20] ; (800436c ) + 8004358: f503 5300 add.w r3, r3, #8192 ; 0x2000 + 800435c: 809a strh r2, [r3, #4] return true; - 80040ea: 2301 movs r3, #1 - 80040ec: e000 b.n 80040f0 + 800435e: 2301 movs r3, #1 + 8004360: e000 b.n 8004364 } else { // Буфер пуст, можно добавить обработку ошибки return false; - 80040ee: 2300 movs r3, #0 + 8004362: 2300 movs r3, #0 } } - 80040f0: 4618 mov r0, r3 - 80040f2: 46bd mov sp, r7 - 80040f4: bc80 pop {r7} - 80040f6: 4770 bx lr - 80040f8: 20000618 .word 0x20000618 + 8004364: 4618 mov r0, r3 + 8004366: 46bd mov sp, r7 + 8004368: bc80 pop {r7} + 800436a: 4770 bx lr + 800436c: 20000618 .word 0x20000618 -080040fc : +08004370 : // Функции работы с Rx буфером void EDCAN_RxBufferAdd(EDCAN_RxFrame_t *frame) { - 80040fc: b580 push {r7, lr} - 80040fe: b082 sub sp, #8 - 8004100: af00 add r7, sp, #0 - 8004102: 6078 str r0, [r7, #4] + 8004370: b580 push {r7, lr} + 8004372: b082 sub sp, #8 + 8004374: af00 add r7, sp, #0 + 8004376: 6078 str r0, [r7, #4] __ASM volatile ("cpsid i" : : : "memory"); - 8004104: b672 cpsid i + 8004378: b672 cpsid i } - 8004106: bf00 nop + 800437a: bf00 nop __disable_irq(); memcpy(&rxBuffer.buffer[rxBuffer.head], frame, sizeof(EDCAN_RxFrame_t)); - 8004108: 4b20 ldr r3, [pc, #128] ; (800418c ) - 800410a: f8b3 3680 ldrh.w r3, [r3, #1664] ; 0x680 - 800410e: 461a mov r2, r3 - 8004110: 4613 mov r3, r2 - 8004112: 005b lsls r3, r3, #1 - 8004114: 4413 add r3, r2 - 8004116: 009b lsls r3, r3, #2 - 8004118: 4413 add r3, r2 - 800411a: 4a1c ldr r2, [pc, #112] ; (800418c ) - 800411c: 4413 add r3, r2 - 800411e: 220d movs r2, #13 - 8004120: 6879 ldr r1, [r7, #4] - 8004122: 4618 mov r0, r3 - 8004124: f004 ff14 bl 8008f50 + 800437c: 4b1f ldr r3, [pc, #124] ; (80043fc ) + 800437e: f8b3 3d00 ldrh.w r3, [r3, #3328] ; 0xd00 + 8004382: 461a mov r2, r3 + 8004384: 4613 mov r3, r2 + 8004386: 005b lsls r3, r3, #1 + 8004388: 4413 add r3, r2 + 800438a: 009b lsls r3, r3, #2 + 800438c: 4413 add r3, r2 + 800438e: 4a1b ldr r2, [pc, #108] ; (80043fc ) + 8004390: 4413 add r3, r2 + 8004392: 220d movs r2, #13 + 8004394: 6879 ldr r1, [r7, #4] + 8004396: 4618 mov r0, r3 + 8004398: f004 ff10 bl 80091bc rxBuffer.head = (rxBuffer.head + 1) % BUFFER_SIZE; - 8004128: 4b18 ldr r3, [pc, #96] ; (800418c ) - 800412a: f8b3 3680 ldrh.w r3, [r3, #1664] ; 0x680 - 800412e: 3301 adds r3, #1 - 8004130: 425a negs r2, r3 - 8004132: f003 037f and.w r3, r3, #127 ; 0x7f - 8004136: f002 027f and.w r2, r2, #127 ; 0x7f - 800413a: bf58 it pl - 800413c: 4253 negpl r3, r2 - 800413e: b29a uxth r2, r3 - 8004140: 4b12 ldr r3, [pc, #72] ; (800418c ) - 8004142: f8a3 2680 strh.w r2, [r3, #1664] ; 0x680 + 800439c: 4b17 ldr r3, [pc, #92] ; (80043fc ) + 800439e: f8b3 3d00 ldrh.w r3, [r3, #3328] ; 0xd00 + 80043a2: 3301 adds r3, #1 + 80043a4: 425a negs r2, r3 + 80043a6: b2db uxtb r3, r3 + 80043a8: b2d2 uxtb r2, r2 + 80043aa: bf58 it pl + 80043ac: 4253 negpl r3, r2 + 80043ae: b29a uxth r2, r3 + 80043b0: 4b12 ldr r3, [pc, #72] ; (80043fc ) + 80043b2: f8a3 2d00 strh.w r2, [r3, #3328] ; 0xd00 if (rxBuffer.count == BUFFER_SIZE) { - 8004146: 4b11 ldr r3, [pc, #68] ; (800418c ) - 8004148: f8b3 3684 ldrh.w r3, [r3, #1668] ; 0x684 - 800414c: 2b80 cmp r3, #128 ; 0x80 - 800414e: d10f bne.n 8004170 + 80043b6: 4b11 ldr r3, [pc, #68] ; (80043fc ) + 80043b8: f8b3 3d04 ldrh.w r3, [r3, #3332] ; 0xd04 + 80043bc: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 80043c0: d10d bne.n 80043de rxBuffer.tail = (rxBuffer.tail + 1) % BUFFER_SIZE; // Перезапись старых данных - 8004150: 4b0e ldr r3, [pc, #56] ; (800418c ) - 8004152: f8b3 3682 ldrh.w r3, [r3, #1666] ; 0x682 - 8004156: 3301 adds r3, #1 - 8004158: 425a negs r2, r3 - 800415a: f003 037f and.w r3, r3, #127 ; 0x7f - 800415e: f002 027f and.w r2, r2, #127 ; 0x7f - 8004162: bf58 it pl - 8004164: 4253 negpl r3, r2 - 8004166: b29a uxth r2, r3 - 8004168: 4b08 ldr r3, [pc, #32] ; (800418c ) - 800416a: f8a3 2682 strh.w r2, [r3, #1666] ; 0x682 - 800416e: e007 b.n 8004180 + 80043c2: 4b0e ldr r3, [pc, #56] ; (80043fc ) + 80043c4: f8b3 3d02 ldrh.w r3, [r3, #3330] ; 0xd02 + 80043c8: 3301 adds r3, #1 + 80043ca: 425a negs r2, r3 + 80043cc: b2db uxtb r3, r3 + 80043ce: b2d2 uxtb r2, r2 + 80043d0: bf58 it pl + 80043d2: 4253 negpl r3, r2 + 80043d4: b29a uxth r2, r3 + 80043d6: 4b09 ldr r3, [pc, #36] ; (80043fc ) + 80043d8: f8a3 2d02 strh.w r2, [r3, #3330] ; 0xd02 + 80043dc: e007 b.n 80043ee } else { rxBuffer.count++; - 8004170: 4b06 ldr r3, [pc, #24] ; (800418c ) - 8004172: f8b3 3684 ldrh.w r3, [r3, #1668] ; 0x684 - 8004176: 3301 adds r3, #1 - 8004178: b29a uxth r2, r3 - 800417a: 4b04 ldr r3, [pc, #16] ; (800418c ) - 800417c: f8a3 2684 strh.w r2, [r3, #1668] ; 0x684 + 80043de: 4b07 ldr r3, [pc, #28] ; (80043fc ) + 80043e0: f8b3 3d04 ldrh.w r3, [r3, #3332] ; 0xd04 + 80043e4: 3301 adds r3, #1 + 80043e6: b29a uxth r2, r3 + 80043e8: 4b04 ldr r3, [pc, #16] ; (80043fc ) + 80043ea: f8a3 2d04 strh.w r2, [r3, #3332] ; 0xd04 __ASM volatile ("cpsie i" : : : "memory"); - 8004180: b662 cpsie i + 80043ee: b662 cpsie i } - 8004182: bf00 nop + 80043f0: bf00 nop } __enable_irq(); } - 8004184: bf00 nop - 8004186: 3708 adds r7, #8 - 8004188: 46bd mov sp, r7 - 800418a: bd80 pop {r7, pc} - 800418c: 20001620 .word 0x20001620 + 80043f2: bf00 nop + 80043f4: 3708 adds r7, #8 + 80043f6: 46bd mov sp, r7 + 80043f8: bd80 pop {r7, pc} + 80043fa: bf00 nop + 80043fc: 20002620 .word 0x20002620 -08004190 : +08004400 : //Извлечь и удалить первый элемент буфера bool EDCAN_RxBufferGet(EDCAN_RxFrame_t *frame) { - 8004190: b580 push {r7, lr} - 8004192: b082 sub sp, #8 - 8004194: af00 add r7, sp, #0 - 8004196: 6078 str r0, [r7, #4] + 8004400: b580 push {r7, lr} + 8004402: b082 sub sp, #8 + 8004404: af00 add r7, sp, #0 + 8004406: 6078 str r0, [r7, #4] if (rxBuffer.count > 0) { - 8004198: 4b19 ldr r3, [pc, #100] ; (8004200 ) - 800419a: f8b3 3684 ldrh.w r3, [r3, #1668] ; 0x684 - 800419e: 2b00 cmp r3, #0 - 80041a0: d028 beq.n 80041f4 + 8004408: 4b18 ldr r3, [pc, #96] ; (800446c ) + 800440a: f8b3 3d04 ldrh.w r3, [r3, #3332] ; 0xd04 + 800440e: 2b00 cmp r3, #0 + 8004410: d026 beq.n 8004460 memcpy(frame, &rxBuffer.buffer[rxBuffer.tail], sizeof(EDCAN_RxFrame_t)); - 80041a2: 4b17 ldr r3, [pc, #92] ; (8004200 ) - 80041a4: f8b3 3682 ldrh.w r3, [r3, #1666] ; 0x682 - 80041a8: 461a mov r2, r3 - 80041aa: 4613 mov r3, r2 - 80041ac: 005b lsls r3, r3, #1 - 80041ae: 4413 add r3, r2 - 80041b0: 009b lsls r3, r3, #2 - 80041b2: 4413 add r3, r2 - 80041b4: 4a12 ldr r2, [pc, #72] ; (8004200 ) - 80041b6: 4413 add r3, r2 - 80041b8: 220d movs r2, #13 - 80041ba: 4619 mov r1, r3 - 80041bc: 6878 ldr r0, [r7, #4] - 80041be: f004 fec7 bl 8008f50 + 8004412: 4b16 ldr r3, [pc, #88] ; (800446c ) + 8004414: f8b3 3d02 ldrh.w r3, [r3, #3330] ; 0xd02 + 8004418: 461a mov r2, r3 + 800441a: 4613 mov r3, r2 + 800441c: 005b lsls r3, r3, #1 + 800441e: 4413 add r3, r2 + 8004420: 009b lsls r3, r3, #2 + 8004422: 4413 add r3, r2 + 8004424: 4a11 ldr r2, [pc, #68] ; (800446c ) + 8004426: 4413 add r3, r2 + 8004428: 220d movs r2, #13 + 800442a: 4619 mov r1, r3 + 800442c: 6878 ldr r0, [r7, #4] + 800442e: f004 fec5 bl 80091bc rxBuffer.tail = (rxBuffer.tail + 1) % BUFFER_SIZE; - 80041c2: 4b0f ldr r3, [pc, #60] ; (8004200 ) - 80041c4: f8b3 3682 ldrh.w r3, [r3, #1666] ; 0x682 - 80041c8: 3301 adds r3, #1 - 80041ca: 425a negs r2, r3 - 80041cc: f003 037f and.w r3, r3, #127 ; 0x7f - 80041d0: f002 027f and.w r2, r2, #127 ; 0x7f - 80041d4: bf58 it pl - 80041d6: 4253 negpl r3, r2 - 80041d8: b29a uxth r2, r3 - 80041da: 4b09 ldr r3, [pc, #36] ; (8004200 ) - 80041dc: f8a3 2682 strh.w r2, [r3, #1666] ; 0x682 + 8004432: 4b0e ldr r3, [pc, #56] ; (800446c ) + 8004434: f8b3 3d02 ldrh.w r3, [r3, #3330] ; 0xd02 + 8004438: 3301 adds r3, #1 + 800443a: 425a negs r2, r3 + 800443c: b2db uxtb r3, r3 + 800443e: b2d2 uxtb r2, r2 + 8004440: bf58 it pl + 8004442: 4253 negpl r3, r2 + 8004444: b29a uxth r2, r3 + 8004446: 4b09 ldr r3, [pc, #36] ; (800446c ) + 8004448: f8a3 2d02 strh.w r2, [r3, #3330] ; 0xd02 rxBuffer.count--; - 80041e0: 4b07 ldr r3, [pc, #28] ; (8004200 ) - 80041e2: f8b3 3684 ldrh.w r3, [r3, #1668] ; 0x684 - 80041e6: 3b01 subs r3, #1 - 80041e8: b29a uxth r2, r3 - 80041ea: 4b05 ldr r3, [pc, #20] ; (8004200 ) - 80041ec: f8a3 2684 strh.w r2, [r3, #1668] ; 0x684 + 800444c: 4b07 ldr r3, [pc, #28] ; (800446c ) + 800444e: f8b3 3d04 ldrh.w r3, [r3, #3332] ; 0xd04 + 8004452: 3b01 subs r3, #1 + 8004454: b29a uxth r2, r3 + 8004456: 4b05 ldr r3, [pc, #20] ; (800446c ) + 8004458: f8a3 2d04 strh.w r2, [r3, #3332] ; 0xd04 return true; - 80041f0: 2301 movs r3, #1 - 80041f2: e000 b.n 80041f6 + 800445c: 2301 movs r3, #1 + 800445e: e000 b.n 8004462 } else { // Буфер пуст, можно добавить обработку ошибки return false; - 80041f4: 2300 movs r3, #0 + 8004460: 2300 movs r3, #0 } } - 80041f6: 4618 mov r0, r3 - 80041f8: 3708 adds r7, #8 - 80041fa: 46bd mov sp, r7 - 80041fc: bd80 pop {r7, pc} - 80041fe: bf00 nop - 8004200: 20001620 .word 0x20001620 + 8004462: 4618 mov r0, r3 + 8004464: 3708 adds r7, #8 + 8004466: 46bd mov sp, r7 + 8004468: bd80 pop {r7, pc} + 800446a: bf00 nop + 800446c: 20002620 .word 0x20002620 -08004204 : +08004470 : //Количество элементов в буфере uint16_t EDCAN_getRxBufferElementCount() { - 8004204: b480 push {r7} - 8004206: af00 add r7, sp, #0 + 8004470: b480 push {r7} + 8004472: af00 add r7, sp, #0 return rxBuffer.count; - 8004208: 4b03 ldr r3, [pc, #12] ; (8004218 ) - 800420a: f8b3 3684 ldrh.w r3, [r3, #1668] ; 0x684 + 8004474: 4b03 ldr r3, [pc, #12] ; (8004484 ) + 8004476: f8b3 3d04 ldrh.w r3, [r3, #3332] ; 0xd04 } - 800420e: 4618 mov r0, r3 - 8004210: 46bd mov sp, r7 - 8004212: bc80 pop {r7} - 8004214: 4770 bx lr - 8004216: bf00 nop - 8004218: 20001620 .word 0x20001620 + 800447a: 4618 mov r0, r3 + 800447c: 46bd mov sp, r7 + 800447e: bc80 pop {r7} + 8004480: 4770 bx lr + 8004482: bf00 nop + 8004484: 20002620 .word 0x20002620 -0800421c : +08004488 : return false; } } //Функция для обработки входящих пакетов из буфера void EDCAN_ExchangeRxBuffer(){ - 800421c: b590 push {r4, r7, lr} - 800421e: b087 sub sp, #28 - 8004220: af02 add r7, sp, #8 + 8004488: b590 push {r4, r7, lr} + 800448a: b087 sub sp, #28 + 800448c: af02 add r7, sp, #8 __ASM volatile ("cpsid i" : : : "memory"); - 8004222: b672 cpsid i + 800448e: b672 cpsid i } - 8004224: bf00 nop + 8004490: bf00 nop EDCAN_RxFrame_t Rxframe; __disable_irq(); if(EDCAN_getRxBufferElementCount()>0){ - 8004226: f7ff ffed bl 8004204 - 800422a: 4603 mov r3, r0 - 800422c: 2b00 cmp r3, #0 - 800422e: d040 beq.n 80042b2 + 8004492: f7ff ffed bl 8004470 + 8004496: 4603 mov r3, r0 + 8004498: 2b00 cmp r3, #0 + 800449a: d040 beq.n 800451e if (EDCAN_RxBufferGet(&Rxframe)){ - 8004230: 463b mov r3, r7 - 8004232: 4618 mov r0, r3 - 8004234: f7ff ffac bl 8004190 - 8004238: 4603 mov r3, r0 - 800423a: 2b00 cmp r3, #0 - 800423c: d039 beq.n 80042b2 + 800449c: 463b mov r3, r7 + 800449e: 4618 mov r0, r3 + 80044a0: f7ff ffae bl 8004400 + 80044a4: 4603 mov r3, r0 + 80044a6: 2b00 cmp r3, #0 + 80044a8: d039 beq.n 800451e if(Rxframe.ExtID.PacketType == ED_WRITE){ - 800423e: 78fb ldrb r3, [r7, #3] - 8004240: f003 0318 and.w r3, r3, #24 - 8004244: b2db uxtb r3, r3 - 8004246: 2b00 cmp r3, #0 - 8004248: d10e bne.n 8004268 + 80044aa: 78fb ldrb r3, [r7, #3] + 80044ac: f003 0318 and.w r3, r3, #24 + 80044b0: b2db uxtb r3, r3 + 80044b2: 2b00 cmp r3, #0 + 80044b4: d10e bne.n 80044d4 EDCAN_WriteHandler(Rxframe.ExtID.SourceID, Rxframe.ExtID.DestinationID, Rxframe.ExtID.RegisterAddress, Rxframe.data, Rxframe.DLC); - 800424a: 7878 ldrb r0, [r7, #1] - 800424c: 7839 ldrb r1, [r7, #0] - 800424e: 887b ldrh r3, [r7, #2] - 8004250: f3c3 030a ubfx r3, r3, #0, #11 - 8004254: b29b uxth r3, r3 - 8004256: 461c mov r4, r3 - 8004258: 7b3b ldrb r3, [r7, #12] - 800425a: 463a mov r2, r7 - 800425c: 3204 adds r2, #4 - 800425e: 9300 str r3, [sp, #0] - 8004260: 4613 mov r3, r2 - 8004262: 4622 mov r2, r4 - 8004264: f000 f82b bl 80042be + 80044b6: 7878 ldrb r0, [r7, #1] + 80044b8: 7839 ldrb r1, [r7, #0] + 80044ba: 887b ldrh r3, [r7, #2] + 80044bc: f3c3 030a ubfx r3, r3, #0, #11 + 80044c0: b29b uxth r3, r3 + 80044c2: 461c mov r4, r3 + 80044c4: 7b3b ldrb r3, [r7, #12] + 80044c6: 463a mov r2, r7 + 80044c8: 3204 adds r2, #4 + 80044ca: 9300 str r3, [sp, #0] + 80044cc: 4613 mov r3, r2 + 80044ce: 4622 mov r2, r4 + 80044d0: f000 f82b bl 800452a } if(Rxframe.ExtID.PacketType == ED_READREQ){ - 8004268: 78fb ldrb r3, [r7, #3] - 800426a: f003 0318 and.w r3, r3, #24 - 800426e: b2db uxtb r3, r3 - 8004270: 2b08 cmp r3, #8 - 8004272: d109 bne.n 8004288 + 80044d4: 78fb ldrb r3, [r7, #3] + 80044d6: f003 0318 and.w r3, r3, #24 + 80044da: b2db uxtb r3, r3 + 80044dc: 2b08 cmp r3, #8 + 80044de: d109 bne.n 80044f4 EDCAN_ReadRequestHandler(Rxframe.ExtID.SourceID, Rxframe.ExtID.DestinationID, Rxframe.ExtID.RegisterAddress, Rxframe.data[0]); - 8004274: 7878 ldrb r0, [r7, #1] - 8004276: 7839 ldrb r1, [r7, #0] - 8004278: 887b ldrh r3, [r7, #2] - 800427a: f3c3 030a ubfx r3, r3, #0, #11 - 800427e: b29b uxth r3, r3 - 8004280: 461a mov r2, r3 - 8004282: 793b ldrb r3, [r7, #4] - 8004284: f000 f8f3 bl 800446e + 80044e0: 7878 ldrb r0, [r7, #1] + 80044e2: 7839 ldrb r1, [r7, #0] + 80044e4: 887b ldrh r3, [r7, #2] + 80044e6: f3c3 030a ubfx r3, r3, #0, #11 + 80044ea: b29b uxth r3, r3 + 80044ec: 461a mov r2, r3 + 80044ee: 793b ldrb r3, [r7, #4] + 80044f0: f000 f8f3 bl 80046da } if(Rxframe.ExtID.PacketType == ED_READ){ - 8004288: 78fb ldrb r3, [r7, #3] - 800428a: f003 0318 and.w r3, r3, #24 - 800428e: b2db uxtb r3, r3 - 8004290: 2b10 cmp r3, #16 - 8004292: d10e bne.n 80042b2 + 80044f4: 78fb ldrb r3, [r7, #3] + 80044f6: f003 0318 and.w r3, r3, #24 + 80044fa: b2db uxtb r3, r3 + 80044fc: 2b10 cmp r3, #16 + 80044fe: d10e bne.n 800451e EDCAN_ReadHandler(Rxframe.ExtID.SourceID, Rxframe.ExtID.DestinationID, Rxframe.ExtID.RegisterAddress, Rxframe.data, Rxframe.DLC); - 8004294: 7878 ldrb r0, [r7, #1] - 8004296: 7839 ldrb r1, [r7, #0] - 8004298: 887b ldrh r3, [r7, #2] - 800429a: f3c3 030a ubfx r3, r3, #0, #11 - 800429e: b29b uxth r3, r3 - 80042a0: 461c mov r4, r3 - 80042a2: 7b3b ldrb r3, [r7, #12] - 80042a4: 463a mov r2, r7 - 80042a6: 3204 adds r2, #4 - 80042a8: 9300 str r3, [sp, #0] - 80042aa: 4613 mov r3, r2 - 80042ac: 4622 mov r2, r4 - 80042ae: f7fe fd61 bl 8002d74 + 8004500: 7878 ldrb r0, [r7, #1] + 8004502: 7839 ldrb r1, [r7, #0] + 8004504: 887b ldrh r3, [r7, #2] + 8004506: f3c3 030a ubfx r3, r3, #0, #11 + 800450a: b29b uxth r3, r3 + 800450c: 461c mov r4, r3 + 800450e: 7b3b ldrb r3, [r7, #12] + 8004510: 463a mov r2, r7 + 8004512: 3204 adds r2, #4 + 8004514: 9300 str r3, [sp, #0] + 8004516: 4613 mov r3, r2 + 8004518: 4622 mov r2, r4 + 800451a: f7fe fd6b bl 8002ff4 __ASM volatile ("cpsie i" : : : "memory"); - 80042b2: b662 cpsie i + 800451e: b662 cpsie i } - 80042b4: bf00 nop + 8004520: bf00 nop } } } __enable_irq(); } - 80042b6: bf00 nop - 80042b8: 3714 adds r7, #20 - 80042ba: 46bd mov sp, r7 - 80042bc: bd90 pop {r4, r7, pc} + 8004522: bf00 nop + 8004524: 3714 adds r7, #20 + 8004526: 46bd mov sp, r7 + 8004528: bd90 pop {r4, r7, pc} -080042be : +0800452a : * DestinationID: Packet Destination ID * Addr: First register address in sequence * *data: pointer for data array * len: length of data (1..255) */ void EDCAN_WriteHandler(uint8_t SourceID, uint8_t DestinationID, uint16_t Addr, uint8_t *data, uint8_t len){ - 80042be: b580 push {r7, lr} - 80042c0: b084 sub sp, #16 - 80042c2: af00 add r7, sp, #0 - 80042c4: 603b str r3, [r7, #0] - 80042c6: 4603 mov r3, r0 - 80042c8: 71fb strb r3, [r7, #7] - 80042ca: 460b mov r3, r1 - 80042cc: 71bb strb r3, [r7, #6] - 80042ce: 4613 mov r3, r2 - 80042d0: 80bb strh r3, [r7, #4] + 800452a: b580 push {r7, lr} + 800452c: b084 sub sp, #16 + 800452e: af00 add r7, sp, #0 + 8004530: 603b str r3, [r7, #0] + 8004532: 4603 mov r3, r0 + 8004534: 71fb strb r3, [r7, #7] + 8004536: 460b mov r3, r1 + 8004538: 71bb strb r3, [r7, #6] + 800453a: 4613 mov r3, r2 + 800453c: 80bb strh r3, [r7, #4] // printf("Destination ID = %d\n", DestinationID); // printf("Address = %d\n", Addr); // printf("Len = %d\n", len); // printf("\n"); for (uint16_t AddrOffset = 0; AddrOffset < len; AddrOffset++){ //по очереди перебираем все полученные регистры через Handler - 80042d2: 2300 movs r3, #0 - 80042d4: 81fb strh r3, [r7, #14] - 80042d6: e01e b.n 8004316 + 800453e: 2300 movs r3, #0 + 8004540: 81fb strh r3, [r7, #14] + 8004542: e01e b.n 8004582 // printf ("register[%d] = %d\n", Addr+AddrOffset, data[AddrOffset]); if((Addr+AddrOffset)>=256){ - 80042d8: 88ba ldrh r2, [r7, #4] - 80042da: 89fb ldrh r3, [r7, #14] - 80042dc: 4413 add r3, r2 - 80042de: 2bff cmp r3, #255 ; 0xff - 80042e0: dd0b ble.n 80042fa + 8004544: 88ba ldrh r2, [r7, #4] + 8004546: 89fb ldrh r3, [r7, #14] + 8004548: 4413 add r3, r2 + 800454a: 2bff cmp r3, #255 ; 0xff + 800454c: dd0b ble.n 8004566 EDCAN_WriteUserRegister(Addr+AddrOffset, data[AddrOffset]); - 80042e2: 88ba ldrh r2, [r7, #4] - 80042e4: 89fb ldrh r3, [r7, #14] - 80042e6: 4413 add r3, r2 - 80042e8: b298 uxth r0, r3 - 80042ea: 89fb ldrh r3, [r7, #14] - 80042ec: 683a ldr r2, [r7, #0] - 80042ee: 4413 add r3, r2 - 80042f0: 781b ldrb r3, [r3, #0] - 80042f2: 4619 mov r1, r3 - 80042f4: f7fe fd5a bl 8002dac - 80042f8: e00a b.n 8004310 + 800454e: 88ba ldrh r2, [r7, #4] + 8004550: 89fb ldrh r3, [r7, #14] + 8004552: 4413 add r3, r2 + 8004554: b298 uxth r0, r3 + 8004556: 89fb ldrh r3, [r7, #14] + 8004558: 683a ldr r2, [r7, #0] + 800455a: 4413 add r3, r2 + 800455c: 781b ldrb r3, [r3, #0] + 800455e: 4619 mov r1, r3 + 8004560: f7fe fd64 bl 800302c + 8004564: e00a b.n 800457c }else{ EDCAN_WriteSystemRegister(Addr+AddrOffset, data[AddrOffset]); - 80042fa: 88ba ldrh r2, [r7, #4] - 80042fc: 89fb ldrh r3, [r7, #14] - 80042fe: 4413 add r3, r2 - 8004300: b298 uxth r0, r3 - 8004302: 89fb ldrh r3, [r7, #14] - 8004304: 683a ldr r2, [r7, #0] - 8004306: 4413 add r3, r2 - 8004308: 781b ldrb r3, [r3, #0] - 800430a: 4619 mov r1, r3 - 800430c: f000 f80e bl 800432c + 8004566: 88ba ldrh r2, [r7, #4] + 8004568: 89fb ldrh r3, [r7, #14] + 800456a: 4413 add r3, r2 + 800456c: b298 uxth r0, r3 + 800456e: 89fb ldrh r3, [r7, #14] + 8004570: 683a ldr r2, [r7, #0] + 8004572: 4413 add r3, r2 + 8004574: 781b ldrb r3, [r3, #0] + 8004576: 4619 mov r1, r3 + 8004578: f000 f80e bl 8004598 for (uint16_t AddrOffset = 0; AddrOffset < len; AddrOffset++){ //по очереди перебираем все полученные регистры через Handler - 8004310: 89fb ldrh r3, [r7, #14] - 8004312: 3301 adds r3, #1 - 8004314: 81fb strh r3, [r7, #14] - 8004316: 7e3b ldrb r3, [r7, #24] - 8004318: b29b uxth r3, r3 - 800431a: 89fa ldrh r2, [r7, #14] - 800431c: 429a cmp r2, r3 - 800431e: d3db bcc.n 80042d8 + 800457c: 89fb ldrh r3, [r7, #14] + 800457e: 3301 adds r3, #1 + 8004580: 81fb strh r3, [r7, #14] + 8004582: 7e3b ldrb r3, [r7, #24] + 8004584: b29b uxth r3, r3 + 8004586: 89fa ldrh r2, [r7, #14] + 8004588: 429a cmp r2, r3 + 800458a: d3db bcc.n 8004544 } } } - 8004320: bf00 nop - 8004322: bf00 nop - 8004324: 3710 adds r7, #16 - 8004326: 46bd mov sp, r7 - 8004328: bd80 pop {r7, pc} + 800458c: bf00 nop + 800458e: bf00 nop + 8004590: 3710 adds r7, #16 + 8004592: 46bd mov sp, r7 + 8004594: bd80 pop {r7, pc} ... -0800432c : +08004598 : void EDCAN_WriteSystemRegister(uint16_t addr, uint8_t value){ - 800432c: b580 push {r7, lr} - 800432e: b082 sub sp, #8 - 8004330: af00 add r7, sp, #0 - 8004332: 4603 mov r3, r0 - 8004334: 460a mov r2, r1 - 8004336: 80fb strh r3, [r7, #6] - 8004338: 4613 mov r3, r2 - 800433a: 717b strb r3, [r7, #5] + 8004598: b580 push {r7, lr} + 800459a: b082 sub sp, #8 + 800459c: af00 add r7, sp, #0 + 800459e: 4603 mov r3, r0 + 80045a0: 460a mov r2, r1 + 80045a2: 80fb strh r3, [r7, #6] + 80045a4: 4613 mov r3, r2 + 80045a6: 717b strb r3, [r7, #5] switch(addr){ - 800433c: 88fb ldrh r3, [r7, #6] - 800433e: 2b00 cmp r3, #0 - 8004340: d002 beq.n 8004348 - 8004342: 2b20 cmp r3, #32 - 8004344: d00b beq.n 800435e + 80045a8: 88fb ldrh r3, [r7, #6] + 80045aa: 2b00 cmp r3, #0 + 80045ac: d002 beq.n 80045b4 + 80045ae: 2b20 cmp r3, #32 + 80045b0: d00b beq.n 80045ca // break; //default: // printf ("Unknown register\n"); } } - 8004346: e010 b.n 800436a + 80045b2: e010 b.n 80045d6 if(value == 0x10){ - 8004348: 797b ldrb r3, [r7, #5] - 800434a: 2b10 cmp r3, #16 - 800434c: d10c bne.n 8004368 + 80045b4: 797b ldrb r3, [r7, #5] + 80045b6: 2b10 cmp r3, #16 + 80045b8: d10c bne.n 80045d4 if(ED_status==0)ED_status = 0x10; - 800434e: 4b09 ldr r3, [pc, #36] ; (8004374 ) - 8004350: 781b ldrb r3, [r3, #0] - 8004352: 2b00 cmp r3, #0 - 8004354: d108 bne.n 8004368 - 8004356: 4b07 ldr r3, [pc, #28] ; (8004374 ) - 8004358: 2210 movs r2, #16 - 800435a: 701a strb r2, [r3, #0] + 80045ba: 4b09 ldr r3, [pc, #36] ; (80045e0 ) + 80045bc: 781b ldrb r3, [r3, #0] + 80045be: 2b00 cmp r3, #0 + 80045c0: d108 bne.n 80045d4 + 80045c2: 4b07 ldr r3, [pc, #28] ; (80045e0 ) + 80045c4: 2210 movs r2, #16 + 80045c6: 701a strb r2, [r3, #0] break; - 800435c: e004 b.n 8004368 + 80045c8: e004 b.n 80045d4 EDCAN_EnterSilentMode(value); - 800435e: 797b ldrb r3, [r7, #5] - 8004360: 4618 mov r0, r3 - 8004362: f7ff fd83 bl 8003e6c + 80045ca: 797b ldrb r3, [r7, #5] + 80045cc: 4618 mov r0, r3 + 80045ce: f7ff fd8d bl 80040ec break; - 8004366: e000 b.n 800436a + 80045d2: e000 b.n 80045d6 break; - 8004368: bf00 nop + 80045d4: bf00 nop } - 800436a: bf00 nop - 800436c: 3708 adds r7, #8 - 800436e: 46bd mov sp, r7 - 8004370: bd80 pop {r7, pc} - 8004372: bf00 nop - 8004374: 20001ca6 .word 0x20001ca6 + 80045d6: bf00 nop + 80045d8: 3708 adds r7, #8 + 80045da: 46bd mov sp, r7 + 80045dc: bd80 pop {r7, pc} + 80045de: bf00 nop + 80045e0: 20003326 .word 0x20003326 -08004378 : +080045e4 : * @brief Handler to get System register values (0..255) * * @param addr: register address * @retval register value (uint8_t) */ uint8_t EDCAN_GetSystemRegisterValue(uint16_t addr){ - 8004378: b580 push {r7, lr} - 800437a: b082 sub sp, #8 - 800437c: af00 add r7, sp, #0 - 800437e: 4603 mov r3, r0 - 8004380: 80fb strh r3, [r7, #6] + 80045e4: b580 push {r7, lr} + 80045e6: b082 sub sp, #8 + 80045e8: af00 add r7, sp, #0 + 80045ea: 4603 mov r3, r0 + 80045ec: 80fb strh r3, [r7, #6] static uint32_t uptime_buffer; switch (addr){ - 8004382: 88fb ldrh r3, [r7, #6] - 8004384: 2b17 cmp r3, #23 - 8004386: d852 bhi.n 800442e - 8004388: a201 add r2, pc, #4 ; (adr r2, 8004390 ) - 800438a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800438e: bf00 nop - 8004390: 080043f1 .word 0x080043f1 - 8004394: 080043fb .word 0x080043fb - 8004398: 080043f7 .word 0x080043f7 - 800439c: 0800442f .word 0x0800442f - 80043a0: 0800442f .word 0x0800442f - 80043a4: 0800442f .word 0x0800442f - 80043a8: 0800442f .word 0x0800442f - 80043ac: 0800442f .word 0x0800442f - 80043b0: 0800442f .word 0x0800442f - 80043b4: 0800442f .word 0x0800442f - 80043b8: 0800442f .word 0x0800442f - 80043bc: 0800442f .word 0x0800442f - 80043c0: 0800442f .word 0x0800442f - 80043c4: 0800442f .word 0x0800442f - 80043c8: 0800442f .word 0x0800442f - 80043cc: 0800442f .word 0x0800442f - 80043d0: 0800442f .word 0x0800442f - 80043d4: 0800442f .word 0x0800442f - 80043d8: 0800442f .word 0x0800442f - 80043dc: 0800442f .word 0x0800442f - 80043e0: 080043ff .word 0x080043ff - 80043e4: 08004411 .word 0x08004411 - 80043e8: 0800441b .word 0x0800441b - 80043ec: 08004425 .word 0x08004425 + 80045ee: 88fb ldrh r3, [r7, #6] + 80045f0: 2b17 cmp r3, #23 + 80045f2: d852 bhi.n 800469a + 80045f4: a201 add r2, pc, #4 ; (adr r2, 80045fc ) + 80045f6: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80045fa: bf00 nop + 80045fc: 0800465d .word 0x0800465d + 8004600: 08004667 .word 0x08004667 + 8004604: 08004663 .word 0x08004663 + 8004608: 0800469b .word 0x0800469b + 800460c: 0800469b .word 0x0800469b + 8004610: 0800469b .word 0x0800469b + 8004614: 0800469b .word 0x0800469b + 8004618: 0800469b .word 0x0800469b + 800461c: 0800469b .word 0x0800469b + 8004620: 0800469b .word 0x0800469b + 8004624: 0800469b .word 0x0800469b + 8004628: 0800469b .word 0x0800469b + 800462c: 0800469b .word 0x0800469b + 8004630: 0800469b .word 0x0800469b + 8004634: 0800469b .word 0x0800469b + 8004638: 0800469b .word 0x0800469b + 800463c: 0800469b .word 0x0800469b + 8004640: 0800469b .word 0x0800469b + 8004644: 0800469b .word 0x0800469b + 8004648: 0800469b .word 0x0800469b + 800464c: 0800466b .word 0x0800466b + 8004650: 0800467d .word 0x0800467d + 8004654: 08004687 .word 0x08004687 + 8004658: 08004691 .word 0x08004691 /* регистры 0..255 используются для Системных регистров*/ case EDCAN_REG_SYS_STATUS: return ED_status; - 80043f0: 4b11 ldr r3, [pc, #68] ; (8004438 ) - 80043f2: 781b ldrb r3, [r3, #0] - 80043f4: e01c b.n 8004430 + 800465c: 4b11 ldr r3, [pc, #68] ; (80046a4 ) + 800465e: 781b ldrb r3, [r3, #0] + 8004660: e01c b.n 800469c break; case EDCAN_REG_SYS_FWVER: return FWVER; - 80043f6: 2301 movs r3, #1 - 80043f8: e01a b.n 8004430 + 8004662: 2301 movs r3, #1 + 8004664: e01a b.n 800469c break; case EDCAN_REG_SYS_DEVICEID: return DEVICE_ID; - 80043fa: 2320 movs r3, #32 - 80043fc: e018 b.n 8004430 + 8004666: 2320 movs r3, #32 + 8004668: e018 b.n 800469c break; case EDCAN_REG_SYS_UPTIME0: uptime_buffer = HAL_GetTick(); - 80043fe: f000 fd79 bl 8004ef4 - 8004402: 4603 mov r3, r0 - 8004404: 4a0d ldr r2, [pc, #52] ; (800443c ) - 8004406: 6013 str r3, [r2, #0] + 800466a: f000 fd79 bl 8005160 + 800466e: 4603 mov r3, r0 + 8004670: 4a0d ldr r2, [pc, #52] ; (80046a8 ) + 8004672: 6013 str r3, [r2, #0] return uptime_buffer & 0xFF; - 8004408: 4b0c ldr r3, [pc, #48] ; (800443c ) - 800440a: 681b ldr r3, [r3, #0] - 800440c: b2db uxtb r3, r3 - 800440e: e00f b.n 8004430 + 8004674: 4b0c ldr r3, [pc, #48] ; (80046a8 ) + 8004676: 681b ldr r3, [r3, #0] + 8004678: b2db uxtb r3, r3 + 800467a: e00f b.n 800469c break; case EDCAN_REG_SYS_UPTIME1: return (uptime_buffer>>8) & 0xFF; - 8004410: 4b0a ldr r3, [pc, #40] ; (800443c ) - 8004412: 681b ldr r3, [r3, #0] - 8004414: 0a1b lsrs r3, r3, #8 - 8004416: b2db uxtb r3, r3 - 8004418: e00a b.n 8004430 + 800467c: 4b0a ldr r3, [pc, #40] ; (80046a8 ) + 800467e: 681b ldr r3, [r3, #0] + 8004680: 0a1b lsrs r3, r3, #8 + 8004682: b2db uxtb r3, r3 + 8004684: e00a b.n 800469c break; case EDCAN_REG_SYS_UPTIME2: return (uptime_buffer>>16) & 0xFF; - 800441a: 4b08 ldr r3, [pc, #32] ; (800443c ) - 800441c: 681b ldr r3, [r3, #0] - 800441e: 0c1b lsrs r3, r3, #16 - 8004420: b2db uxtb r3, r3 - 8004422: e005 b.n 8004430 + 8004686: 4b08 ldr r3, [pc, #32] ; (80046a8 ) + 8004688: 681b ldr r3, [r3, #0] + 800468a: 0c1b lsrs r3, r3, #16 + 800468c: b2db uxtb r3, r3 + 800468e: e005 b.n 800469c break; case EDCAN_REG_SYS_UPTIME3: return (uptime_buffer>>24) & 0xFF; - 8004424: 4b05 ldr r3, [pc, #20] ; (800443c ) - 8004426: 681b ldr r3, [r3, #0] - 8004428: 0e1b lsrs r3, r3, #24 - 800442a: b2db uxtb r3, r3 - 800442c: e000 b.n 8004430 + 8004690: 4b05 ldr r3, [pc, #20] ; (80046a8 ) + 8004692: 681b ldr r3, [r3, #0] + 8004694: 0e1b lsrs r3, r3, #24 + 8004696: b2db uxtb r3, r3 + 8004698: e000 b.n 800469c break; default: return 0x00; - 800442e: 2300 movs r3, #0 + 800469a: 2300 movs r3, #0 } } - 8004430: 4618 mov r0, r3 - 8004432: 3708 adds r7, #8 - 8004434: 46bd mov sp, r7 - 8004436: bd80 pop {r7, pc} - 8004438: 20001ca6 .word 0x20001ca6 - 800443c: 20001ca8 .word 0x20001ca8 + 800469c: 4618 mov r0, r3 + 800469e: 3708 adds r7, #8 + 80046a0: 46bd mov sp, r7 + 80046a2: bd80 pop {r7, pc} + 80046a4: 20003326 .word 0x20003326 + 80046a8: 20003328 .word 0x20003328 -08004440 : +080046ac : * @brief Handler to get own register values * * @param addr: register address * @retval register value (uint8_t) */ uint8_t EDCAN_GetOwnRegisterValue (uint16_t addr){ - 8004440: b580 push {r7, lr} - 8004442: b082 sub sp, #8 - 8004444: af00 add r7, sp, #0 - 8004446: 4603 mov r3, r0 - 8004448: 80fb strh r3, [r7, #6] + 80046ac: b580 push {r7, lr} + 80046ae: b082 sub sp, #8 + 80046b0: af00 add r7, sp, #0 + 80046b2: 4603 mov r3, r0 + 80046b4: 80fb strh r3, [r7, #6] if(addr<256){ - 800444a: 88fb ldrh r3, [r7, #6] - 800444c: 2bff cmp r3, #255 ; 0xff - 800444e: d805 bhi.n 800445c + 80046b6: 88fb ldrh r3, [r7, #6] + 80046b8: 2bff cmp r3, #255 ; 0xff + 80046ba: d805 bhi.n 80046c8 return EDCAN_GetSystemRegisterValue(addr); // 0..255 - 8004450: 88fb ldrh r3, [r7, #6] - 8004452: 4618 mov r0, r3 - 8004454: f7ff ff90 bl 8004378 - 8004458: 4603 mov r3, r0 - 800445a: e004 b.n 8004466 + 80046bc: 88fb ldrh r3, [r7, #6] + 80046be: 4618 mov r0, r3 + 80046c0: f7ff ff90 bl 80045e4 + 80046c4: 4603 mov r3, r0 + 80046c6: e004 b.n 80046d2 }else { return EDCAN_GetUserRegisterValue(addr); // 256..2047 - 800445c: 88fb ldrh r3, [r7, #6] - 800445e: 4618 mov r0, r3 - 8004460: f7fe fd54 bl 8002f0c - 8004464: 4603 mov r3, r0 + 80046c8: 88fb ldrh r3, [r7, #6] + 80046ca: 4618 mov r0, r3 + 80046cc: f7fe fd5e bl 800318c + 80046d0: 4603 mov r3, r0 } } - 8004466: 4618 mov r0, r3 - 8004468: 3708 adds r7, #8 - 800446a: 46bd mov sp, r7 - 800446c: bd80 pop {r7, pc} + 80046d2: 4618 mov r0, r3 + 80046d4: 3708 adds r7, #8 + 80046d6: 46bd mov sp, r7 + 80046d8: bd80 pop {r7, pc} -0800446e : +080046da : * DestinationID: Packet Destination ID * Addr: First register address in sequence * *data: pointer for data array * len: length of data (1..255) */ void EDCAN_ReadRequestHandler(uint8_t SourceID, uint8_t DestinationID, uint16_t Addr, uint8_t len){ - 800446e: b590 push {r4, r7, lr} - 8004470: b087 sub sp, #28 - 8004472: af00 add r7, sp, #0 - 8004474: 4604 mov r4, r0 - 8004476: 4608 mov r0, r1 - 8004478: 4611 mov r1, r2 - 800447a: 461a mov r2, r3 - 800447c: 4623 mov r3, r4 - 800447e: 71fb strb r3, [r7, #7] - 8004480: 4603 mov r3, r0 - 8004482: 71bb strb r3, [r7, #6] - 8004484: 460b mov r3, r1 - 8004486: 80bb strh r3, [r7, #4] - 8004488: 4613 mov r3, r2 - 800448a: 70fb strb r3, [r7, #3] + 80046da: b590 push {r4, r7, lr} + 80046dc: b087 sub sp, #28 + 80046de: af00 add r7, sp, #0 + 80046e0: 4604 mov r4, r0 + 80046e2: 4608 mov r0, r1 + 80046e4: 4611 mov r1, r2 + 80046e6: 461a mov r2, r3 + 80046e8: 4623 mov r3, r4 + 80046ea: 71fb strb r3, [r7, #7] + 80046ec: 4603 mov r3, r0 + 80046ee: 71bb strb r3, [r7, #6] + 80046f0: 460b mov r3, r1 + 80046f2: 80bb strh r3, [r7, #4] + 80046f4: 4613 mov r3, r2 + 80046f6: 70fb strb r3, [r7, #3] //Получили пакет Read (запрошенное значение регистров) uint8_t TxData[8]; uint16_t AddrOffset = Addr; - 800448c: 88bb ldrh r3, [r7, #4] - 800448e: 82fb strh r3, [r7, #22] + 80046f8: 88bb ldrh r3, [r7, #4] + 80046fa: 82fb strh r3, [r7, #22] // printf("Destination ID = %d\n", DestinationID); // printf("Address = %d\n", Addr); // printf("Len = %d\n", len); // printf("\n"); while (len>0){ //по очереди перебираем все полученные регистры через Handler - 8004490: e051 b.n 8004536 + 80046fc: e051 b.n 80047a2 if(len>=8){ //если количество регистров больше 8, отправляем 8 и разбиваем на несколько пакетов - 8004492: 78fb ldrb r3, [r7, #3] - 8004494: 2b07 cmp r3, #7 - 8004496: d926 bls.n 80044e6 + 80046fe: 78fb ldrb r3, [r7, #3] + 8004700: 2b07 cmp r3, #7 + 8004702: d926 bls.n 8004752 for(uint8_t n = 0; n < 8; n++){ - 8004498: 2300 movs r3, #0 - 800449a: 757b strb r3, [r7, #21] - 800449c: e012 b.n 80044c4 + 8004704: 2300 movs r3, #0 + 8004706: 757b strb r3, [r7, #21] + 8004708: e012 b.n 8004730 TxData[n] = EDCAN_GetOwnRegisterValue(n+AddrOffset); - 800449e: 7d7b ldrb r3, [r7, #21] - 80044a0: b29a uxth r2, r3 - 80044a2: 8afb ldrh r3, [r7, #22] - 80044a4: 4413 add r3, r2 - 80044a6: b29b uxth r3, r3 - 80044a8: 7d7c ldrb r4, [r7, #21] - 80044aa: 4618 mov r0, r3 - 80044ac: f7ff ffc8 bl 8004440 - 80044b0: 4603 mov r3, r0 - 80044b2: 461a mov r2, r3 - 80044b4: f104 0318 add.w r3, r4, #24 - 80044b8: 443b add r3, r7 - 80044ba: f803 2c0c strb.w r2, [r3, #-12] + 800470a: 7d7b ldrb r3, [r7, #21] + 800470c: b29a uxth r2, r3 + 800470e: 8afb ldrh r3, [r7, #22] + 8004710: 4413 add r3, r2 + 8004712: b29b uxth r3, r3 + 8004714: 7d7c ldrb r4, [r7, #21] + 8004716: 4618 mov r0, r3 + 8004718: f7ff ffc8 bl 80046ac + 800471c: 4603 mov r3, r0 + 800471e: 461a mov r2, r3 + 8004720: f104 0318 add.w r3, r4, #24 + 8004724: 443b add r3, r7 + 8004726: f803 2c0c strb.w r2, [r3, #-12] for(uint8_t n = 0; n < 8; n++){ - 80044be: 7d7b ldrb r3, [r7, #21] - 80044c0: 3301 adds r3, #1 - 80044c2: 757b strb r3, [r7, #21] - 80044c4: 7d7b ldrb r3, [r7, #21] - 80044c6: 2b07 cmp r3, #7 - 80044c8: d9e9 bls.n 800449e + 800472a: 7d7b ldrb r3, [r7, #21] + 800472c: 3301 adds r3, #1 + 800472e: 757b strb r3, [r7, #21] + 8004730: 7d7b ldrb r3, [r7, #21] + 8004732: 2b07 cmp r3, #7 + 8004734: d9e9 bls.n 800470a //printf ("register[%d] = %d\n", n+AddrOffset, TxData[n]); } EDCAN_SendPacketRead(SourceID, AddrOffset, TxData, 8); /* отправляем ответный пакет со значениями собственных регистров */ - 80044ca: f107 020c add.w r2, r7, #12 - 80044ce: 8af9 ldrh r1, [r7, #22] - 80044d0: 79f8 ldrb r0, [r7, #7] - 80044d2: 2308 movs r3, #8 - 80044d4: f7ff fc2e bl 8003d34 + 8004736: f107 020c add.w r2, r7, #12 + 800473a: 8af9 ldrh r1, [r7, #22] + 800473c: 79f8 ldrb r0, [r7, #7] + 800473e: 2308 movs r3, #8 + 8004740: f7ff fc38 bl 8003fb4 //printf ("sent%d, %d\n", AddrOffset, len); AddrOffset +=8; - 80044d8: 8afb ldrh r3, [r7, #22] - 80044da: 3308 adds r3, #8 - 80044dc: 82fb strh r3, [r7, #22] + 8004744: 8afb ldrh r3, [r7, #22] + 8004746: 3308 adds r3, #8 + 8004748: 82fb strh r3, [r7, #22] len -=8; - 80044de: 78fb ldrb r3, [r7, #3] - 80044e0: 3b08 subs r3, #8 - 80044e2: 70fb strb r3, [r7, #3] - 80044e4: e027 b.n 8004536 + 800474a: 78fb ldrb r3, [r7, #3] + 800474c: 3b08 subs r3, #8 + 800474e: 70fb strb r3, [r7, #3] + 8004750: e027 b.n 80047a2 }else{ for(uint8_t n = 0; n < len; n++){ - 80044e6: 2300 movs r3, #0 - 80044e8: 753b strb r3, [r7, #20] - 80044ea: e012 b.n 8004512 + 8004752: 2300 movs r3, #0 + 8004754: 753b strb r3, [r7, #20] + 8004756: e012 b.n 800477e TxData[n] = EDCAN_GetOwnRegisterValue(n+AddrOffset); - 80044ec: 7d3b ldrb r3, [r7, #20] - 80044ee: b29a uxth r2, r3 - 80044f0: 8afb ldrh r3, [r7, #22] - 80044f2: 4413 add r3, r2 - 80044f4: b29b uxth r3, r3 - 80044f6: 7d3c ldrb r4, [r7, #20] - 80044f8: 4618 mov r0, r3 - 80044fa: f7ff ffa1 bl 8004440 - 80044fe: 4603 mov r3, r0 - 8004500: 461a mov r2, r3 - 8004502: f104 0318 add.w r3, r4, #24 - 8004506: 443b add r3, r7 - 8004508: f803 2c0c strb.w r2, [r3, #-12] + 8004758: 7d3b ldrb r3, [r7, #20] + 800475a: b29a uxth r2, r3 + 800475c: 8afb ldrh r3, [r7, #22] + 800475e: 4413 add r3, r2 + 8004760: b29b uxth r3, r3 + 8004762: 7d3c ldrb r4, [r7, #20] + 8004764: 4618 mov r0, r3 + 8004766: f7ff ffa1 bl 80046ac + 800476a: 4603 mov r3, r0 + 800476c: 461a mov r2, r3 + 800476e: f104 0318 add.w r3, r4, #24 + 8004772: 443b add r3, r7 + 8004774: f803 2c0c strb.w r2, [r3, #-12] for(uint8_t n = 0; n < len; n++){ - 800450c: 7d3b ldrb r3, [r7, #20] - 800450e: 3301 adds r3, #1 - 8004510: 753b strb r3, [r7, #20] - 8004512: 7d3a ldrb r2, [r7, #20] - 8004514: 78fb ldrb r3, [r7, #3] - 8004516: 429a cmp r2, r3 - 8004518: d3e8 bcc.n 80044ec + 8004778: 7d3b ldrb r3, [r7, #20] + 800477a: 3301 adds r3, #1 + 800477c: 753b strb r3, [r7, #20] + 800477e: 7d3a ldrb r2, [r7, #20] + 8004780: 78fb ldrb r3, [r7, #3] + 8004782: 429a cmp r2, r3 + 8004784: d3e8 bcc.n 8004758 //printf ("register[%d] = %d\n", n+AddrOffset, TxData[n]); } EDCAN_SendPacketRead(SourceID, AddrOffset, TxData, len); /* отправляем ответный пакет со значениями собственных регистров */ - 800451a: 78fb ldrb r3, [r7, #3] - 800451c: f107 020c add.w r2, r7, #12 - 8004520: 8af9 ldrh r1, [r7, #22] - 8004522: 79f8 ldrb r0, [r7, #7] - 8004524: f7ff fc06 bl 8003d34 + 8004786: 78fb ldrb r3, [r7, #3] + 8004788: f107 020c add.w r2, r7, #12 + 800478c: 8af9 ldrh r1, [r7, #22] + 800478e: 79f8 ldrb r0, [r7, #7] + 8004790: f7ff fc10 bl 8003fb4 //printf ("sent%d, %d\n", AddrOffset, len); AddrOffset +=len; - 8004528: 78fb ldrb r3, [r7, #3] - 800452a: b29a uxth r2, r3 - 800452c: 8afb ldrh r3, [r7, #22] - 800452e: 4413 add r3, r2 - 8004530: 82fb strh r3, [r7, #22] + 8004794: 78fb ldrb r3, [r7, #3] + 8004796: b29a uxth r2, r3 + 8004798: 8afb ldrh r3, [r7, #22] + 800479a: 4413 add r3, r2 + 800479c: 82fb strh r3, [r7, #22] len = 0; - 8004532: 2300 movs r3, #0 - 8004534: 70fb strb r3, [r7, #3] + 800479e: 2300 movs r3, #0 + 80047a0: 70fb strb r3, [r7, #3] while (len>0){ //по очереди перебираем все полученные регистры через Handler - 8004536: 78fb ldrb r3, [r7, #3] - 8004538: 2b00 cmp r3, #0 - 800453a: d1aa bne.n 8004492 + 80047a2: 78fb ldrb r3, [r7, #3] + 80047a4: 2b00 cmp r3, #0 + 80047a6: d1aa bne.n 80046fe } } // printf("\n"); } - 800453c: bf00 nop - 800453e: bf00 nop - 8004540: 371c adds r7, #28 - 8004542: 46bd mov sp, r7 - 8004544: bd90 pop {r4, r7, pc} + 80047a8: bf00 nop + 80047aa: bf00 nop + 80047ac: 371c adds r7, #28 + 80047ae: 46bd mov sp, r7 + 80047b0: bd90 pop {r4, r7, pc} ... -08004548
: +080047b4
: /** * @brief The application entry point. * @retval int */ int main(void) { - 8004548: b580 push {r7, lr} - 800454a: af00 add r7, sp, #0 + 80047b4: b580 push {r7, lr} + 80047b6: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 800454c: f000 fc7a bl 8004e44 + 80047b8: f000 fc7a bl 80050b0 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8004550: f000 f83c bl 80045cc + 80047bc: f000 f83c bl 8004838 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 8004554: f7fe fef0 bl 8003338 + 80047c0: f7fe fefa bl 80035b8 MX_ADC1_Init(); - 8004558: f7fc ffb4 bl 80014c4 + 80047c4: f7fc fef4 bl 80015b0 MX_CAN1_Init(); - 800455c: f7fd f8bc bl 80016d8 + 80047c8: f7fd f8aa bl 8001920 MX_CAN2_Init(); - 8004560: f7fd f8f0 bl 8001744 + 80047cc: f7fd f8de bl 800198c MX_USART2_UART_Init(); - 8004564: f000 fbbc bl 8004ce0 + 80047d0: f000 fbbc bl 8004f4c MX_RTC_Init(); - 8004568: f000 f8a6 bl 80046b8 + 80047d4: f000 f8a6 bl 8004924 /* USER CODE BEGIN 2 */ CAN_ReInit(); - 800456c: f7ff fb54 bl 8003c18 + 80047d8: f7ff fb5e bl 8003e98 Init_Peripheral(); - 8004570: f7fd f85e bl 8001630 + 80047dc: f7fc ff9e bl 800171c HAL_Delay(300); - 8004574: f44f 7096 mov.w r0, #300 ; 0x12c - 8004578: f000 fcc6 bl 8004f08 + 80047e0: f44f 7096 mov.w r0, #300 ; 0x12c + 80047e4: f000 fcc6 bl 8005174 GBT_Init(); - 800457c: f7fd f9f6 bl 800196c + 80047e8: f7fd f9e4 bl 8001bb4 set_Time(1721651966); //2024-07-22T12:39:26+00:00 - 8004580: 4810 ldr r0, [pc, #64] ; (80045c4 ) - 8004582: f000 f8e3 bl 800474c + 80047ec: 4810 ldr r0, [pc, #64] ; (8004830 ) + 80047ee: f000 f8e3 bl 80049b8 printf("Startup (type \'help\' for command list)\n"); - 8004586: 4810 ldr r0, [pc, #64] ; (80045c8 ) - 8004588: f005 faba bl 8009b00 + 80047f2: 4810 ldr r0, [pc, #64] ; (8004834 ) + 80047f4: f005 faba bl 8009d6c debug_init(); - 800458c: f7fe f87a bl 8002684 + 80047f8: f7fe f860 bl 80028bc EDCAN_Init(SW_GetAddr()); //0x20..0x23 - 8004590: f7fd f87c bl 800168c - 8004594: 4603 mov r3, r0 - 8004596: 4618 mov r0, r3 - 8004598: f7ff fb2e bl 8003bf8 + 80047fc: f7fd f86a bl 80018d4 + 8004800: 4603 mov r3, r0 + 8004802: 4618 mov r0, r3 + 8004804: f7ff fb38 bl 8003e78 //EDCAN_Init(0x20); //Адрес EDCAN GBT_CAN_ReInit(); - 800459c: f7ff f8b6 bl 800370c + 8004808: f7ff f8c0 bl 800398c CAN_ReInit(); - 80045a0: f7ff fb3a bl 8003c18 + 800480c: f7ff fb44 bl 8003e98 CONN_Init(); - 80045a4: f7fd fe4b bl 800223e + 8004810: f7fd fe39 bl 8002486 { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ // HAL_Delay(1); EDCAN_Loop(); - 80045a8: f7ff fbfe bl 8003da8 + 8004814: f7ff fc08 bl 8004028 //can_task(); debug_task(); - 80045ac: f7fe fbc4 bl 8002d38 + 8004818: f7fe fbce bl 8002fb8 CONN_CC_ReadStateFiltered(); - 80045b0: f7fd ff1c bl 80023ec + 800481c: f7fd ff02 bl 8002624 GBT_ManageLock(); - 80045b4: f7ff fa12 bl 80039dc + 8004820: f7ff fa1c bl 8003c5c CONN_Task(); - 80045b8: f7fd fe48 bl 800224c + 8004824: f7fd fe36 bl 8002494 GBT_ChargerTask(); - 80045bc: f7fd f9e2 bl 8001984 + 8004828: f7fd f9d0 bl 8001bcc { - 80045c0: e7f2 b.n 80045a8 - 80045c2: bf00 nop - 80045c4: 669e52fe .word 0x669e52fe - 80045c8: 0800cf60 .word 0x0800cf60 + 800482c: e7f2 b.n 8004814 + 800482e: bf00 nop + 8004830: 669e52fe .word 0x669e52fe + 8004834: 0800d1f0 .word 0x0800d1f0 -080045cc : +08004838 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 80045cc: b580 push {r7, lr} - 80045ce: b09c sub sp, #112 ; 0x70 - 80045d0: af00 add r7, sp, #0 + 8004838: b580 push {r7, lr} + 800483a: b09c sub sp, #112 ; 0x70 + 800483c: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 80045d2: f107 0338 add.w r3, r7, #56 ; 0x38 - 80045d6: 2238 movs r2, #56 ; 0x38 - 80045d8: 2100 movs r1, #0 - 80045da: 4618 mov r0, r3 - 80045dc: f004 fcc6 bl 8008f6c + 800483e: f107 0338 add.w r3, r7, #56 ; 0x38 + 8004842: 2238 movs r2, #56 ; 0x38 + 8004844: 2100 movs r1, #0 + 8004846: 4618 mov r0, r3 + 8004848: f004 fcc6 bl 80091d8 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 80045e0: f107 0324 add.w r3, r7, #36 ; 0x24 - 80045e4: 2200 movs r2, #0 - 80045e6: 601a str r2, [r3, #0] - 80045e8: 605a str r2, [r3, #4] - 80045ea: 609a str r2, [r3, #8] - 80045ec: 60da str r2, [r3, #12] - 80045ee: 611a str r2, [r3, #16] + 800484c: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004850: 2200 movs r2, #0 + 8004852: 601a str r2, [r3, #0] + 8004854: 605a str r2, [r3, #4] + 8004856: 609a str r2, [r3, #8] + 8004858: 60da str r2, [r3, #12] + 800485a: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; - 80045f0: 1d3b adds r3, r7, #4 - 80045f2: 2220 movs r2, #32 - 80045f4: 2100 movs r1, #0 - 80045f6: 4618 mov r0, r3 - 80045f8: f004 fcb8 bl 8008f6c + 800485c: 1d3b adds r3, r7, #4 + 800485e: 2220 movs r2, #32 + 8004860: 2100 movs r1, #0 + 8004862: 4618 mov r0, r3 + 8004864: f004 fcb8 bl 80091d8 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE|RCC_OSCILLATORTYPE_LSE; - 80045fc: 2305 movs r3, #5 - 80045fe: 63bb str r3, [r7, #56] ; 0x38 + 8004868: 2305 movs r3, #5 + 800486a: 63bb str r3, [r7, #56] ; 0x38 RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8004600: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8004604: 643b str r3, [r7, #64] ; 0x40 + 800486c: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8004870: 643b str r3, [r7, #64] ; 0x40 RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV5; - 8004606: 2304 movs r3, #4 - 8004608: 647b str r3, [r7, #68] ; 0x44 + 8004872: 2304 movs r3, #4 + 8004874: 647b str r3, [r7, #68] ; 0x44 RCC_OscInitStruct.LSEState = RCC_LSE_ON; - 800460a: 2301 movs r3, #1 - 800460c: 64bb str r3, [r7, #72] ; 0x48 + 8004876: 2301 movs r3, #1 + 8004878: 64bb str r3, [r7, #72] ; 0x48 RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 800460e: 2301 movs r3, #1 - 8004610: 64fb str r3, [r7, #76] ; 0x4c + 800487a: 2301 movs r3, #1 + 800487c: 64fb str r3, [r7, #76] ; 0x4c RCC_OscInitStruct.Prediv1Source = RCC_PREDIV1_SOURCE_PLL2; - 8004612: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8004616: 63fb str r3, [r7, #60] ; 0x3c + 800487e: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8004882: 63fb str r3, [r7, #60] ; 0x3c RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8004618: 2302 movs r3, #2 - 800461a: 65bb str r3, [r7, #88] ; 0x58 + 8004884: 2302 movs r3, #2 + 8004886: 65bb str r3, [r7, #88] ; 0x58 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 800461c: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8004620: 65fb str r3, [r7, #92] ; 0x5c + 8004888: f44f 3380 mov.w r3, #65536 ; 0x10000 + 800488c: 65fb str r3, [r7, #92] ; 0x5c RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; - 8004622: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 - 8004626: 663b str r3, [r7, #96] ; 0x60 + 800488e: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 + 8004892: 663b str r3, [r7, #96] ; 0x60 RCC_OscInitStruct.PLL2.PLL2State = RCC_PLL2_ON; - 8004628: 2302 movs r3, #2 - 800462a: 667b str r3, [r7, #100] ; 0x64 + 8004894: 2302 movs r3, #2 + 8004896: 667b str r3, [r7, #100] ; 0x64 RCC_OscInitStruct.PLL2.PLL2MUL = RCC_PLL2_MUL8; - 800462c: f44f 63c0 mov.w r3, #1536 ; 0x600 - 8004630: 66bb str r3, [r7, #104] ; 0x68 + 8004898: f44f 63c0 mov.w r3, #1536 ; 0x600 + 800489c: 66bb str r3, [r7, #104] ; 0x68 RCC_OscInitStruct.PLL2.HSEPrediv2Value = RCC_HSE_PREDIV2_DIV5; - 8004632: 2340 movs r3, #64 ; 0x40 - 8004634: 66fb str r3, [r7, #108] ; 0x6c + 800489e: 2340 movs r3, #64 ; 0x40 + 80048a0: 66fb str r3, [r7, #108] ; 0x6c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8004636: f107 0338 add.w r3, r7, #56 ; 0x38 - 800463a: 4618 mov r0, r3 - 800463c: f002 fc48 bl 8006ed0 - 8004640: 4603 mov r3, r0 - 8004642: 2b00 cmp r3, #0 - 8004644: d001 beq.n 800464a + 80048a2: f107 0338 add.w r3, r7, #56 ; 0x38 + 80048a6: 4618 mov r0, r3 + 80048a8: f002 fc48 bl 800713c + 80048ac: 4603 mov r3, r0 + 80048ae: 2b00 cmp r3, #0 + 80048b0: d001 beq.n 80048b6 { Error_Handler(); - 8004646: f000 f831 bl 80046ac + 80048b2: f000 f831 bl 8004918 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 800464a: 230f movs r3, #15 - 800464c: 627b str r3, [r7, #36] ; 0x24 + 80048b6: 230f movs r3, #15 + 80048b8: 627b str r3, [r7, #36] ; 0x24 |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 800464e: 2302 movs r3, #2 - 8004650: 62bb str r3, [r7, #40] ; 0x28 + 80048ba: 2302 movs r3, #2 + 80048bc: 62bb str r3, [r7, #40] ; 0x28 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 8004652: 2300 movs r3, #0 - 8004654: 62fb str r3, [r7, #44] ; 0x2c + 80048be: 2300 movs r3, #0 + 80048c0: 62fb str r3, [r7, #44] ; 0x2c RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; - 8004656: f44f 6380 mov.w r3, #1024 ; 0x400 - 800465a: 633b str r3, [r7, #48] ; 0x30 + 80048c2: f44f 6380 mov.w r3, #1024 ; 0x400 + 80048c6: 633b str r3, [r7, #48] ; 0x30 RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 800465c: 2300 movs r3, #0 - 800465e: 637b str r3, [r7, #52] ; 0x34 + 80048c8: 2300 movs r3, #0 + 80048ca: 637b str r3, [r7, #52] ; 0x34 if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) - 8004660: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004664: 2102 movs r1, #2 - 8004666: 4618 mov r0, r3 - 8004668: f002 ff48 bl 80074fc - 800466c: 4603 mov r3, r0 - 800466e: 2b00 cmp r3, #0 - 8004670: d001 beq.n 8004676 + 80048cc: f107 0324 add.w r3, r7, #36 ; 0x24 + 80048d0: 2102 movs r1, #2 + 80048d2: 4618 mov r0, r3 + 80048d4: f002 ff48 bl 8007768 + 80048d8: 4603 mov r3, r0 + 80048da: 2b00 cmp r3, #0 + 80048dc: d001 beq.n 80048e2 { Error_Handler(); - 8004672: f000 f81b bl 80046ac + 80048de: f000 f81b bl 8004918 } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC|RCC_PERIPHCLK_ADC; - 8004676: 2303 movs r3, #3 - 8004678: 607b str r3, [r7, #4] + 80048e2: 2303 movs r3, #3 + 80048e4: 607b str r3, [r7, #4] PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE; - 800467a: f44f 7380 mov.w r3, #256 ; 0x100 - 800467e: 60bb str r3, [r7, #8] + 80048e6: f44f 7380 mov.w r3, #256 ; 0x100 + 80048ea: 60bb str r3, [r7, #8] PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV6; - 8004680: f44f 4300 mov.w r3, #32768 ; 0x8000 - 8004684: 60fb str r3, [r7, #12] + 80048ec: f44f 4300 mov.w r3, #32768 ; 0x8000 + 80048f0: 60fb str r3, [r7, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) - 8004686: 1d3b adds r3, r7, #4 - 8004688: 4618 mov r0, r3 - 800468a: f003 f94f bl 800792c - 800468e: 4603 mov r3, r0 - 8004690: 2b00 cmp r3, #0 - 8004692: d001 beq.n 8004698 + 80048f2: 1d3b adds r3, r7, #4 + 80048f4: 4618 mov r0, r3 + 80048f6: f003 f94f bl 8007b98 + 80048fa: 4603 mov r3, r0 + 80048fc: 2b00 cmp r3, #0 + 80048fe: d001 beq.n 8004904 { Error_Handler(); - 8004694: f000 f80a bl 80046ac + 8004900: f000 f80a bl 8004918 } /** Configure the Systick interrupt time */ __HAL_RCC_PLLI2S_ENABLE(); - 8004698: 4b03 ldr r3, [pc, #12] ; (80046a8 ) - 800469a: 2201 movs r2, #1 - 800469c: 601a str r2, [r3, #0] + 8004904: 4b03 ldr r3, [pc, #12] ; (8004914 ) + 8004906: 2201 movs r2, #1 + 8004908: 601a str r2, [r3, #0] } - 800469e: bf00 nop - 80046a0: 3770 adds r7, #112 ; 0x70 - 80046a2: 46bd mov sp, r7 - 80046a4: bd80 pop {r7, pc} - 80046a6: bf00 nop - 80046a8: 42420070 .word 0x42420070 + 800490a: bf00 nop + 800490c: 3770 adds r7, #112 ; 0x70 + 800490e: 46bd mov sp, r7 + 8004910: bd80 pop {r7, pc} + 8004912: bf00 nop + 8004914: 42420070 .word 0x42420070 -080046ac : +08004918 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 80046ac: b480 push {r7} - 80046ae: af00 add r7, sp, #0 + 8004918: b480 push {r7} + 800491a: af00 add r7, sp, #0 __ASM volatile ("cpsid i" : : : "memory"); - 80046b0: b672 cpsid i + 800491c: b672 cpsid i } - 80046b2: bf00 nop + 800491e: bf00 nop /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 80046b4: e7fe b.n 80046b4 + 8004920: e7fe b.n 8004920 ... -080046b8 : +08004924 : RTC_HandleTypeDef hrtc; /* RTC init function */ void MX_RTC_Init(void) { - 80046b8: b580 push {r7, lr} - 80046ba: af00 add r7, sp, #0 + 8004924: b580 push {r7, lr} + 8004926: af00 add r7, sp, #0 /* USER CODE END RTC_Init 1 */ /** Initialize RTC Only */ hrtc.Instance = RTC; - 80046bc: 4b0a ldr r3, [pc, #40] ; (80046e8 ) - 80046be: 4a0b ldr r2, [pc, #44] ; (80046ec ) - 80046c0: 601a str r2, [r3, #0] + 8004928: 4b0a ldr r3, [pc, #40] ; (8004954 ) + 800492a: 4a0b ldr r2, [pc, #44] ; (8004958 ) + 800492c: 601a str r2, [r3, #0] hrtc.Init.AsynchPrediv = RTC_AUTO_1_SECOND; - 80046c2: 4b09 ldr r3, [pc, #36] ; (80046e8 ) - 80046c4: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80046c8: 605a str r2, [r3, #4] + 800492e: 4b09 ldr r3, [pc, #36] ; (8004954 ) + 8004930: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8004934: 605a str r2, [r3, #4] hrtc.Init.OutPut = RTC_OUTPUTSOURCE_ALARM; - 80046ca: 4b07 ldr r3, [pc, #28] ; (80046e8 ) - 80046cc: f44f 7280 mov.w r2, #256 ; 0x100 - 80046d0: 609a str r2, [r3, #8] + 8004936: 4b07 ldr r3, [pc, #28] ; (8004954 ) + 8004938: f44f 7280 mov.w r2, #256 ; 0x100 + 800493c: 609a str r2, [r3, #8] if (HAL_RTC_Init(&hrtc) != HAL_OK) - 80046d2: 4805 ldr r0, [pc, #20] ; (80046e8 ) - 80046d4: f003 fbbe bl 8007e54 - 80046d8: 4603 mov r3, r0 - 80046da: 2b00 cmp r3, #0 - 80046dc: d001 beq.n 80046e2 + 800493e: 4805 ldr r0, [pc, #20] ; (8004954 ) + 8004940: f003 fbbe bl 80080c0 + 8004944: 4603 mov r3, r0 + 8004946: 2b00 cmp r3, #0 + 8004948: d001 beq.n 800494e { Error_Handler(); - 80046de: f7ff ffe5 bl 80046ac + 800494a: f7ff ffe5 bl 8004918 } /* USER CODE BEGIN RTC_Init 2 */ /* USER CODE END RTC_Init 2 */ } - 80046e2: bf00 nop - 80046e4: bd80 pop {r7, pc} - 80046e6: bf00 nop - 80046e8: 20001cac .word 0x20001cac - 80046ec: 40002800 .word 0x40002800 + 800494e: bf00 nop + 8004950: bd80 pop {r7, pc} + 8004952: bf00 nop + 8004954: 2000332c .word 0x2000332c + 8004958: 40002800 .word 0x40002800 -080046f0 : +0800495c : void HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle) { - 80046f0: b580 push {r7, lr} - 80046f2: b084 sub sp, #16 - 80046f4: af00 add r7, sp, #0 - 80046f6: 6078 str r0, [r7, #4] + 800495c: b580 push {r7, lr} + 800495e: b084 sub sp, #16 + 8004960: af00 add r7, sp, #0 + 8004962: 6078 str r0, [r7, #4] if(rtcHandle->Instance==RTC) - 80046f8: 687b ldr r3, [r7, #4] - 80046fa: 681b ldr r3, [r3, #0] - 80046fc: 4a0b ldr r2, [pc, #44] ; (800472c ) - 80046fe: 4293 cmp r3, r2 - 8004700: d110 bne.n 8004724 + 8004964: 687b ldr r3, [r7, #4] + 8004966: 681b ldr r3, [r3, #0] + 8004968: 4a0b ldr r2, [pc, #44] ; (8004998 ) + 800496a: 4293 cmp r3, r2 + 800496c: d110 bne.n 8004990 { /* USER CODE BEGIN RTC_MspInit 0 */ /* USER CODE END RTC_MspInit 0 */ HAL_PWR_EnableBkUpAccess(); - 8004702: f002 fbd9 bl 8006eb8 + 800496e: f002 fbd9 bl 8007124 /* Enable BKP CLK enable for backup registers */ __HAL_RCC_BKP_CLK_ENABLE(); - 8004706: 4b0a ldr r3, [pc, #40] ; (8004730 ) - 8004708: 69db ldr r3, [r3, #28] - 800470a: 4a09 ldr r2, [pc, #36] ; (8004730 ) - 800470c: f043 6300 orr.w r3, r3, #134217728 ; 0x8000000 - 8004710: 61d3 str r3, [r2, #28] - 8004712: 4b07 ldr r3, [pc, #28] ; (8004730 ) - 8004714: 69db ldr r3, [r3, #28] - 8004716: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 800471a: 60fb str r3, [r7, #12] - 800471c: 68fb ldr r3, [r7, #12] + 8004972: 4b0a ldr r3, [pc, #40] ; (800499c ) + 8004974: 69db ldr r3, [r3, #28] + 8004976: 4a09 ldr r2, [pc, #36] ; (800499c ) + 8004978: f043 6300 orr.w r3, r3, #134217728 ; 0x8000000 + 800497c: 61d3 str r3, [r2, #28] + 800497e: 4b07 ldr r3, [pc, #28] ; (800499c ) + 8004980: 69db ldr r3, [r3, #28] + 8004982: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 8004986: 60fb str r3, [r7, #12] + 8004988: 68fb ldr r3, [r7, #12] /* RTC clock enable */ __HAL_RCC_RTC_ENABLE(); - 800471e: 4b05 ldr r3, [pc, #20] ; (8004734 ) - 8004720: 2201 movs r2, #1 - 8004722: 601a str r2, [r3, #0] + 800498a: 4b05 ldr r3, [pc, #20] ; (80049a0 ) + 800498c: 2201 movs r2, #1 + 800498e: 601a str r2, [r3, #0] /* USER CODE BEGIN RTC_MspInit 1 */ /* USER CODE END RTC_MspInit 1 */ } } - 8004724: bf00 nop - 8004726: 3710 adds r7, #16 - 8004728: 46bd mov sp, r7 - 800472a: bd80 pop {r7, pc} - 800472c: 40002800 .word 0x40002800 - 8004730: 40021000 .word 0x40021000 - 8004734: 4242043c .word 0x4242043c + 8004990: bf00 nop + 8004992: 3710 adds r7, #16 + 8004994: 46bd mov sp, r7 + 8004996: bd80 pop {r7, pc} + 8004998: 40002800 .word 0x40002800 + 800499c: 40021000 .word 0x40021000 + 80049a0: 4242043c .word 0x4242043c -08004738 : +080049a4 : static uint32_t RTC1_ReadTimeCounter(RTC_HandleTypeDef *hrtc); static HAL_StatusTypeDef RTC1_ExitInitMode(RTC_HandleTypeDef *hrtc); static HAL_StatusTypeDef RTC1_EnterInitMode(RTC_HandleTypeDef *hrtc); uint32_t get_Current_Time(){ - 8004738: b580 push {r7, lr} - 800473a: af00 add r7, sp, #0 + 80049a4: b580 push {r7, lr} + 80049a6: af00 add r7, sp, #0 return RTC1_ReadTimeCounter(&hrtc); - 800473c: 4802 ldr r0, [pc, #8] ; (8004748 ) - 800473e: f000 f8fb bl 8004938 - 8004742: 4603 mov r3, r0 + 80049a8: 4802 ldr r0, [pc, #8] ; (80049b4 ) + 80049aa: f000 f8fb bl 8004ba4 + 80049ae: 4603 mov r3, r0 } - 8004744: 4618 mov r0, r3 - 8004746: bd80 pop {r7, pc} - 8004748: 20001cac .word 0x20001cac + 80049b0: 4618 mov r0, r3 + 80049b2: bd80 pop {r7, pc} + 80049b4: 2000332c .word 0x2000332c -0800474c : +080049b8 : void set_Time(uint32_t unix_time){ - 800474c: b580 push {r7, lr} - 800474e: b082 sub sp, #8 - 8004750: af00 add r7, sp, #0 - 8004752: 6078 str r0, [r7, #4] + 80049b8: b580 push {r7, lr} + 80049ba: b082 sub sp, #8 + 80049bc: af00 add r7, sp, #0 + 80049be: 6078 str r0, [r7, #4] RTC1_WriteTimeCounter(&hrtc, unix_time); - 8004754: 6879 ldr r1, [r7, #4] - 8004756: 4803 ldr r0, [pc, #12] ; (8004764 ) - 8004758: f000 f91e bl 8004998 + 80049c0: 6879 ldr r1, [r7, #4] + 80049c2: 4803 ldr r0, [pc, #12] ; (80049d0 ) + 80049c4: f000 f91e bl 8004c04 } - 800475c: bf00 nop - 800475e: 3708 adds r7, #8 - 8004760: 46bd mov sp, r7 - 8004762: bd80 pop {r7, pc} - 8004764: 20001cac .word 0x20001cac + 80049c8: bf00 nop + 80049ca: 3708 adds r7, #8 + 80049cc: 46bd mov sp, r7 + 80049ce: bd80 pop {r7, pc} + 80049d0: 2000332c .word 0x2000332c -08004768 : +080049d4 : uint8_t to_bcd(int value) { - 8004768: b480 push {r7} - 800476a: b083 sub sp, #12 - 800476c: af00 add r7, sp, #0 - 800476e: 6078 str r0, [r7, #4] + 80049d4: b480 push {r7} + 80049d6: b083 sub sp, #12 + 80049d8: af00 add r7, sp, #0 + 80049da: 6078 str r0, [r7, #4] return ((value / 10) << 4) | (value % 10); - 8004770: 687b ldr r3, [r7, #4] - 8004772: 4a0e ldr r2, [pc, #56] ; (80047ac ) - 8004774: fb82 1203 smull r1, r2, r2, r3 - 8004778: 1092 asrs r2, r2, #2 - 800477a: 17db asrs r3, r3, #31 - 800477c: 1ad3 subs r3, r2, r3 - 800477e: 011b lsls r3, r3, #4 - 8004780: b258 sxtb r0, r3 - 8004782: 687a ldr r2, [r7, #4] - 8004784: 4b09 ldr r3, [pc, #36] ; (80047ac ) - 8004786: fb83 1302 smull r1, r3, r3, r2 - 800478a: 1099 asrs r1, r3, #2 - 800478c: 17d3 asrs r3, r2, #31 - 800478e: 1ac9 subs r1, r1, r3 - 8004790: 460b mov r3, r1 - 8004792: 009b lsls r3, r3, #2 - 8004794: 440b add r3, r1 - 8004796: 005b lsls r3, r3, #1 - 8004798: 1ad1 subs r1, r2, r3 - 800479a: b24b sxtb r3, r1 - 800479c: 4303 orrs r3, r0 - 800479e: b25b sxtb r3, r3 - 80047a0: b2db uxtb r3, r3 + 80049dc: 687b ldr r3, [r7, #4] + 80049de: 4a0e ldr r2, [pc, #56] ; (8004a18 ) + 80049e0: fb82 1203 smull r1, r2, r2, r3 + 80049e4: 1092 asrs r2, r2, #2 + 80049e6: 17db asrs r3, r3, #31 + 80049e8: 1ad3 subs r3, r2, r3 + 80049ea: 011b lsls r3, r3, #4 + 80049ec: b258 sxtb r0, r3 + 80049ee: 687a ldr r2, [r7, #4] + 80049f0: 4b09 ldr r3, [pc, #36] ; (8004a18 ) + 80049f2: fb83 1302 smull r1, r3, r3, r2 + 80049f6: 1099 asrs r1, r3, #2 + 80049f8: 17d3 asrs r3, r2, #31 + 80049fa: 1ac9 subs r1, r1, r3 + 80049fc: 460b mov r3, r1 + 80049fe: 009b lsls r3, r3, #2 + 8004a00: 440b add r3, r1 + 8004a02: 005b lsls r3, r3, #1 + 8004a04: 1ad1 subs r1, r2, r3 + 8004a06: b24b sxtb r3, r1 + 8004a08: 4303 orrs r3, r0 + 8004a0a: b25b sxtb r3, r3 + 8004a0c: b2db uxtb r3, r3 } - 80047a2: 4618 mov r0, r3 - 80047a4: 370c adds r7, #12 - 80047a6: 46bd mov sp, r7 - 80047a8: bc80 pop {r7} - 80047aa: 4770 bx lr - 80047ac: 66666667 .word 0x66666667 + 8004a0e: 4618 mov r0, r3 + 8004a10: 370c adds r7, #12 + 8004a12: 46bd mov sp, r7 + 8004a14: bc80 pop {r7} + 8004a16: 4770 bx lr + 8004a18: 66666667 .word 0x66666667 -080047b0 : +08004a1c : void unix_to_bcd(uint32_t unix_time, uint8_t *time) { - 80047b0: b590 push {r4, r7, lr} - 80047b2: b087 sub sp, #28 - 80047b4: af00 add r7, sp, #0 - 80047b6: 6078 str r0, [r7, #4] - 80047b8: 6039 str r1, [r7, #0] + 8004a1c: b590 push {r4, r7, lr} + 8004a1e: b087 sub sp, #28 + 8004a20: af00 add r7, sp, #0 + 8004a22: 6078 str r0, [r7, #4] + 8004a24: 6039 str r1, [r7, #0] struct tm *tm_info; time_t raw_time = (time_t)unix_time; - 80047ba: 6879 ldr r1, [r7, #4] - 80047bc: 2000 movs r0, #0 - 80047be: 460a mov r2, r1 - 80047c0: 4603 mov r3, r0 - 80047c2: e9c7 2302 strd r2, r3, [r7, #8] + 8004a26: 6879 ldr r1, [r7, #4] + 8004a28: 2000 movs r0, #0 + 8004a2a: 460a mov r2, r1 + 8004a2c: 4603 mov r3, r0 + 8004a2e: e9c7 2302 strd r2, r3, [r7, #8] tm_info = gmtime(&raw_time); - 80047c6: f107 0308 add.w r3, r7, #8 - 80047ca: 4618 mov r0, r3 - 80047cc: f004 f9b0 bl 8008b30 - 80047d0: 6178 str r0, [r7, #20] + 8004a32: f107 0308 add.w r3, r7, #8 + 8004a36: 4618 mov r0, r3 + 8004a38: f004 f9b0 bl 8008d9c + 8004a3c: 6178 str r0, [r7, #20] time[0] = to_bcd(tm_info->tm_sec); - 80047d2: 697b ldr r3, [r7, #20] - 80047d4: 681b ldr r3, [r3, #0] - 80047d6: 4618 mov r0, r3 - 80047d8: f7ff ffc6 bl 8004768 - 80047dc: 4603 mov r3, r0 - 80047de: 461a mov r2, r3 - 80047e0: 683b ldr r3, [r7, #0] - 80047e2: 701a strb r2, [r3, #0] + 8004a3e: 697b ldr r3, [r7, #20] + 8004a40: 681b ldr r3, [r3, #0] + 8004a42: 4618 mov r0, r3 + 8004a44: f7ff ffc6 bl 80049d4 + 8004a48: 4603 mov r3, r0 + 8004a4a: 461a mov r2, r3 + 8004a4c: 683b ldr r3, [r7, #0] + 8004a4e: 701a strb r2, [r3, #0] time[1] = to_bcd(tm_info->tm_min); - 80047e4: 697b ldr r3, [r7, #20] - 80047e6: 685a ldr r2, [r3, #4] - 80047e8: 683b ldr r3, [r7, #0] - 80047ea: 1c5c adds r4, r3, #1 - 80047ec: 4610 mov r0, r2 - 80047ee: f7ff ffbb bl 8004768 - 80047f2: 4603 mov r3, r0 - 80047f4: 7023 strb r3, [r4, #0] + 8004a50: 697b ldr r3, [r7, #20] + 8004a52: 685a ldr r2, [r3, #4] + 8004a54: 683b ldr r3, [r7, #0] + 8004a56: 1c5c adds r4, r3, #1 + 8004a58: 4610 mov r0, r2 + 8004a5a: f7ff ffbb bl 80049d4 + 8004a5e: 4603 mov r3, r0 + 8004a60: 7023 strb r3, [r4, #0] time[2] = to_bcd(tm_info->tm_hour); - 80047f6: 697b ldr r3, [r7, #20] - 80047f8: 689a ldr r2, [r3, #8] - 80047fa: 683b ldr r3, [r7, #0] - 80047fc: 1c9c adds r4, r3, #2 - 80047fe: 4610 mov r0, r2 - 8004800: f7ff ffb2 bl 8004768 - 8004804: 4603 mov r3, r0 - 8004806: 7023 strb r3, [r4, #0] + 8004a62: 697b ldr r3, [r7, #20] + 8004a64: 689a ldr r2, [r3, #8] + 8004a66: 683b ldr r3, [r7, #0] + 8004a68: 1c9c adds r4, r3, #2 + 8004a6a: 4610 mov r0, r2 + 8004a6c: f7ff ffb2 bl 80049d4 + 8004a70: 4603 mov r3, r0 + 8004a72: 7023 strb r3, [r4, #0] time[3] = to_bcd(tm_info->tm_mday); - 8004808: 697b ldr r3, [r7, #20] - 800480a: 68da ldr r2, [r3, #12] - 800480c: 683b ldr r3, [r7, #0] - 800480e: 1cdc adds r4, r3, #3 - 8004810: 4610 mov r0, r2 - 8004812: f7ff ffa9 bl 8004768 - 8004816: 4603 mov r3, r0 - 8004818: 7023 strb r3, [r4, #0] + 8004a74: 697b ldr r3, [r7, #20] + 8004a76: 68da ldr r2, [r3, #12] + 8004a78: 683b ldr r3, [r7, #0] + 8004a7a: 1cdc adds r4, r3, #3 + 8004a7c: 4610 mov r0, r2 + 8004a7e: f7ff ffa9 bl 80049d4 + 8004a82: 4603 mov r3, r0 + 8004a84: 7023 strb r3, [r4, #0] time[4] = to_bcd(tm_info->tm_mon + 1); // tm_mon is 0-11 - 800481a: 697b ldr r3, [r7, #20] - 800481c: 691b ldr r3, [r3, #16] - 800481e: 1c5a adds r2, r3, #1 - 8004820: 683b ldr r3, [r7, #0] - 8004822: 1d1c adds r4, r3, #4 - 8004824: 4610 mov r0, r2 - 8004826: f7ff ff9f bl 8004768 - 800482a: 4603 mov r3, r0 - 800482c: 7023 strb r3, [r4, #0] + 8004a86: 697b ldr r3, [r7, #20] + 8004a88: 691b ldr r3, [r3, #16] + 8004a8a: 1c5a adds r2, r3, #1 + 8004a8c: 683b ldr r3, [r7, #0] + 8004a8e: 1d1c adds r4, r3, #4 + 8004a90: 4610 mov r0, r2 + 8004a92: f7ff ff9f bl 80049d4 + 8004a96: 4603 mov r3, r0 + 8004a98: 7023 strb r3, [r4, #0] time[5] = to_bcd((tm_info->tm_year + 1900) % 100); // Year in 2 digits - 800482e: 697b ldr r3, [r7, #20] - 8004830: 695b ldr r3, [r3, #20] - 8004832: f203 736c addw r3, r3, #1900 ; 0x76c - 8004836: 4a13 ldr r2, [pc, #76] ; (8004884 ) - 8004838: fb82 1203 smull r1, r2, r2, r3 - 800483c: 1151 asrs r1, r2, #5 - 800483e: 17da asrs r2, r3, #31 - 8004840: 1a8a subs r2, r1, r2 - 8004842: 2164 movs r1, #100 ; 0x64 - 8004844: fb01 f202 mul.w r2, r1, r2 - 8004848: 1a9a subs r2, r3, r2 - 800484a: 683b ldr r3, [r7, #0] - 800484c: 1d5c adds r4, r3, #5 - 800484e: 4610 mov r0, r2 - 8004850: f7ff ff8a bl 8004768 - 8004854: 4603 mov r3, r0 - 8004856: 7023 strb r3, [r4, #0] + 8004a9a: 697b ldr r3, [r7, #20] + 8004a9c: 695b ldr r3, [r3, #20] + 8004a9e: f203 736c addw r3, r3, #1900 ; 0x76c + 8004aa2: 4a13 ldr r2, [pc, #76] ; (8004af0 ) + 8004aa4: fb82 1203 smull r1, r2, r2, r3 + 8004aa8: 1151 asrs r1, r2, #5 + 8004aaa: 17da asrs r2, r3, #31 + 8004aac: 1a8a subs r2, r1, r2 + 8004aae: 2164 movs r1, #100 ; 0x64 + 8004ab0: fb01 f202 mul.w r2, r1, r2 + 8004ab4: 1a9a subs r2, r3, r2 + 8004ab6: 683b ldr r3, [r7, #0] + 8004ab8: 1d5c adds r4, r3, #5 + 8004aba: 4610 mov r0, r2 + 8004abc: f7ff ff8a bl 80049d4 + 8004ac0: 4603 mov r3, r0 + 8004ac2: 7023 strb r3, [r4, #0] time[6] = to_bcd((tm_info->tm_year + 1900) / 100); // Century in 2 digits - 8004858: 697b ldr r3, [r7, #20] - 800485a: 695b ldr r3, [r3, #20] - 800485c: f203 736c addw r3, r3, #1900 ; 0x76c - 8004860: 4a08 ldr r2, [pc, #32] ; (8004884 ) - 8004862: fb82 1203 smull r1, r2, r2, r3 - 8004866: 1152 asrs r2, r2, #5 - 8004868: 17db asrs r3, r3, #31 - 800486a: 1ad2 subs r2, r2, r3 - 800486c: 683b ldr r3, [r7, #0] - 800486e: 1d9c adds r4, r3, #6 - 8004870: 4610 mov r0, r2 - 8004872: f7ff ff79 bl 8004768 - 8004876: 4603 mov r3, r0 - 8004878: 7023 strb r3, [r4, #0] + 8004ac4: 697b ldr r3, [r7, #20] + 8004ac6: 695b ldr r3, [r3, #20] + 8004ac8: f203 736c addw r3, r3, #1900 ; 0x76c + 8004acc: 4a08 ldr r2, [pc, #32] ; (8004af0 ) + 8004ace: fb82 1203 smull r1, r2, r2, r3 + 8004ad2: 1152 asrs r2, r2, #5 + 8004ad4: 17db asrs r3, r3, #31 + 8004ad6: 1ad2 subs r2, r2, r3 + 8004ad8: 683b ldr r3, [r7, #0] + 8004ada: 1d9c adds r4, r3, #6 + 8004adc: 4610 mov r0, r2 + 8004ade: f7ff ff79 bl 80049d4 + 8004ae2: 4603 mov r3, r0 + 8004ae4: 7023 strb r3, [r4, #0] } - 800487a: bf00 nop - 800487c: 371c adds r7, #28 - 800487e: 46bd mov sp, r7 - 8004880: bd90 pop {r4, r7, pc} - 8004882: bf00 nop - 8004884: 51eb851f .word 0x51eb851f + 8004ae6: bf00 nop + 8004ae8: 371c adds r7, #28 + 8004aea: 46bd mov sp, r7 + 8004aec: bd90 pop {r4, r7, pc} + 8004aee: bf00 nop + 8004af0: 51eb851f .word 0x51eb851f -08004888 : +08004af4 : void writeTimeReg(uint8_t reg_number, uint8_t value){ - 8004888: b580 push {r7, lr} - 800488a: b082 sub sp, #8 - 800488c: af00 add r7, sp, #0 - 800488e: 4603 mov r3, r0 - 8004890: 460a mov r2, r1 - 8004892: 71fb strb r3, [r7, #7] - 8004894: 4613 mov r3, r2 - 8004896: 71bb strb r3, [r7, #6] + 8004af4: b580 push {r7, lr} + 8004af6: b082 sub sp, #8 + 8004af8: af00 add r7, sp, #0 + 8004afa: 4603 mov r3, r0 + 8004afc: 460a mov r2, r1 + 8004afe: 71fb strb r3, [r7, #7] + 8004b00: 4613 mov r3, r2 + 8004b02: 71bb strb r3, [r7, #6] tmp_time[reg_number] = value; - 8004898: 79fb ldrb r3, [r7, #7] - 800489a: 490e ldr r1, [pc, #56] ; (80048d4 ) - 800489c: 79ba ldrb r2, [r7, #6] - 800489e: 54ca strb r2, [r1, r3] + 8004b04: 79fb ldrb r3, [r7, #7] + 8004b06: 490e ldr r1, [pc, #56] ; (8004b40 ) + 8004b08: 79ba ldrb r2, [r7, #6] + 8004b0a: 54ca strb r2, [r1, r3] if(reg_number == 3) set_Time((tmp_time[0])+(tmp_time[1]<<8)+(tmp_time[2]<<16)+(tmp_time[3]<<24)); - 80048a0: 79fb ldrb r3, [r7, #7] - 80048a2: 2b03 cmp r3, #3 - 80048a4: d111 bne.n 80048ca - 80048a6: 4b0b ldr r3, [pc, #44] ; (80048d4 ) - 80048a8: 781b ldrb r3, [r3, #0] - 80048aa: 461a mov r2, r3 - 80048ac: 4b09 ldr r3, [pc, #36] ; (80048d4 ) - 80048ae: 785b ldrb r3, [r3, #1] - 80048b0: 021b lsls r3, r3, #8 - 80048b2: 441a add r2, r3 - 80048b4: 4b07 ldr r3, [pc, #28] ; (80048d4 ) - 80048b6: 789b ldrb r3, [r3, #2] - 80048b8: 041b lsls r3, r3, #16 - 80048ba: 441a add r2, r3 - 80048bc: 4b05 ldr r3, [pc, #20] ; (80048d4 ) - 80048be: 78db ldrb r3, [r3, #3] - 80048c0: 061b lsls r3, r3, #24 - 80048c2: 4413 add r3, r2 - 80048c4: 4618 mov r0, r3 - 80048c6: f7ff ff41 bl 800474c + 8004b0c: 79fb ldrb r3, [r7, #7] + 8004b0e: 2b03 cmp r3, #3 + 8004b10: d111 bne.n 8004b36 + 8004b12: 4b0b ldr r3, [pc, #44] ; (8004b40 ) + 8004b14: 781b ldrb r3, [r3, #0] + 8004b16: 461a mov r2, r3 + 8004b18: 4b09 ldr r3, [pc, #36] ; (8004b40 ) + 8004b1a: 785b ldrb r3, [r3, #1] + 8004b1c: 021b lsls r3, r3, #8 + 8004b1e: 441a add r2, r3 + 8004b20: 4b07 ldr r3, [pc, #28] ; (8004b40 ) + 8004b22: 789b ldrb r3, [r3, #2] + 8004b24: 041b lsls r3, r3, #16 + 8004b26: 441a add r2, r3 + 8004b28: 4b05 ldr r3, [pc, #20] ; (8004b40 ) + 8004b2a: 78db ldrb r3, [r3, #3] + 8004b2c: 061b lsls r3, r3, #24 + 8004b2e: 4413 add r3, r2 + 8004b30: 4618 mov r0, r3 + 8004b32: f7ff ff41 bl 80049b8 }; - 80048ca: bf00 nop - 80048cc: 3708 adds r7, #8 - 80048ce: 46bd mov sp, r7 - 80048d0: bd80 pop {r7, pc} - 80048d2: bf00 nop - 80048d4: 20001cc0 .word 0x20001cc0 + 8004b36: bf00 nop + 8004b38: 3708 adds r7, #8 + 8004b3a: 46bd mov sp, r7 + 8004b3c: bd80 pop {r7, pc} + 8004b3e: bf00 nop + 8004b40: 20003340 .word 0x20003340 -080048d8 : +08004b44 : uint8_t getTimeReg(uint8_t reg_number){ - 80048d8: b580 push {r7, lr} - 80048da: b082 sub sp, #8 - 80048dc: af00 add r7, sp, #0 - 80048de: 4603 mov r3, r0 - 80048e0: 71fb strb r3, [r7, #7] + 8004b44: b580 push {r7, lr} + 8004b46: b082 sub sp, #8 + 8004b48: af00 add r7, sp, #0 + 8004b4a: 4603 mov r3, r0 + 8004b4c: 71fb strb r3, [r7, #7] if(reg_number == 0){ - 80048e2: 79fb ldrb r3, [r7, #7] - 80048e4: 2b00 cmp r3, #0 - 80048e6: d108 bne.n 80048fa + 8004b4e: 79fb ldrb r3, [r7, #7] + 8004b50: 2b00 cmp r3, #0 + 8004b52: d108 bne.n 8004b66 tmp_time32 = get_Current_Time(); - 80048e8: f7ff ff26 bl 8004738 - 80048ec: 4603 mov r3, r0 - 80048ee: 4a11 ldr r2, [pc, #68] ; (8004934 ) - 80048f0: 6013 str r3, [r2, #0] + 8004b54: f7ff ff26 bl 80049a4 + 8004b58: 4603 mov r3, r0 + 8004b5a: 4a11 ldr r2, [pc, #68] ; (8004ba0 ) + 8004b5c: 6013 str r3, [r2, #0] return tmp_time32 & 0xFF; - 80048f2: 4b10 ldr r3, [pc, #64] ; (8004934 ) - 80048f4: 681b ldr r3, [r3, #0] - 80048f6: b2db uxtb r3, r3 - 80048f8: e018 b.n 800492c + 8004b5e: 4b10 ldr r3, [pc, #64] ; (8004ba0 ) + 8004b60: 681b ldr r3, [r3, #0] + 8004b62: b2db uxtb r3, r3 + 8004b64: e018 b.n 8004b98 }else if(reg_number == 1){ - 80048fa: 79fb ldrb r3, [r7, #7] - 80048fc: 2b01 cmp r3, #1 - 80048fe: d104 bne.n 800490a + 8004b66: 79fb ldrb r3, [r7, #7] + 8004b68: 2b01 cmp r3, #1 + 8004b6a: d104 bne.n 8004b76 return (tmp_time32>>8) & 0xFF; - 8004900: 4b0c ldr r3, [pc, #48] ; (8004934 ) - 8004902: 681b ldr r3, [r3, #0] - 8004904: 0a1b lsrs r3, r3, #8 - 8004906: b2db uxtb r3, r3 - 8004908: e010 b.n 800492c + 8004b6c: 4b0c ldr r3, [pc, #48] ; (8004ba0 ) + 8004b6e: 681b ldr r3, [r3, #0] + 8004b70: 0a1b lsrs r3, r3, #8 + 8004b72: b2db uxtb r3, r3 + 8004b74: e010 b.n 8004b98 }else if(reg_number == 2){ - 800490a: 79fb ldrb r3, [r7, #7] - 800490c: 2b02 cmp r3, #2 - 800490e: d104 bne.n 800491a + 8004b76: 79fb ldrb r3, [r7, #7] + 8004b78: 2b02 cmp r3, #2 + 8004b7a: d104 bne.n 8004b86 return (tmp_time32>>16) & 0xFF; - 8004910: 4b08 ldr r3, [pc, #32] ; (8004934 ) - 8004912: 681b ldr r3, [r3, #0] - 8004914: 0c1b lsrs r3, r3, #16 - 8004916: b2db uxtb r3, r3 - 8004918: e008 b.n 800492c + 8004b7c: 4b08 ldr r3, [pc, #32] ; (8004ba0 ) + 8004b7e: 681b ldr r3, [r3, #0] + 8004b80: 0c1b lsrs r3, r3, #16 + 8004b82: b2db uxtb r3, r3 + 8004b84: e008 b.n 8004b98 }else if(reg_number == 3){ - 800491a: 79fb ldrb r3, [r7, #7] - 800491c: 2b03 cmp r3, #3 - 800491e: d104 bne.n 800492a + 8004b86: 79fb ldrb r3, [r7, #7] + 8004b88: 2b03 cmp r3, #3 + 8004b8a: d104 bne.n 8004b96 return (tmp_time32>>24) & 0xFF; - 8004920: 4b04 ldr r3, [pc, #16] ; (8004934 ) - 8004922: 681b ldr r3, [r3, #0] - 8004924: 0e1b lsrs r3, r3, #24 - 8004926: b2db uxtb r3, r3 - 8004928: e000 b.n 800492c + 8004b8c: 4b04 ldr r3, [pc, #16] ; (8004ba0 ) + 8004b8e: 681b ldr r3, [r3, #0] + 8004b90: 0e1b lsrs r3, r3, #24 + 8004b92: b2db uxtb r3, r3 + 8004b94: e000 b.n 8004b98 }else{ return 0x00; - 800492a: 2300 movs r3, #0 + 8004b96: 2300 movs r3, #0 } }; - 800492c: 4618 mov r0, r3 - 800492e: 3708 adds r7, #8 - 8004930: 46bd mov sp, r7 - 8004932: bd80 pop {r7, pc} - 8004934: 20001cc4 .word 0x20001cc4 + 8004b98: 4618 mov r0, r3 + 8004b9a: 3708 adds r7, #8 + 8004b9c: 46bd mov sp, r7 + 8004b9e: bd80 pop {r7, pc} + 8004ba0: 20003344 .word 0x20003344 -08004938 : +08004ba4 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval Time counter */ static uint32_t RTC1_ReadTimeCounter(RTC_HandleTypeDef *hrtc) { - 8004938: b480 push {r7} - 800493a: b087 sub sp, #28 - 800493c: af00 add r7, sp, #0 - 800493e: 6078 str r0, [r7, #4] + 8004ba4: b480 push {r7} + 8004ba6: b087 sub sp, #28 + 8004ba8: af00 add r7, sp, #0 + 8004baa: 6078 str r0, [r7, #4] uint16_t high1 = 0U, high2 = 0U, low = 0U; - 8004940: 2300 movs r3, #0 - 8004942: 827b strh r3, [r7, #18] - 8004944: 2300 movs r3, #0 - 8004946: 823b strh r3, [r7, #16] - 8004948: 2300 movs r3, #0 - 800494a: 81fb strh r3, [r7, #14] + 8004bac: 2300 movs r3, #0 + 8004bae: 827b strh r3, [r7, #18] + 8004bb0: 2300 movs r3, #0 + 8004bb2: 823b strh r3, [r7, #16] + 8004bb4: 2300 movs r3, #0 + 8004bb6: 81fb strh r3, [r7, #14] uint32_t timecounter = 0U; - 800494c: 2300 movs r3, #0 - 800494e: 617b str r3, [r7, #20] + 8004bb8: 2300 movs r3, #0 + 8004bba: 617b str r3, [r7, #20] high1 = READ_REG(hrtc->Instance->CNTH & RTC_CNTH_RTC_CNT); - 8004950: 687b ldr r3, [r7, #4] - 8004952: 681b ldr r3, [r3, #0] - 8004954: 699b ldr r3, [r3, #24] - 8004956: 827b strh r3, [r7, #18] + 8004bbc: 687b ldr r3, [r7, #4] + 8004bbe: 681b ldr r3, [r3, #0] + 8004bc0: 699b ldr r3, [r3, #24] + 8004bc2: 827b strh r3, [r7, #18] low = READ_REG(hrtc->Instance->CNTL & RTC_CNTL_RTC_CNT); - 8004958: 687b ldr r3, [r7, #4] - 800495a: 681b ldr r3, [r3, #0] - 800495c: 69db ldr r3, [r3, #28] - 800495e: 81fb strh r3, [r7, #14] + 8004bc4: 687b ldr r3, [r7, #4] + 8004bc6: 681b ldr r3, [r3, #0] + 8004bc8: 69db ldr r3, [r3, #28] + 8004bca: 81fb strh r3, [r7, #14] high2 = READ_REG(hrtc->Instance->CNTH & RTC_CNTH_RTC_CNT); - 8004960: 687b ldr r3, [r7, #4] - 8004962: 681b ldr r3, [r3, #0] - 8004964: 699b ldr r3, [r3, #24] - 8004966: 823b strh r3, [r7, #16] + 8004bcc: 687b ldr r3, [r7, #4] + 8004bce: 681b ldr r3, [r3, #0] + 8004bd0: 699b ldr r3, [r3, #24] + 8004bd2: 823b strh r3, [r7, #16] if (high1 != high2) - 8004968: 8a7a ldrh r2, [r7, #18] - 800496a: 8a3b ldrh r3, [r7, #16] - 800496c: 429a cmp r2, r3 - 800496e: d008 beq.n 8004982 + 8004bd4: 8a7a ldrh r2, [r7, #18] + 8004bd6: 8a3b ldrh r3, [r7, #16] + 8004bd8: 429a cmp r2, r3 + 8004bda: d008 beq.n 8004bee { /* In this case the counter roll over during reading of CNTL and CNTH registers, read again CNTL register then return the counter value */ timecounter = (((uint32_t) high2 << 16U) | READ_REG(hrtc->Instance->CNTL & RTC_CNTL_RTC_CNT)); - 8004970: 8a3b ldrh r3, [r7, #16] - 8004972: 041a lsls r2, r3, #16 - 8004974: 687b ldr r3, [r7, #4] - 8004976: 681b ldr r3, [r3, #0] - 8004978: 69db ldr r3, [r3, #28] - 800497a: b29b uxth r3, r3 - 800497c: 4313 orrs r3, r2 - 800497e: 617b str r3, [r7, #20] - 8004980: e004 b.n 800498c + 8004bdc: 8a3b ldrh r3, [r7, #16] + 8004bde: 041a lsls r2, r3, #16 + 8004be0: 687b ldr r3, [r7, #4] + 8004be2: 681b ldr r3, [r3, #0] + 8004be4: 69db ldr r3, [r3, #28] + 8004be6: b29b uxth r3, r3 + 8004be8: 4313 orrs r3, r2 + 8004bea: 617b str r3, [r7, #20] + 8004bec: e004 b.n 8004bf8 } else { /* No counter roll over during reading of CNTL and CNTH registers, counter value is equal to first value of CNTL and CNTH */ timecounter = (((uint32_t) high1 << 16U) | low); - 8004982: 8a7b ldrh r3, [r7, #18] - 8004984: 041a lsls r2, r3, #16 - 8004986: 89fb ldrh r3, [r7, #14] - 8004988: 4313 orrs r3, r2 - 800498a: 617b str r3, [r7, #20] + 8004bee: 8a7b ldrh r3, [r7, #18] + 8004bf0: 041a lsls r2, r3, #16 + 8004bf2: 89fb ldrh r3, [r7, #14] + 8004bf4: 4313 orrs r3, r2 + 8004bf6: 617b str r3, [r7, #20] } return timecounter; - 800498c: 697b ldr r3, [r7, #20] + 8004bf8: 697b ldr r3, [r7, #20] } - 800498e: 4618 mov r0, r3 - 8004990: 371c adds r7, #28 - 8004992: 46bd mov sp, r7 - 8004994: bc80 pop {r7} - 8004996: 4770 bx lr + 8004bfa: 4618 mov r0, r3 + 8004bfc: 371c adds r7, #28 + 8004bfe: 46bd mov sp, r7 + 8004c00: bc80 pop {r7} + 8004c02: 4770 bx lr -08004998 : +08004c04 : * the configuration information for RTC. * @param TimeCounter: Counter to write in RTC_CNT registers * @retval HAL status */ static HAL_StatusTypeDef RTC1_WriteTimeCounter(RTC_HandleTypeDef *hrtc, uint32_t TimeCounter) { - 8004998: b580 push {r7, lr} - 800499a: b084 sub sp, #16 - 800499c: af00 add r7, sp, #0 - 800499e: 6078 str r0, [r7, #4] - 80049a0: 6039 str r1, [r7, #0] + 8004c04: b580 push {r7, lr} + 8004c06: b084 sub sp, #16 + 8004c08: af00 add r7, sp, #0 + 8004c0a: 6078 str r0, [r7, #4] + 8004c0c: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; - 80049a2: 2300 movs r3, #0 - 80049a4: 73fb strb r3, [r7, #15] + 8004c0e: 2300 movs r3, #0 + 8004c10: 73fb strb r3, [r7, #15] /* Set Initialization mode */ if (RTC1_EnterInitMode(hrtc) != HAL_OK) - 80049a6: 6878 ldr r0, [r7, #4] - 80049a8: f000 f81d bl 80049e6 - 80049ac: 4603 mov r3, r0 - 80049ae: 2b00 cmp r3, #0 - 80049b0: d002 beq.n 80049b8 + 8004c12: 6878 ldr r0, [r7, #4] + 8004c14: f000 f81d bl 8004c52 + 8004c18: 4603 mov r3, r0 + 8004c1a: 2b00 cmp r3, #0 + 8004c1c: d002 beq.n 8004c24 { status = HAL_ERROR; - 80049b2: 2301 movs r3, #1 - 80049b4: 73fb strb r3, [r7, #15] - 80049b6: e011 b.n 80049dc + 8004c1e: 2301 movs r3, #1 + 8004c20: 73fb strb r3, [r7, #15] + 8004c22: e011 b.n 8004c48 } else { /* Set RTC COUNTER MSB word */ WRITE_REG(hrtc->Instance->CNTH, (TimeCounter >> 16U)); - 80049b8: 687b ldr r3, [r7, #4] - 80049ba: 681b ldr r3, [r3, #0] - 80049bc: 683a ldr r2, [r7, #0] - 80049be: 0c12 lsrs r2, r2, #16 - 80049c0: 619a str r2, [r3, #24] + 8004c24: 687b ldr r3, [r7, #4] + 8004c26: 681b ldr r3, [r3, #0] + 8004c28: 683a ldr r2, [r7, #0] + 8004c2a: 0c12 lsrs r2, r2, #16 + 8004c2c: 619a str r2, [r3, #24] /* Set RTC COUNTER LSB word */ WRITE_REG(hrtc->Instance->CNTL, (TimeCounter & RTC_CNTL_RTC_CNT)); - 80049c2: 687b ldr r3, [r7, #4] - 80049c4: 681b ldr r3, [r3, #0] - 80049c6: 683a ldr r2, [r7, #0] - 80049c8: b292 uxth r2, r2 - 80049ca: 61da str r2, [r3, #28] + 8004c2e: 687b ldr r3, [r7, #4] + 8004c30: 681b ldr r3, [r3, #0] + 8004c32: 683a ldr r2, [r7, #0] + 8004c34: b292 uxth r2, r2 + 8004c36: 61da str r2, [r3, #28] /* Wait for synchro */ if (RTC1_ExitInitMode(hrtc) != HAL_OK) - 80049cc: 6878 ldr r0, [r7, #4] - 80049ce: f000 f832 bl 8004a36 - 80049d2: 4603 mov r3, r0 - 80049d4: 2b00 cmp r3, #0 - 80049d6: d001 beq.n 80049dc + 8004c38: 6878 ldr r0, [r7, #4] + 8004c3a: f000 f832 bl 8004ca2 + 8004c3e: 4603 mov r3, r0 + 8004c40: 2b00 cmp r3, #0 + 8004c42: d001 beq.n 8004c48 { status = HAL_ERROR; - 80049d8: 2301 movs r3, #1 - 80049da: 73fb strb r3, [r7, #15] + 8004c44: 2301 movs r3, #1 + 8004c46: 73fb strb r3, [r7, #15] } } return status; - 80049dc: 7bfb ldrb r3, [r7, #15] + 8004c48: 7bfb ldrb r3, [r7, #15] } - 80049de: 4618 mov r0, r3 - 80049e0: 3710 adds r7, #16 - 80049e2: 46bd mov sp, r7 - 80049e4: bd80 pop {r7, pc} + 8004c4a: 4618 mov r0, r3 + 8004c4c: 3710 adds r7, #16 + 8004c4e: 46bd mov sp, r7 + 8004c50: bd80 pop {r7, pc} -080049e6 : +08004c52 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ static HAL_StatusTypeDef RTC1_EnterInitMode(RTC_HandleTypeDef *hrtc) { - 80049e6: b580 push {r7, lr} - 80049e8: b084 sub sp, #16 - 80049ea: af00 add r7, sp, #0 - 80049ec: 6078 str r0, [r7, #4] + 8004c52: b580 push {r7, lr} + 8004c54: b084 sub sp, #16 + 8004c56: af00 add r7, sp, #0 + 8004c58: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 80049ee: 2300 movs r3, #0 - 80049f0: 60fb str r3, [r7, #12] + 8004c5a: 2300 movs r3, #0 + 8004c5c: 60fb str r3, [r7, #12] tickstart = HAL_GetTick(); - 80049f2: f000 fa7f bl 8004ef4 - 80049f6: 60f8 str r0, [r7, #12] + 8004c5e: f000 fa7f bl 8005160 + 8004c62: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 80049f8: e009 b.n 8004a0e + 8004c64: e009 b.n 8004c7a { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) - 80049fa: f000 fa7b bl 8004ef4 - 80049fe: 4602 mov r2, r0 - 8004a00: 68fb ldr r3, [r7, #12] - 8004a02: 1ad3 subs r3, r2, r3 - 8004a04: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8004a08: d901 bls.n 8004a0e + 8004c66: f000 fa7b bl 8005160 + 8004c6a: 4602 mov r2, r0 + 8004c6c: 68fb ldr r3, [r7, #12] + 8004c6e: 1ad3 subs r3, r2, r3 + 8004c70: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 8004c74: d901 bls.n 8004c7a { return HAL_TIMEOUT; - 8004a0a: 2303 movs r3, #3 - 8004a0c: e00f b.n 8004a2e + 8004c76: 2303 movs r3, #3 + 8004c78: e00f b.n 8004c9a while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 8004a0e: 687b ldr r3, [r7, #4] - 8004a10: 681b ldr r3, [r3, #0] - 8004a12: 685b ldr r3, [r3, #4] - 8004a14: f003 0320 and.w r3, r3, #32 - 8004a18: 2b00 cmp r3, #0 - 8004a1a: d0ee beq.n 80049fa + 8004c7a: 687b ldr r3, [r7, #4] + 8004c7c: 681b ldr r3, [r3, #0] + 8004c7e: 685b ldr r3, [r3, #4] + 8004c80: f003 0320 and.w r3, r3, #32 + 8004c84: 2b00 cmp r3, #0 + 8004c86: d0ee beq.n 8004c66 } } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 8004a1c: 687b ldr r3, [r7, #4] - 8004a1e: 681b ldr r3, [r3, #0] - 8004a20: 685a ldr r2, [r3, #4] - 8004a22: 687b ldr r3, [r7, #4] - 8004a24: 681b ldr r3, [r3, #0] - 8004a26: f042 0210 orr.w r2, r2, #16 - 8004a2a: 605a str r2, [r3, #4] + 8004c88: 687b ldr r3, [r7, #4] + 8004c8a: 681b ldr r3, [r3, #0] + 8004c8c: 685a ldr r2, [r3, #4] + 8004c8e: 687b ldr r3, [r7, #4] + 8004c90: 681b ldr r3, [r3, #0] + 8004c92: f042 0210 orr.w r2, r2, #16 + 8004c96: 605a str r2, [r3, #4] return HAL_OK; - 8004a2c: 2300 movs r3, #0 + 8004c98: 2300 movs r3, #0 } - 8004a2e: 4618 mov r0, r3 - 8004a30: 3710 adds r7, #16 - 8004a32: 46bd mov sp, r7 - 8004a34: bd80 pop {r7, pc} + 8004c9a: 4618 mov r0, r3 + 8004c9c: 3710 adds r7, #16 + 8004c9e: 46bd mov sp, r7 + 8004ca0: bd80 pop {r7, pc} -08004a36 : +08004ca2 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ static HAL_StatusTypeDef RTC1_ExitInitMode(RTC_HandleTypeDef *hrtc) { - 8004a36: b580 push {r7, lr} - 8004a38: b084 sub sp, #16 - 8004a3a: af00 add r7, sp, #0 - 8004a3c: 6078 str r0, [r7, #4] + 8004ca2: b580 push {r7, lr} + 8004ca4: b084 sub sp, #16 + 8004ca6: af00 add r7, sp, #0 + 8004ca8: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8004a3e: 2300 movs r3, #0 - 8004a40: 60fb str r3, [r7, #12] + 8004caa: 2300 movs r3, #0 + 8004cac: 60fb str r3, [r7, #12] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 8004a42: 687b ldr r3, [r7, #4] - 8004a44: 681b ldr r3, [r3, #0] - 8004a46: 685a ldr r2, [r3, #4] - 8004a48: 687b ldr r3, [r7, #4] - 8004a4a: 681b ldr r3, [r3, #0] - 8004a4c: f022 0210 bic.w r2, r2, #16 - 8004a50: 605a str r2, [r3, #4] + 8004cae: 687b ldr r3, [r7, #4] + 8004cb0: 681b ldr r3, [r3, #0] + 8004cb2: 685a ldr r2, [r3, #4] + 8004cb4: 687b ldr r3, [r7, #4] + 8004cb6: 681b ldr r3, [r3, #0] + 8004cb8: f022 0210 bic.w r2, r2, #16 + 8004cbc: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); - 8004a52: f000 fa4f bl 8004ef4 - 8004a56: 60f8 str r0, [r7, #12] + 8004cbe: f000 fa4f bl 8005160 + 8004cc2: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 8004a58: e009 b.n 8004a6e + 8004cc4: e009 b.n 8004cda { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) - 8004a5a: f000 fa4b bl 8004ef4 - 8004a5e: 4602 mov r2, r0 - 8004a60: 68fb ldr r3, [r7, #12] - 8004a62: 1ad3 subs r3, r2, r3 - 8004a64: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8004a68: d901 bls.n 8004a6e + 8004cc6: f000 fa4b bl 8005160 + 8004cca: 4602 mov r2, r0 + 8004ccc: 68fb ldr r3, [r7, #12] + 8004cce: 1ad3 subs r3, r2, r3 + 8004cd0: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 8004cd4: d901 bls.n 8004cda { return HAL_TIMEOUT; - 8004a6a: 2303 movs r3, #3 - 8004a6c: e007 b.n 8004a7e + 8004cd6: 2303 movs r3, #3 + 8004cd8: e007 b.n 8004cea while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 8004a6e: 687b ldr r3, [r7, #4] - 8004a70: 681b ldr r3, [r3, #0] - 8004a72: 685b ldr r3, [r3, #4] - 8004a74: f003 0320 and.w r3, r3, #32 - 8004a78: 2b00 cmp r3, #0 - 8004a7a: d0ee beq.n 8004a5a + 8004cda: 687b ldr r3, [r7, #4] + 8004cdc: 681b ldr r3, [r3, #0] + 8004cde: 685b ldr r3, [r3, #4] + 8004ce0: f003 0320 and.w r3, r3, #32 + 8004ce4: 2b00 cmp r3, #0 + 8004ce6: d0ee beq.n 8004cc6 } } return HAL_OK; - 8004a7c: 2300 movs r3, #0 + 8004ce8: 2300 movs r3, #0 } - 8004a7e: 4618 mov r0, r3 - 8004a80: 3710 adds r7, #16 - 8004a82: 46bd mov sp, r7 - 8004a84: bd80 pop {r7, pc} + 8004cea: 4618 mov r0, r3 + 8004cec: 3710 adds r7, #16 + 8004cee: 46bd mov sp, r7 + 8004cf0: bd80 pop {r7, pc} ... -08004a88 : +08004cf4 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 8004a88: b480 push {r7} - 8004a8a: b085 sub sp, #20 - 8004a8c: af00 add r7, sp, #0 + 8004cf4: b480 push {r7} + 8004cf6: b085 sub sp, #20 + 8004cf8: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); - 8004a8e: 4b15 ldr r3, [pc, #84] ; (8004ae4 ) - 8004a90: 699b ldr r3, [r3, #24] - 8004a92: 4a14 ldr r2, [pc, #80] ; (8004ae4 ) - 8004a94: f043 0301 orr.w r3, r3, #1 - 8004a98: 6193 str r3, [r2, #24] - 8004a9a: 4b12 ldr r3, [pc, #72] ; (8004ae4 ) - 8004a9c: 699b ldr r3, [r3, #24] - 8004a9e: f003 0301 and.w r3, r3, #1 - 8004aa2: 60bb str r3, [r7, #8] - 8004aa4: 68bb ldr r3, [r7, #8] + 8004cfa: 4b15 ldr r3, [pc, #84] ; (8004d50 ) + 8004cfc: 699b ldr r3, [r3, #24] + 8004cfe: 4a14 ldr r2, [pc, #80] ; (8004d50 ) + 8004d00: f043 0301 orr.w r3, r3, #1 + 8004d04: 6193 str r3, [r2, #24] + 8004d06: 4b12 ldr r3, [pc, #72] ; (8004d50 ) + 8004d08: 699b ldr r3, [r3, #24] + 8004d0a: f003 0301 and.w r3, r3, #1 + 8004d0e: 60bb str r3, [r7, #8] + 8004d10: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); - 8004aa6: 4b0f ldr r3, [pc, #60] ; (8004ae4 ) - 8004aa8: 69db ldr r3, [r3, #28] - 8004aaa: 4a0e ldr r2, [pc, #56] ; (8004ae4 ) - 8004aac: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8004ab0: 61d3 str r3, [r2, #28] - 8004ab2: 4b0c ldr r3, [pc, #48] ; (8004ae4 ) - 8004ab4: 69db ldr r3, [r3, #28] - 8004ab6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8004aba: 607b str r3, [r7, #4] - 8004abc: 687b ldr r3, [r7, #4] + 8004d12: 4b0f ldr r3, [pc, #60] ; (8004d50 ) + 8004d14: 69db ldr r3, [r3, #28] + 8004d16: 4a0e ldr r2, [pc, #56] ; (8004d50 ) + 8004d18: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8004d1c: 61d3 str r3, [r2, #28] + 8004d1e: 4b0c ldr r3, [pc, #48] ; (8004d50 ) + 8004d20: 69db ldr r3, [r3, #28] + 8004d22: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8004d26: 607b str r3, [r7, #4] + 8004d28: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); - 8004abe: 4b0a ldr r3, [pc, #40] ; (8004ae8 ) - 8004ac0: 685b ldr r3, [r3, #4] - 8004ac2: 60fb str r3, [r7, #12] - 8004ac4: 68fb ldr r3, [r7, #12] - 8004ac6: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 - 8004aca: 60fb str r3, [r7, #12] - 8004acc: 68fb ldr r3, [r7, #12] - 8004ace: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 - 8004ad2: 60fb str r3, [r7, #12] - 8004ad4: 4a04 ldr r2, [pc, #16] ; (8004ae8 ) - 8004ad6: 68fb ldr r3, [r7, #12] - 8004ad8: 6053 str r3, [r2, #4] + 8004d2a: 4b0a ldr r3, [pc, #40] ; (8004d54 ) + 8004d2c: 685b ldr r3, [r3, #4] + 8004d2e: 60fb str r3, [r7, #12] + 8004d30: 68fb ldr r3, [r7, #12] + 8004d32: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 + 8004d36: 60fb str r3, [r7, #12] + 8004d38: 68fb ldr r3, [r7, #12] + 8004d3a: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 + 8004d3e: 60fb str r3, [r7, #12] + 8004d40: 4a04 ldr r2, [pc, #16] ; (8004d54 ) + 8004d42: 68fb ldr r3, [r7, #12] + 8004d44: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 8004ada: bf00 nop - 8004adc: 3714 adds r7, #20 - 8004ade: 46bd mov sp, r7 - 8004ae0: bc80 pop {r7} - 8004ae2: 4770 bx lr - 8004ae4: 40021000 .word 0x40021000 - 8004ae8: 40010000 .word 0x40010000 + 8004d46: bf00 nop + 8004d48: 3714 adds r7, #20 + 8004d4a: 46bd mov sp, r7 + 8004d4c: bc80 pop {r7} + 8004d4e: 4770 bx lr + 8004d50: 40021000 .word 0x40021000 + 8004d54: 40010000 .word 0x40010000 -08004aec : +08004d58 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 8004aec: b480 push {r7} - 8004aee: af00 add r7, sp, #0 + 8004d58: b480 push {r7} + 8004d5a: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 8004af0: e7fe b.n 8004af0 + 8004d5c: e7fe b.n 8004d5c -08004af2 : +08004d5e : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 8004af2: b480 push {r7} - 8004af4: af00 add r7, sp, #0 + 8004d5e: b480 push {r7} + 8004d60: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8004af6: e7fe b.n 8004af6 + 8004d62: e7fe b.n 8004d62 -08004af8 : +08004d64 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8004af8: b480 push {r7} - 8004afa: af00 add r7, sp, #0 + 8004d64: b480 push {r7} + 8004d66: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 8004afc: e7fe b.n 8004afc + 8004d68: e7fe b.n 8004d68 -08004afe : +08004d6a : /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { - 8004afe: b480 push {r7} - 8004b00: af00 add r7, sp, #0 + 8004d6a: b480 push {r7} + 8004d6c: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8004b02: e7fe b.n 8004b02 + 8004d6e: e7fe b.n 8004d6e -08004b04 : +08004d70 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8004b04: b480 push {r7} - 8004b06: af00 add r7, sp, #0 + 8004d70: b480 push {r7} + 8004d72: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8004b08: e7fe b.n 8004b08 + 8004d74: e7fe b.n 8004d74 -08004b0a : +08004d76 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 8004b0a: b480 push {r7} - 8004b0c: af00 add r7, sp, #0 + 8004d76: b480 push {r7} + 8004d78: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 8004b0e: bf00 nop - 8004b10: 46bd mov sp, r7 - 8004b12: bc80 pop {r7} - 8004b14: 4770 bx lr + 8004d7a: bf00 nop + 8004d7c: 46bd mov sp, r7 + 8004d7e: bc80 pop {r7} + 8004d80: 4770 bx lr -08004b16 : +08004d82 : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8004b16: b480 push {r7} - 8004b18: af00 add r7, sp, #0 + 8004d82: b480 push {r7} + 8004d84: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 8004b1a: bf00 nop - 8004b1c: 46bd mov sp, r7 - 8004b1e: bc80 pop {r7} - 8004b20: 4770 bx lr + 8004d86: bf00 nop + 8004d88: 46bd mov sp, r7 + 8004d8a: bc80 pop {r7} + 8004d8c: 4770 bx lr -08004b22 : +08004d8e : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8004b22: b480 push {r7} - 8004b24: af00 add r7, sp, #0 + 8004d8e: b480 push {r7} + 8004d90: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 8004b26: bf00 nop - 8004b28: 46bd mov sp, r7 - 8004b2a: bc80 pop {r7} - 8004b2c: 4770 bx lr + 8004d92: bf00 nop + 8004d94: 46bd mov sp, r7 + 8004d96: bc80 pop {r7} + 8004d98: 4770 bx lr -08004b2e : +08004d9a : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8004b2e: b580 push {r7, lr} - 8004b30: af00 add r7, sp, #0 + 8004d9a: b580 push {r7, lr} + 8004d9c: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 8004b32: f000 f9cd bl 8004ed0 + 8004d9e: f000 f9cd bl 800513c /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 8004b36: bf00 nop - 8004b38: bd80 pop {r7, pc} + 8004da2: bf00 nop + 8004da4: bd80 pop {r7, pc} ... -08004b3c : +08004da8 : /** * @brief This function handles CAN1 RX0 interrupt. */ void CAN1_RX0_IRQHandler(void) { - 8004b3c: b580 push {r7, lr} - 8004b3e: af00 add r7, sp, #0 + 8004da8: b580 push {r7, lr} + 8004daa: af00 add r7, sp, #0 /* USER CODE BEGIN CAN1_RX0_IRQn 0 */ /* USER CODE END CAN1_RX0_IRQn 0 */ HAL_CAN_IRQHandler(&hcan1); - 8004b40: 4802 ldr r0, [pc, #8] ; (8004b4c ) - 8004b42: f001 fbb6 bl 80062b2 + 8004dac: 4802 ldr r0, [pc, #8] ; (8004db8 ) + 8004dae: f001 fbb6 bl 800651e /* USER CODE BEGIN CAN1_RX0_IRQn 1 */ /* USER CODE END CAN1_RX0_IRQn 1 */ } - 8004b46: bf00 nop - 8004b48: bd80 pop {r7, pc} - 8004b4a: bf00 nop - 8004b4c: 20000290 .word 0x20000290 + 8004db2: bf00 nop + 8004db4: bd80 pop {r7, pc} + 8004db6: bf00 nop + 8004db8: 20000290 .word 0x20000290 -08004b50 : +08004dbc : /** * @brief This function handles USART2 global interrupt. */ void USART2_IRQHandler(void) { - 8004b50: b580 push {r7, lr} - 8004b52: af00 add r7, sp, #0 + 8004dbc: b580 push {r7, lr} + 8004dbe: af00 add r7, sp, #0 /* USER CODE BEGIN USART2_IRQn 0 */ /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); - 8004b54: 4802 ldr r0, [pc, #8] ; (8004b60 ) - 8004b56: f003 fbbf bl 80082d8 + 8004dc0: 4802 ldr r0, [pc, #8] ; (8004dcc ) + 8004dc2: f003 fbbf bl 8008544 /* USER CODE BEGIN USART2_IRQn 1 */ /* USER CODE END USART2_IRQn 1 */ } - 8004b5a: bf00 nop - 8004b5c: bd80 pop {r7, pc} - 8004b5e: bf00 nop - 8004b60: 20001cd0 .word 0x20001cd0 + 8004dc6: bf00 nop + 8004dc8: bd80 pop {r7, pc} + 8004dca: bf00 nop + 8004dcc: 20003350 .word 0x20003350 -08004b64 : +08004dd0 : /** * @brief This function handles CAN2 TX interrupt. */ void CAN2_TX_IRQHandler(void) { - 8004b64: b580 push {r7, lr} - 8004b66: af00 add r7, sp, #0 + 8004dd0: b580 push {r7, lr} + 8004dd2: af00 add r7, sp, #0 /* USER CODE BEGIN CAN2_TX_IRQn 0 */ /* USER CODE END CAN2_TX_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); - 8004b68: 4802 ldr r0, [pc, #8] ; (8004b74 ) - 8004b6a: f001 fba2 bl 80062b2 + 8004dd4: 4802 ldr r0, [pc, #8] ; (8004de0 ) + 8004dd6: f001 fba2 bl 800651e /* USER CODE BEGIN CAN2_TX_IRQn 1 */ /* USER CODE END CAN2_TX_IRQn 1 */ } - 8004b6e: bf00 nop - 8004b70: bd80 pop {r7, pc} - 8004b72: bf00 nop - 8004b74: 200002b8 .word 0x200002b8 + 8004dda: bf00 nop + 8004ddc: bd80 pop {r7, pc} + 8004dde: bf00 nop + 8004de0: 200002b8 .word 0x200002b8 -08004b78 : +08004de4 : /** * @brief This function handles CAN2 RX1 interrupt. */ void CAN2_RX1_IRQHandler(void) { - 8004b78: b580 push {r7, lr} - 8004b7a: af00 add r7, sp, #0 + 8004de4: b580 push {r7, lr} + 8004de6: af00 add r7, sp, #0 /* USER CODE BEGIN CAN2_RX1_IRQn 0 */ /* USER CODE END CAN2_RX1_IRQn 0 */ HAL_CAN_IRQHandler(&hcan2); - 8004b7c: 4802 ldr r0, [pc, #8] ; (8004b88 ) - 8004b7e: f001 fb98 bl 80062b2 + 8004de8: 4802 ldr r0, [pc, #8] ; (8004df4 ) + 8004dea: f001 fb98 bl 800651e /* USER CODE BEGIN CAN2_RX1_IRQn 1 */ /* USER CODE END CAN2_RX1_IRQn 1 */ } - 8004b82: bf00 nop - 8004b84: bd80 pop {r7, pc} - 8004b86: bf00 nop - 8004b88: 200002b8 .word 0x200002b8 + 8004dee: bf00 nop + 8004df0: bd80 pop {r7, pc} + 8004df2: bf00 nop + 8004df4: 200002b8 .word 0x200002b8 -08004b8c <_getpid>: +08004df8 <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { - 8004b8c: b480 push {r7} - 8004b8e: af00 add r7, sp, #0 + 8004df8: b480 push {r7} + 8004dfa: af00 add r7, sp, #0 return 1; - 8004b90: 2301 movs r3, #1 + 8004dfc: 2301 movs r3, #1 } - 8004b92: 4618 mov r0, r3 - 8004b94: 46bd mov sp, r7 - 8004b96: bc80 pop {r7} - 8004b98: 4770 bx lr + 8004dfe: 4618 mov r0, r3 + 8004e00: 46bd mov sp, r7 + 8004e02: bc80 pop {r7} + 8004e04: 4770 bx lr -08004b9a <_kill>: +08004e06 <_kill>: int _kill(int pid, int sig) { - 8004b9a: b580 push {r7, lr} - 8004b9c: b082 sub sp, #8 - 8004b9e: af00 add r7, sp, #0 - 8004ba0: 6078 str r0, [r7, #4] - 8004ba2: 6039 str r1, [r7, #0] + 8004e06: b580 push {r7, lr} + 8004e08: b082 sub sp, #8 + 8004e0a: af00 add r7, sp, #0 + 8004e0c: 6078 str r0, [r7, #4] + 8004e0e: 6039 str r1, [r7, #0] (void)pid; (void)sig; errno = EINVAL; - 8004ba4: f003 ffbe bl 8008b24 <__errno> - 8004ba8: 4603 mov r3, r0 - 8004baa: 2216 movs r2, #22 - 8004bac: 601a str r2, [r3, #0] + 8004e10: f003 ffbe bl 8008d90 <__errno> + 8004e14: 4603 mov r3, r0 + 8004e16: 2216 movs r2, #22 + 8004e18: 601a str r2, [r3, #0] return -1; - 8004bae: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8004e1a: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff } - 8004bb2: 4618 mov r0, r3 - 8004bb4: 3708 adds r7, #8 - 8004bb6: 46bd mov sp, r7 - 8004bb8: bd80 pop {r7, pc} + 8004e1e: 4618 mov r0, r3 + 8004e20: 3708 adds r7, #8 + 8004e22: 46bd mov sp, r7 + 8004e24: bd80 pop {r7, pc} -08004bba <_exit>: +08004e26 <_exit>: void _exit (int status) { - 8004bba: b580 push {r7, lr} - 8004bbc: b082 sub sp, #8 - 8004bbe: af00 add r7, sp, #0 - 8004bc0: 6078 str r0, [r7, #4] + 8004e26: b580 push {r7, lr} + 8004e28: b082 sub sp, #8 + 8004e2a: af00 add r7, sp, #0 + 8004e2c: 6078 str r0, [r7, #4] _kill(status, -1); - 8004bc2: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff - 8004bc6: 6878 ldr r0, [r7, #4] - 8004bc8: f7ff ffe7 bl 8004b9a <_kill> + 8004e2e: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 8004e32: 6878 ldr r0, [r7, #4] + 8004e34: f7ff ffe7 bl 8004e06 <_kill> while (1) {} /* Make sure we hang here */ - 8004bcc: e7fe b.n 8004bcc <_exit+0x12> + 8004e38: e7fe b.n 8004e38 <_exit+0x12> -08004bce <_read>: +08004e3a <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { - 8004bce: b580 push {r7, lr} - 8004bd0: b086 sub sp, #24 - 8004bd2: af00 add r7, sp, #0 - 8004bd4: 60f8 str r0, [r7, #12] - 8004bd6: 60b9 str r1, [r7, #8] - 8004bd8: 607a str r2, [r7, #4] + 8004e3a: b580 push {r7, lr} + 8004e3c: b086 sub sp, #24 + 8004e3e: af00 add r7, sp, #0 + 8004e40: 60f8 str r0, [r7, #12] + 8004e42: 60b9 str r1, [r7, #8] + 8004e44: 607a str r2, [r7, #4] (void)file; int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 8004bda: 2300 movs r3, #0 - 8004bdc: 617b str r3, [r7, #20] - 8004bde: e00a b.n 8004bf6 <_read+0x28> + 8004e46: 2300 movs r3, #0 + 8004e48: 617b str r3, [r7, #20] + 8004e4a: e00a b.n 8004e62 <_read+0x28> { *ptr++ = __io_getchar(); - 8004be0: f3af 8000 nop.w - 8004be4: 4601 mov r1, r0 - 8004be6: 68bb ldr r3, [r7, #8] - 8004be8: 1c5a adds r2, r3, #1 - 8004bea: 60ba str r2, [r7, #8] - 8004bec: b2ca uxtb r2, r1 - 8004bee: 701a strb r2, [r3, #0] + 8004e4c: f3af 8000 nop.w + 8004e50: 4601 mov r1, r0 + 8004e52: 68bb ldr r3, [r7, #8] + 8004e54: 1c5a adds r2, r3, #1 + 8004e56: 60ba str r2, [r7, #8] + 8004e58: b2ca uxtb r2, r1 + 8004e5a: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) - 8004bf0: 697b ldr r3, [r7, #20] - 8004bf2: 3301 adds r3, #1 - 8004bf4: 617b str r3, [r7, #20] - 8004bf6: 697a ldr r2, [r7, #20] - 8004bf8: 687b ldr r3, [r7, #4] - 8004bfa: 429a cmp r2, r3 - 8004bfc: dbf0 blt.n 8004be0 <_read+0x12> + 8004e5c: 697b ldr r3, [r7, #20] + 8004e5e: 3301 adds r3, #1 + 8004e60: 617b str r3, [r7, #20] + 8004e62: 697a ldr r2, [r7, #20] + 8004e64: 687b ldr r3, [r7, #4] + 8004e66: 429a cmp r2, r3 + 8004e68: dbf0 blt.n 8004e4c <_read+0x12> } return len; - 8004bfe: 687b ldr r3, [r7, #4] + 8004e6a: 687b ldr r3, [r7, #4] } - 8004c00: 4618 mov r0, r3 - 8004c02: 3718 adds r7, #24 - 8004c04: 46bd mov sp, r7 - 8004c06: bd80 pop {r7, pc} + 8004e6c: 4618 mov r0, r3 + 8004e6e: 3718 adds r7, #24 + 8004e70: 46bd mov sp, r7 + 8004e72: bd80 pop {r7, pc} -08004c08 <_close>: +08004e74 <_close>: } return len; } int _close(int file) { - 8004c08: b480 push {r7} - 8004c0a: b083 sub sp, #12 - 8004c0c: af00 add r7, sp, #0 - 8004c0e: 6078 str r0, [r7, #4] + 8004e74: b480 push {r7} + 8004e76: b083 sub sp, #12 + 8004e78: af00 add r7, sp, #0 + 8004e7a: 6078 str r0, [r7, #4] (void)file; return -1; - 8004c10: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8004e7c: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff } - 8004c14: 4618 mov r0, r3 - 8004c16: 370c adds r7, #12 - 8004c18: 46bd mov sp, r7 - 8004c1a: bc80 pop {r7} - 8004c1c: 4770 bx lr + 8004e80: 4618 mov r0, r3 + 8004e82: 370c adds r7, #12 + 8004e84: 46bd mov sp, r7 + 8004e86: bc80 pop {r7} + 8004e88: 4770 bx lr -08004c1e <_fstat>: +08004e8a <_fstat>: int _fstat(int file, struct stat *st) { - 8004c1e: b480 push {r7} - 8004c20: b083 sub sp, #12 - 8004c22: af00 add r7, sp, #0 - 8004c24: 6078 str r0, [r7, #4] - 8004c26: 6039 str r1, [r7, #0] + 8004e8a: b480 push {r7} + 8004e8c: b083 sub sp, #12 + 8004e8e: af00 add r7, sp, #0 + 8004e90: 6078 str r0, [r7, #4] + 8004e92: 6039 str r1, [r7, #0] (void)file; st->st_mode = S_IFCHR; - 8004c28: 683b ldr r3, [r7, #0] - 8004c2a: f44f 5200 mov.w r2, #8192 ; 0x2000 - 8004c2e: 605a str r2, [r3, #4] + 8004e94: 683b ldr r3, [r7, #0] + 8004e96: f44f 5200 mov.w r2, #8192 ; 0x2000 + 8004e9a: 605a str r2, [r3, #4] return 0; - 8004c30: 2300 movs r3, #0 + 8004e9c: 2300 movs r3, #0 } - 8004c32: 4618 mov r0, r3 - 8004c34: 370c adds r7, #12 - 8004c36: 46bd mov sp, r7 - 8004c38: bc80 pop {r7} - 8004c3a: 4770 bx lr + 8004e9e: 4618 mov r0, r3 + 8004ea0: 370c adds r7, #12 + 8004ea2: 46bd mov sp, r7 + 8004ea4: bc80 pop {r7} + 8004ea6: 4770 bx lr -08004c3c <_isatty>: +08004ea8 <_isatty>: int _isatty(int file) { - 8004c3c: b480 push {r7} - 8004c3e: b083 sub sp, #12 - 8004c40: af00 add r7, sp, #0 - 8004c42: 6078 str r0, [r7, #4] + 8004ea8: b480 push {r7} + 8004eaa: b083 sub sp, #12 + 8004eac: af00 add r7, sp, #0 + 8004eae: 6078 str r0, [r7, #4] (void)file; return 1; - 8004c44: 2301 movs r3, #1 + 8004eb0: 2301 movs r3, #1 } - 8004c46: 4618 mov r0, r3 - 8004c48: 370c adds r7, #12 - 8004c4a: 46bd mov sp, r7 - 8004c4c: bc80 pop {r7} - 8004c4e: 4770 bx lr + 8004eb2: 4618 mov r0, r3 + 8004eb4: 370c adds r7, #12 + 8004eb6: 46bd mov sp, r7 + 8004eb8: bc80 pop {r7} + 8004eba: 4770 bx lr -08004c50 <_lseek>: +08004ebc <_lseek>: int _lseek(int file, int ptr, int dir) { - 8004c50: b480 push {r7} - 8004c52: b085 sub sp, #20 - 8004c54: af00 add r7, sp, #0 - 8004c56: 60f8 str r0, [r7, #12] - 8004c58: 60b9 str r1, [r7, #8] - 8004c5a: 607a str r2, [r7, #4] + 8004ebc: b480 push {r7} + 8004ebe: b085 sub sp, #20 + 8004ec0: af00 add r7, sp, #0 + 8004ec2: 60f8 str r0, [r7, #12] + 8004ec4: 60b9 str r1, [r7, #8] + 8004ec6: 607a str r2, [r7, #4] (void)file; (void)ptr; (void)dir; return 0; - 8004c5c: 2300 movs r3, #0 + 8004ec8: 2300 movs r3, #0 } - 8004c5e: 4618 mov r0, r3 - 8004c60: 3714 adds r7, #20 - 8004c62: 46bd mov sp, r7 - 8004c64: bc80 pop {r7} - 8004c66: 4770 bx lr + 8004eca: 4618 mov r0, r3 + 8004ecc: 3714 adds r7, #20 + 8004ece: 46bd mov sp, r7 + 8004ed0: bc80 pop {r7} + 8004ed2: 4770 bx lr -08004c68 <_sbrk>: +08004ed4 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { - 8004c68: b580 push {r7, lr} - 8004c6a: b086 sub sp, #24 - 8004c6c: af00 add r7, sp, #0 - 8004c6e: 6078 str r0, [r7, #4] + 8004ed4: b580 push {r7, lr} + 8004ed6: b086 sub sp, #24 + 8004ed8: af00 add r7, sp, #0 + 8004eda: 6078 str r0, [r7, #4] extern uint8_t _end; /* Symbol defined in the linker script */ extern uint8_t _estack; /* Symbol defined in the linker script */ extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */ const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size; - 8004c70: 4a14 ldr r2, [pc, #80] ; (8004cc4 <_sbrk+0x5c>) - 8004c72: 4b15 ldr r3, [pc, #84] ; (8004cc8 <_sbrk+0x60>) - 8004c74: 1ad3 subs r3, r2, r3 - 8004c76: 617b str r3, [r7, #20] + 8004edc: 4a14 ldr r2, [pc, #80] ; (8004f30 <_sbrk+0x5c>) + 8004ede: 4b15 ldr r3, [pc, #84] ; (8004f34 <_sbrk+0x60>) + 8004ee0: 1ad3 subs r3, r2, r3 + 8004ee2: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; - 8004c78: 697b ldr r3, [r7, #20] - 8004c7a: 613b str r3, [r7, #16] + 8004ee4: 697b ldr r3, [r7, #20] + 8004ee6: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) - 8004c7c: 4b13 ldr r3, [pc, #76] ; (8004ccc <_sbrk+0x64>) - 8004c7e: 681b ldr r3, [r3, #0] - 8004c80: 2b00 cmp r3, #0 - 8004c82: d102 bne.n 8004c8a <_sbrk+0x22> + 8004ee8: 4b13 ldr r3, [pc, #76] ; (8004f38 <_sbrk+0x64>) + 8004eea: 681b ldr r3, [r3, #0] + 8004eec: 2b00 cmp r3, #0 + 8004eee: d102 bne.n 8004ef6 <_sbrk+0x22> { __sbrk_heap_end = &_end; - 8004c84: 4b11 ldr r3, [pc, #68] ; (8004ccc <_sbrk+0x64>) - 8004c86: 4a12 ldr r2, [pc, #72] ; (8004cd0 <_sbrk+0x68>) - 8004c88: 601a str r2, [r3, #0] + 8004ef0: 4b11 ldr r3, [pc, #68] ; (8004f38 <_sbrk+0x64>) + 8004ef2: 4a12 ldr r2, [pc, #72] ; (8004f3c <_sbrk+0x68>) + 8004ef4: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) - 8004c8a: 4b10 ldr r3, [pc, #64] ; (8004ccc <_sbrk+0x64>) - 8004c8c: 681a ldr r2, [r3, #0] - 8004c8e: 687b ldr r3, [r7, #4] - 8004c90: 4413 add r3, r2 - 8004c92: 693a ldr r2, [r7, #16] - 8004c94: 429a cmp r2, r3 - 8004c96: d207 bcs.n 8004ca8 <_sbrk+0x40> + 8004ef6: 4b10 ldr r3, [pc, #64] ; (8004f38 <_sbrk+0x64>) + 8004ef8: 681a ldr r2, [r3, #0] + 8004efa: 687b ldr r3, [r7, #4] + 8004efc: 4413 add r3, r2 + 8004efe: 693a ldr r2, [r7, #16] + 8004f00: 429a cmp r2, r3 + 8004f02: d207 bcs.n 8004f14 <_sbrk+0x40> { errno = ENOMEM; - 8004c98: f003 ff44 bl 8008b24 <__errno> - 8004c9c: 4603 mov r3, r0 - 8004c9e: 220c movs r2, #12 - 8004ca0: 601a str r2, [r3, #0] + 8004f04: f003 ff44 bl 8008d90 <__errno> + 8004f08: 4603 mov r3, r0 + 8004f0a: 220c movs r2, #12 + 8004f0c: 601a str r2, [r3, #0] return (void *)-1; - 8004ca2: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 8004ca6: e009 b.n 8004cbc <_sbrk+0x54> + 8004f0e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8004f12: e009 b.n 8004f28 <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; - 8004ca8: 4b08 ldr r3, [pc, #32] ; (8004ccc <_sbrk+0x64>) - 8004caa: 681b ldr r3, [r3, #0] - 8004cac: 60fb str r3, [r7, #12] + 8004f14: 4b08 ldr r3, [pc, #32] ; (8004f38 <_sbrk+0x64>) + 8004f16: 681b ldr r3, [r3, #0] + 8004f18: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; - 8004cae: 4b07 ldr r3, [pc, #28] ; (8004ccc <_sbrk+0x64>) - 8004cb0: 681a ldr r2, [r3, #0] - 8004cb2: 687b ldr r3, [r7, #4] - 8004cb4: 4413 add r3, r2 - 8004cb6: 4a05 ldr r2, [pc, #20] ; (8004ccc <_sbrk+0x64>) - 8004cb8: 6013 str r3, [r2, #0] + 8004f1a: 4b07 ldr r3, [pc, #28] ; (8004f38 <_sbrk+0x64>) + 8004f1c: 681a ldr r2, [r3, #0] + 8004f1e: 687b ldr r3, [r7, #4] + 8004f20: 4413 add r3, r2 + 8004f22: 4a05 ldr r2, [pc, #20] ; (8004f38 <_sbrk+0x64>) + 8004f24: 6013 str r3, [r2, #0] return (void *)prev_heap_end; - 8004cba: 68fb ldr r3, [r7, #12] + 8004f26: 68fb ldr r3, [r7, #12] } - 8004cbc: 4618 mov r0, r3 - 8004cbe: 3718 adds r7, #24 - 8004cc0: 46bd mov sp, r7 - 8004cc2: bd80 pop {r7, pc} - 8004cc4: 20010000 .word 0x20010000 - 8004cc8: 00000400 .word 0x00000400 - 8004ccc: 20001ccc .word 0x20001ccc - 8004cd0: 20001d50 .word 0x20001d50 + 8004f28: 4618 mov r0, r3 + 8004f2a: 3718 adds r7, #24 + 8004f2c: 46bd mov sp, r7 + 8004f2e: bd80 pop {r7, pc} + 8004f30: 20010000 .word 0x20010000 + 8004f34: 00000400 .word 0x00000400 + 8004f38: 2000334c .word 0x2000334c + 8004f3c: 200033d0 .word 0x200033d0 -08004cd4 : +08004f40 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { - 8004cd4: b480 push {r7} - 8004cd6: af00 add r7, sp, #0 + 8004f40: b480 push {r7} + 8004f42: af00 add r7, sp, #0 /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */ #endif /* USER_VECT_TAB_ADDRESS */ } - 8004cd8: bf00 nop - 8004cda: 46bd mov sp, r7 - 8004cdc: bc80 pop {r7} - 8004cde: 4770 bx lr + 8004f44: bf00 nop + 8004f46: 46bd mov sp, r7 + 8004f48: bc80 pop {r7} + 8004f4a: 4770 bx lr -08004ce0 : +08004f4c : UART_HandleTypeDef huart2; /* USART2 init function */ void MX_USART2_UART_Init(void) { - 8004ce0: b580 push {r7, lr} - 8004ce2: af00 add r7, sp, #0 + 8004f4c: b580 push {r7, lr} + 8004f4e: af00 add r7, sp, #0 /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_Init 1 */ /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; - 8004ce4: 4b11 ldr r3, [pc, #68] ; (8004d2c ) - 8004ce6: 4a12 ldr r2, [pc, #72] ; (8004d30 ) - 8004ce8: 601a str r2, [r3, #0] + 8004f50: 4b11 ldr r3, [pc, #68] ; (8004f98 ) + 8004f52: 4a12 ldr r2, [pc, #72] ; (8004f9c ) + 8004f54: 601a str r2, [r3, #0] huart2.Init.BaudRate = 115200; - 8004cea: 4b10 ldr r3, [pc, #64] ; (8004d2c ) - 8004cec: f44f 32e1 mov.w r2, #115200 ; 0x1c200 - 8004cf0: 605a str r2, [r3, #4] + 8004f56: 4b10 ldr r3, [pc, #64] ; (8004f98 ) + 8004f58: f44f 32e1 mov.w r2, #115200 ; 0x1c200 + 8004f5c: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; - 8004cf2: 4b0e ldr r3, [pc, #56] ; (8004d2c ) - 8004cf4: 2200 movs r2, #0 - 8004cf6: 609a str r2, [r3, #8] + 8004f5e: 4b0e ldr r3, [pc, #56] ; (8004f98 ) + 8004f60: 2200 movs r2, #0 + 8004f62: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; - 8004cf8: 4b0c ldr r3, [pc, #48] ; (8004d2c ) - 8004cfa: 2200 movs r2, #0 - 8004cfc: 60da str r2, [r3, #12] + 8004f64: 4b0c ldr r3, [pc, #48] ; (8004f98 ) + 8004f66: 2200 movs r2, #0 + 8004f68: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; - 8004cfe: 4b0b ldr r3, [pc, #44] ; (8004d2c ) - 8004d00: 2200 movs r2, #0 - 8004d02: 611a str r2, [r3, #16] + 8004f6a: 4b0b ldr r3, [pc, #44] ; (8004f98 ) + 8004f6c: 2200 movs r2, #0 + 8004f6e: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; - 8004d04: 4b09 ldr r3, [pc, #36] ; (8004d2c ) - 8004d06: 220c movs r2, #12 - 8004d08: 615a str r2, [r3, #20] + 8004f70: 4b09 ldr r3, [pc, #36] ; (8004f98 ) + 8004f72: 220c movs r2, #12 + 8004f74: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8004d0a: 4b08 ldr r3, [pc, #32] ; (8004d2c ) - 8004d0c: 2200 movs r2, #0 - 8004d0e: 619a str r2, [r3, #24] + 8004f76: 4b08 ldr r3, [pc, #32] ; (8004f98 ) + 8004f78: 2200 movs r2, #0 + 8004f7a: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; - 8004d10: 4b06 ldr r3, [pc, #24] ; (8004d2c ) - 8004d12: 2200 movs r2, #0 - 8004d14: 61da str r2, [r3, #28] + 8004f7c: 4b06 ldr r3, [pc, #24] ; (8004f98 ) + 8004f7e: 2200 movs r2, #0 + 8004f80: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart2) != HAL_OK) - 8004d16: 4805 ldr r0, [pc, #20] ; (8004d2c ) - 8004d18: f003 f9af bl 800807a - 8004d1c: 4603 mov r3, r0 - 8004d1e: 2b00 cmp r3, #0 - 8004d20: d001 beq.n 8004d26 + 8004f82: 4805 ldr r0, [pc, #20] ; (8004f98 ) + 8004f84: f003 f9af bl 80082e6 + 8004f88: 4603 mov r3, r0 + 8004f8a: 2b00 cmp r3, #0 + 8004f8c: d001 beq.n 8004f92 { Error_Handler(); - 8004d22: f7ff fcc3 bl 80046ac + 8004f8e: f7ff fcc3 bl 8004918 } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } - 8004d26: bf00 nop - 8004d28: bd80 pop {r7, pc} - 8004d2a: bf00 nop - 8004d2c: 20001cd0 .word 0x20001cd0 - 8004d30: 40004400 .word 0x40004400 + 8004f92: bf00 nop + 8004f94: bd80 pop {r7, pc} + 8004f96: bf00 nop + 8004f98: 20003350 .word 0x20003350 + 8004f9c: 40004400 .word 0x40004400 -08004d34 : +08004fa0 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { - 8004d34: b580 push {r7, lr} - 8004d36: b08a sub sp, #40 ; 0x28 - 8004d38: af00 add r7, sp, #0 - 8004d3a: 6078 str r0, [r7, #4] + 8004fa0: b580 push {r7, lr} + 8004fa2: b08a sub sp, #40 ; 0x28 + 8004fa4: af00 add r7, sp, #0 + 8004fa6: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8004d3c: f107 0314 add.w r3, r7, #20 - 8004d40: 2200 movs r2, #0 - 8004d42: 601a str r2, [r3, #0] - 8004d44: 605a str r2, [r3, #4] - 8004d46: 609a str r2, [r3, #8] - 8004d48: 60da str r2, [r3, #12] + 8004fa8: f107 0314 add.w r3, r7, #20 + 8004fac: 2200 movs r2, #0 + 8004fae: 601a str r2, [r3, #0] + 8004fb0: 605a str r2, [r3, #4] + 8004fb2: 609a str r2, [r3, #8] + 8004fb4: 60da str r2, [r3, #12] if(uartHandle->Instance==USART2) - 8004d4a: 687b ldr r3, [r7, #4] - 8004d4c: 681b ldr r3, [r3, #0] - 8004d4e: 4a26 ldr r2, [pc, #152] ; (8004de8 ) - 8004d50: 4293 cmp r3, r2 - 8004d52: d145 bne.n 8004de0 + 8004fb6: 687b ldr r3, [r7, #4] + 8004fb8: 681b ldr r3, [r3, #0] + 8004fba: 4a26 ldr r2, [pc, #152] ; (8005054 ) + 8004fbc: 4293 cmp r3, r2 + 8004fbe: d145 bne.n 800504c { /* USER CODE BEGIN USART2_MspInit 0 */ /* USER CODE END USART2_MspInit 0 */ /* USART2 clock enable */ __HAL_RCC_USART2_CLK_ENABLE(); - 8004d54: 4b25 ldr r3, [pc, #148] ; (8004dec ) - 8004d56: 69db ldr r3, [r3, #28] - 8004d58: 4a24 ldr r2, [pc, #144] ; (8004dec ) - 8004d5a: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8004d5e: 61d3 str r3, [r2, #28] - 8004d60: 4b22 ldr r3, [pc, #136] ; (8004dec ) - 8004d62: 69db ldr r3, [r3, #28] - 8004d64: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8004d68: 613b str r3, [r7, #16] - 8004d6a: 693b ldr r3, [r7, #16] + 8004fc0: 4b25 ldr r3, [pc, #148] ; (8005058 ) + 8004fc2: 69db ldr r3, [r3, #28] + 8004fc4: 4a24 ldr r2, [pc, #144] ; (8005058 ) + 8004fc6: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8004fca: 61d3 str r3, [r2, #28] + 8004fcc: 4b22 ldr r3, [pc, #136] ; (8005058 ) + 8004fce: 69db ldr r3, [r3, #28] + 8004fd0: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8004fd4: 613b str r3, [r7, #16] + 8004fd6: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOD_CLK_ENABLE(); - 8004d6c: 4b1f ldr r3, [pc, #124] ; (8004dec ) - 8004d6e: 699b ldr r3, [r3, #24] - 8004d70: 4a1e ldr r2, [pc, #120] ; (8004dec ) - 8004d72: f043 0320 orr.w r3, r3, #32 - 8004d76: 6193 str r3, [r2, #24] - 8004d78: 4b1c ldr r3, [pc, #112] ; (8004dec ) - 8004d7a: 699b ldr r3, [r3, #24] - 8004d7c: f003 0320 and.w r3, r3, #32 - 8004d80: 60fb str r3, [r7, #12] - 8004d82: 68fb ldr r3, [r7, #12] + 8004fd8: 4b1f ldr r3, [pc, #124] ; (8005058 ) + 8004fda: 699b ldr r3, [r3, #24] + 8004fdc: 4a1e ldr r2, [pc, #120] ; (8005058 ) + 8004fde: f043 0320 orr.w r3, r3, #32 + 8004fe2: 6193 str r3, [r2, #24] + 8004fe4: 4b1c ldr r3, [pc, #112] ; (8005058 ) + 8004fe6: 699b ldr r3, [r3, #24] + 8004fe8: f003 0320 and.w r3, r3, #32 + 8004fec: 60fb str r3, [r7, #12] + 8004fee: 68fb ldr r3, [r7, #12] /**USART2 GPIO Configuration PD5 ------> USART2_TX PD6 ------> USART2_RX */ GPIO_InitStruct.Pin = GPIO_PIN_5; - 8004d84: 2320 movs r3, #32 - 8004d86: 617b str r3, [r7, #20] + 8004ff0: 2320 movs r3, #32 + 8004ff2: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004d88: 2302 movs r3, #2 - 8004d8a: 61bb str r3, [r7, #24] + 8004ff4: 2302 movs r3, #2 + 8004ff6: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8004d8c: 2303 movs r3, #3 - 8004d8e: 623b str r3, [r7, #32] + 8004ff8: 2303 movs r3, #3 + 8004ffa: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8004d90: f107 0314 add.w r3, r7, #20 - 8004d94: 4619 mov r1, r3 - 8004d96: 4816 ldr r0, [pc, #88] ; (8004df0 ) - 8004d98: f001 feda bl 8006b50 + 8004ffc: f107 0314 add.w r3, r7, #20 + 8005000: 4619 mov r1, r3 + 8005002: 4816 ldr r0, [pc, #88] ; (800505c ) + 8005004: f001 feda bl 8006dbc GPIO_InitStruct.Pin = GPIO_PIN_6; - 8004d9c: 2340 movs r3, #64 ; 0x40 - 8004d9e: 617b str r3, [r7, #20] + 8005008: 2340 movs r3, #64 ; 0x40 + 800500a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8004da0: 2300 movs r3, #0 - 8004da2: 61bb str r3, [r7, #24] + 800500c: 2300 movs r3, #0 + 800500e: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004da4: 2300 movs r3, #0 - 8004da6: 61fb str r3, [r7, #28] + 8005010: 2300 movs r3, #0 + 8005012: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8004da8: f107 0314 add.w r3, r7, #20 - 8004dac: 4619 mov r1, r3 - 8004dae: 4810 ldr r0, [pc, #64] ; (8004df0 ) - 8004db0: f001 fece bl 8006b50 + 8005014: f107 0314 add.w r3, r7, #20 + 8005018: 4619 mov r1, r3 + 800501a: 4810 ldr r0, [pc, #64] ; (800505c ) + 800501c: f001 fece bl 8006dbc __HAL_AFIO_REMAP_USART2_ENABLE(); - 8004db4: 4b0f ldr r3, [pc, #60] ; (8004df4 ) - 8004db6: 685b ldr r3, [r3, #4] - 8004db8: 627b str r3, [r7, #36] ; 0x24 - 8004dba: 6a7b ldr r3, [r7, #36] ; 0x24 - 8004dbc: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000 - 8004dc0: 627b str r3, [r7, #36] ; 0x24 - 8004dc2: 6a7b ldr r3, [r7, #36] ; 0x24 - 8004dc4: f043 0308 orr.w r3, r3, #8 - 8004dc8: 627b str r3, [r7, #36] ; 0x24 - 8004dca: 4a0a ldr r2, [pc, #40] ; (8004df4 ) - 8004dcc: 6a7b ldr r3, [r7, #36] ; 0x24 - 8004dce: 6053 str r3, [r2, #4] + 8005020: 4b0f ldr r3, [pc, #60] ; (8005060 ) + 8005022: 685b ldr r3, [r3, #4] + 8005024: 627b str r3, [r7, #36] ; 0x24 + 8005026: 6a7b ldr r3, [r7, #36] ; 0x24 + 8005028: f043 63e0 orr.w r3, r3, #117440512 ; 0x7000000 + 800502c: 627b str r3, [r7, #36] ; 0x24 + 800502e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8005030: f043 0308 orr.w r3, r3, #8 + 8005034: 627b str r3, [r7, #36] ; 0x24 + 8005036: 4a0a ldr r2, [pc, #40] ; (8005060 ) + 8005038: 6a7b ldr r3, [r7, #36] ; 0x24 + 800503a: 6053 str r3, [r2, #4] /* USART2 interrupt Init */ HAL_NVIC_SetPriority(USART2_IRQn, 0, 0); - 8004dd0: 2200 movs r2, #0 - 8004dd2: 2100 movs r1, #0 - 8004dd4: 2026 movs r0, #38 ; 0x26 - 8004dd6: f001 fd42 bl 800685e + 800503c: 2200 movs r2, #0 + 800503e: 2100 movs r1, #0 + 8005040: 2026 movs r0, #38 ; 0x26 + 8005042: f001 fd42 bl 8006aca HAL_NVIC_EnableIRQ(USART2_IRQn); - 8004dda: 2026 movs r0, #38 ; 0x26 - 8004ddc: f001 fd5b bl 8006896 + 8005046: 2026 movs r0, #38 ; 0x26 + 8005048: f001 fd5b bl 8006b02 /* USER CODE BEGIN USART2_MspInit 1 */ /* USER CODE END USART2_MspInit 1 */ } } - 8004de0: bf00 nop - 8004de2: 3728 adds r7, #40 ; 0x28 - 8004de4: 46bd mov sp, r7 - 8004de6: bd80 pop {r7, pc} - 8004de8: 40004400 .word 0x40004400 - 8004dec: 40021000 .word 0x40021000 - 8004df0: 40011400 .word 0x40011400 - 8004df4: 40010000 .word 0x40010000 + 800504c: bf00 nop + 800504e: 3728 adds r7, #40 ; 0x28 + 8005050: 46bd mov sp, r7 + 8005052: bd80 pop {r7, pc} + 8005054: 40004400 .word 0x40004400 + 8005058: 40021000 .word 0x40021000 + 800505c: 40011400 .word 0x40011400 + 8005060: 40010000 .word 0x40010000 -08004df8 : +08005064 : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Call the clock system initialization function.*/ bl SystemInit - 8004df8: f7ff ff6c bl 8004cd4 + 8005064: f7ff ff6c bl 8004f40 /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 8004dfc: 480b ldr r0, [pc, #44] ; (8004e2c ) + 8005068: 480b ldr r0, [pc, #44] ; (8005098 ) ldr r1, =_edata - 8004dfe: 490c ldr r1, [pc, #48] ; (8004e30 ) + 800506a: 490c ldr r1, [pc, #48] ; (800509c ) ldr r2, =_sidata - 8004e00: 4a0c ldr r2, [pc, #48] ; (8004e34 ) + 800506c: 4a0c ldr r2, [pc, #48] ; (80050a0 ) movs r3, #0 - 8004e02: 2300 movs r3, #0 + 800506e: 2300 movs r3, #0 b LoopCopyDataInit - 8004e04: e002 b.n 8004e0c + 8005070: e002 b.n 8005078 -08004e06 : +08005072 : CopyDataInit: ldr r4, [r2, r3] - 8004e06: 58d4 ldr r4, [r2, r3] + 8005072: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8004e08: 50c4 str r4, [r0, r3] + 8005074: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 8004e0a: 3304 adds r3, #4 + 8005076: 3304 adds r3, #4 -08004e0c : +08005078 : LoopCopyDataInit: adds r4, r0, r3 - 8004e0c: 18c4 adds r4, r0, r3 + 8005078: 18c4 adds r4, r0, r3 cmp r4, r1 - 8004e0e: 428c cmp r4, r1 + 800507a: 428c cmp r4, r1 bcc CopyDataInit - 8004e10: d3f9 bcc.n 8004e06 + 800507c: d3f9 bcc.n 8005072 /* Zero fill the bss segment. */ ldr r2, =_sbss - 8004e12: 4a09 ldr r2, [pc, #36] ; (8004e38 ) + 800507e: 4a09 ldr r2, [pc, #36] ; (80050a4 ) ldr r4, =_ebss - 8004e14: 4c09 ldr r4, [pc, #36] ; (8004e3c ) + 8005080: 4c09 ldr r4, [pc, #36] ; (80050a8 ) movs r3, #0 - 8004e16: 2300 movs r3, #0 + 8005082: 2300 movs r3, #0 b LoopFillZerobss - 8004e18: e001 b.n 8004e1e + 8005084: e001 b.n 800508a -08004e1a : +08005086 : FillZerobss: str r3, [r2] - 8004e1a: 6013 str r3, [r2, #0] + 8005086: 6013 str r3, [r2, #0] adds r2, r2, #4 - 8004e1c: 3204 adds r2, #4 + 8005088: 3204 adds r2, #4 -08004e1e : +0800508a : LoopFillZerobss: cmp r2, r4 - 8004e1e: 42a2 cmp r2, r4 + 800508a: 42a2 cmp r2, r4 bcc FillZerobss - 8004e20: d3fb bcc.n 8004e1a + 800508c: d3fb bcc.n 8005086 /* Call static constructors */ bl __libc_init_array - 8004e22: f003 ff51 bl 8008cc8 <__libc_init_array> + 800508e: f003 ff51 bl 8008f34 <__libc_init_array> /* Call the application's entry point.*/ bl main - 8004e26: f7ff fb8f bl 8004548
+ 8005092: f7ff fb8f bl 80047b4
bx lr - 8004e2a: 4770 bx lr + 8005096: 4770 bx lr ldr r0, =_sdata - 8004e2c: 20000000 .word 0x20000000 + 8005098: 20000000 .word 0x20000000 ldr r1, =_edata - 8004e30: 20000244 .word 0x20000244 + 800509c: 20000244 .word 0x20000244 ldr r2, =_sidata - 8004e34: 0800d544 .word 0x0800d544 + 80050a0: 0800d7d4 .word 0x0800d7d4 ldr r2, =_sbss - 8004e38: 20000244 .word 0x20000244 + 80050a4: 20000244 .word 0x20000244 ldr r4, =_ebss - 8004e3c: 20001d50 .word 0x20001d50 + 80050a8: 200033d0 .word 0x200033d0 -08004e40 : +080050ac : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8004e40: e7fe b.n 8004e40 + 80050ac: e7fe b.n 80050ac ... -08004e44 : +080050b0 : * 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) { - 8004e44: b580 push {r7, lr} - 8004e46: af00 add r7, sp, #0 + 80050b0: b580 push {r7, lr} + 80050b2: af00 add r7, sp, #0 defined(STM32F102x6) || defined(STM32F102xB) || \ defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || \ defined(STM32F105xC) || defined(STM32F107xC) /* Prefetch buffer is not available on value line devices */ __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8004e48: 4b08 ldr r3, [pc, #32] ; (8004e6c ) - 8004e4a: 681b ldr r3, [r3, #0] - 8004e4c: 4a07 ldr r2, [pc, #28] ; (8004e6c ) - 8004e4e: f043 0310 orr.w r3, r3, #16 - 8004e52: 6013 str r3, [r2, #0] + 80050b4: 4b08 ldr r3, [pc, #32] ; (80050d8 ) + 80050b6: 681b ldr r3, [r3, #0] + 80050b8: 4a07 ldr r2, [pc, #28] ; (80050d8 ) + 80050ba: f043 0310 orr.w r3, r3, #16 + 80050be: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8004e54: 2003 movs r0, #3 - 8004e56: f001 fcf7 bl 8006848 + 80050c0: 2003 movs r0, #3 + 80050c2: f001 fcf7 bl 8006ab4 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8004e5a: 200f movs r0, #15 - 8004e5c: f000 f808 bl 8004e70 + 80050c6: 200f movs r0, #15 + 80050c8: f000 f808 bl 80050dc /* Init the low level hardware */ HAL_MspInit(); - 8004e60: f7ff fe12 bl 8004a88 + 80050cc: f7ff fe12 bl 8004cf4 /* Return function status */ return HAL_OK; - 8004e64: 2300 movs r3, #0 + 80050d0: 2300 movs r3, #0 } - 8004e66: 4618 mov r0, r3 - 8004e68: bd80 pop {r7, pc} - 8004e6a: bf00 nop - 8004e6c: 40022000 .word 0x40022000 + 80050d2: 4618 mov r0, r3 + 80050d4: bd80 pop {r7, pc} + 80050d6: bf00 nop + 80050d8: 40022000 .word 0x40022000 -08004e70 : +080050dc : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8004e70: b580 push {r7, lr} - 8004e72: b082 sub sp, #8 - 8004e74: af00 add r7, sp, #0 - 8004e76: 6078 str r0, [r7, #4] + 80050dc: b580 push {r7, lr} + 80050de: b082 sub sp, #8 + 80050e0: af00 add r7, sp, #0 + 80050e2: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8004e78: 4b12 ldr r3, [pc, #72] ; (8004ec4 ) - 8004e7a: 681a ldr r2, [r3, #0] - 8004e7c: 4b12 ldr r3, [pc, #72] ; (8004ec8 ) - 8004e7e: 781b ldrb r3, [r3, #0] - 8004e80: 4619 mov r1, r3 - 8004e82: f44f 737a mov.w r3, #1000 ; 0x3e8 - 8004e86: fbb3 f3f1 udiv r3, r3, r1 - 8004e8a: fbb2 f3f3 udiv r3, r2, r3 - 8004e8e: 4618 mov r0, r3 - 8004e90: f001 fd0f bl 80068b2 - 8004e94: 4603 mov r3, r0 - 8004e96: 2b00 cmp r3, #0 - 8004e98: d001 beq.n 8004e9e + 80050e4: 4b12 ldr r3, [pc, #72] ; (8005130 ) + 80050e6: 681a ldr r2, [r3, #0] + 80050e8: 4b12 ldr r3, [pc, #72] ; (8005134 ) + 80050ea: 781b ldrb r3, [r3, #0] + 80050ec: 4619 mov r1, r3 + 80050ee: f44f 737a mov.w r3, #1000 ; 0x3e8 + 80050f2: fbb3 f3f1 udiv r3, r3, r1 + 80050f6: fbb2 f3f3 udiv r3, r2, r3 + 80050fa: 4618 mov r0, r3 + 80050fc: f001 fd0f bl 8006b1e + 8005100: 4603 mov r3, r0 + 8005102: 2b00 cmp r3, #0 + 8005104: d001 beq.n 800510a { return HAL_ERROR; - 8004e9a: 2301 movs r3, #1 - 8004e9c: e00e b.n 8004ebc + 8005106: 2301 movs r3, #1 + 8005108: e00e b.n 8005128 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8004e9e: 687b ldr r3, [r7, #4] - 8004ea0: 2b0f cmp r3, #15 - 8004ea2: d80a bhi.n 8004eba + 800510a: 687b ldr r3, [r7, #4] + 800510c: 2b0f cmp r3, #15 + 800510e: d80a bhi.n 8005126 { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8004ea4: 2200 movs r2, #0 - 8004ea6: 6879 ldr r1, [r7, #4] - 8004ea8: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8004eac: f001 fcd7 bl 800685e + 8005110: 2200 movs r2, #0 + 8005112: 6879 ldr r1, [r7, #4] + 8005114: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8005118: f001 fcd7 bl 8006aca uwTickPrio = TickPriority; - 8004eb0: 4a06 ldr r2, [pc, #24] ; (8004ecc ) - 8004eb2: 687b ldr r3, [r7, #4] - 8004eb4: 6013 str r3, [r2, #0] + 800511c: 4a06 ldr r2, [pc, #24] ; (8005138 ) + 800511e: 687b ldr r3, [r7, #4] + 8005120: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8004eb6: 2300 movs r3, #0 - 8004eb8: e000 b.n 8004ebc + 8005122: 2300 movs r3, #0 + 8005124: e000 b.n 8005128 return HAL_ERROR; - 8004eba: 2301 movs r3, #1 + 8005126: 2301 movs r3, #1 } - 8004ebc: 4618 mov r0, r3 - 8004ebe: 3708 adds r7, #8 - 8004ec0: 46bd mov sp, r7 - 8004ec2: bd80 pop {r7, pc} - 8004ec4: 20000008 .word 0x20000008 - 8004ec8: 20000010 .word 0x20000010 - 8004ecc: 2000000c .word 0x2000000c + 8005128: 4618 mov r0, r3 + 800512a: 3708 adds r7, #8 + 800512c: 46bd mov sp, r7 + 800512e: bd80 pop {r7, pc} + 8005130: 20000008 .word 0x20000008 + 8005134: 20000010 .word 0x20000010 + 8005138: 2000000c .word 0x2000000c -08004ed0 : +0800513c : * @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) { - 8004ed0: b480 push {r7} - 8004ed2: af00 add r7, sp, #0 + 800513c: b480 push {r7} + 800513e: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8004ed4: 4b05 ldr r3, [pc, #20] ; (8004eec ) - 8004ed6: 781b ldrb r3, [r3, #0] - 8004ed8: 461a mov r2, r3 - 8004eda: 4b05 ldr r3, [pc, #20] ; (8004ef0 ) - 8004edc: 681b ldr r3, [r3, #0] - 8004ede: 4413 add r3, r2 - 8004ee0: 4a03 ldr r2, [pc, #12] ; (8004ef0 ) - 8004ee2: 6013 str r3, [r2, #0] + 8005140: 4b05 ldr r3, [pc, #20] ; (8005158 ) + 8005142: 781b ldrb r3, [r3, #0] + 8005144: 461a mov r2, r3 + 8005146: 4b05 ldr r3, [pc, #20] ; (800515c ) + 8005148: 681b ldr r3, [r3, #0] + 800514a: 4413 add r3, r2 + 800514c: 4a03 ldr r2, [pc, #12] ; (800515c ) + 800514e: 6013 str r3, [r2, #0] } - 8004ee4: bf00 nop - 8004ee6: 46bd mov sp, r7 - 8004ee8: bc80 pop {r7} - 8004eea: 4770 bx lr - 8004eec: 20000010 .word 0x20000010 - 8004ef0: 20001d14 .word 0x20001d14 + 8005150: bf00 nop + 8005152: 46bd mov sp, r7 + 8005154: bc80 pop {r7} + 8005156: 4770 bx lr + 8005158: 20000010 .word 0x20000010 + 800515c: 20003394 .word 0x20003394 -08004ef4 : +08005160 : * @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) { - 8004ef4: b480 push {r7} - 8004ef6: af00 add r7, sp, #0 + 8005160: b480 push {r7} + 8005162: af00 add r7, sp, #0 return uwTick; - 8004ef8: 4b02 ldr r3, [pc, #8] ; (8004f04 ) - 8004efa: 681b ldr r3, [r3, #0] + 8005164: 4b02 ldr r3, [pc, #8] ; (8005170 ) + 8005166: 681b ldr r3, [r3, #0] } - 8004efc: 4618 mov r0, r3 - 8004efe: 46bd mov sp, r7 - 8004f00: bc80 pop {r7} - 8004f02: 4770 bx lr - 8004f04: 20001d14 .word 0x20001d14 + 8005168: 4618 mov r0, r3 + 800516a: 46bd mov sp, r7 + 800516c: bc80 pop {r7} + 800516e: 4770 bx lr + 8005170: 20003394 .word 0x20003394 -08004f08 : +08005174 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8004f08: b580 push {r7, lr} - 8004f0a: b084 sub sp, #16 - 8004f0c: af00 add r7, sp, #0 - 8004f0e: 6078 str r0, [r7, #4] + 8005174: b580 push {r7, lr} + 8005176: b084 sub sp, #16 + 8005178: af00 add r7, sp, #0 + 800517a: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8004f10: f7ff fff0 bl 8004ef4 - 8004f14: 60b8 str r0, [r7, #8] + 800517c: f7ff fff0 bl 8005160 + 8005180: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8004f16: 687b ldr r3, [r7, #4] - 8004f18: 60fb str r3, [r7, #12] + 8005182: 687b ldr r3, [r7, #4] + 8005184: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8004f1a: 68fb ldr r3, [r7, #12] - 8004f1c: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8004f20: d005 beq.n 8004f2e + 8005186: 68fb ldr r3, [r7, #12] + 8005188: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 800518c: d005 beq.n 800519a { wait += (uint32_t)(uwTickFreq); - 8004f22: 4b0a ldr r3, [pc, #40] ; (8004f4c ) - 8004f24: 781b ldrb r3, [r3, #0] - 8004f26: 461a mov r2, r3 - 8004f28: 68fb ldr r3, [r7, #12] - 8004f2a: 4413 add r3, r2 - 8004f2c: 60fb str r3, [r7, #12] + 800518e: 4b0a ldr r3, [pc, #40] ; (80051b8 ) + 8005190: 781b ldrb r3, [r3, #0] + 8005192: 461a mov r2, r3 + 8005194: 68fb ldr r3, [r7, #12] + 8005196: 4413 add r3, r2 + 8005198: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) - 8004f2e: bf00 nop - 8004f30: f7ff ffe0 bl 8004ef4 - 8004f34: 4602 mov r2, r0 - 8004f36: 68bb ldr r3, [r7, #8] - 8004f38: 1ad3 subs r3, r2, r3 - 8004f3a: 68fa ldr r2, [r7, #12] - 8004f3c: 429a cmp r2, r3 - 8004f3e: d8f7 bhi.n 8004f30 + 800519a: bf00 nop + 800519c: f7ff ffe0 bl 8005160 + 80051a0: 4602 mov r2, r0 + 80051a2: 68bb ldr r3, [r7, #8] + 80051a4: 1ad3 subs r3, r2, r3 + 80051a6: 68fa ldr r2, [r7, #12] + 80051a8: 429a cmp r2, r3 + 80051aa: d8f7 bhi.n 800519c { } } - 8004f40: bf00 nop - 8004f42: bf00 nop - 8004f44: 3710 adds r7, #16 - 8004f46: 46bd mov sp, r7 - 8004f48: bd80 pop {r7, pc} - 8004f4a: bf00 nop - 8004f4c: 20000010 .word 0x20000010 + 80051ac: bf00 nop + 80051ae: bf00 nop + 80051b0: 3710 adds r7, #16 + 80051b2: 46bd mov sp, r7 + 80051b4: bd80 pop {r7, pc} + 80051b6: bf00 nop + 80051b8: 20000010 .word 0x20000010 -08004f50 : +080051bc : * of structure "ADC_InitTypeDef". * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { - 8004f50: b580 push {r7, lr} - 8004f52: b086 sub sp, #24 - 8004f54: af00 add r7, sp, #0 - 8004f56: 6078 str r0, [r7, #4] + 80051bc: b580 push {r7, lr} + 80051be: b086 sub sp, #24 + 80051c0: af00 add r7, sp, #0 + 80051c2: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8004f58: 2300 movs r3, #0 - 8004f5a: 75fb strb r3, [r7, #23] + 80051c4: 2300 movs r3, #0 + 80051c6: 75fb strb r3, [r7, #23] uint32_t tmp_cr1 = 0U; - 8004f5c: 2300 movs r3, #0 - 8004f5e: 613b str r3, [r7, #16] + 80051c8: 2300 movs r3, #0 + 80051ca: 613b str r3, [r7, #16] uint32_t tmp_cr2 = 0U; - 8004f60: 2300 movs r3, #0 - 8004f62: 60bb str r3, [r7, #8] + 80051cc: 2300 movs r3, #0 + 80051ce: 60bb str r3, [r7, #8] uint32_t tmp_sqr1 = 0U; - 8004f64: 2300 movs r3, #0 - 8004f66: 60fb str r3, [r7, #12] + 80051d0: 2300 movs r3, #0 + 80051d2: 60fb str r3, [r7, #12] /* Check ADC handle */ if(hadc == NULL) - 8004f68: 687b ldr r3, [r7, #4] - 8004f6a: 2b00 cmp r3, #0 - 8004f6c: d101 bne.n 8004f72 + 80051d4: 687b ldr r3, [r7, #4] + 80051d6: 2b00 cmp r3, #0 + 80051d8: d101 bne.n 80051de { return HAL_ERROR; - 8004f6e: 2301 movs r3, #1 - 8004f70: e0be b.n 80050f0 + 80051da: 2301 movs r3, #1 + 80051dc: e0be b.n 800535c assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv)); if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE) - 8004f72: 687b ldr r3, [r7, #4] - 8004f74: 689b ldr r3, [r3, #8] - 8004f76: 2b00 cmp r3, #0 + 80051de: 687b ldr r3, [r7, #4] + 80051e0: 689b ldr r3, [r3, #8] + 80051e2: 2b00 cmp r3, #0 /* Refer to header of this file for more details on clock enabling */ /* procedure. */ /* Actions performed only if ADC is coming from state reset: */ /* - Initialization of ADC MSP */ if (hadc->State == HAL_ADC_STATE_RESET) - 8004f78: 687b ldr r3, [r7, #4] - 8004f7a: 6a9b ldr r3, [r3, #40] ; 0x28 - 8004f7c: 2b00 cmp r3, #0 - 8004f7e: d109 bne.n 8004f94 + 80051e4: 687b ldr r3, [r7, #4] + 80051e6: 6a9b ldr r3, [r3, #40] ; 0x28 + 80051e8: 2b00 cmp r3, #0 + 80051ea: d109 bne.n 8005200 { /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); - 8004f80: 687b ldr r3, [r7, #4] - 8004f82: 2200 movs r2, #0 - 8004f84: 62da str r2, [r3, #44] ; 0x2c + 80051ec: 687b ldr r3, [r7, #4] + 80051ee: 2200 movs r2, #0 + 80051f0: 62da str r2, [r3, #44] ; 0x2c /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; - 8004f86: 687b ldr r3, [r7, #4] - 8004f88: 2200 movs r2, #0 - 8004f8a: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 80051f2: 687b ldr r3, [r7, #4] + 80051f4: 2200 movs r2, #0 + 80051f6: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); - 8004f8e: 6878 ldr r0, [r7, #4] - 8004f90: f7fc fad6 bl 8001540 + 80051fa: 6878 ldr r0, [r7, #4] + 80051fc: f7fc fa16 bl 800162c /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ /* Note: In case of ADC already enabled, precaution to not launch an */ /* unwanted conversion while modifying register CR2 by writing 1 to */ /* bit ADON. */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); - 8004f94: 6878 ldr r0, [r7, #4] - 8004f96: f000 fbf1 bl 800577c - 8004f9a: 4603 mov r3, r0 - 8004f9c: 75fb strb r3, [r7, #23] + 8005200: 6878 ldr r0, [r7, #4] + 8005202: f000 fbf1 bl 80059e8 + 8005206: 4603 mov r3, r0 + 8005208: 75fb strb r3, [r7, #23] /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) && - 8004f9e: 687b ldr r3, [r7, #4] - 8004fa0: 6a9b ldr r3, [r3, #40] ; 0x28 - 8004fa2: f003 0310 and.w r3, r3, #16 - 8004fa6: 2b00 cmp r3, #0 - 8004fa8: f040 8099 bne.w 80050de - 8004fac: 7dfb ldrb r3, [r7, #23] - 8004fae: 2b00 cmp r3, #0 - 8004fb0: f040 8095 bne.w 80050de + 800520a: 687b ldr r3, [r7, #4] + 800520c: 6a9b ldr r3, [r3, #40] ; 0x28 + 800520e: f003 0310 and.w r3, r3, #16 + 8005212: 2b00 cmp r3, #0 + 8005214: f040 8099 bne.w 800534a + 8005218: 7dfb ldrb r3, [r7, #23] + 800521a: 2b00 cmp r3, #0 + 800521c: f040 8095 bne.w 800534a (tmp_hal_status == HAL_OK) ) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8004fb4: 687b ldr r3, [r7, #4] - 8004fb6: 6a9b ldr r3, [r3, #40] ; 0x28 - 8004fb8: f423 5388 bic.w r3, r3, #4352 ; 0x1100 - 8004fbc: f023 0302 bic.w r3, r3, #2 - 8004fc0: f043 0202 orr.w r2, r3, #2 - 8004fc4: 687b ldr r3, [r7, #4] - 8004fc6: 629a str r2, [r3, #40] ; 0x28 + 8005220: 687b ldr r3, [r7, #4] + 8005222: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005224: f423 5388 bic.w r3, r3, #4352 ; 0x1100 + 8005228: f023 0302 bic.w r3, r3, #2 + 800522c: f043 0202 orr.w r2, r3, #2 + 8005230: 687b ldr r3, [r7, #4] + 8005232: 629a str r2, [r3, #40] ; 0x28 /* - continuous conversion mode */ /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */ /* HAL_ADC_Start_xxx functions because if set in this function, */ /* a conversion on injected group would start a conversion also on */ /* regular group after ADC enabling. */ tmp_cr2 |= (hadc->Init.DataAlign | - 8004fc8: 687b ldr r3, [r7, #4] - 8004fca: 685a ldr r2, [r3, #4] + 8005234: 687b ldr r3, [r7, #4] + 8005236: 685a ldr r2, [r3, #4] ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | - 8004fcc: 687b ldr r3, [r7, #4] - 8004fce: 69db ldr r3, [r3, #28] + 8005238: 687b ldr r3, [r7, #4] + 800523a: 69db ldr r3, [r3, #28] tmp_cr2 |= (hadc->Init.DataAlign | - 8004fd0: 431a orrs r2, r3 + 800523c: 431a orrs r2, r3 ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) ); - 8004fd2: 687b ldr r3, [r7, #4] - 8004fd4: 7b1b ldrb r3, [r3, #12] - 8004fd6: 005b lsls r3, r3, #1 + 800523e: 687b ldr r3, [r7, #4] + 8005240: 7b1b ldrb r3, [r3, #12] + 8005242: 005b lsls r3, r3, #1 ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | - 8004fd8: 4313 orrs r3, r2 + 8005244: 4313 orrs r3, r2 tmp_cr2 |= (hadc->Init.DataAlign | - 8004fda: 68ba ldr r2, [r7, #8] - 8004fdc: 4313 orrs r3, r2 - 8004fde: 60bb str r3, [r7, #8] + 8005246: 68ba ldr r2, [r7, #8] + 8005248: 4313 orrs r3, r2 + 800524a: 60bb str r3, [r7, #8] /* Configuration of ADC: */ /* - scan mode */ /* - discontinuous mode disable/enable */ /* - discontinuous mode number of conversions */ tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode)); - 8004fe0: 687b ldr r3, [r7, #4] - 8004fe2: 689b ldr r3, [r3, #8] - 8004fe4: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8004fe8: d003 beq.n 8004ff2 - 8004fea: 687b ldr r3, [r7, #4] - 8004fec: 689b ldr r3, [r3, #8] - 8004fee: 2b01 cmp r3, #1 - 8004ff0: d102 bne.n 8004ff8 - 8004ff2: f44f 7380 mov.w r3, #256 ; 0x100 - 8004ff6: e000 b.n 8004ffa - 8004ff8: 2300 movs r3, #0 - 8004ffa: 693a ldr r2, [r7, #16] - 8004ffc: 4313 orrs r3, r2 - 8004ffe: 613b str r3, [r7, #16] + 800524c: 687b ldr r3, [r7, #4] + 800524e: 689b ldr r3, [r3, #8] + 8005250: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8005254: d003 beq.n 800525e + 8005256: 687b ldr r3, [r7, #4] + 8005258: 689b ldr r3, [r3, #8] + 800525a: 2b01 cmp r3, #1 + 800525c: d102 bne.n 8005264 + 800525e: f44f 7380 mov.w r3, #256 ; 0x100 + 8005262: e000 b.n 8005266 + 8005264: 2300 movs r3, #0 + 8005266: 693a ldr r2, [r7, #16] + 8005268: 4313 orrs r3, r2 + 800526a: 613b str r3, [r7, #16] /* Enable discontinuous mode only if continuous mode is disabled */ /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */ /* discontinuous is set anyway, but will have no effect on ADC HW. */ if (hadc->Init.DiscontinuousConvMode == ENABLE) - 8005000: 687b ldr r3, [r7, #4] - 8005002: 7d1b ldrb r3, [r3, #20] - 8005004: 2b01 cmp r3, #1 - 8005006: d119 bne.n 800503c + 800526c: 687b ldr r3, [r7, #4] + 800526e: 7d1b ldrb r3, [r3, #20] + 8005270: 2b01 cmp r3, #1 + 8005272: d119 bne.n 80052a8 { if (hadc->Init.ContinuousConvMode == DISABLE) - 8005008: 687b ldr r3, [r7, #4] - 800500a: 7b1b ldrb r3, [r3, #12] - 800500c: 2b00 cmp r3, #0 - 800500e: d109 bne.n 8005024 + 8005274: 687b ldr r3, [r7, #4] + 8005276: 7b1b ldrb r3, [r3, #12] + 8005278: 2b00 cmp r3, #0 + 800527a: d109 bne.n 8005290 { /* Enable the selected ADC regular discontinuous mode */ /* Set the number of channels to be converted in discontinuous mode */ SET_BIT(tmp_cr1, ADC_CR1_DISCEN | - 8005010: 687b ldr r3, [r7, #4] - 8005012: 699b ldr r3, [r3, #24] - 8005014: 3b01 subs r3, #1 - 8005016: 035a lsls r2, r3, #13 - 8005018: 693b ldr r3, [r7, #16] - 800501a: 4313 orrs r3, r2 - 800501c: f443 6300 orr.w r3, r3, #2048 ; 0x800 - 8005020: 613b str r3, [r7, #16] - 8005022: e00b b.n 800503c + 800527c: 687b ldr r3, [r7, #4] + 800527e: 699b ldr r3, [r3, #24] + 8005280: 3b01 subs r3, #1 + 8005282: 035a lsls r2, r3, #13 + 8005284: 693b ldr r3, [r7, #16] + 8005286: 4313 orrs r3, r2 + 8005288: f443 6300 orr.w r3, r3, #2048 ; 0x800 + 800528c: 613b str r3, [r7, #16] + 800528e: e00b b.n 80052a8 { /* ADC regular group settings continuous and sequencer discontinuous*/ /* cannot be enabled simultaneously. */ /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8005024: 687b ldr r3, [r7, #4] - 8005026: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005028: f043 0220 orr.w r2, r3, #32 - 800502c: 687b ldr r3, [r7, #4] - 800502e: 629a str r2, [r3, #40] ; 0x28 + 8005290: 687b ldr r3, [r7, #4] + 8005292: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005294: f043 0220 orr.w r2, r3, #32 + 8005298: 687b ldr r3, [r7, #4] + 800529a: 629a str r2, [r3, #40] ; 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 8005030: 687b ldr r3, [r7, #4] - 8005032: 6adb ldr r3, [r3, #44] ; 0x2c - 8005034: f043 0201 orr.w r2, r3, #1 - 8005038: 687b ldr r3, [r7, #4] - 800503a: 62da str r2, [r3, #44] ; 0x2c + 800529c: 687b ldr r3, [r7, #4] + 800529e: 6adb ldr r3, [r3, #44] ; 0x2c + 80052a0: f043 0201 orr.w r2, r3, #1 + 80052a4: 687b ldr r3, [r7, #4] + 80052a6: 62da str r2, [r3, #44] ; 0x2c } } /* Update ADC configuration register CR1 with previous settings */ MODIFY_REG(hadc->Instance->CR1, - 800503c: 687b ldr r3, [r7, #4] - 800503e: 681b ldr r3, [r3, #0] - 8005040: 685b ldr r3, [r3, #4] - 8005042: f423 4169 bic.w r1, r3, #59648 ; 0xe900 - 8005046: 687b ldr r3, [r7, #4] - 8005048: 681b ldr r3, [r3, #0] - 800504a: 693a ldr r2, [r7, #16] - 800504c: 430a orrs r2, r1 - 800504e: 605a str r2, [r3, #4] + 80052a8: 687b ldr r3, [r7, #4] + 80052aa: 681b ldr r3, [r3, #0] + 80052ac: 685b ldr r3, [r3, #4] + 80052ae: f423 4169 bic.w r1, r3, #59648 ; 0xe900 + 80052b2: 687b ldr r3, [r7, #4] + 80052b4: 681b ldr r3, [r3, #0] + 80052b6: 693a ldr r2, [r7, #16] + 80052b8: 430a orrs r2, r1 + 80052ba: 605a str r2, [r3, #4] ADC_CR1_DISCEN | ADC_CR1_DISCNUM , tmp_cr1 ); /* Update ADC configuration register CR2 with previous settings */ MODIFY_REG(hadc->Instance->CR2, - 8005050: 687b ldr r3, [r7, #4] - 8005052: 681b ldr r3, [r3, #0] - 8005054: 689a ldr r2, [r3, #8] - 8005056: 4b28 ldr r3, [pc, #160] ; (80050f8 ) - 8005058: 4013 ands r3, r2 - 800505a: 687a ldr r2, [r7, #4] - 800505c: 6812 ldr r2, [r2, #0] - 800505e: 68b9 ldr r1, [r7, #8] - 8005060: 430b orrs r3, r1 - 8005062: 6093 str r3, [r2, #8] + 80052bc: 687b ldr r3, [r7, #4] + 80052be: 681b ldr r3, [r3, #0] + 80052c0: 689a ldr r2, [r3, #8] + 80052c2: 4b28 ldr r3, [pc, #160] ; (8005364 ) + 80052c4: 4013 ands r3, r2 + 80052c6: 687a ldr r2, [r7, #4] + 80052c8: 6812 ldr r2, [r2, #0] + 80052ca: 68b9 ldr r1, [r7, #8] + 80052cc: 430b orrs r3, r1 + 80052ce: 6093 str r3, [r2, #8] /* Note: Scan mode is present by hardware on this device and, if */ /* disabled, discards automatically nb of conversions. Anyway, nb of */ /* conversions is forced to 0x00 for alignment over all STM32 devices. */ /* - if scan mode is enabled, regular channels sequence length is set to */ /* parameter "NbrOfConversion" */ if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE) - 8005064: 687b ldr r3, [r7, #4] - 8005066: 689b ldr r3, [r3, #8] - 8005068: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800506c: d003 beq.n 8005076 - 800506e: 687b ldr r3, [r7, #4] - 8005070: 689b ldr r3, [r3, #8] - 8005072: 2b01 cmp r3, #1 - 8005074: d104 bne.n 8005080 + 80052d0: 687b ldr r3, [r7, #4] + 80052d2: 689b ldr r3, [r3, #8] + 80052d4: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 80052d8: d003 beq.n 80052e2 + 80052da: 687b ldr r3, [r7, #4] + 80052dc: 689b ldr r3, [r3, #8] + 80052de: 2b01 cmp r3, #1 + 80052e0: d104 bne.n 80052ec { tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion); - 8005076: 687b ldr r3, [r7, #4] - 8005078: 691b ldr r3, [r3, #16] - 800507a: 3b01 subs r3, #1 - 800507c: 051b lsls r3, r3, #20 - 800507e: 60fb str r3, [r7, #12] + 80052e2: 687b ldr r3, [r7, #4] + 80052e4: 691b ldr r3, [r3, #16] + 80052e6: 3b01 subs r3, #1 + 80052e8: 051b lsls r3, r3, #20 + 80052ea: 60fb str r3, [r7, #12] } MODIFY_REG(hadc->Instance->SQR1, - 8005080: 687b ldr r3, [r7, #4] - 8005082: 681b ldr r3, [r3, #0] - 8005084: 6adb ldr r3, [r3, #44] ; 0x2c - 8005086: f423 0170 bic.w r1, r3, #15728640 ; 0xf00000 - 800508a: 687b ldr r3, [r7, #4] - 800508c: 681b ldr r3, [r3, #0] - 800508e: 68fa ldr r2, [r7, #12] - 8005090: 430a orrs r2, r1 - 8005092: 62da str r2, [r3, #44] ; 0x2c + 80052ec: 687b ldr r3, [r7, #4] + 80052ee: 681b ldr r3, [r3, #0] + 80052f0: 6adb ldr r3, [r3, #44] ; 0x2c + 80052f2: f423 0170 bic.w r1, r3, #15728640 ; 0xf00000 + 80052f6: 687b ldr r3, [r7, #4] + 80052f8: 681b ldr r3, [r3, #0] + 80052fa: 68fa ldr r2, [r7, #12] + 80052fc: 430a orrs r2, r1 + 80052fe: 62da str r2, [r3, #44] ; 0x2c /* ensure of no potential problem of ADC core IP clocking. */ /* Check through register CR2 (excluding bits set in other functions: */ /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */ /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */ /* measurement path bit (TSVREFE). */ if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | - 8005094: 687b ldr r3, [r7, #4] - 8005096: 681b ldr r3, [r3, #0] - 8005098: 689a ldr r2, [r3, #8] - 800509a: 4b18 ldr r3, [pc, #96] ; (80050fc ) - 800509c: 4013 ands r3, r2 - 800509e: 68ba ldr r2, [r7, #8] - 80050a0: 429a cmp r2, r3 - 80050a2: d10b bne.n 80050bc + 8005300: 687b ldr r3, [r7, #4] + 8005302: 681b ldr r3, [r3, #0] + 8005304: 689a ldr r2, [r3, #8] + 8005306: 4b18 ldr r3, [pc, #96] ; (8005368 ) + 8005308: 4013 ands r3, r2 + 800530a: 68ba ldr r2, [r7, #8] + 800530c: 429a cmp r2, r3 + 800530e: d10b bne.n 8005328 ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL | ADC_CR2_TSVREFE )) == tmp_cr2) { /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); - 80050a4: 687b ldr r3, [r7, #4] - 80050a6: 2200 movs r2, #0 - 80050a8: 62da str r2, [r3, #44] ; 0x2c + 8005310: 687b ldr r3, [r7, #4] + 8005312: 2200 movs r2, #0 + 8005314: 62da str r2, [r3, #44] ; 0x2c /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, - 80050aa: 687b ldr r3, [r7, #4] - 80050ac: 6a9b ldr r3, [r3, #40] ; 0x28 - 80050ae: f023 0303 bic.w r3, r3, #3 - 80050b2: f043 0201 orr.w r2, r3, #1 - 80050b6: 687b ldr r3, [r7, #4] - 80050b8: 629a str r2, [r3, #40] ; 0x28 + 8005316: 687b ldr r3, [r7, #4] + 8005318: 6a9b ldr r3, [r3, #40] ; 0x28 + 800531a: f023 0303 bic.w r3, r3, #3 + 800531e: f043 0201 orr.w r2, r3, #1 + 8005322: 687b ldr r3, [r7, #4] + 8005324: 629a str r2, [r3, #40] ; 0x28 if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | - 80050ba: e018 b.n 80050ee + 8005326: e018 b.n 800535a HAL_ADC_STATE_READY); } else { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, - 80050bc: 687b ldr r3, [r7, #4] - 80050be: 6a9b ldr r3, [r3, #40] ; 0x28 - 80050c0: f023 0312 bic.w r3, r3, #18 - 80050c4: f043 0210 orr.w r2, r3, #16 - 80050c8: 687b ldr r3, [r7, #4] - 80050ca: 629a str r2, [r3, #40] ; 0x28 + 8005328: 687b ldr r3, [r7, #4] + 800532a: 6a9b ldr r3, [r3, #40] ; 0x28 + 800532c: f023 0312 bic.w r3, r3, #18 + 8005330: f043 0210 orr.w r2, r3, #16 + 8005334: 687b ldr r3, [r7, #4] + 8005336: 629a str r2, [r3, #40] ; 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80050cc: 687b ldr r3, [r7, #4] - 80050ce: 6adb ldr r3, [r3, #44] ; 0x2c - 80050d0: f043 0201 orr.w r2, r3, #1 - 80050d4: 687b ldr r3, [r7, #4] - 80050d6: 62da str r2, [r3, #44] ; 0x2c + 8005338: 687b ldr r3, [r7, #4] + 800533a: 6adb ldr r3, [r3, #44] ; 0x2c + 800533c: f043 0201 orr.w r2, r3, #1 + 8005340: 687b ldr r3, [r7, #4] + 8005342: 62da str r2, [r3, #44] ; 0x2c tmp_hal_status = HAL_ERROR; - 80050d8: 2301 movs r3, #1 - 80050da: 75fb strb r3, [r7, #23] + 8005344: 2301 movs r3, #1 + 8005346: 75fb strb r3, [r7, #23] if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | - 80050dc: e007 b.n 80050ee + 8005348: e007 b.n 800535a } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80050de: 687b ldr r3, [r7, #4] - 80050e0: 6a9b ldr r3, [r3, #40] ; 0x28 - 80050e2: f043 0210 orr.w r2, r3, #16 - 80050e6: 687b ldr r3, [r7, #4] - 80050e8: 629a str r2, [r3, #40] ; 0x28 + 800534a: 687b ldr r3, [r7, #4] + 800534c: 6a9b ldr r3, [r3, #40] ; 0x28 + 800534e: f043 0210 orr.w r2, r3, #16 + 8005352: 687b ldr r3, [r7, #4] + 8005354: 629a str r2, [r3, #40] ; 0x28 tmp_hal_status = HAL_ERROR; - 80050ea: 2301 movs r3, #1 - 80050ec: 75fb strb r3, [r7, #23] + 8005356: 2301 movs r3, #1 + 8005358: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; - 80050ee: 7dfb ldrb r3, [r7, #23] + 800535a: 7dfb ldrb r3, [r7, #23] } - 80050f0: 4618 mov r0, r3 - 80050f2: 3718 adds r7, #24 - 80050f4: 46bd mov sp, r7 - 80050f6: bd80 pop {r7, pc} - 80050f8: ffe1f7fd .word 0xffe1f7fd - 80050fc: ff1f0efe .word 0xff1f0efe + 800535c: 4618 mov r0, r3 + 800535e: 3718 adds r7, #24 + 8005360: 46bd mov sp, r7 + 8005362: bd80 pop {r7, pc} + 8005364: ffe1f7fd .word 0xffe1f7fd + 8005368: ff1f0efe .word 0xff1f0efe -08005100 : +0800536c : * Interruptions enabled in this function: None. * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc) { - 8005100: b580 push {r7, lr} - 8005102: b084 sub sp, #16 - 8005104: af00 add r7, sp, #0 - 8005106: 6078 str r0, [r7, #4] + 800536c: b580 push {r7, lr} + 800536e: b084 sub sp, #16 + 8005370: af00 add r7, sp, #0 + 8005372: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8005108: 2300 movs r3, #0 - 800510a: 73fb strb r3, [r7, #15] + 8005374: 2300 movs r3, #0 + 8005376: 73fb strb r3, [r7, #15] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); - 800510c: 687b ldr r3, [r7, #4] - 800510e: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8005112: 2b01 cmp r3, #1 - 8005114: d101 bne.n 800511a - 8005116: 2302 movs r3, #2 - 8005118: e098 b.n 800524c - 800511a: 687b ldr r3, [r7, #4] - 800511c: 2201 movs r2, #1 - 800511e: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005378: 687b ldr r3, [r7, #4] + 800537a: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 800537e: 2b01 cmp r3, #1 + 8005380: d101 bne.n 8005386 + 8005382: 2302 movs r3, #2 + 8005384: e098 b.n 80054b8 + 8005386: 687b ldr r3, [r7, #4] + 8005388: 2201 movs r2, #1 + 800538a: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Enable the ADC peripheral */ tmp_hal_status = ADC_Enable(hadc); - 8005122: 6878 ldr r0, [r7, #4] - 8005124: f000 fad0 bl 80056c8 - 8005128: 4603 mov r3, r0 - 800512a: 73fb strb r3, [r7, #15] + 800538e: 6878 ldr r0, [r7, #4] + 8005390: f000 fad0 bl 8005934 + 8005394: 4603 mov r3, r0 + 8005396: 73fb strb r3, [r7, #15] /* Start conversion if ADC is effectively enabled */ if (tmp_hal_status == HAL_OK) - 800512c: 7bfb ldrb r3, [r7, #15] - 800512e: 2b00 cmp r3, #0 - 8005130: f040 8087 bne.w 8005242 + 8005398: 7bfb ldrb r3, [r7, #15] + 800539a: 2b00 cmp r3, #0 + 800539c: f040 8087 bne.w 80054ae { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular operation */ ADC_STATE_CLR_SET(hadc->State, - 8005134: 687b ldr r3, [r7, #4] - 8005136: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005138: f423 7340 bic.w r3, r3, #768 ; 0x300 - 800513c: f023 0301 bic.w r3, r3, #1 - 8005140: f443 7280 orr.w r2, r3, #256 ; 0x100 - 8005144: 687b ldr r3, [r7, #4] - 8005146: 629a str r2, [r3, #40] ; 0x28 + 80053a0: 687b ldr r3, [r7, #4] + 80053a2: 6a9b ldr r3, [r3, #40] ; 0x28 + 80053a4: f423 7340 bic.w r3, r3, #768 ; 0x300 + 80053a8: f023 0301 bic.w r3, r3, #1 + 80053ac: f443 7280 orr.w r2, r3, #256 ; 0x100 + 80053b0: 687b ldr r3, [r7, #4] + 80053b2: 629a str r2, [r3, #40] ; 0x28 HAL_ADC_STATE_REG_BUSY); /* Set group injected state (from auto-injection) and multimode state */ /* for all cases of multimode: independent mode, multimode ADC master */ /* or multimode ADC slave (for devices with several ADCs): */ if (ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc)) - 8005148: 687b ldr r3, [r7, #4] - 800514a: 681b ldr r3, [r3, #0] - 800514c: 4a41 ldr r2, [pc, #260] ; (8005254 ) - 800514e: 4293 cmp r3, r2 - 8005150: d105 bne.n 800515e - 8005152: 4b41 ldr r3, [pc, #260] ; (8005258 ) - 8005154: 685b ldr r3, [r3, #4] - 8005156: f403 2370 and.w r3, r3, #983040 ; 0xf0000 - 800515a: 2b00 cmp r3, #0 - 800515c: d115 bne.n 800518a + 80053b4: 687b ldr r3, [r7, #4] + 80053b6: 681b ldr r3, [r3, #0] + 80053b8: 4a41 ldr r2, [pc, #260] ; (80054c0 ) + 80053ba: 4293 cmp r3, r2 + 80053bc: d105 bne.n 80053ca + 80053be: 4b41 ldr r3, [pc, #260] ; (80054c4 ) + 80053c0: 685b ldr r3, [r3, #4] + 80053c2: f403 2370 and.w r3, r3, #983040 ; 0xf0000 + 80053c6: 2b00 cmp r3, #0 + 80053c8: d115 bne.n 80053f6 { /* Set ADC state (ADC independent or master) */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); - 800515e: 687b ldr r3, [r7, #4] - 8005160: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005162: f423 1280 bic.w r2, r3, #1048576 ; 0x100000 - 8005166: 687b ldr r3, [r7, #4] - 8005168: 629a str r2, [r3, #40] ; 0x28 + 80053ca: 687b ldr r3, [r7, #4] + 80053cc: 6a9b ldr r3, [r3, #40] ; 0x28 + 80053ce: f423 1280 bic.w r2, r3, #1048576 ; 0x100000 + 80053d2: 687b ldr r3, [r7, #4] + 80053d4: 629a str r2, [r3, #40] ; 0x28 /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) - 800516a: 687b ldr r3, [r7, #4] - 800516c: 681b ldr r3, [r3, #0] - 800516e: 685b ldr r3, [r3, #4] - 8005170: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8005174: 2b00 cmp r3, #0 - 8005176: d026 beq.n 80051c6 + 80053d6: 687b ldr r3, [r7, #4] + 80053d8: 681b ldr r3, [r3, #0] + 80053da: 685b ldr r3, [r3, #4] + 80053dc: f403 6380 and.w r3, r3, #1024 ; 0x400 + 80053e0: 2b00 cmp r3, #0 + 80053e2: d026 beq.n 8005432 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); - 8005178: 687b ldr r3, [r7, #4] - 800517a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800517c: f423 5340 bic.w r3, r3, #12288 ; 0x3000 - 8005180: f443 5280 orr.w r2, r3, #4096 ; 0x1000 - 8005184: 687b ldr r3, [r7, #4] - 8005186: 629a str r2, [r3, #40] ; 0x28 + 80053e4: 687b ldr r3, [r7, #4] + 80053e6: 6a9b ldr r3, [r3, #40] ; 0x28 + 80053e8: f423 5340 bic.w r3, r3, #12288 ; 0x3000 + 80053ec: f443 5280 orr.w r2, r3, #4096 ; 0x1000 + 80053f0: 687b ldr r3, [r7, #4] + 80053f2: 629a str r2, [r3, #40] ; 0x28 if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) - 8005188: e01d b.n 80051c6 + 80053f4: e01d b.n 8005432 } } else { /* Set ADC state (ADC slave) */ SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); - 800518a: 687b ldr r3, [r7, #4] - 800518c: 6a9b ldr r3, [r3, #40] ; 0x28 - 800518e: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 - 8005192: 687b ldr r3, [r7, #4] - 8005194: 629a str r2, [r3, #40] ; 0x28 + 80053f6: 687b ldr r3, [r7, #4] + 80053f8: 6a9b ldr r3, [r3, #40] ; 0x28 + 80053fa: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 + 80053fe: 687b ldr r3, [r7, #4] + 8005400: 629a str r2, [r3, #40] ; 0x28 /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (ADC_MULTIMODE_AUTO_INJECTED(hadc)) - 8005196: 687b ldr r3, [r7, #4] - 8005198: 681b ldr r3, [r3, #0] - 800519a: 4a2f ldr r2, [pc, #188] ; (8005258 ) - 800519c: 4293 cmp r3, r2 - 800519e: d004 beq.n 80051aa - 80051a0: 687b ldr r3, [r7, #4] - 80051a2: 681b ldr r3, [r3, #0] - 80051a4: 4a2b ldr r2, [pc, #172] ; (8005254 ) - 80051a6: 4293 cmp r3, r2 - 80051a8: d10d bne.n 80051c6 - 80051aa: 4b2b ldr r3, [pc, #172] ; (8005258 ) - 80051ac: 685b ldr r3, [r3, #4] - 80051ae: f403 6380 and.w r3, r3, #1024 ; 0x400 - 80051b2: 2b00 cmp r3, #0 - 80051b4: d007 beq.n 80051c6 + 8005402: 687b ldr r3, [r7, #4] + 8005404: 681b ldr r3, [r3, #0] + 8005406: 4a2f ldr r2, [pc, #188] ; (80054c4 ) + 8005408: 4293 cmp r3, r2 + 800540a: d004 beq.n 8005416 + 800540c: 687b ldr r3, [r7, #4] + 800540e: 681b ldr r3, [r3, #0] + 8005410: 4a2b ldr r2, [pc, #172] ; (80054c0 ) + 8005412: 4293 cmp r3, r2 + 8005414: d10d bne.n 8005432 + 8005416: 4b2b ldr r3, [pc, #172] ; (80054c4 ) + 8005418: 685b ldr r3, [r3, #4] + 800541a: f403 6380 and.w r3, r3, #1024 ; 0x400 + 800541e: 2b00 cmp r3, #0 + 8005420: d007 beq.n 8005432 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); - 80051b6: 687b ldr r3, [r7, #4] - 80051b8: 6a9b ldr r3, [r3, #40] ; 0x28 - 80051ba: f423 5340 bic.w r3, r3, #12288 ; 0x3000 - 80051be: f443 5280 orr.w r2, r3, #4096 ; 0x1000 - 80051c2: 687b ldr r3, [r7, #4] - 80051c4: 629a str r2, [r3, #40] ; 0x28 + 8005422: 687b ldr r3, [r7, #4] + 8005424: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005426: f423 5340 bic.w r3, r3, #12288 ; 0x3000 + 800542a: f443 5280 orr.w r2, r3, #4096 ; 0x1000 + 800542e: 687b ldr r3, [r7, #4] + 8005430: 629a str r2, [r3, #40] ; 0x28 } } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) - 80051c6: 687b ldr r3, [r7, #4] - 80051c8: 6a9b ldr r3, [r3, #40] ; 0x28 - 80051ca: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 80051ce: 2b00 cmp r3, #0 - 80051d0: d006 beq.n 80051e0 + 8005432: 687b ldr r3, [r7, #4] + 8005434: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005436: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 800543a: 2b00 cmp r3, #0 + 800543c: d006 beq.n 800544c { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); - 80051d2: 687b ldr r3, [r7, #4] - 80051d4: 6adb ldr r3, [r3, #44] ; 0x2c - 80051d6: f023 0206 bic.w r2, r3, #6 - 80051da: 687b ldr r3, [r7, #4] - 80051dc: 62da str r2, [r3, #44] ; 0x2c - 80051de: e002 b.n 80051e6 + 800543e: 687b ldr r3, [r7, #4] + 8005440: 6adb ldr r3, [r3, #44] ; 0x2c + 8005442: f023 0206 bic.w r2, r3, #6 + 8005446: 687b ldr r3, [r7, #4] + 8005448: 62da str r2, [r3, #44] ; 0x2c + 800544a: e002 b.n 8005452 } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); - 80051e0: 687b ldr r3, [r7, #4] - 80051e2: 2200 movs r2, #0 - 80051e4: 62da str r2, [r3, #44] ; 0x2c + 800544c: 687b ldr r3, [r7, #4] + 800544e: 2200 movs r2, #0 + 8005450: 62da str r2, [r3, #44] ; 0x2c } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); - 80051e6: 687b ldr r3, [r7, #4] - 80051e8: 2200 movs r2, #0 - 80051ea: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005452: 687b ldr r3, [r7, #4] + 8005454: 2200 movs r2, #0 + 8005456: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Clear regular group conversion flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC); - 80051ee: 687b ldr r3, [r7, #4] - 80051f0: 681b ldr r3, [r3, #0] - 80051f2: f06f 0202 mvn.w r2, #2 - 80051f6: 601a str r2, [r3, #0] + 800545a: 687b ldr r3, [r7, #4] + 800545c: 681b ldr r3, [r3, #0] + 800545e: f06f 0202 mvn.w r2, #2 + 8005462: 601a str r2, [r3, #0] /* - if ADC is slave, ADC is enabled only (conversion is not started). */ /* - if ADC is master, ADC is enabled and conversion is started. */ /* If ADC is master, ADC is enabled and conversion is started. */ /* Note: Alternate trigger for single conversion could be to force an */ /* additional set of bit ADON "hadc->Instance->CR2 |= ADC_CR2_ADON;"*/ if (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 80051f8: 687b ldr r3, [r7, #4] - 80051fa: 681b ldr r3, [r3, #0] - 80051fc: 689b ldr r3, [r3, #8] - 80051fe: f403 2360 and.w r3, r3, #917504 ; 0xe0000 - 8005202: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000 - 8005206: d113 bne.n 8005230 + 8005464: 687b ldr r3, [r7, #4] + 8005466: 681b ldr r3, [r3, #0] + 8005468: 689b ldr r3, [r3, #8] + 800546a: f403 2360 and.w r3, r3, #917504 ; 0xe0000 + 800546e: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000 + 8005472: d113 bne.n 800549c ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc) ) - 8005208: 687b ldr r3, [r7, #4] - 800520a: 681b ldr r3, [r3, #0] + 8005474: 687b ldr r3, [r7, #4] + 8005476: 681b ldr r3, [r3, #0] if (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 800520c: 4a11 ldr r2, [pc, #68] ; (8005254 ) - 800520e: 4293 cmp r3, r2 - 8005210: d105 bne.n 800521e + 8005478: 4a11 ldr r2, [pc, #68] ; (80054c0 ) + 800547a: 4293 cmp r3, r2 + 800547c: d105 bne.n 800548a ADC_NONMULTIMODE_OR_MULTIMODEMASTER(hadc) ) - 8005212: 4b11 ldr r3, [pc, #68] ; (8005258 ) - 8005214: 685b ldr r3, [r3, #4] - 8005216: f403 2370 and.w r3, r3, #983040 ; 0xf0000 + 800547e: 4b11 ldr r3, [pc, #68] ; (80054c4 ) + 8005480: 685b ldr r3, [r3, #4] + 8005482: f403 2370 and.w r3, r3, #983040 ; 0xf0000 if (ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 800521a: 2b00 cmp r3, #0 - 800521c: d108 bne.n 8005230 + 8005486: 2b00 cmp r3, #0 + 8005488: d108 bne.n 800549c { /* Start ADC conversion on regular group with SW start */ SET_BIT(hadc->Instance->CR2, (ADC_CR2_SWSTART | ADC_CR2_EXTTRIG)); - 800521e: 687b ldr r3, [r7, #4] - 8005220: 681b ldr r3, [r3, #0] - 8005222: 689a ldr r2, [r3, #8] - 8005224: 687b ldr r3, [r7, #4] - 8005226: 681b ldr r3, [r3, #0] - 8005228: f442 02a0 orr.w r2, r2, #5242880 ; 0x500000 - 800522c: 609a str r2, [r3, #8] - 800522e: e00c b.n 800524a + 800548a: 687b ldr r3, [r7, #4] + 800548c: 681b ldr r3, [r3, #0] + 800548e: 689a ldr r2, [r3, #8] + 8005490: 687b ldr r3, [r7, #4] + 8005492: 681b ldr r3, [r3, #0] + 8005494: f442 02a0 orr.w r2, r2, #5242880 ; 0x500000 + 8005498: 609a str r2, [r3, #8] + 800549a: e00c b.n 80054b6 } else { /* Start ADC conversion on regular group with external trigger */ SET_BIT(hadc->Instance->CR2, ADC_CR2_EXTTRIG); - 8005230: 687b ldr r3, [r7, #4] - 8005232: 681b ldr r3, [r3, #0] - 8005234: 689a ldr r2, [r3, #8] - 8005236: 687b ldr r3, [r7, #4] - 8005238: 681b ldr r3, [r3, #0] - 800523a: f442 1280 orr.w r2, r2, #1048576 ; 0x100000 - 800523e: 609a str r2, [r3, #8] - 8005240: e003 b.n 800524a + 800549c: 687b ldr r3, [r7, #4] + 800549e: 681b ldr r3, [r3, #0] + 80054a0: 689a ldr r2, [r3, #8] + 80054a2: 687b ldr r3, [r7, #4] + 80054a4: 681b ldr r3, [r3, #0] + 80054a6: f442 1280 orr.w r2, r2, #1048576 ; 0x100000 + 80054aa: 609a str r2, [r3, #8] + 80054ac: e003 b.n 80054b6 } } else { /* Process unlocked */ __HAL_UNLOCK(hadc); - 8005242: 687b ldr r3, [r7, #4] - 8005244: 2200 movs r2, #0 - 8005246: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 80054ae: 687b ldr r3, [r7, #4] + 80054b0: 2200 movs r2, #0 + 80054b2: f883 2024 strb.w r2, [r3, #36] ; 0x24 } /* Return function status */ return tmp_hal_status; - 800524a: 7bfb ldrb r3, [r7, #15] + 80054b6: 7bfb ldrb r3, [r7, #15] } - 800524c: 4618 mov r0, r3 - 800524e: 3710 adds r7, #16 - 8005250: 46bd mov sp, r7 - 8005252: bd80 pop {r7, pc} - 8005254: 40012800 .word 0x40012800 - 8005258: 40012400 .word 0x40012400 + 80054b8: 4618 mov r0, r3 + 80054ba: 3710 adds r7, #16 + 80054bc: 46bd mov sp, r7 + 80054be: bd80 pop {r7, pc} + 80054c0: 40012800 .word 0x40012800 + 80054c4: 40012400 .word 0x40012400 -0800525c : +080054c8 : * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc) { - 800525c: b580 push {r7, lr} - 800525e: b084 sub sp, #16 - 8005260: af00 add r7, sp, #0 - 8005262: 6078 str r0, [r7, #4] + 80054c8: b580 push {r7, lr} + 80054ca: b084 sub sp, #16 + 80054cc: af00 add r7, sp, #0 + 80054ce: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8005264: 2300 movs r3, #0 - 8005266: 73fb strb r3, [r7, #15] + 80054d0: 2300 movs r3, #0 + 80054d2: 73fb strb r3, [r7, #15] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); - 8005268: 687b ldr r3, [r7, #4] - 800526a: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 800526e: 2b01 cmp r3, #1 - 8005270: d101 bne.n 8005276 - 8005272: 2302 movs r3, #2 - 8005274: e01a b.n 80052ac - 8005276: 687b ldr r3, [r7, #4] - 8005278: 2201 movs r2, #1 - 800527a: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 80054d4: 687b ldr r3, [r7, #4] + 80054d6: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 80054da: 2b01 cmp r3, #1 + 80054dc: d101 bne.n 80054e2 + 80054de: 2302 movs r3, #2 + 80054e0: e01a b.n 8005518 + 80054e2: 687b ldr r3, [r7, #4] + 80054e4: 2201 movs r2, #1 + 80054e6: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); - 800527e: 6878 ldr r0, [r7, #4] - 8005280: f000 fa7c bl 800577c - 8005284: 4603 mov r3, r0 - 8005286: 73fb strb r3, [r7, #15] + 80054ea: 6878 ldr r0, [r7, #4] + 80054ec: f000 fa7c bl 80059e8 + 80054f0: 4603 mov r3, r0 + 80054f2: 73fb strb r3, [r7, #15] /* Check if ADC is effectively disabled */ if (tmp_hal_status == HAL_OK) - 8005288: 7bfb ldrb r3, [r7, #15] - 800528a: 2b00 cmp r3, #0 - 800528c: d109 bne.n 80052a2 + 80054f4: 7bfb ldrb r3, [r7, #15] + 80054f6: 2b00 cmp r3, #0 + 80054f8: d109 bne.n 800550e { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 800528e: 687b ldr r3, [r7, #4] - 8005290: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005292: f423 5388 bic.w r3, r3, #4352 ; 0x1100 - 8005296: f023 0301 bic.w r3, r3, #1 - 800529a: f043 0201 orr.w r2, r3, #1 - 800529e: 687b ldr r3, [r7, #4] - 80052a0: 629a str r2, [r3, #40] ; 0x28 + 80054fa: 687b ldr r3, [r7, #4] + 80054fc: 6a9b ldr r3, [r3, #40] ; 0x28 + 80054fe: f423 5388 bic.w r3, r3, #4352 ; 0x1100 + 8005502: f023 0301 bic.w r3, r3, #1 + 8005506: f043 0201 orr.w r2, r3, #1 + 800550a: 687b ldr r3, [r7, #4] + 800550c: 629a str r2, [r3, #40] ; 0x28 HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); - 80052a2: 687b ldr r3, [r7, #4] - 80052a4: 2200 movs r2, #0 - 80052a6: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 800550e: 687b ldr r3, [r7, #4] + 8005510: 2200 movs r2, #0 + 8005512: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Return function status */ return tmp_hal_status; - 80052aa: 7bfb ldrb r3, [r7, #15] + 8005516: 7bfb ldrb r3, [r7, #15] } - 80052ac: 4618 mov r0, r3 - 80052ae: 3710 adds r7, #16 - 80052b0: 46bd mov sp, r7 - 80052b2: bd80 pop {r7, pc} + 8005518: 4618 mov r0, r3 + 800551a: 3710 adds r7, #16 + 800551c: 46bd mov sp, r7 + 800551e: bd80 pop {r7, pc} -080052b4 : +08005520 : * @param hadc: ADC handle * @param Timeout: Timeout value in millisecond. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout) { - 80052b4: b590 push {r4, r7, lr} - 80052b6: b087 sub sp, #28 - 80052b8: af00 add r7, sp, #0 - 80052ba: 6078 str r0, [r7, #4] - 80052bc: 6039 str r1, [r7, #0] + 8005520: b590 push {r4, r7, lr} + 8005522: b087 sub sp, #28 + 8005524: af00 add r7, sp, #0 + 8005526: 6078 str r0, [r7, #4] + 8005528: 6039 str r1, [r7, #0] uint32_t tickstart = 0U; - 80052be: 2300 movs r3, #0 - 80052c0: 617b str r3, [r7, #20] + 800552a: 2300 movs r3, #0 + 800552c: 617b str r3, [r7, #20] /* Variables for polling in case of scan mode enabled and polling for each */ /* conversion. */ __IO uint32_t Conversion_Timeout_CPU_cycles = 0U; - 80052c2: 2300 movs r3, #0 - 80052c4: 60fb str r3, [r7, #12] + 800552e: 2300 movs r3, #0 + 8005530: 60fb str r3, [r7, #12] uint32_t Conversion_Timeout_CPU_cycles_max = 0U; - 80052c6: 2300 movs r3, #0 - 80052c8: 613b str r3, [r7, #16] + 8005532: 2300 movs r3, #0 + 8005534: 613b str r3, [r7, #16] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Get tick count */ tickstart = HAL_GetTick(); - 80052ca: f7ff fe13 bl 8004ef4 - 80052ce: 6178 str r0, [r7, #20] + 8005536: f7ff fe13 bl 8005160 + 800553a: 6178 str r0, [r7, #20] /* Verification that ADC configuration is compliant with polling for */ /* each conversion: */ /* Particular case is ADC configured in DMA mode */ if (HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_DMA)) - 80052d0: 687b ldr r3, [r7, #4] - 80052d2: 681b ldr r3, [r3, #0] - 80052d4: 689b ldr r3, [r3, #8] - 80052d6: f403 7380 and.w r3, r3, #256 ; 0x100 - 80052da: 2b00 cmp r3, #0 - 80052dc: d00b beq.n 80052f6 + 800553c: 687b ldr r3, [r7, #4] + 800553e: 681b ldr r3, [r3, #0] + 8005540: 689b ldr r3, [r3, #8] + 8005542: f403 7380 and.w r3, r3, #256 ; 0x100 + 8005546: 2b00 cmp r3, #0 + 8005548: d00b beq.n 8005562 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 80052de: 687b ldr r3, [r7, #4] - 80052e0: 6a9b ldr r3, [r3, #40] ; 0x28 - 80052e2: f043 0220 orr.w r2, r3, #32 - 80052e6: 687b ldr r3, [r7, #4] - 80052e8: 629a str r2, [r3, #40] ; 0x28 + 800554a: 687b ldr r3, [r7, #4] + 800554c: 6a9b ldr r3, [r3, #40] ; 0x28 + 800554e: f043 0220 orr.w r2, r3, #32 + 8005552: 687b ldr r3, [r7, #4] + 8005554: 629a str r2, [r3, #40] ; 0x28 /* Process unlocked */ __HAL_UNLOCK(hadc); - 80052ea: 687b ldr r3, [r7, #4] - 80052ec: 2200 movs r2, #0 - 80052ee: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005556: 687b ldr r3, [r7, #4] + 8005558: 2200 movs r2, #0 + 800555a: f883 2024 strb.w r2, [r3, #36] ; 0x24 return HAL_ERROR; - 80052f2: 2301 movs r3, #1 - 80052f4: e0d3 b.n 800549e + 800555e: 2301 movs r3, #1 + 8005560: e0d3 b.n 800570a /* from ADC conversion time (selected sampling time + conversion time of */ /* 12.5 ADC clock cycles) and APB2/ADC clock prescalers (depending on */ /* settings, conversion time range can be from 28 to 32256 CPU cycles). */ /* As flag EOC is not set after each conversion, no timeout status can */ /* be set. */ if (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_SCAN) && - 80052f6: 687b ldr r3, [r7, #4] - 80052f8: 681b ldr r3, [r3, #0] - 80052fa: 685b ldr r3, [r3, #4] - 80052fc: f403 7380 and.w r3, r3, #256 ; 0x100 - 8005300: 2b00 cmp r3, #0 - 8005302: d131 bne.n 8005368 + 8005562: 687b ldr r3, [r7, #4] + 8005564: 681b ldr r3, [r3, #0] + 8005566: 685b ldr r3, [r3, #4] + 8005568: f403 7380 and.w r3, r3, #256 ; 0x100 + 800556c: 2b00 cmp r3, #0 + 800556e: d131 bne.n 80055d4 HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ) - 8005304: 687b ldr r3, [r7, #4] - 8005306: 681b ldr r3, [r3, #0] - 8005308: 6adb ldr r3, [r3, #44] ; 0x2c - 800530a: f403 0370 and.w r3, r3, #15728640 ; 0xf00000 + 8005570: 687b ldr r3, [r7, #4] + 8005572: 681b ldr r3, [r3, #0] + 8005574: 6adb ldr r3, [r3, #44] ; 0x2c + 8005576: f403 0370 and.w r3, r3, #15728640 ; 0xf00000 if (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_SCAN) && - 800530e: 2b00 cmp r3, #0 - 8005310: d12a bne.n 8005368 + 800557a: 2b00 cmp r3, #0 + 800557c: d12a bne.n 80055d4 { /* Wait until End of Conversion flag is raised */ while(HAL_IS_BIT_CLR(hadc->Instance->SR, ADC_FLAG_EOC)) - 8005312: e021 b.n 8005358 + 800557e: e021 b.n 80055c4 { /* Check if timeout is disabled (set to infinite wait) */ if(Timeout != HAL_MAX_DELAY) - 8005314: 683b ldr r3, [r7, #0] - 8005316: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 800531a: d01d beq.n 8005358 + 8005580: 683b ldr r3, [r7, #0] + 8005582: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8005586: d01d beq.n 80055c4 { if((Timeout == 0U) || ((HAL_GetTick() - tickstart ) > Timeout)) - 800531c: 683b ldr r3, [r7, #0] - 800531e: 2b00 cmp r3, #0 - 8005320: d007 beq.n 8005332 - 8005322: f7ff fde7 bl 8004ef4 - 8005326: 4602 mov r2, r0 - 8005328: 697b ldr r3, [r7, #20] - 800532a: 1ad3 subs r3, r2, r3 - 800532c: 683a ldr r2, [r7, #0] - 800532e: 429a cmp r2, r3 - 8005330: d212 bcs.n 8005358 + 8005588: 683b ldr r3, [r7, #0] + 800558a: 2b00 cmp r3, #0 + 800558c: d007 beq.n 800559e + 800558e: f7ff fde7 bl 8005160 + 8005592: 4602 mov r2, r0 + 8005594: 697b ldr r3, [r7, #20] + 8005596: 1ad3 subs r3, r2, r3 + 8005598: 683a ldr r2, [r7, #0] + 800559a: 429a cmp r2, r3 + 800559c: d212 bcs.n 80055c4 { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_CLR(hadc->Instance->SR, ADC_FLAG_EOC)) - 8005332: 687b ldr r3, [r7, #4] - 8005334: 681b ldr r3, [r3, #0] - 8005336: 681b ldr r3, [r3, #0] - 8005338: f003 0302 and.w r3, r3, #2 - 800533c: 2b00 cmp r3, #0 - 800533e: d10b bne.n 8005358 + 800559e: 687b ldr r3, [r7, #4] + 80055a0: 681b ldr r3, [r3, #0] + 80055a2: 681b ldr r3, [r3, #0] + 80055a4: f003 0302 and.w r3, r3, #2 + 80055a8: 2b00 cmp r3, #0 + 80055aa: d10b bne.n 80055c4 { /* Update ADC state machine to timeout */ SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); - 8005340: 687b ldr r3, [r7, #4] - 8005342: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005344: f043 0204 orr.w r2, r3, #4 - 8005348: 687b ldr r3, [r7, #4] - 800534a: 629a str r2, [r3, #40] ; 0x28 + 80055ac: 687b ldr r3, [r7, #4] + 80055ae: 6a9b ldr r3, [r3, #40] ; 0x28 + 80055b0: f043 0204 orr.w r2, r3, #4 + 80055b4: 687b ldr r3, [r7, #4] + 80055b6: 629a str r2, [r3, #40] ; 0x28 /* Process unlocked */ __HAL_UNLOCK(hadc); - 800534c: 687b ldr r3, [r7, #4] - 800534e: 2200 movs r2, #0 - 8005350: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 80055b8: 687b ldr r3, [r7, #4] + 80055ba: 2200 movs r2, #0 + 80055bc: f883 2024 strb.w r2, [r3, #36] ; 0x24 return HAL_TIMEOUT; - 8005354: 2303 movs r3, #3 - 8005356: e0a2 b.n 800549e + 80055c0: 2303 movs r3, #3 + 80055c2: e0a2 b.n 800570a while(HAL_IS_BIT_CLR(hadc->Instance->SR, ADC_FLAG_EOC)) - 8005358: 687b ldr r3, [r7, #4] - 800535a: 681b ldr r3, [r3, #0] - 800535c: 681b ldr r3, [r3, #0] - 800535e: f003 0302 and.w r3, r3, #2 - 8005362: 2b00 cmp r3, #0 - 8005364: d0d6 beq.n 8005314 + 80055c4: 687b ldr r3, [r7, #4] + 80055c6: 681b ldr r3, [r3, #0] + 80055c8: 681b ldr r3, [r3, #0] + 80055ca: f003 0302 and.w r3, r3, #2 + 80055ce: 2b00 cmp r3, #0 + 80055d0: d0d6 beq.n 8005580 if (HAL_IS_BIT_CLR(hadc->Instance->CR1, ADC_CR1_SCAN) && - 8005366: e070 b.n 800544a + 80055d2: e070 b.n 80056b6 /* Replace polling by wait for maximum conversion time */ /* - Computation of CPU clock cycles corresponding to ADC clock cycles */ /* and ADC maximum conversion cycles on all channels. */ /* - Wait for the expected ADC clock cycles delay */ Conversion_Timeout_CPU_cycles_max = ((SystemCoreClock / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC)) - 8005368: 4b4f ldr r3, [pc, #316] ; (80054a8 ) - 800536a: 681c ldr r4, [r3, #0] - 800536c: 2002 movs r0, #2 - 800536e: f002 fc0f bl 8007b90 - 8005372: 4603 mov r3, r0 - 8005374: fbb4 f2f3 udiv r2, r4, r3 + 80055d4: 4b4f ldr r3, [pc, #316] ; (8005714 ) + 80055d6: 681c ldr r4, [r3, #0] + 80055d8: 2002 movs r0, #2 + 80055da: f002 fc0f bl 8007dfc + 80055de: 4603 mov r3, r0 + 80055e0: fbb4 f2f3 udiv r2, r4, r3 * ADC_CONVCYCLES_MAX_RANGE(hadc) ); - 8005378: 687b ldr r3, [r7, #4] - 800537a: 681b ldr r3, [r3, #0] - 800537c: 6919 ldr r1, [r3, #16] - 800537e: 4b4b ldr r3, [pc, #300] ; (80054ac ) - 8005380: 400b ands r3, r1 - 8005382: 2b00 cmp r3, #0 - 8005384: d118 bne.n 80053b8 - 8005386: 687b ldr r3, [r7, #4] - 8005388: 681b ldr r3, [r3, #0] - 800538a: 68d9 ldr r1, [r3, #12] - 800538c: 4b48 ldr r3, [pc, #288] ; (80054b0 ) - 800538e: 400b ands r3, r1 - 8005390: 2b00 cmp r3, #0 - 8005392: d111 bne.n 80053b8 - 8005394: 687b ldr r3, [r7, #4] - 8005396: 681b ldr r3, [r3, #0] - 8005398: 6919 ldr r1, [r3, #16] - 800539a: 4b46 ldr r3, [pc, #280] ; (80054b4 ) - 800539c: 400b ands r3, r1 - 800539e: 2b00 cmp r3, #0 - 80053a0: d108 bne.n 80053b4 - 80053a2: 687b ldr r3, [r7, #4] - 80053a4: 681b ldr r3, [r3, #0] - 80053a6: 68d9 ldr r1, [r3, #12] - 80053a8: 4b43 ldr r3, [pc, #268] ; (80054b8 ) - 80053aa: 400b ands r3, r1 - 80053ac: 2b00 cmp r3, #0 - 80053ae: d101 bne.n 80053b4 - 80053b0: 2314 movs r3, #20 - 80053b2: e020 b.n 80053f6 - 80053b4: 2329 movs r3, #41 ; 0x29 - 80053b6: e01e b.n 80053f6 - 80053b8: 687b ldr r3, [r7, #4] - 80053ba: 681b ldr r3, [r3, #0] - 80053bc: 6919 ldr r1, [r3, #16] - 80053be: 4b3d ldr r3, [pc, #244] ; (80054b4 ) - 80053c0: 400b ands r3, r1 - 80053c2: 2b00 cmp r3, #0 - 80053c4: d106 bne.n 80053d4 - 80053c6: 687b ldr r3, [r7, #4] - 80053c8: 681b ldr r3, [r3, #0] - 80053ca: 68d9 ldr r1, [r3, #12] - 80053cc: 4b3a ldr r3, [pc, #232] ; (80054b8 ) - 80053ce: 400b ands r3, r1 - 80053d0: 2b00 cmp r3, #0 - 80053d2: d00d beq.n 80053f0 - 80053d4: 687b ldr r3, [r7, #4] - 80053d6: 681b ldr r3, [r3, #0] - 80053d8: 6919 ldr r1, [r3, #16] - 80053da: 4b38 ldr r3, [pc, #224] ; (80054bc ) - 80053dc: 400b ands r3, r1 - 80053de: 2b00 cmp r3, #0 - 80053e0: d108 bne.n 80053f4 - 80053e2: 687b ldr r3, [r7, #4] - 80053e4: 681b ldr r3, [r3, #0] - 80053e6: 68d9 ldr r1, [r3, #12] - 80053e8: 4b34 ldr r3, [pc, #208] ; (80054bc ) - 80053ea: 400b ands r3, r1 - 80053ec: 2b00 cmp r3, #0 - 80053ee: d101 bne.n 80053f4 - 80053f0: 2354 movs r3, #84 ; 0x54 - 80053f2: e000 b.n 80053f6 - 80053f4: 23fc movs r3, #252 ; 0xfc + 80055e4: 687b ldr r3, [r7, #4] + 80055e6: 681b ldr r3, [r3, #0] + 80055e8: 6919 ldr r1, [r3, #16] + 80055ea: 4b4b ldr r3, [pc, #300] ; (8005718 ) + 80055ec: 400b ands r3, r1 + 80055ee: 2b00 cmp r3, #0 + 80055f0: d118 bne.n 8005624 + 80055f2: 687b ldr r3, [r7, #4] + 80055f4: 681b ldr r3, [r3, #0] + 80055f6: 68d9 ldr r1, [r3, #12] + 80055f8: 4b48 ldr r3, [pc, #288] ; (800571c ) + 80055fa: 400b ands r3, r1 + 80055fc: 2b00 cmp r3, #0 + 80055fe: d111 bne.n 8005624 + 8005600: 687b ldr r3, [r7, #4] + 8005602: 681b ldr r3, [r3, #0] + 8005604: 6919 ldr r1, [r3, #16] + 8005606: 4b46 ldr r3, [pc, #280] ; (8005720 ) + 8005608: 400b ands r3, r1 + 800560a: 2b00 cmp r3, #0 + 800560c: d108 bne.n 8005620 + 800560e: 687b ldr r3, [r7, #4] + 8005610: 681b ldr r3, [r3, #0] + 8005612: 68d9 ldr r1, [r3, #12] + 8005614: 4b43 ldr r3, [pc, #268] ; (8005724 ) + 8005616: 400b ands r3, r1 + 8005618: 2b00 cmp r3, #0 + 800561a: d101 bne.n 8005620 + 800561c: 2314 movs r3, #20 + 800561e: e020 b.n 8005662 + 8005620: 2329 movs r3, #41 ; 0x29 + 8005622: e01e b.n 8005662 + 8005624: 687b ldr r3, [r7, #4] + 8005626: 681b ldr r3, [r3, #0] + 8005628: 6919 ldr r1, [r3, #16] + 800562a: 4b3d ldr r3, [pc, #244] ; (8005720 ) + 800562c: 400b ands r3, r1 + 800562e: 2b00 cmp r3, #0 + 8005630: d106 bne.n 8005640 + 8005632: 687b ldr r3, [r7, #4] + 8005634: 681b ldr r3, [r3, #0] + 8005636: 68d9 ldr r1, [r3, #12] + 8005638: 4b3a ldr r3, [pc, #232] ; (8005724 ) + 800563a: 400b ands r3, r1 + 800563c: 2b00 cmp r3, #0 + 800563e: d00d beq.n 800565c + 8005640: 687b ldr r3, [r7, #4] + 8005642: 681b ldr r3, [r3, #0] + 8005644: 6919 ldr r1, [r3, #16] + 8005646: 4b38 ldr r3, [pc, #224] ; (8005728 ) + 8005648: 400b ands r3, r1 + 800564a: 2b00 cmp r3, #0 + 800564c: d108 bne.n 8005660 + 800564e: 687b ldr r3, [r7, #4] + 8005650: 681b ldr r3, [r3, #0] + 8005652: 68d9 ldr r1, [r3, #12] + 8005654: 4b34 ldr r3, [pc, #208] ; (8005728 ) + 8005656: 400b ands r3, r1 + 8005658: 2b00 cmp r3, #0 + 800565a: d101 bne.n 8005660 + 800565c: 2354 movs r3, #84 ; 0x54 + 800565e: e000 b.n 8005662 + 8005660: 23fc movs r3, #252 ; 0xfc Conversion_Timeout_CPU_cycles_max = ((SystemCoreClock - 80053f6: fb02 f303 mul.w r3, r2, r3 - 80053fa: 613b str r3, [r7, #16] + 8005662: fb02 f303 mul.w r3, r2, r3 + 8005666: 613b str r3, [r7, #16] while(Conversion_Timeout_CPU_cycles < Conversion_Timeout_CPU_cycles_max) - 80053fc: e021 b.n 8005442 + 8005668: e021 b.n 80056ae { /* Check if timeout is disabled (set to infinite wait) */ if(Timeout != HAL_MAX_DELAY) - 80053fe: 683b ldr r3, [r7, #0] - 8005400: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8005404: d01a beq.n 800543c + 800566a: 683b ldr r3, [r7, #0] + 800566c: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8005670: d01a beq.n 80056a8 { if((Timeout == 0U) || ((HAL_GetTick() - tickstart) > Timeout)) - 8005406: 683b ldr r3, [r7, #0] - 8005408: 2b00 cmp r3, #0 - 800540a: d007 beq.n 800541c - 800540c: f7ff fd72 bl 8004ef4 - 8005410: 4602 mov r2, r0 - 8005412: 697b ldr r3, [r7, #20] - 8005414: 1ad3 subs r3, r2, r3 - 8005416: 683a ldr r2, [r7, #0] - 8005418: 429a cmp r2, r3 - 800541a: d20f bcs.n 800543c + 8005672: 683b ldr r3, [r7, #0] + 8005674: 2b00 cmp r3, #0 + 8005676: d007 beq.n 8005688 + 8005678: f7ff fd72 bl 8005160 + 800567c: 4602 mov r2, r0 + 800567e: 697b ldr r3, [r7, #20] + 8005680: 1ad3 subs r3, r2, r3 + 8005682: 683a ldr r2, [r7, #0] + 8005684: 429a cmp r2, r3 + 8005686: d20f bcs.n 80056a8 { /* New check to avoid false timeout detection in case of preemption */ if(Conversion_Timeout_CPU_cycles < Conversion_Timeout_CPU_cycles_max) - 800541c: 68fb ldr r3, [r7, #12] - 800541e: 693a ldr r2, [r7, #16] - 8005420: 429a cmp r2, r3 - 8005422: d90b bls.n 800543c + 8005688: 68fb ldr r3, [r7, #12] + 800568a: 693a ldr r2, [r7, #16] + 800568c: 429a cmp r2, r3 + 800568e: d90b bls.n 80056a8 { /* Update ADC state machine to timeout */ SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); - 8005424: 687b ldr r3, [r7, #4] - 8005426: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005428: f043 0204 orr.w r2, r3, #4 - 800542c: 687b ldr r3, [r7, #4] - 800542e: 629a str r2, [r3, #40] ; 0x28 + 8005690: 687b ldr r3, [r7, #4] + 8005692: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005694: f043 0204 orr.w r2, r3, #4 + 8005698: 687b ldr r3, [r7, #4] + 800569a: 629a str r2, [r3, #40] ; 0x28 /* Process unlocked */ __HAL_UNLOCK(hadc); - 8005430: 687b ldr r3, [r7, #4] - 8005432: 2200 movs r2, #0 - 8005434: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 800569c: 687b ldr r3, [r7, #4] + 800569e: 2200 movs r2, #0 + 80056a0: f883 2024 strb.w r2, [r3, #36] ; 0x24 return HAL_TIMEOUT; - 8005438: 2303 movs r3, #3 - 800543a: e030 b.n 800549e + 80056a4: 2303 movs r3, #3 + 80056a6: e030 b.n 800570a } } } Conversion_Timeout_CPU_cycles ++; - 800543c: 68fb ldr r3, [r7, #12] - 800543e: 3301 adds r3, #1 - 8005440: 60fb str r3, [r7, #12] + 80056a8: 68fb ldr r3, [r7, #12] + 80056aa: 3301 adds r3, #1 + 80056ac: 60fb str r3, [r7, #12] while(Conversion_Timeout_CPU_cycles < Conversion_Timeout_CPU_cycles_max) - 8005442: 68fb ldr r3, [r7, #12] - 8005444: 693a ldr r2, [r7, #16] - 8005446: 429a cmp r2, r3 - 8005448: d8d9 bhi.n 80053fe + 80056ae: 68fb ldr r3, [r7, #12] + 80056b0: 693a ldr r2, [r7, #16] + 80056b2: 429a cmp r2, r3 + 80056b4: d8d9 bhi.n 800566a } } /* Clear regular group conversion flag */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_STRT | ADC_FLAG_EOC); - 800544a: 687b ldr r3, [r7, #4] - 800544c: 681b ldr r3, [r3, #0] - 800544e: f06f 0212 mvn.w r2, #18 - 8005452: 601a str r2, [r3, #0] + 80056b6: 687b ldr r3, [r7, #4] + 80056b8: 681b ldr r3, [r3, #0] + 80056ba: f06f 0212 mvn.w r2, #18 + 80056be: 601a str r2, [r3, #0] /* Update ADC state machine */ SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); - 8005454: 687b ldr r3, [r7, #4] - 8005456: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005458: f443 7200 orr.w r2, r3, #512 ; 0x200 - 800545c: 687b ldr r3, [r7, #4] - 800545e: 629a str r2, [r3, #40] ; 0x28 + 80056c0: 687b ldr r3, [r7, #4] + 80056c2: 6a9b ldr r3, [r3, #40] ; 0x28 + 80056c4: f443 7200 orr.w r2, r3, #512 ; 0x200 + 80056c8: 687b ldr r3, [r7, #4] + 80056ca: 629a str r2, [r3, #40] ; 0x28 /* Determine whether any further conversion upcoming on group regular */ /* by external trigger, continuous mode or scan sequence on going. */ /* Note: On STM32F1 devices, in case of sequencer enabled */ /* (several ranks selected), end of conversion flag is raised */ /* at the end of the sequence. */ if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 8005460: 687b ldr r3, [r7, #4] - 8005462: 681b ldr r3, [r3, #0] - 8005464: 689b ldr r3, [r3, #8] - 8005466: f403 2360 and.w r3, r3, #917504 ; 0xe0000 - 800546a: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000 - 800546e: d115 bne.n 800549c + 80056cc: 687b ldr r3, [r7, #4] + 80056ce: 681b ldr r3, [r3, #0] + 80056d0: 689b ldr r3, [r3, #8] + 80056d2: f403 2360 and.w r3, r3, #917504 ; 0xe0000 + 80056d6: f5b3 2f60 cmp.w r3, #917504 ; 0xe0000 + 80056da: d115 bne.n 8005708 (hadc->Init.ContinuousConvMode == DISABLE) ) - 8005470: 687b ldr r3, [r7, #4] - 8005472: 7b1b ldrb r3, [r3, #12] + 80056dc: 687b ldr r3, [r7, #4] + 80056de: 7b1b ldrb r3, [r3, #12] if(ADC_IS_SOFTWARE_START_REGULAR(hadc) && - 8005474: 2b00 cmp r3, #0 - 8005476: d111 bne.n 800549c + 80056e0: 2b00 cmp r3, #0 + 80056e2: d111 bne.n 8005708 { /* Set ADC state */ CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); - 8005478: 687b ldr r3, [r7, #4] - 800547a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800547c: f423 7280 bic.w r2, r3, #256 ; 0x100 - 8005480: 687b ldr r3, [r7, #4] - 8005482: 629a str r2, [r3, #40] ; 0x28 + 80056e4: 687b ldr r3, [r7, #4] + 80056e6: 6a9b ldr r3, [r3, #40] ; 0x28 + 80056e8: f423 7280 bic.w r2, r3, #256 ; 0x100 + 80056ec: 687b ldr r3, [r7, #4] + 80056ee: 629a str r2, [r3, #40] ; 0x28 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY)) - 8005484: 687b ldr r3, [r7, #4] - 8005486: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005488: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 800548c: 2b00 cmp r3, #0 - 800548e: d105 bne.n 800549c + 80056f0: 687b ldr r3, [r7, #4] + 80056f2: 6a9b ldr r3, [r3, #40] ; 0x28 + 80056f4: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 80056f8: 2b00 cmp r3, #0 + 80056fa: d105 bne.n 8005708 { SET_BIT(hadc->State, HAL_ADC_STATE_READY); - 8005490: 687b ldr r3, [r7, #4] - 8005492: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005494: f043 0201 orr.w r2, r3, #1 - 8005498: 687b ldr r3, [r7, #4] - 800549a: 629a str r2, [r3, #40] ; 0x28 + 80056fc: 687b ldr r3, [r7, #4] + 80056fe: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005700: f043 0201 orr.w r2, r3, #1 + 8005704: 687b ldr r3, [r7, #4] + 8005706: 629a str r2, [r3, #40] ; 0x28 } } /* Return ADC state */ return HAL_OK; - 800549c: 2300 movs r3, #0 + 8005708: 2300 movs r3, #0 } - 800549e: 4618 mov r0, r3 - 80054a0: 371c adds r7, #28 - 80054a2: 46bd mov sp, r7 - 80054a4: bd90 pop {r4, r7, pc} - 80054a6: bf00 nop - 80054a8: 20000008 .word 0x20000008 - 80054ac: 24924924 .word 0x24924924 - 80054b0: 00924924 .word 0x00924924 - 80054b4: 12492492 .word 0x12492492 - 80054b8: 00492492 .word 0x00492492 - 80054bc: 00249249 .word 0x00249249 + 800570a: 4618 mov r0, r3 + 800570c: 371c adds r7, #28 + 800570e: 46bd mov sp, r7 + 8005710: bd90 pop {r4, r7, pc} + 8005712: bf00 nop + 8005714: 20000008 .word 0x20000008 + 8005718: 24924924 .word 0x24924924 + 800571c: 00924924 .word 0x00924924 + 8005720: 12492492 .word 0x12492492 + 8005724: 00492492 .word 0x00492492 + 8005728: 00249249 .word 0x00249249 -080054c0 : +0800572c : * or @ref __HAL_ADC_CLEAR_FLAG(&hadc, ADC_FLAG_EOS). * @param hadc: ADC handle * @retval ADC group regular conversion data */ uint32_t HAL_ADC_GetValue(ADC_HandleTypeDef* hadc) { - 80054c0: b480 push {r7} - 80054c2: b083 sub sp, #12 - 80054c4: af00 add r7, sp, #0 - 80054c6: 6078 str r0, [r7, #4] + 800572c: b480 push {r7} + 800572e: b083 sub sp, #12 + 8005730: af00 add r7, sp, #0 + 8005732: 6078 str r0, [r7, #4] /* Note: EOC flag is not cleared here by software because automatically */ /* cleared by hardware when reading register DR. */ /* Return ADC converted value */ return hadc->Instance->DR; - 80054c8: 687b ldr r3, [r7, #4] - 80054ca: 681b ldr r3, [r3, #0] - 80054cc: 6cdb ldr r3, [r3, #76] ; 0x4c + 8005734: 687b ldr r3, [r7, #4] + 8005736: 681b ldr r3, [r3, #0] + 8005738: 6cdb ldr r3, [r3, #76] ; 0x4c } - 80054ce: 4618 mov r0, r3 - 80054d0: 370c adds r7, #12 - 80054d2: 46bd mov sp, r7 - 80054d4: bc80 pop {r7} - 80054d6: 4770 bx lr + 800573a: 4618 mov r0, r3 + 800573c: 370c adds r7, #12 + 800573e: 46bd mov sp, r7 + 8005740: bc80 pop {r7} + 8005742: 4770 bx lr -080054d8 : +08005744 : * @param hadc: ADC handle * @param sConfig: Structure of ADC channel for regular group. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig) { - 80054d8: b480 push {r7} - 80054da: b085 sub sp, #20 - 80054dc: af00 add r7, sp, #0 - 80054de: 6078 str r0, [r7, #4] - 80054e0: 6039 str r1, [r7, #0] + 8005744: b480 push {r7} + 8005746: b085 sub sp, #20 + 8005748: af00 add r7, sp, #0 + 800574a: 6078 str r0, [r7, #4] + 800574c: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 80054e2: 2300 movs r3, #0 - 80054e4: 73fb strb r3, [r7, #15] + 800574e: 2300 movs r3, #0 + 8005750: 73fb strb r3, [r7, #15] __IO uint32_t wait_loop_index = 0U; - 80054e6: 2300 movs r3, #0 - 80054e8: 60bb str r3, [r7, #8] + 8005752: 2300 movs r3, #0 + 8005754: 60bb str r3, [r7, #8] assert_param(IS_ADC_CHANNEL(sConfig->Channel)); assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); /* Process locked */ __HAL_LOCK(hadc); - 80054ea: 687b ldr r3, [r7, #4] - 80054ec: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 80054f0: 2b01 cmp r3, #1 - 80054f2: d101 bne.n 80054f8 - 80054f4: 2302 movs r3, #2 - 80054f6: e0dc b.n 80056b2 - 80054f8: 687b ldr r3, [r7, #4] - 80054fa: 2201 movs r2, #1 - 80054fc: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005756: 687b ldr r3, [r7, #4] + 8005758: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 800575c: 2b01 cmp r3, #1 + 800575e: d101 bne.n 8005764 + 8005760: 2302 movs r3, #2 + 8005762: e0dc b.n 800591e + 8005764: 687b ldr r3, [r7, #4] + 8005766: 2201 movs r2, #1 + 8005768: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Regular sequence configuration */ /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) - 8005500: 683b ldr r3, [r7, #0] - 8005502: 685b ldr r3, [r3, #4] - 8005504: 2b06 cmp r3, #6 - 8005506: d81c bhi.n 8005542 + 800576c: 683b ldr r3, [r7, #0] + 800576e: 685b ldr r3, [r3, #4] + 8005770: 2b06 cmp r3, #6 + 8005772: d81c bhi.n 80057ae { MODIFY_REG(hadc->Instance->SQR3 , - 8005508: 687b ldr r3, [r7, #4] - 800550a: 681b ldr r3, [r3, #0] - 800550c: 6b59 ldr r1, [r3, #52] ; 0x34 - 800550e: 683b ldr r3, [r7, #0] - 8005510: 685a ldr r2, [r3, #4] - 8005512: 4613 mov r3, r2 - 8005514: 009b lsls r3, r3, #2 - 8005516: 4413 add r3, r2 - 8005518: 3b05 subs r3, #5 - 800551a: 221f movs r2, #31 - 800551c: fa02 f303 lsl.w r3, r2, r3 - 8005520: 43db mvns r3, r3 - 8005522: 4019 ands r1, r3 - 8005524: 683b ldr r3, [r7, #0] - 8005526: 6818 ldr r0, [r3, #0] - 8005528: 683b ldr r3, [r7, #0] - 800552a: 685a ldr r2, [r3, #4] - 800552c: 4613 mov r3, r2 - 800552e: 009b lsls r3, r3, #2 - 8005530: 4413 add r3, r2 - 8005532: 3b05 subs r3, #5 - 8005534: fa00 f203 lsl.w r2, r0, r3 - 8005538: 687b ldr r3, [r7, #4] - 800553a: 681b ldr r3, [r3, #0] - 800553c: 430a orrs r2, r1 - 800553e: 635a str r2, [r3, #52] ; 0x34 - 8005540: e03c b.n 80055bc + 8005774: 687b ldr r3, [r7, #4] + 8005776: 681b ldr r3, [r3, #0] + 8005778: 6b59 ldr r1, [r3, #52] ; 0x34 + 800577a: 683b ldr r3, [r7, #0] + 800577c: 685a ldr r2, [r3, #4] + 800577e: 4613 mov r3, r2 + 8005780: 009b lsls r3, r3, #2 + 8005782: 4413 add r3, r2 + 8005784: 3b05 subs r3, #5 + 8005786: 221f movs r2, #31 + 8005788: fa02 f303 lsl.w r3, r2, r3 + 800578c: 43db mvns r3, r3 + 800578e: 4019 ands r1, r3 + 8005790: 683b ldr r3, [r7, #0] + 8005792: 6818 ldr r0, [r3, #0] + 8005794: 683b ldr r3, [r7, #0] + 8005796: 685a ldr r2, [r3, #4] + 8005798: 4613 mov r3, r2 + 800579a: 009b lsls r3, r3, #2 + 800579c: 4413 add r3, r2 + 800579e: 3b05 subs r3, #5 + 80057a0: fa00 f203 lsl.w r2, r0, r3 + 80057a4: 687b ldr r3, [r7, #4] + 80057a6: 681b ldr r3, [r3, #0] + 80057a8: 430a orrs r2, r1 + 80057aa: 635a str r2, [r3, #52] ; 0x34 + 80057ac: e03c b.n 8005828 ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) , ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 7 to 12 */ else if (sConfig->Rank < 13U) - 8005542: 683b ldr r3, [r7, #0] - 8005544: 685b ldr r3, [r3, #4] - 8005546: 2b0c cmp r3, #12 - 8005548: d81c bhi.n 8005584 + 80057ae: 683b ldr r3, [r7, #0] + 80057b0: 685b ldr r3, [r3, #4] + 80057b2: 2b0c cmp r3, #12 + 80057b4: d81c bhi.n 80057f0 { MODIFY_REG(hadc->Instance->SQR2 , - 800554a: 687b ldr r3, [r7, #4] - 800554c: 681b ldr r3, [r3, #0] - 800554e: 6b19 ldr r1, [r3, #48] ; 0x30 - 8005550: 683b ldr r3, [r7, #0] - 8005552: 685a ldr r2, [r3, #4] - 8005554: 4613 mov r3, r2 - 8005556: 009b lsls r3, r3, #2 - 8005558: 4413 add r3, r2 - 800555a: 3b23 subs r3, #35 ; 0x23 - 800555c: 221f movs r2, #31 - 800555e: fa02 f303 lsl.w r3, r2, r3 - 8005562: 43db mvns r3, r3 - 8005564: 4019 ands r1, r3 - 8005566: 683b ldr r3, [r7, #0] - 8005568: 6818 ldr r0, [r3, #0] - 800556a: 683b ldr r3, [r7, #0] - 800556c: 685a ldr r2, [r3, #4] - 800556e: 4613 mov r3, r2 - 8005570: 009b lsls r3, r3, #2 - 8005572: 4413 add r3, r2 - 8005574: 3b23 subs r3, #35 ; 0x23 - 8005576: fa00 f203 lsl.w r2, r0, r3 - 800557a: 687b ldr r3, [r7, #4] - 800557c: 681b ldr r3, [r3, #0] - 800557e: 430a orrs r2, r1 - 8005580: 631a str r2, [r3, #48] ; 0x30 - 8005582: e01b b.n 80055bc + 80057b6: 687b ldr r3, [r7, #4] + 80057b8: 681b ldr r3, [r3, #0] + 80057ba: 6b19 ldr r1, [r3, #48] ; 0x30 + 80057bc: 683b ldr r3, [r7, #0] + 80057be: 685a ldr r2, [r3, #4] + 80057c0: 4613 mov r3, r2 + 80057c2: 009b lsls r3, r3, #2 + 80057c4: 4413 add r3, r2 + 80057c6: 3b23 subs r3, #35 ; 0x23 + 80057c8: 221f movs r2, #31 + 80057ca: fa02 f303 lsl.w r3, r2, r3 + 80057ce: 43db mvns r3, r3 + 80057d0: 4019 ands r1, r3 + 80057d2: 683b ldr r3, [r7, #0] + 80057d4: 6818 ldr r0, [r3, #0] + 80057d6: 683b ldr r3, [r7, #0] + 80057d8: 685a ldr r2, [r3, #4] + 80057da: 4613 mov r3, r2 + 80057dc: 009b lsls r3, r3, #2 + 80057de: 4413 add r3, r2 + 80057e0: 3b23 subs r3, #35 ; 0x23 + 80057e2: fa00 f203 lsl.w r2, r0, r3 + 80057e6: 687b ldr r3, [r7, #4] + 80057e8: 681b ldr r3, [r3, #0] + 80057ea: 430a orrs r2, r1 + 80057ec: 631a str r2, [r3, #48] ; 0x30 + 80057ee: e01b b.n 8005828 ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 13 to 16 */ else { MODIFY_REG(hadc->Instance->SQR1 , - 8005584: 687b ldr r3, [r7, #4] - 8005586: 681b ldr r3, [r3, #0] - 8005588: 6ad9 ldr r1, [r3, #44] ; 0x2c - 800558a: 683b ldr r3, [r7, #0] - 800558c: 685a ldr r2, [r3, #4] - 800558e: 4613 mov r3, r2 - 8005590: 009b lsls r3, r3, #2 - 8005592: 4413 add r3, r2 - 8005594: 3b41 subs r3, #65 ; 0x41 - 8005596: 221f movs r2, #31 - 8005598: fa02 f303 lsl.w r3, r2, r3 - 800559c: 43db mvns r3, r3 - 800559e: 4019 ands r1, r3 - 80055a0: 683b ldr r3, [r7, #0] - 80055a2: 6818 ldr r0, [r3, #0] - 80055a4: 683b ldr r3, [r7, #0] - 80055a6: 685a ldr r2, [r3, #4] - 80055a8: 4613 mov r3, r2 - 80055aa: 009b lsls r3, r3, #2 - 80055ac: 4413 add r3, r2 - 80055ae: 3b41 subs r3, #65 ; 0x41 - 80055b0: fa00 f203 lsl.w r2, r0, r3 - 80055b4: 687b ldr r3, [r7, #4] - 80055b6: 681b ldr r3, [r3, #0] - 80055b8: 430a orrs r2, r1 - 80055ba: 62da str r2, [r3, #44] ; 0x2c + 80057f0: 687b ldr r3, [r7, #4] + 80057f2: 681b ldr r3, [r3, #0] + 80057f4: 6ad9 ldr r1, [r3, #44] ; 0x2c + 80057f6: 683b ldr r3, [r7, #0] + 80057f8: 685a ldr r2, [r3, #4] + 80057fa: 4613 mov r3, r2 + 80057fc: 009b lsls r3, r3, #2 + 80057fe: 4413 add r3, r2 + 8005800: 3b41 subs r3, #65 ; 0x41 + 8005802: 221f movs r2, #31 + 8005804: fa02 f303 lsl.w r3, r2, r3 + 8005808: 43db mvns r3, r3 + 800580a: 4019 ands r1, r3 + 800580c: 683b ldr r3, [r7, #0] + 800580e: 6818 ldr r0, [r3, #0] + 8005810: 683b ldr r3, [r7, #0] + 8005812: 685a ldr r2, [r3, #4] + 8005814: 4613 mov r3, r2 + 8005816: 009b lsls r3, r3, #2 + 8005818: 4413 add r3, r2 + 800581a: 3b41 subs r3, #65 ; 0x41 + 800581c: fa00 f203 lsl.w r2, r0, r3 + 8005820: 687b ldr r3, [r7, #4] + 8005822: 681b ldr r3, [r3, #0] + 8005824: 430a orrs r2, r1 + 8005826: 62da str r2, [r3, #44] ; 0x2c } /* Channel sampling time configuration */ /* For channels 10 to 17 */ if (sConfig->Channel >= ADC_CHANNEL_10) - 80055bc: 683b ldr r3, [r7, #0] - 80055be: 681b ldr r3, [r3, #0] - 80055c0: 2b09 cmp r3, #9 - 80055c2: d91c bls.n 80055fe + 8005828: 683b ldr r3, [r7, #0] + 800582a: 681b ldr r3, [r3, #0] + 800582c: 2b09 cmp r3, #9 + 800582e: d91c bls.n 800586a { MODIFY_REG(hadc->Instance->SMPR1 , - 80055c4: 687b ldr r3, [r7, #4] - 80055c6: 681b ldr r3, [r3, #0] - 80055c8: 68d9 ldr r1, [r3, #12] - 80055ca: 683b ldr r3, [r7, #0] - 80055cc: 681a ldr r2, [r3, #0] - 80055ce: 4613 mov r3, r2 - 80055d0: 005b lsls r3, r3, #1 - 80055d2: 4413 add r3, r2 - 80055d4: 3b1e subs r3, #30 - 80055d6: 2207 movs r2, #7 - 80055d8: fa02 f303 lsl.w r3, r2, r3 - 80055dc: 43db mvns r3, r3 - 80055de: 4019 ands r1, r3 - 80055e0: 683b ldr r3, [r7, #0] - 80055e2: 6898 ldr r0, [r3, #8] - 80055e4: 683b ldr r3, [r7, #0] - 80055e6: 681a ldr r2, [r3, #0] - 80055e8: 4613 mov r3, r2 - 80055ea: 005b lsls r3, r3, #1 - 80055ec: 4413 add r3, r2 - 80055ee: 3b1e subs r3, #30 - 80055f0: fa00 f203 lsl.w r2, r0, r3 - 80055f4: 687b ldr r3, [r7, #4] - 80055f6: 681b ldr r3, [r3, #0] - 80055f8: 430a orrs r2, r1 - 80055fa: 60da str r2, [r3, #12] - 80055fc: e019 b.n 8005632 + 8005830: 687b ldr r3, [r7, #4] + 8005832: 681b ldr r3, [r3, #0] + 8005834: 68d9 ldr r1, [r3, #12] + 8005836: 683b ldr r3, [r7, #0] + 8005838: 681a ldr r2, [r3, #0] + 800583a: 4613 mov r3, r2 + 800583c: 005b lsls r3, r3, #1 + 800583e: 4413 add r3, r2 + 8005840: 3b1e subs r3, #30 + 8005842: 2207 movs r2, #7 + 8005844: fa02 f303 lsl.w r3, r2, r3 + 8005848: 43db mvns r3, r3 + 800584a: 4019 ands r1, r3 + 800584c: 683b ldr r3, [r7, #0] + 800584e: 6898 ldr r0, [r3, #8] + 8005850: 683b ldr r3, [r7, #0] + 8005852: 681a ldr r2, [r3, #0] + 8005854: 4613 mov r3, r2 + 8005856: 005b lsls r3, r3, #1 + 8005858: 4413 add r3, r2 + 800585a: 3b1e subs r3, #30 + 800585c: fa00 f203 lsl.w r2, r0, r3 + 8005860: 687b ldr r3, [r7, #4] + 8005862: 681b ldr r3, [r3, #0] + 8005864: 430a orrs r2, r1 + 8005866: 60da str r2, [r3, #12] + 8005868: e019 b.n 800589e ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) , ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) ); } else /* For channels 0 to 9 */ { MODIFY_REG(hadc->Instance->SMPR2 , - 80055fe: 687b ldr r3, [r7, #4] - 8005600: 681b ldr r3, [r3, #0] - 8005602: 6919 ldr r1, [r3, #16] - 8005604: 683b ldr r3, [r7, #0] - 8005606: 681a ldr r2, [r3, #0] - 8005608: 4613 mov r3, r2 - 800560a: 005b lsls r3, r3, #1 - 800560c: 4413 add r3, r2 - 800560e: 2207 movs r2, #7 - 8005610: fa02 f303 lsl.w r3, r2, r3 - 8005614: 43db mvns r3, r3 - 8005616: 4019 ands r1, r3 - 8005618: 683b ldr r3, [r7, #0] - 800561a: 6898 ldr r0, [r3, #8] - 800561c: 683b ldr r3, [r7, #0] - 800561e: 681a ldr r2, [r3, #0] - 8005620: 4613 mov r3, r2 - 8005622: 005b lsls r3, r3, #1 - 8005624: 4413 add r3, r2 - 8005626: fa00 f203 lsl.w r2, r0, r3 - 800562a: 687b ldr r3, [r7, #4] - 800562c: 681b ldr r3, [r3, #0] - 800562e: 430a orrs r2, r1 - 8005630: 611a str r2, [r3, #16] + 800586a: 687b ldr r3, [r7, #4] + 800586c: 681b ldr r3, [r3, #0] + 800586e: 6919 ldr r1, [r3, #16] + 8005870: 683b ldr r3, [r7, #0] + 8005872: 681a ldr r2, [r3, #0] + 8005874: 4613 mov r3, r2 + 8005876: 005b lsls r3, r3, #1 + 8005878: 4413 add r3, r2 + 800587a: 2207 movs r2, #7 + 800587c: fa02 f303 lsl.w r3, r2, r3 + 8005880: 43db mvns r3, r3 + 8005882: 4019 ands r1, r3 + 8005884: 683b ldr r3, [r7, #0] + 8005886: 6898 ldr r0, [r3, #8] + 8005888: 683b ldr r3, [r7, #0] + 800588a: 681a ldr r2, [r3, #0] + 800588c: 4613 mov r3, r2 + 800588e: 005b lsls r3, r3, #1 + 8005890: 4413 add r3, r2 + 8005892: fa00 f203 lsl.w r2, r0, r3 + 8005896: 687b ldr r3, [r7, #4] + 8005898: 681b ldr r3, [r3, #0] + 800589a: 430a orrs r2, r1 + 800589c: 611a str r2, [r3, #16] ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) ); } /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */ /* and VREFINT measurement path. */ if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || - 8005632: 683b ldr r3, [r7, #0] - 8005634: 681b ldr r3, [r3, #0] - 8005636: 2b10 cmp r3, #16 - 8005638: d003 beq.n 8005642 + 800589e: 683b ldr r3, [r7, #0] + 80058a0: 681b ldr r3, [r3, #0] + 80058a2: 2b10 cmp r3, #16 + 80058a4: d003 beq.n 80058ae (sConfig->Channel == ADC_CHANNEL_VREFINT) ) - 800563a: 683b ldr r3, [r7, #0] - 800563c: 681b ldr r3, [r3, #0] + 80058a6: 683b ldr r3, [r7, #0] + 80058a8: 681b ldr r3, [r3, #0] if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || - 800563e: 2b11 cmp r3, #17 - 8005640: d132 bne.n 80056a8 + 80058aa: 2b11 cmp r3, #17 + 80058ac: d132 bne.n 8005914 { /* For STM32F1 devices with several ADC: Only ADC1 can access internal */ /* measurement channels (VrefInt/TempSensor). If these channels are */ /* intended to be set on other ADC instances, an error is reported. */ if (hadc->Instance == ADC1) - 8005642: 687b ldr r3, [r7, #4] - 8005644: 681b ldr r3, [r3, #0] - 8005646: 4a1d ldr r2, [pc, #116] ; (80056bc ) - 8005648: 4293 cmp r3, r2 - 800564a: d125 bne.n 8005698 + 80058ae: 687b ldr r3, [r7, #4] + 80058b0: 681b ldr r3, [r3, #0] + 80058b2: 4a1d ldr r2, [pc, #116] ; (8005928 ) + 80058b4: 4293 cmp r3, r2 + 80058b6: d125 bne.n 8005904 { if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET) - 800564c: 687b ldr r3, [r7, #4] - 800564e: 681b ldr r3, [r3, #0] - 8005650: 689b ldr r3, [r3, #8] - 8005652: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 8005656: 2b00 cmp r3, #0 - 8005658: d126 bne.n 80056a8 + 80058b8: 687b ldr r3, [r7, #4] + 80058ba: 681b ldr r3, [r3, #0] + 80058bc: 689b ldr r3, [r3, #8] + 80058be: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 80058c2: 2b00 cmp r3, #0 + 80058c4: d126 bne.n 8005914 { SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE); - 800565a: 687b ldr r3, [r7, #4] - 800565c: 681b ldr r3, [r3, #0] - 800565e: 689a ldr r2, [r3, #8] - 8005660: 687b ldr r3, [r7, #4] - 8005662: 681b ldr r3, [r3, #0] - 8005664: f442 0200 orr.w r2, r2, #8388608 ; 0x800000 - 8005668: 609a str r2, [r3, #8] + 80058c6: 687b ldr r3, [r7, #4] + 80058c8: 681b ldr r3, [r3, #0] + 80058ca: 689a ldr r2, [r3, #8] + 80058cc: 687b ldr r3, [r7, #4] + 80058ce: 681b ldr r3, [r3, #0] + 80058d0: f442 0200 orr.w r2, r2, #8388608 ; 0x800000 + 80058d4: 609a str r2, [r3, #8] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 800566a: 683b ldr r3, [r7, #0] - 800566c: 681b ldr r3, [r3, #0] - 800566e: 2b10 cmp r3, #16 - 8005670: d11a bne.n 80056a8 + 80058d6: 683b ldr r3, [r7, #0] + 80058d8: 681b ldr r3, [r3, #0] + 80058da: 2b10 cmp r3, #16 + 80058dc: d11a bne.n 8005914 { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); - 8005672: 4b13 ldr r3, [pc, #76] ; (80056c0 ) - 8005674: 681b ldr r3, [r3, #0] - 8005676: 4a13 ldr r2, [pc, #76] ; (80056c4 ) - 8005678: fba2 2303 umull r2, r3, r2, r3 - 800567c: 0c9a lsrs r2, r3, #18 - 800567e: 4613 mov r3, r2 - 8005680: 009b lsls r3, r3, #2 - 8005682: 4413 add r3, r2 - 8005684: 005b lsls r3, r3, #1 - 8005686: 60bb str r3, [r7, #8] + 80058de: 4b13 ldr r3, [pc, #76] ; (800592c ) + 80058e0: 681b ldr r3, [r3, #0] + 80058e2: 4a13 ldr r2, [pc, #76] ; (8005930 ) + 80058e4: fba2 2303 umull r2, r3, r2, r3 + 80058e8: 0c9a lsrs r2, r3, #18 + 80058ea: 4613 mov r3, r2 + 80058ec: 009b lsls r3, r3, #2 + 80058ee: 4413 add r3, r2 + 80058f0: 005b lsls r3, r3, #1 + 80058f2: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) - 8005688: e002 b.n 8005690 + 80058f4: e002 b.n 80058fc { wait_loop_index--; - 800568a: 68bb ldr r3, [r7, #8] - 800568c: 3b01 subs r3, #1 - 800568e: 60bb str r3, [r7, #8] + 80058f6: 68bb ldr r3, [r7, #8] + 80058f8: 3b01 subs r3, #1 + 80058fa: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) - 8005690: 68bb ldr r3, [r7, #8] - 8005692: 2b00 cmp r3, #0 - 8005694: d1f9 bne.n 800568a - 8005696: e007 b.n 80056a8 + 80058fc: 68bb ldr r3, [r7, #8] + 80058fe: 2b00 cmp r3, #0 + 8005900: d1f9 bne.n 80058f6 + 8005902: e007 b.n 8005914 } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8005698: 687b ldr r3, [r7, #4] - 800569a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800569c: f043 0220 orr.w r2, r3, #32 - 80056a0: 687b ldr r3, [r7, #4] - 80056a2: 629a str r2, [r3, #40] ; 0x28 + 8005904: 687b ldr r3, [r7, #4] + 8005906: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005908: f043 0220 orr.w r2, r3, #32 + 800590c: 687b ldr r3, [r7, #4] + 800590e: 629a str r2, [r3, #40] ; 0x28 tmp_hal_status = HAL_ERROR; - 80056a4: 2301 movs r3, #1 - 80056a6: 73fb strb r3, [r7, #15] + 8005910: 2301 movs r3, #1 + 8005912: 73fb strb r3, [r7, #15] } } /* Process unlocked */ __HAL_UNLOCK(hadc); - 80056a8: 687b ldr r3, [r7, #4] - 80056aa: 2200 movs r2, #0 - 80056ac: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005914: 687b ldr r3, [r7, #4] + 8005916: 2200 movs r2, #0 + 8005918: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Return function status */ return tmp_hal_status; - 80056b0: 7bfb ldrb r3, [r7, #15] + 800591c: 7bfb ldrb r3, [r7, #15] } - 80056b2: 4618 mov r0, r3 - 80056b4: 3714 adds r7, #20 - 80056b6: 46bd mov sp, r7 - 80056b8: bc80 pop {r7} - 80056ba: 4770 bx lr - 80056bc: 40012400 .word 0x40012400 - 80056c0: 20000008 .word 0x20000008 - 80056c4: 431bde83 .word 0x431bde83 + 800591e: 4618 mov r0, r3 + 8005920: 3714 adds r7, #20 + 8005922: 46bd mov sp, r7 + 8005924: bc80 pop {r7} + 8005926: 4770 bx lr + 8005928: 40012400 .word 0x40012400 + 800592c: 20000008 .word 0x20000008 + 8005930: 431bde83 .word 0x431bde83 -080056c8 : +08005934 : * and voltage regulator must be enabled (done into HAL_ADC_Init()). * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc) { - 80056c8: b580 push {r7, lr} - 80056ca: b084 sub sp, #16 - 80056cc: af00 add r7, sp, #0 - 80056ce: 6078 str r0, [r7, #4] + 8005934: b580 push {r7, lr} + 8005936: b084 sub sp, #16 + 8005938: af00 add r7, sp, #0 + 800593a: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 80056d0: 2300 movs r3, #0 - 80056d2: 60fb str r3, [r7, #12] + 800593c: 2300 movs r3, #0 + 800593e: 60fb str r3, [r7, #12] __IO uint32_t wait_loop_index = 0U; - 80056d4: 2300 movs r3, #0 - 80056d6: 60bb str r3, [r7, #8] + 8005940: 2300 movs r3, #0 + 8005942: 60bb str r3, [r7, #8] /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ /* enabling phase not yet completed: flag ADC ready not yet set). */ /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ /* causes: ADC clock not running, ...). */ if (ADC_IS_ENABLE(hadc) == RESET) - 80056d8: 687b ldr r3, [r7, #4] - 80056da: 681b ldr r3, [r3, #0] - 80056dc: 689b ldr r3, [r3, #8] - 80056de: f003 0301 and.w r3, r3, #1 - 80056e2: 2b01 cmp r3, #1 - 80056e4: d040 beq.n 8005768 + 8005944: 687b ldr r3, [r7, #4] + 8005946: 681b ldr r3, [r3, #0] + 8005948: 689b ldr r3, [r3, #8] + 800594a: f003 0301 and.w r3, r3, #1 + 800594e: 2b01 cmp r3, #1 + 8005950: d040 beq.n 80059d4 { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); - 80056e6: 687b ldr r3, [r7, #4] - 80056e8: 681b ldr r3, [r3, #0] - 80056ea: 689a ldr r2, [r3, #8] - 80056ec: 687b ldr r3, [r7, #4] - 80056ee: 681b ldr r3, [r3, #0] - 80056f0: f042 0201 orr.w r2, r2, #1 - 80056f4: 609a str r2, [r3, #8] + 8005952: 687b ldr r3, [r7, #4] + 8005954: 681b ldr r3, [r3, #0] + 8005956: 689a ldr r2, [r3, #8] + 8005958: 687b ldr r3, [r7, #4] + 800595a: 681b ldr r3, [r3, #0] + 800595c: f042 0201 orr.w r2, r2, #1 + 8005960: 609a str r2, [r3, #8] /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000U)); - 80056f6: 4b1f ldr r3, [pc, #124] ; (8005774 ) - 80056f8: 681b ldr r3, [r3, #0] - 80056fa: 4a1f ldr r2, [pc, #124] ; (8005778 ) - 80056fc: fba2 2303 umull r2, r3, r2, r3 - 8005700: 0c9b lsrs r3, r3, #18 - 8005702: 60bb str r3, [r7, #8] + 8005962: 4b1f ldr r3, [pc, #124] ; (80059e0 ) + 8005964: 681b ldr r3, [r3, #0] + 8005966: 4a1f ldr r2, [pc, #124] ; (80059e4 ) + 8005968: fba2 2303 umull r2, r3, r2, r3 + 800596c: 0c9b lsrs r3, r3, #18 + 800596e: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) - 8005704: e002 b.n 800570c + 8005970: e002 b.n 8005978 { wait_loop_index--; - 8005706: 68bb ldr r3, [r7, #8] - 8005708: 3b01 subs r3, #1 - 800570a: 60bb str r3, [r7, #8] + 8005972: 68bb ldr r3, [r7, #8] + 8005974: 3b01 subs r3, #1 + 8005976: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) - 800570c: 68bb ldr r3, [r7, #8] - 800570e: 2b00 cmp r3, #0 - 8005710: d1f9 bne.n 8005706 + 8005978: 68bb ldr r3, [r7, #8] + 800597a: 2b00 cmp r3, #0 + 800597c: d1f9 bne.n 8005972 } /* Get tick count */ tickstart = HAL_GetTick(); - 8005712: f7ff fbef bl 8004ef4 - 8005716: 60f8 str r0, [r7, #12] + 800597e: f7ff fbef bl 8005160 + 8005982: 60f8 str r0, [r7, #12] /* Wait for ADC effectively enabled */ while(ADC_IS_ENABLE(hadc) == RESET) - 8005718: e01f b.n 800575a + 8005984: e01f b.n 80059c6 { if((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) - 800571a: f7ff fbeb bl 8004ef4 - 800571e: 4602 mov r2, r0 - 8005720: 68fb ldr r3, [r7, #12] - 8005722: 1ad3 subs r3, r2, r3 - 8005724: 2b02 cmp r3, #2 - 8005726: d918 bls.n 800575a + 8005986: f7ff fbeb bl 8005160 + 800598a: 4602 mov r2, r0 + 800598c: 68fb ldr r3, [r7, #12] + 800598e: 1ad3 subs r3, r2, r3 + 8005990: 2b02 cmp r3, #2 + 8005992: d918 bls.n 80059c6 { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) == RESET) - 8005728: 687b ldr r3, [r7, #4] - 800572a: 681b ldr r3, [r3, #0] - 800572c: 689b ldr r3, [r3, #8] - 800572e: f003 0301 and.w r3, r3, #1 - 8005732: 2b01 cmp r3, #1 - 8005734: d011 beq.n 800575a + 8005994: 687b ldr r3, [r7, #4] + 8005996: 681b ldr r3, [r3, #0] + 8005998: 689b ldr r3, [r3, #8] + 800599a: f003 0301 and.w r3, r3, #1 + 800599e: 2b01 cmp r3, #1 + 80059a0: d011 beq.n 80059c6 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 8005736: 687b ldr r3, [r7, #4] - 8005738: 6a9b ldr r3, [r3, #40] ; 0x28 - 800573a: f043 0210 orr.w r2, r3, #16 - 800573e: 687b ldr r3, [r7, #4] - 8005740: 629a str r2, [r3, #40] ; 0x28 + 80059a2: 687b ldr r3, [r7, #4] + 80059a4: 6a9b ldr r3, [r3, #40] ; 0x28 + 80059a6: f043 0210 orr.w r2, r3, #16 + 80059aa: 687b ldr r3, [r7, #4] + 80059ac: 629a str r2, [r3, #40] ; 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 8005742: 687b ldr r3, [r7, #4] - 8005744: 6adb ldr r3, [r3, #44] ; 0x2c - 8005746: f043 0201 orr.w r2, r3, #1 - 800574a: 687b ldr r3, [r7, #4] - 800574c: 62da str r2, [r3, #44] ; 0x2c + 80059ae: 687b ldr r3, [r7, #4] + 80059b0: 6adb ldr r3, [r3, #44] ; 0x2c + 80059b2: f043 0201 orr.w r2, r3, #1 + 80059b6: 687b ldr r3, [r7, #4] + 80059b8: 62da str r2, [r3, #44] ; 0x2c /* Process unlocked */ __HAL_UNLOCK(hadc); - 800574e: 687b ldr r3, [r7, #4] - 8005750: 2200 movs r2, #0 - 8005752: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 80059ba: 687b ldr r3, [r7, #4] + 80059bc: 2200 movs r2, #0 + 80059be: f883 2024 strb.w r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005756: 2301 movs r3, #1 - 8005758: e007 b.n 800576a + 80059c2: 2301 movs r3, #1 + 80059c4: e007 b.n 80059d6 while(ADC_IS_ENABLE(hadc) == RESET) - 800575a: 687b ldr r3, [r7, #4] - 800575c: 681b ldr r3, [r3, #0] - 800575e: 689b ldr r3, [r3, #8] - 8005760: f003 0301 and.w r3, r3, #1 - 8005764: 2b01 cmp r3, #1 - 8005766: d1d8 bne.n 800571a + 80059c6: 687b ldr r3, [r7, #4] + 80059c8: 681b ldr r3, [r3, #0] + 80059ca: 689b ldr r3, [r3, #8] + 80059cc: f003 0301 and.w r3, r3, #1 + 80059d0: 2b01 cmp r3, #1 + 80059d2: d1d8 bne.n 8005986 } } } /* Return HAL status */ return HAL_OK; - 8005768: 2300 movs r3, #0 + 80059d4: 2300 movs r3, #0 } - 800576a: 4618 mov r0, r3 - 800576c: 3710 adds r7, #16 - 800576e: 46bd mov sp, r7 - 8005770: bd80 pop {r7, pc} - 8005772: bf00 nop - 8005774: 20000008 .word 0x20000008 - 8005778: 431bde83 .word 0x431bde83 + 80059d6: 4618 mov r0, r3 + 80059d8: 3710 adds r7, #16 + 80059da: 46bd mov sp, r7 + 80059dc: bd80 pop {r7, pc} + 80059de: bf00 nop + 80059e0: 20000008 .word 0x20000008 + 80059e4: 431bde83 .word 0x431bde83 -0800577c : +080059e8 : * stopped to disable the ADC. * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc) { - 800577c: b580 push {r7, lr} - 800577e: b084 sub sp, #16 - 8005780: af00 add r7, sp, #0 - 8005782: 6078 str r0, [r7, #4] + 80059e8: b580 push {r7, lr} + 80059ea: b084 sub sp, #16 + 80059ec: af00 add r7, sp, #0 + 80059ee: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8005784: 2300 movs r3, #0 - 8005786: 60fb str r3, [r7, #12] + 80059f0: 2300 movs r3, #0 + 80059f2: 60fb str r3, [r7, #12] /* Verification if ADC is not already disabled */ if (ADC_IS_ENABLE(hadc) != RESET) - 8005788: 687b ldr r3, [r7, #4] - 800578a: 681b ldr r3, [r3, #0] - 800578c: 689b ldr r3, [r3, #8] - 800578e: f003 0301 and.w r3, r3, #1 - 8005792: 2b01 cmp r3, #1 - 8005794: d12e bne.n 80057f4 + 80059f4: 687b ldr r3, [r7, #4] + 80059f6: 681b ldr r3, [r3, #0] + 80059f8: 689b ldr r3, [r3, #8] + 80059fa: f003 0301 and.w r3, r3, #1 + 80059fe: 2b01 cmp r3, #1 + 8005a00: d12e bne.n 8005a60 { /* Disable the ADC peripheral */ __HAL_ADC_DISABLE(hadc); - 8005796: 687b ldr r3, [r7, #4] - 8005798: 681b ldr r3, [r3, #0] - 800579a: 689a ldr r2, [r3, #8] - 800579c: 687b ldr r3, [r7, #4] - 800579e: 681b ldr r3, [r3, #0] - 80057a0: f022 0201 bic.w r2, r2, #1 - 80057a4: 609a str r2, [r3, #8] + 8005a02: 687b ldr r3, [r7, #4] + 8005a04: 681b ldr r3, [r3, #0] + 8005a06: 689a ldr r2, [r3, #8] + 8005a08: 687b ldr r3, [r7, #4] + 8005a0a: 681b ldr r3, [r3, #0] + 8005a0c: f022 0201 bic.w r2, r2, #1 + 8005a10: 609a str r2, [r3, #8] /* Get tick count */ tickstart = HAL_GetTick(); - 80057a6: f7ff fba5 bl 8004ef4 - 80057aa: 60f8 str r0, [r7, #12] + 8005a12: f7ff fba5 bl 8005160 + 8005a16: 60f8 str r0, [r7, #12] /* Wait for ADC effectively disabled */ while(ADC_IS_ENABLE(hadc) != RESET) - 80057ac: e01b b.n 80057e6 + 8005a18: e01b b.n 8005a52 { if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) - 80057ae: f7ff fba1 bl 8004ef4 - 80057b2: 4602 mov r2, r0 - 80057b4: 68fb ldr r3, [r7, #12] - 80057b6: 1ad3 subs r3, r2, r3 - 80057b8: 2b02 cmp r3, #2 - 80057ba: d914 bls.n 80057e6 + 8005a1a: f7ff fba1 bl 8005160 + 8005a1e: 4602 mov r2, r0 + 8005a20: 68fb ldr r3, [r7, #12] + 8005a22: 1ad3 subs r3, r2, r3 + 8005a24: 2b02 cmp r3, #2 + 8005a26: d914 bls.n 8005a52 { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) != RESET) - 80057bc: 687b ldr r3, [r7, #4] - 80057be: 681b ldr r3, [r3, #0] - 80057c0: 689b ldr r3, [r3, #8] - 80057c2: f003 0301 and.w r3, r3, #1 - 80057c6: 2b01 cmp r3, #1 - 80057c8: d10d bne.n 80057e6 + 8005a28: 687b ldr r3, [r7, #4] + 8005a2a: 681b ldr r3, [r3, #0] + 8005a2c: 689b ldr r3, [r3, #8] + 8005a2e: f003 0301 and.w r3, r3, #1 + 8005a32: 2b01 cmp r3, #1 + 8005a34: d10d bne.n 8005a52 { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80057ca: 687b ldr r3, [r7, #4] - 80057cc: 6a9b ldr r3, [r3, #40] ; 0x28 - 80057ce: f043 0210 orr.w r2, r3, #16 - 80057d2: 687b ldr r3, [r7, #4] - 80057d4: 629a str r2, [r3, #40] ; 0x28 + 8005a36: 687b ldr r3, [r7, #4] + 8005a38: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005a3a: f043 0210 orr.w r2, r3, #16 + 8005a3e: 687b ldr r3, [r7, #4] + 8005a40: 629a str r2, [r3, #40] ; 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80057d6: 687b ldr r3, [r7, #4] - 80057d8: 6adb ldr r3, [r3, #44] ; 0x2c - 80057da: f043 0201 orr.w r2, r3, #1 - 80057de: 687b ldr r3, [r7, #4] - 80057e0: 62da str r2, [r3, #44] ; 0x2c + 8005a42: 687b ldr r3, [r7, #4] + 8005a44: 6adb ldr r3, [r3, #44] ; 0x2c + 8005a46: f043 0201 orr.w r2, r3, #1 + 8005a4a: 687b ldr r3, [r7, #4] + 8005a4c: 62da str r2, [r3, #44] ; 0x2c return HAL_ERROR; - 80057e2: 2301 movs r3, #1 - 80057e4: e007 b.n 80057f6 + 8005a4e: 2301 movs r3, #1 + 8005a50: e007 b.n 8005a62 while(ADC_IS_ENABLE(hadc) != RESET) - 80057e6: 687b ldr r3, [r7, #4] - 80057e8: 681b ldr r3, [r3, #0] - 80057ea: 689b ldr r3, [r3, #8] - 80057ec: f003 0301 and.w r3, r3, #1 - 80057f0: 2b01 cmp r3, #1 - 80057f2: d0dc beq.n 80057ae + 8005a52: 687b ldr r3, [r7, #4] + 8005a54: 681b ldr r3, [r3, #0] + 8005a56: 689b ldr r3, [r3, #8] + 8005a58: f003 0301 and.w r3, r3, #1 + 8005a5c: 2b01 cmp r3, #1 + 8005a5e: d0dc beq.n 8005a1a } } } /* Return HAL status */ return HAL_OK; - 80057f4: 2300 movs r3, #0 + 8005a60: 2300 movs r3, #0 } - 80057f6: 4618 mov r0, r3 - 80057f8: 3710 adds r7, #16 - 80057fa: 46bd mov sp, r7 - 80057fc: bd80 pop {r7, pc} + 8005a62: 4618 mov r0, r3 + 8005a64: 3710 adds r7, #16 + 8005a66: 46bd mov sp, r7 + 8005a68: bd80 pop {r7, pc} ... -08005800 : +08005a6c : * the completion of this function. * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc) { - 8005800: b590 push {r4, r7, lr} - 8005802: b087 sub sp, #28 - 8005804: af00 add r7, sp, #0 - 8005806: 6078 str r0, [r7, #4] + 8005a6c: b590 push {r4, r7, lr} + 8005a6e: b087 sub sp, #28 + 8005a70: af00 add r7, sp, #0 + 8005a72: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8005808: 2300 movs r3, #0 - 800580a: 75fb strb r3, [r7, #23] + 8005a74: 2300 movs r3, #0 + 8005a76: 75fb strb r3, [r7, #23] uint32_t tickstart; __IO uint32_t wait_loop_index = 0U; - 800580c: 2300 movs r3, #0 - 800580e: 60fb str r3, [r7, #12] + 8005a78: 2300 movs r3, #0 + 8005a7a: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); /* Process locked */ __HAL_LOCK(hadc); - 8005810: 687b ldr r3, [r7, #4] - 8005812: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 8005816: 2b01 cmp r3, #1 - 8005818: d101 bne.n 800581e - 800581a: 2302 movs r3, #2 - 800581c: e095 b.n 800594a - 800581e: 687b ldr r3, [r7, #4] - 8005820: 2201 movs r2, #1 - 8005822: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005a7c: 687b ldr r3, [r7, #4] + 8005a7e: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 8005a82: 2b01 cmp r3, #1 + 8005a84: d101 bne.n 8005a8a + 8005a86: 2302 movs r3, #2 + 8005a88: e095 b.n 8005bb6 + 8005a8a: 687b ldr r3, [r7, #4] + 8005a8c: 2201 movs r2, #1 + 8005a8e: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* 1. Calibration prerequisite: */ /* - ADC must be disabled for at least two ADC clock cycles in disable */ /* mode before ADC enable */ /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); - 8005826: 6878 ldr r0, [r7, #4] - 8005828: f7ff ffa8 bl 800577c - 800582c: 4603 mov r3, r0 - 800582e: 75fb strb r3, [r7, #23] + 8005a92: 6878 ldr r0, [r7, #4] + 8005a94: f7ff ffa8 bl 80059e8 + 8005a98: 4603 mov r3, r0 + 8005a9a: 75fb strb r3, [r7, #23] /* Check if ADC is effectively disabled */ if (tmp_hal_status == HAL_OK) - 8005830: 7dfb ldrb r3, [r7, #23] - 8005832: 2b00 cmp r3, #0 - 8005834: f040 8084 bne.w 8005940 + 8005a9c: 7dfb ldrb r3, [r7, #23] + 8005a9e: 2b00 cmp r3, #0 + 8005aa0: f040 8084 bne.w 8005bac { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8005838: 687b ldr r3, [r7, #4] - 800583a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800583c: f423 5388 bic.w r3, r3, #4352 ; 0x1100 - 8005840: f023 0302 bic.w r3, r3, #2 - 8005844: f043 0202 orr.w r2, r3, #2 - 8005848: 687b ldr r3, [r7, #4] - 800584a: 629a str r2, [r3, #40] ; 0x28 + 8005aa4: 687b ldr r3, [r7, #4] + 8005aa6: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005aa8: f423 5388 bic.w r3, r3, #4352 ; 0x1100 + 8005aac: f023 0302 bic.w r3, r3, #2 + 8005ab0: f043 0202 orr.w r2, r3, #2 + 8005ab4: 687b ldr r3, [r7, #4] + 8005ab6: 629a str r2, [r3, #40] ; 0x28 /* Hardware prerequisite: delay before starting the calibration. */ /* - Computation of CPU clock cycles corresponding to ADC clock cycles. */ /* - Wait for the expected ADC clock cycles delay */ wait_loop_index = ((SystemCoreClock / HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC)) - 800584c: 4b41 ldr r3, [pc, #260] ; (8005954 ) - 800584e: 681c ldr r4, [r3, #0] - 8005850: 2002 movs r0, #2 - 8005852: f002 f99d bl 8007b90 - 8005856: 4603 mov r3, r0 - 8005858: fbb4 f3f3 udiv r3, r4, r3 + 8005ab8: 4b41 ldr r3, [pc, #260] ; (8005bc0 ) + 8005aba: 681c ldr r4, [r3, #0] + 8005abc: 2002 movs r0, #2 + 8005abe: f002 f99d bl 8007dfc + 8005ac2: 4603 mov r3, r0 + 8005ac4: fbb4 f3f3 udiv r3, r4, r3 * ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES ); - 800585c: 005b lsls r3, r3, #1 + 8005ac8: 005b lsls r3, r3, #1 wait_loop_index = ((SystemCoreClock - 800585e: 60fb str r3, [r7, #12] + 8005aca: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) - 8005860: e002 b.n 8005868 + 8005acc: e002 b.n 8005ad4 { wait_loop_index--; - 8005862: 68fb ldr r3, [r7, #12] - 8005864: 3b01 subs r3, #1 - 8005866: 60fb str r3, [r7, #12] + 8005ace: 68fb ldr r3, [r7, #12] + 8005ad0: 3b01 subs r3, #1 + 8005ad2: 60fb str r3, [r7, #12] while(wait_loop_index != 0U) - 8005868: 68fb ldr r3, [r7, #12] - 800586a: 2b00 cmp r3, #0 - 800586c: d1f9 bne.n 8005862 + 8005ad4: 68fb ldr r3, [r7, #12] + 8005ad6: 2b00 cmp r3, #0 + 8005ad8: d1f9 bne.n 8005ace } /* 2. Enable the ADC peripheral */ ADC_Enable(hadc); - 800586e: 6878 ldr r0, [r7, #4] - 8005870: f7ff ff2a bl 80056c8 + 8005ada: 6878 ldr r0, [r7, #4] + 8005adc: f7ff ff2a bl 8005934 /* 3. Resets ADC calibration registers */ SET_BIT(hadc->Instance->CR2, ADC_CR2_RSTCAL); - 8005874: 687b ldr r3, [r7, #4] - 8005876: 681b ldr r3, [r3, #0] - 8005878: 689a ldr r2, [r3, #8] - 800587a: 687b ldr r3, [r7, #4] - 800587c: 681b ldr r3, [r3, #0] - 800587e: f042 0208 orr.w r2, r2, #8 - 8005882: 609a str r2, [r3, #8] + 8005ae0: 687b ldr r3, [r7, #4] + 8005ae2: 681b ldr r3, [r3, #0] + 8005ae4: 689a ldr r2, [r3, #8] + 8005ae6: 687b ldr r3, [r7, #4] + 8005ae8: 681b ldr r3, [r3, #0] + 8005aea: f042 0208 orr.w r2, r2, #8 + 8005aee: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); - 8005884: f7ff fb36 bl 8004ef4 - 8005888: 6138 str r0, [r7, #16] + 8005af0: f7ff fb36 bl 8005160 + 8005af4: 6138 str r0, [r7, #16] /* Wait for calibration reset completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) - 800588a: e01b b.n 80058c4 + 8005af6: e01b b.n 8005b30 { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) - 800588c: f7ff fb32 bl 8004ef4 - 8005890: 4602 mov r2, r0 - 8005892: 693b ldr r3, [r7, #16] - 8005894: 1ad3 subs r3, r2, r3 - 8005896: 2b0a cmp r3, #10 - 8005898: d914 bls.n 80058c4 + 8005af8: f7ff fb32 bl 8005160 + 8005afc: 4602 mov r2, r0 + 8005afe: 693b ldr r3, [r7, #16] + 8005b00: 1ad3 subs r3, r2, r3 + 8005b02: 2b0a cmp r3, #10 + 8005b04: d914 bls.n 8005b30 { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) - 800589a: 687b ldr r3, [r7, #4] - 800589c: 681b ldr r3, [r3, #0] - 800589e: 689b ldr r3, [r3, #8] - 80058a0: f003 0308 and.w r3, r3, #8 - 80058a4: 2b00 cmp r3, #0 - 80058a6: d00d beq.n 80058c4 + 8005b06: 687b ldr r3, [r7, #4] + 8005b08: 681b ldr r3, [r3, #0] + 8005b0a: 689b ldr r3, [r3, #8] + 8005b0c: f003 0308 and.w r3, r3, #8 + 8005b10: 2b00 cmp r3, #0 + 8005b12: d00d beq.n 8005b30 { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, - 80058a8: 687b ldr r3, [r7, #4] - 80058aa: 6a9b ldr r3, [r3, #40] ; 0x28 - 80058ac: f023 0312 bic.w r3, r3, #18 - 80058b0: f043 0210 orr.w r2, r3, #16 - 80058b4: 687b ldr r3, [r7, #4] - 80058b6: 629a str r2, [r3, #40] ; 0x28 + 8005b14: 687b ldr r3, [r7, #4] + 8005b16: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005b18: f023 0312 bic.w r3, r3, #18 + 8005b1c: f043 0210 orr.w r2, r3, #16 + 8005b20: 687b ldr r3, [r7, #4] + 8005b22: 629a str r2, [r3, #40] ; 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); - 80058b8: 687b ldr r3, [r7, #4] - 80058ba: 2200 movs r2, #0 - 80058bc: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005b24: 687b ldr r3, [r7, #4] + 8005b26: 2200 movs r2, #0 + 8005b28: f883 2024 strb.w r2, [r3, #36] ; 0x24 return HAL_ERROR; - 80058c0: 2301 movs r3, #1 - 80058c2: e042 b.n 800594a + 8005b2c: 2301 movs r3, #1 + 8005b2e: e042 b.n 8005bb6 while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_RSTCAL)) - 80058c4: 687b ldr r3, [r7, #4] - 80058c6: 681b ldr r3, [r3, #0] - 80058c8: 689b ldr r3, [r3, #8] - 80058ca: f003 0308 and.w r3, r3, #8 - 80058ce: 2b00 cmp r3, #0 - 80058d0: d1dc bne.n 800588c + 8005b30: 687b ldr r3, [r7, #4] + 8005b32: 681b ldr r3, [r3, #0] + 8005b34: 689b ldr r3, [r3, #8] + 8005b36: f003 0308 and.w r3, r3, #8 + 8005b3a: 2b00 cmp r3, #0 + 8005b3c: d1dc bne.n 8005af8 } } } /* 4. Start ADC calibration */ SET_BIT(hadc->Instance->CR2, ADC_CR2_CAL); - 80058d2: 687b ldr r3, [r7, #4] - 80058d4: 681b ldr r3, [r3, #0] - 80058d6: 689a ldr r2, [r3, #8] - 80058d8: 687b ldr r3, [r7, #4] - 80058da: 681b ldr r3, [r3, #0] - 80058dc: f042 0204 orr.w r2, r2, #4 - 80058e0: 609a str r2, [r3, #8] + 8005b3e: 687b ldr r3, [r7, #4] + 8005b40: 681b ldr r3, [r3, #0] + 8005b42: 689a ldr r2, [r3, #8] + 8005b44: 687b ldr r3, [r7, #4] + 8005b46: 681b ldr r3, [r3, #0] + 8005b48: f042 0204 orr.w r2, r2, #4 + 8005b4c: 609a str r2, [r3, #8] tickstart = HAL_GetTick(); - 80058e2: f7ff fb07 bl 8004ef4 - 80058e6: 6138 str r0, [r7, #16] + 8005b4e: f7ff fb07 bl 8005160 + 8005b52: 6138 str r0, [r7, #16] /* Wait for calibration completion */ while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) - 80058e8: e01b b.n 8005922 + 8005b54: e01b b.n 8005b8e { if((HAL_GetTick() - tickstart) > ADC_CALIBRATION_TIMEOUT) - 80058ea: f7ff fb03 bl 8004ef4 - 80058ee: 4602 mov r2, r0 - 80058f0: 693b ldr r3, [r7, #16] - 80058f2: 1ad3 subs r3, r2, r3 - 80058f4: 2b0a cmp r3, #10 - 80058f6: d914 bls.n 8005922 + 8005b56: f7ff fb03 bl 8005160 + 8005b5a: 4602 mov r2, r0 + 8005b5c: 693b ldr r3, [r7, #16] + 8005b5e: 1ad3 subs r3, r2, r3 + 8005b60: 2b0a cmp r3, #10 + 8005b62: d914 bls.n 8005b8e { /* New check to avoid false timeout detection in case of preemption */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) - 80058f8: 687b ldr r3, [r7, #4] - 80058fa: 681b ldr r3, [r3, #0] - 80058fc: 689b ldr r3, [r3, #8] - 80058fe: f003 0304 and.w r3, r3, #4 - 8005902: 2b00 cmp r3, #0 - 8005904: d00d beq.n 8005922 + 8005b64: 687b ldr r3, [r7, #4] + 8005b66: 681b ldr r3, [r3, #0] + 8005b68: 689b ldr r3, [r3, #8] + 8005b6a: f003 0304 and.w r3, r3, #4 + 8005b6e: 2b00 cmp r3, #0 + 8005b70: d00d beq.n 8005b8e { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, - 8005906: 687b ldr r3, [r7, #4] - 8005908: 6a9b ldr r3, [r3, #40] ; 0x28 - 800590a: f023 0312 bic.w r3, r3, #18 - 800590e: f043 0210 orr.w r2, r3, #16 - 8005912: 687b ldr r3, [r7, #4] - 8005914: 629a str r2, [r3, #40] ; 0x28 + 8005b72: 687b ldr r3, [r7, #4] + 8005b74: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005b76: f023 0312 bic.w r3, r3, #18 + 8005b7a: f043 0210 orr.w r2, r3, #16 + 8005b7e: 687b ldr r3, [r7, #4] + 8005b80: 629a str r2, [r3, #40] ; 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Process unlocked */ __HAL_UNLOCK(hadc); - 8005916: 687b ldr r3, [r7, #4] - 8005918: 2200 movs r2, #0 - 800591a: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005b82: 687b ldr r3, [r7, #4] + 8005b84: 2200 movs r2, #0 + 8005b86: f883 2024 strb.w r2, [r3, #36] ; 0x24 return HAL_ERROR; - 800591e: 2301 movs r3, #1 - 8005920: e013 b.n 800594a + 8005b8a: 2301 movs r3, #1 + 8005b8c: e013 b.n 8005bb6 while(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_CAL)) - 8005922: 687b ldr r3, [r7, #4] - 8005924: 681b ldr r3, [r3, #0] - 8005926: 689b ldr r3, [r3, #8] - 8005928: f003 0304 and.w r3, r3, #4 - 800592c: 2b00 cmp r3, #0 - 800592e: d1dc bne.n 80058ea + 8005b8e: 687b ldr r3, [r7, #4] + 8005b90: 681b ldr r3, [r3, #0] + 8005b92: 689b ldr r3, [r3, #8] + 8005b94: f003 0304 and.w r3, r3, #4 + 8005b98: 2b00 cmp r3, #0 + 8005b9a: d1dc bne.n 8005b56 } } } /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8005930: 687b ldr r3, [r7, #4] - 8005932: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005934: f023 0303 bic.w r3, r3, #3 - 8005938: f043 0201 orr.w r2, r3, #1 - 800593c: 687b ldr r3, [r7, #4] - 800593e: 629a str r2, [r3, #40] ; 0x28 + 8005b9c: 687b ldr r3, [r7, #4] + 8005b9e: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005ba0: f023 0303 bic.w r3, r3, #3 + 8005ba4: f043 0201 orr.w r2, r3, #1 + 8005ba8: 687b ldr r3, [r7, #4] + 8005baa: 629a str r2, [r3, #40] ; 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } /* Process unlocked */ __HAL_UNLOCK(hadc); - 8005940: 687b ldr r3, [r7, #4] - 8005942: 2200 movs r2, #0 - 8005944: f883 2024 strb.w r2, [r3, #36] ; 0x24 + 8005bac: 687b ldr r3, [r7, #4] + 8005bae: 2200 movs r2, #0 + 8005bb0: f883 2024 strb.w r2, [r3, #36] ; 0x24 /* Return function status */ return tmp_hal_status; - 8005948: 7dfb ldrb r3, [r7, #23] + 8005bb4: 7dfb ldrb r3, [r7, #23] } - 800594a: 4618 mov r0, r3 - 800594c: 371c adds r7, #28 - 800594e: 46bd mov sp, r7 - 8005950: bd90 pop {r4, r7, pc} - 8005952: bf00 nop - 8005954: 20000008 .word 0x20000008 + 8005bb6: 4618 mov r0, r3 + 8005bb8: 371c adds r7, #28 + 8005bba: 46bd mov sp, r7 + 8005bbc: bd90 pop {r4, r7, pc} + 8005bbe: bf00 nop + 8005bc0: 20000008 .word 0x20000008 -08005958 : +08005bc4 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan) { - 8005958: b580 push {r7, lr} - 800595a: b084 sub sp, #16 - 800595c: af00 add r7, sp, #0 - 800595e: 6078 str r0, [r7, #4] + 8005bc4: b580 push {r7, lr} + 8005bc6: b084 sub sp, #16 + 8005bc8: af00 add r7, sp, #0 + 8005bca: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) - 8005960: 687b ldr r3, [r7, #4] - 8005962: 2b00 cmp r3, #0 - 8005964: d101 bne.n 800596a + 8005bcc: 687b ldr r3, [r7, #4] + 8005bce: 2b00 cmp r3, #0 + 8005bd0: d101 bne.n 8005bd6 { return HAL_ERROR; - 8005966: 2301 movs r3, #1 - 8005968: e0ed b.n 8005b46 + 8005bd2: 2301 movs r3, #1 + 8005bd4: e0ed b.n 8005db2 /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) - 800596a: 687b ldr r3, [r7, #4] - 800596c: f893 3020 ldrb.w r3, [r3, #32] - 8005970: b2db uxtb r3, r3 - 8005972: 2b00 cmp r3, #0 - 8005974: d102 bne.n 800597c + 8005bd6: 687b ldr r3, [r7, #4] + 8005bd8: f893 3020 ldrb.w r3, [r3, #32] + 8005bdc: b2db uxtb r3, r3 + 8005bde: 2b00 cmp r3, #0 + 8005be0: d102 bne.n 8005be8 { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); - 8005976: 6878 ldr r0, [r7, #4] - 8005978: f7fb ff1a bl 80017b0 + 8005be2: 6878 ldr r0, [r7, #4] + 8005be4: f7fb ff08 bl 80019f8 } #endif /* (USE_HAL_CAN_REGISTER_CALLBACKS) */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); - 800597c: 687b ldr r3, [r7, #4] - 800597e: 681b ldr r3, [r3, #0] - 8005980: 681a ldr r2, [r3, #0] - 8005982: 687b ldr r3, [r7, #4] - 8005984: 681b ldr r3, [r3, #0] - 8005986: f042 0201 orr.w r2, r2, #1 - 800598a: 601a str r2, [r3, #0] + 8005be8: 687b ldr r3, [r7, #4] + 8005bea: 681b ldr r3, [r3, #0] + 8005bec: 681a ldr r2, [r3, #0] + 8005bee: 687b ldr r3, [r7, #4] + 8005bf0: 681b ldr r3, [r3, #0] + 8005bf2: f042 0201 orr.w r2, r2, #1 + 8005bf6: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 800598c: f7ff fab2 bl 8004ef4 - 8005990: 60f8 str r0, [r7, #12] + 8005bf8: f7ff fab2 bl 8005160 + 8005bfc: 60f8 str r0, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 8005992: e012 b.n 80059ba + 8005bfe: e012 b.n 8005c26 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8005994: f7ff faae bl 8004ef4 - 8005998: 4602 mov r2, r0 - 800599a: 68fb ldr r3, [r7, #12] - 800599c: 1ad3 subs r3, r2, r3 - 800599e: 2b0a cmp r3, #10 - 80059a0: d90b bls.n 80059ba + 8005c00: f7ff faae bl 8005160 + 8005c04: 4602 mov r2, r0 + 8005c06: 68fb ldr r3, [r7, #12] + 8005c08: 1ad3 subs r3, r2, r3 + 8005c0a: 2b0a cmp r3, #10 + 8005c0c: d90b bls.n 8005c26 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 80059a2: 687b ldr r3, [r7, #4] - 80059a4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80059a6: f443 3200 orr.w r2, r3, #131072 ; 0x20000 - 80059aa: 687b ldr r3, [r7, #4] - 80059ac: 625a str r2, [r3, #36] ; 0x24 + 8005c0e: 687b ldr r3, [r7, #4] + 8005c10: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005c12: f443 3200 orr.w r2, r3, #131072 ; 0x20000 + 8005c16: 687b ldr r3, [r7, #4] + 8005c18: 625a str r2, [r3, #36] ; 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 80059ae: 687b ldr r3, [r7, #4] - 80059b0: 2205 movs r2, #5 - 80059b2: f883 2020 strb.w r2, [r3, #32] + 8005c1a: 687b ldr r3, [r7, #4] + 8005c1c: 2205 movs r2, #5 + 8005c1e: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 80059b6: 2301 movs r3, #1 - 80059b8: e0c5 b.n 8005b46 + 8005c22: 2301 movs r3, #1 + 8005c24: e0c5 b.n 8005db2 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 80059ba: 687b ldr r3, [r7, #4] - 80059bc: 681b ldr r3, [r3, #0] - 80059be: 685b ldr r3, [r3, #4] - 80059c0: f003 0301 and.w r3, r3, #1 - 80059c4: 2b00 cmp r3, #0 - 80059c6: d0e5 beq.n 8005994 + 8005c26: 687b ldr r3, [r7, #4] + 8005c28: 681b ldr r3, [r3, #0] + 8005c2a: 685b ldr r3, [r3, #4] + 8005c2c: f003 0301 and.w r3, r3, #1 + 8005c30: 2b00 cmp r3, #0 + 8005c32: d0e5 beq.n 8005c00 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); - 80059c8: 687b ldr r3, [r7, #4] - 80059ca: 681b ldr r3, [r3, #0] - 80059cc: 681a ldr r2, [r3, #0] - 80059ce: 687b ldr r3, [r7, #4] - 80059d0: 681b ldr r3, [r3, #0] - 80059d2: f022 0202 bic.w r2, r2, #2 - 80059d6: 601a str r2, [r3, #0] + 8005c34: 687b ldr r3, [r7, #4] + 8005c36: 681b ldr r3, [r3, #0] + 8005c38: 681a ldr r2, [r3, #0] + 8005c3a: 687b ldr r3, [r7, #4] + 8005c3c: 681b ldr r3, [r3, #0] + 8005c3e: f022 0202 bic.w r2, r2, #2 + 8005c42: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 80059d8: f7ff fa8c bl 8004ef4 - 80059dc: 60f8 str r0, [r7, #12] + 8005c44: f7ff fa8c bl 8005160 + 8005c48: 60f8 str r0, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) - 80059de: e012 b.n 8005a06 + 8005c4a: e012 b.n 8005c72 { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 80059e0: f7ff fa88 bl 8004ef4 - 80059e4: 4602 mov r2, r0 - 80059e6: 68fb ldr r3, [r7, #12] - 80059e8: 1ad3 subs r3, r2, r3 - 80059ea: 2b0a cmp r3, #10 - 80059ec: d90b bls.n 8005a06 + 8005c4c: f7ff fa88 bl 8005160 + 8005c50: 4602 mov r2, r0 + 8005c52: 68fb ldr r3, [r7, #12] + 8005c54: 1ad3 subs r3, r2, r3 + 8005c56: 2b0a cmp r3, #10 + 8005c58: d90b bls.n 8005c72 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 80059ee: 687b ldr r3, [r7, #4] - 80059f0: 6a5b ldr r3, [r3, #36] ; 0x24 - 80059f2: f443 3200 orr.w r2, r3, #131072 ; 0x20000 - 80059f6: 687b ldr r3, [r7, #4] - 80059f8: 625a str r2, [r3, #36] ; 0x24 + 8005c5a: 687b ldr r3, [r7, #4] + 8005c5c: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005c5e: f443 3200 orr.w r2, r3, #131072 ; 0x20000 + 8005c62: 687b ldr r3, [r7, #4] + 8005c64: 625a str r2, [r3, #36] ; 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 80059fa: 687b ldr r3, [r7, #4] - 80059fc: 2205 movs r2, #5 - 80059fe: f883 2020 strb.w r2, [r3, #32] + 8005c66: 687b ldr r3, [r7, #4] + 8005c68: 2205 movs r2, #5 + 8005c6a: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 8005a02: 2301 movs r3, #1 - 8005a04: e09f b.n 8005b46 + 8005c6e: 2301 movs r3, #1 + 8005c70: e09f b.n 8005db2 while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) - 8005a06: 687b ldr r3, [r7, #4] - 8005a08: 681b ldr r3, [r3, #0] - 8005a0a: 685b ldr r3, [r3, #4] - 8005a0c: f003 0302 and.w r3, r3, #2 - 8005a10: 2b00 cmp r3, #0 - 8005a12: d1e5 bne.n 80059e0 + 8005c72: 687b ldr r3, [r7, #4] + 8005c74: 681b ldr r3, [r3, #0] + 8005c76: 685b ldr r3, [r3, #4] + 8005c78: f003 0302 and.w r3, r3, #2 + 8005c7c: 2b00 cmp r3, #0 + 8005c7e: d1e5 bne.n 8005c4c } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) - 8005a14: 687b ldr r3, [r7, #4] - 8005a16: 7e1b ldrb r3, [r3, #24] - 8005a18: 2b01 cmp r3, #1 - 8005a1a: d108 bne.n 8005a2e + 8005c80: 687b ldr r3, [r7, #4] + 8005c82: 7e1b ldrb r3, [r3, #24] + 8005c84: 2b01 cmp r3, #1 + 8005c86: d108 bne.n 8005c9a { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); - 8005a1c: 687b ldr r3, [r7, #4] - 8005a1e: 681b ldr r3, [r3, #0] - 8005a20: 681a ldr r2, [r3, #0] - 8005a22: 687b ldr r3, [r7, #4] - 8005a24: 681b ldr r3, [r3, #0] - 8005a26: f042 0280 orr.w r2, r2, #128 ; 0x80 - 8005a2a: 601a str r2, [r3, #0] - 8005a2c: e007 b.n 8005a3e + 8005c88: 687b ldr r3, [r7, #4] + 8005c8a: 681b ldr r3, [r3, #0] + 8005c8c: 681a ldr r2, [r3, #0] + 8005c8e: 687b ldr r3, [r7, #4] + 8005c90: 681b ldr r3, [r3, #0] + 8005c92: f042 0280 orr.w r2, r2, #128 ; 0x80 + 8005c96: 601a str r2, [r3, #0] + 8005c98: e007 b.n 8005caa } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); - 8005a2e: 687b ldr r3, [r7, #4] - 8005a30: 681b ldr r3, [r3, #0] - 8005a32: 681a ldr r2, [r3, #0] - 8005a34: 687b ldr r3, [r7, #4] - 8005a36: 681b ldr r3, [r3, #0] - 8005a38: f022 0280 bic.w r2, r2, #128 ; 0x80 - 8005a3c: 601a str r2, [r3, #0] + 8005c9a: 687b ldr r3, [r7, #4] + 8005c9c: 681b ldr r3, [r3, #0] + 8005c9e: 681a ldr r2, [r3, #0] + 8005ca0: 687b ldr r3, [r7, #4] + 8005ca2: 681b ldr r3, [r3, #0] + 8005ca4: f022 0280 bic.w r2, r2, #128 ; 0x80 + 8005ca8: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) - 8005a3e: 687b ldr r3, [r7, #4] - 8005a40: 7e5b ldrb r3, [r3, #25] - 8005a42: 2b01 cmp r3, #1 - 8005a44: d108 bne.n 8005a58 + 8005caa: 687b ldr r3, [r7, #4] + 8005cac: 7e5b ldrb r3, [r3, #25] + 8005cae: 2b01 cmp r3, #1 + 8005cb0: d108 bne.n 8005cc4 { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); - 8005a46: 687b ldr r3, [r7, #4] - 8005a48: 681b ldr r3, [r3, #0] - 8005a4a: 681a ldr r2, [r3, #0] - 8005a4c: 687b ldr r3, [r7, #4] - 8005a4e: 681b ldr r3, [r3, #0] - 8005a50: f042 0240 orr.w r2, r2, #64 ; 0x40 - 8005a54: 601a str r2, [r3, #0] - 8005a56: e007 b.n 8005a68 + 8005cb2: 687b ldr r3, [r7, #4] + 8005cb4: 681b ldr r3, [r3, #0] + 8005cb6: 681a ldr r2, [r3, #0] + 8005cb8: 687b ldr r3, [r7, #4] + 8005cba: 681b ldr r3, [r3, #0] + 8005cbc: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8005cc0: 601a str r2, [r3, #0] + 8005cc2: e007 b.n 8005cd4 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); - 8005a58: 687b ldr r3, [r7, #4] - 8005a5a: 681b ldr r3, [r3, #0] - 8005a5c: 681a ldr r2, [r3, #0] - 8005a5e: 687b ldr r3, [r7, #4] - 8005a60: 681b ldr r3, [r3, #0] - 8005a62: f022 0240 bic.w r2, r2, #64 ; 0x40 - 8005a66: 601a str r2, [r3, #0] + 8005cc4: 687b ldr r3, [r7, #4] + 8005cc6: 681b ldr r3, [r3, #0] + 8005cc8: 681a ldr r2, [r3, #0] + 8005cca: 687b ldr r3, [r7, #4] + 8005ccc: 681b ldr r3, [r3, #0] + 8005cce: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8005cd2: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) - 8005a68: 687b ldr r3, [r7, #4] - 8005a6a: 7e9b ldrb r3, [r3, #26] - 8005a6c: 2b01 cmp r3, #1 - 8005a6e: d108 bne.n 8005a82 + 8005cd4: 687b ldr r3, [r7, #4] + 8005cd6: 7e9b ldrb r3, [r3, #26] + 8005cd8: 2b01 cmp r3, #1 + 8005cda: d108 bne.n 8005cee { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); - 8005a70: 687b ldr r3, [r7, #4] - 8005a72: 681b ldr r3, [r3, #0] - 8005a74: 681a ldr r2, [r3, #0] - 8005a76: 687b ldr r3, [r7, #4] - 8005a78: 681b ldr r3, [r3, #0] - 8005a7a: f042 0220 orr.w r2, r2, #32 - 8005a7e: 601a str r2, [r3, #0] - 8005a80: e007 b.n 8005a92 + 8005cdc: 687b ldr r3, [r7, #4] + 8005cde: 681b ldr r3, [r3, #0] + 8005ce0: 681a ldr r2, [r3, #0] + 8005ce2: 687b ldr r3, [r7, #4] + 8005ce4: 681b ldr r3, [r3, #0] + 8005ce6: f042 0220 orr.w r2, r2, #32 + 8005cea: 601a str r2, [r3, #0] + 8005cec: e007 b.n 8005cfe } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); - 8005a82: 687b ldr r3, [r7, #4] - 8005a84: 681b ldr r3, [r3, #0] - 8005a86: 681a ldr r2, [r3, #0] - 8005a88: 687b ldr r3, [r7, #4] - 8005a8a: 681b ldr r3, [r3, #0] - 8005a8c: f022 0220 bic.w r2, r2, #32 - 8005a90: 601a str r2, [r3, #0] + 8005cee: 687b ldr r3, [r7, #4] + 8005cf0: 681b ldr r3, [r3, #0] + 8005cf2: 681a ldr r2, [r3, #0] + 8005cf4: 687b ldr r3, [r7, #4] + 8005cf6: 681b ldr r3, [r3, #0] + 8005cf8: f022 0220 bic.w r2, r2, #32 + 8005cfc: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) - 8005a92: 687b ldr r3, [r7, #4] - 8005a94: 7edb ldrb r3, [r3, #27] - 8005a96: 2b01 cmp r3, #1 - 8005a98: d108 bne.n 8005aac + 8005cfe: 687b ldr r3, [r7, #4] + 8005d00: 7edb ldrb r3, [r3, #27] + 8005d02: 2b01 cmp r3, #1 + 8005d04: d108 bne.n 8005d18 { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); - 8005a9a: 687b ldr r3, [r7, #4] - 8005a9c: 681b ldr r3, [r3, #0] - 8005a9e: 681a ldr r2, [r3, #0] - 8005aa0: 687b ldr r3, [r7, #4] - 8005aa2: 681b ldr r3, [r3, #0] - 8005aa4: f022 0210 bic.w r2, r2, #16 - 8005aa8: 601a str r2, [r3, #0] - 8005aaa: e007 b.n 8005abc + 8005d06: 687b ldr r3, [r7, #4] + 8005d08: 681b ldr r3, [r3, #0] + 8005d0a: 681a ldr r2, [r3, #0] + 8005d0c: 687b ldr r3, [r7, #4] + 8005d0e: 681b ldr r3, [r3, #0] + 8005d10: f022 0210 bic.w r2, r2, #16 + 8005d14: 601a str r2, [r3, #0] + 8005d16: e007 b.n 8005d28 } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); - 8005aac: 687b ldr r3, [r7, #4] - 8005aae: 681b ldr r3, [r3, #0] - 8005ab0: 681a ldr r2, [r3, #0] - 8005ab2: 687b ldr r3, [r7, #4] - 8005ab4: 681b ldr r3, [r3, #0] - 8005ab6: f042 0210 orr.w r2, r2, #16 - 8005aba: 601a str r2, [r3, #0] + 8005d18: 687b ldr r3, [r7, #4] + 8005d1a: 681b ldr r3, [r3, #0] + 8005d1c: 681a ldr r2, [r3, #0] + 8005d1e: 687b ldr r3, [r7, #4] + 8005d20: 681b ldr r3, [r3, #0] + 8005d22: f042 0210 orr.w r2, r2, #16 + 8005d26: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) - 8005abc: 687b ldr r3, [r7, #4] - 8005abe: 7f1b ldrb r3, [r3, #28] - 8005ac0: 2b01 cmp r3, #1 - 8005ac2: d108 bne.n 8005ad6 + 8005d28: 687b ldr r3, [r7, #4] + 8005d2a: 7f1b ldrb r3, [r3, #28] + 8005d2c: 2b01 cmp r3, #1 + 8005d2e: d108 bne.n 8005d42 { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); - 8005ac4: 687b ldr r3, [r7, #4] - 8005ac6: 681b ldr r3, [r3, #0] - 8005ac8: 681a ldr r2, [r3, #0] - 8005aca: 687b ldr r3, [r7, #4] - 8005acc: 681b ldr r3, [r3, #0] - 8005ace: f042 0208 orr.w r2, r2, #8 - 8005ad2: 601a str r2, [r3, #0] - 8005ad4: e007 b.n 8005ae6 + 8005d30: 687b ldr r3, [r7, #4] + 8005d32: 681b ldr r3, [r3, #0] + 8005d34: 681a ldr r2, [r3, #0] + 8005d36: 687b ldr r3, [r7, #4] + 8005d38: 681b ldr r3, [r3, #0] + 8005d3a: f042 0208 orr.w r2, r2, #8 + 8005d3e: 601a str r2, [r3, #0] + 8005d40: e007 b.n 8005d52 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); - 8005ad6: 687b ldr r3, [r7, #4] - 8005ad8: 681b ldr r3, [r3, #0] - 8005ada: 681a ldr r2, [r3, #0] - 8005adc: 687b ldr r3, [r7, #4] - 8005ade: 681b ldr r3, [r3, #0] - 8005ae0: f022 0208 bic.w r2, r2, #8 - 8005ae4: 601a str r2, [r3, #0] + 8005d42: 687b ldr r3, [r7, #4] + 8005d44: 681b ldr r3, [r3, #0] + 8005d46: 681a ldr r2, [r3, #0] + 8005d48: 687b ldr r3, [r7, #4] + 8005d4a: 681b ldr r3, [r3, #0] + 8005d4c: f022 0208 bic.w r2, r2, #8 + 8005d50: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) - 8005ae6: 687b ldr r3, [r7, #4] - 8005ae8: 7f5b ldrb r3, [r3, #29] - 8005aea: 2b01 cmp r3, #1 - 8005aec: d108 bne.n 8005b00 + 8005d52: 687b ldr r3, [r7, #4] + 8005d54: 7f5b ldrb r3, [r3, #29] + 8005d56: 2b01 cmp r3, #1 + 8005d58: d108 bne.n 8005d6c { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); - 8005aee: 687b ldr r3, [r7, #4] - 8005af0: 681b ldr r3, [r3, #0] - 8005af2: 681a ldr r2, [r3, #0] - 8005af4: 687b ldr r3, [r7, #4] - 8005af6: 681b ldr r3, [r3, #0] - 8005af8: f042 0204 orr.w r2, r2, #4 - 8005afc: 601a str r2, [r3, #0] - 8005afe: e007 b.n 8005b10 + 8005d5a: 687b ldr r3, [r7, #4] + 8005d5c: 681b ldr r3, [r3, #0] + 8005d5e: 681a ldr r2, [r3, #0] + 8005d60: 687b ldr r3, [r7, #4] + 8005d62: 681b ldr r3, [r3, #0] + 8005d64: f042 0204 orr.w r2, r2, #4 + 8005d68: 601a str r2, [r3, #0] + 8005d6a: e007 b.n 8005d7c } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); - 8005b00: 687b ldr r3, [r7, #4] - 8005b02: 681b ldr r3, [r3, #0] - 8005b04: 681a ldr r2, [r3, #0] - 8005b06: 687b ldr r3, [r7, #4] - 8005b08: 681b ldr r3, [r3, #0] - 8005b0a: f022 0204 bic.w r2, r2, #4 - 8005b0e: 601a str r2, [r3, #0] + 8005d6c: 687b ldr r3, [r7, #4] + 8005d6e: 681b ldr r3, [r3, #0] + 8005d70: 681a ldr r2, [r3, #0] + 8005d72: 687b ldr r3, [r7, #4] + 8005d74: 681b ldr r3, [r3, #0] + 8005d76: f022 0204 bic.w r2, r2, #4 + 8005d7a: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | - 8005b10: 687b ldr r3, [r7, #4] - 8005b12: 689a ldr r2, [r3, #8] - 8005b14: 687b ldr r3, [r7, #4] - 8005b16: 68db ldr r3, [r3, #12] - 8005b18: 431a orrs r2, r3 - 8005b1a: 687b ldr r3, [r7, #4] - 8005b1c: 691b ldr r3, [r3, #16] - 8005b1e: 431a orrs r2, r3 - 8005b20: 687b ldr r3, [r7, #4] - 8005b22: 695b ldr r3, [r3, #20] - 8005b24: ea42 0103 orr.w r1, r2, r3 - 8005b28: 687b ldr r3, [r7, #4] - 8005b2a: 685b ldr r3, [r3, #4] - 8005b2c: 1e5a subs r2, r3, #1 - 8005b2e: 687b ldr r3, [r7, #4] - 8005b30: 681b ldr r3, [r3, #0] - 8005b32: 430a orrs r2, r1 - 8005b34: 61da str r2, [r3, #28] + 8005d7c: 687b ldr r3, [r7, #4] + 8005d7e: 689a ldr r2, [r3, #8] + 8005d80: 687b ldr r3, [r7, #4] + 8005d82: 68db ldr r3, [r3, #12] + 8005d84: 431a orrs r2, r3 + 8005d86: 687b ldr r3, [r7, #4] + 8005d88: 691b ldr r3, [r3, #16] + 8005d8a: 431a orrs r2, r3 + 8005d8c: 687b ldr r3, [r7, #4] + 8005d8e: 695b ldr r3, [r3, #20] + 8005d90: ea42 0103 orr.w r1, r2, r3 + 8005d94: 687b ldr r3, [r7, #4] + 8005d96: 685b ldr r3, [r3, #4] + 8005d98: 1e5a subs r2, r3, #1 + 8005d9a: 687b ldr r3, [r7, #4] + 8005d9c: 681b ldr r3, [r3, #0] + 8005d9e: 430a orrs r2, r1 + 8005da0: 61da str r2, [r3, #28] hcan->Init.TimeSeg1 | hcan->Init.TimeSeg2 | (hcan->Init.Prescaler - 1U))); /* Initialize the error code */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; - 8005b36: 687b ldr r3, [r7, #4] - 8005b38: 2200 movs r2, #0 - 8005b3a: 625a str r2, [r3, #36] ; 0x24 + 8005da2: 687b ldr r3, [r7, #4] + 8005da4: 2200 movs r2, #0 + 8005da6: 625a str r2, [r3, #36] ; 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; - 8005b3c: 687b ldr r3, [r7, #4] - 8005b3e: 2201 movs r2, #1 - 8005b40: f883 2020 strb.w r2, [r3, #32] + 8005da8: 687b ldr r3, [r7, #4] + 8005daa: 2201 movs r2, #1 + 8005dac: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; - 8005b44: 2300 movs r3, #0 + 8005db0: 2300 movs r3, #0 } - 8005b46: 4618 mov r0, r3 - 8005b48: 3710 adds r7, #16 - 8005b4a: 46bd mov sp, r7 - 8005b4c: bd80 pop {r7, pc} + 8005db2: 4618 mov r0, r3 + 8005db4: 3710 adds r7, #16 + 8005db6: 46bd mov sp, r7 + 8005db8: bd80 pop {r7, pc} ... -08005b50 : +08005dbc : * @param sFilterConfig pointer to a CAN_FilterTypeDef structure that * contains the filter configuration information. * @retval None */ HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, CAN_FilterTypeDef *sFilterConfig) { - 8005b50: b480 push {r7} - 8005b52: b087 sub sp, #28 - 8005b54: af00 add r7, sp, #0 - 8005b56: 6078 str r0, [r7, #4] - 8005b58: 6039 str r1, [r7, #0] + 8005dbc: b480 push {r7} + 8005dbe: b087 sub sp, #28 + 8005dc0: af00 add r7, sp, #0 + 8005dc2: 6078 str r0, [r7, #4] + 8005dc4: 6039 str r1, [r7, #0] uint32_t filternbrbitpos; CAN_TypeDef *can_ip = hcan->Instance; - 8005b5a: 687b ldr r3, [r7, #4] - 8005b5c: 681b ldr r3, [r3, #0] - 8005b5e: 617b str r3, [r7, #20] + 8005dc6: 687b ldr r3, [r7, #4] + 8005dc8: 681b ldr r3, [r3, #0] + 8005dca: 617b str r3, [r7, #20] HAL_CAN_StateTypeDef state = hcan->State; - 8005b60: 687b ldr r3, [r7, #4] - 8005b62: f893 3020 ldrb.w r3, [r3, #32] - 8005b66: 74fb strb r3, [r7, #19] + 8005dcc: 687b ldr r3, [r7, #4] + 8005dce: f893 3020 ldrb.w r3, [r3, #32] + 8005dd2: 74fb strb r3, [r7, #19] if ((state == HAL_CAN_STATE_READY) || - 8005b68: 7cfb ldrb r3, [r7, #19] - 8005b6a: 2b01 cmp r3, #1 - 8005b6c: d003 beq.n 8005b76 - 8005b6e: 7cfb ldrb r3, [r7, #19] - 8005b70: 2b02 cmp r3, #2 - 8005b72: f040 80be bne.w 8005cf2 + 8005dd4: 7cfb ldrb r3, [r7, #19] + 8005dd6: 2b01 cmp r3, #1 + 8005dd8: d003 beq.n 8005de2 + 8005dda: 7cfb ldrb r3, [r7, #19] + 8005ddc: 2b02 cmp r3, #2 + 8005dde: f040 80be bne.w 8005f5e assert_param(IS_CAN_FILTER_ACTIVATION(sFilterConfig->FilterActivation)); #if defined(CAN2) /* CAN1 and CAN2 are dual instances with 28 common filters banks */ /* Select master instance to access the filter banks */ can_ip = CAN1; - 8005b76: 4b65 ldr r3, [pc, #404] ; (8005d0c ) - 8005b78: 617b str r3, [r7, #20] + 8005de2: 4b65 ldr r3, [pc, #404] ; (8005f78 ) + 8005de4: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_CAN_FILTER_BANK_SINGLE(sFilterConfig->FilterBank)); #endif /* Initialisation mode for the filter */ SET_BIT(can_ip->FMR, CAN_FMR_FINIT); - 8005b7a: 697b ldr r3, [r7, #20] - 8005b7c: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8005b80: f043 0201 orr.w r2, r3, #1 - 8005b84: 697b ldr r3, [r7, #20] - 8005b86: f8c3 2200 str.w r2, [r3, #512] ; 0x200 + 8005de6: 697b ldr r3, [r7, #20] + 8005de8: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8005dec: f043 0201 orr.w r2, r3, #1 + 8005df0: 697b ldr r3, [r7, #20] + 8005df2: f8c3 2200 str.w r2, [r3, #512] ; 0x200 #if defined(CAN2) /* Select the start filter number of CAN2 slave instance */ CLEAR_BIT(can_ip->FMR, CAN_FMR_CAN2SB); - 8005b8a: 697b ldr r3, [r7, #20] - 8005b8c: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8005b90: f423 527c bic.w r2, r3, #16128 ; 0x3f00 - 8005b94: 697b ldr r3, [r7, #20] - 8005b96: f8c3 2200 str.w r2, [r3, #512] ; 0x200 + 8005df6: 697b ldr r3, [r7, #20] + 8005df8: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8005dfc: f423 527c bic.w r2, r3, #16128 ; 0x3f00 + 8005e00: 697b ldr r3, [r7, #20] + 8005e02: f8c3 2200 str.w r2, [r3, #512] ; 0x200 SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos); - 8005b9a: 697b ldr r3, [r7, #20] - 8005b9c: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 - 8005ba0: 683b ldr r3, [r7, #0] - 8005ba2: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005ba4: 021b lsls r3, r3, #8 - 8005ba6: 431a orrs r2, r3 - 8005ba8: 697b ldr r3, [r7, #20] - 8005baa: f8c3 2200 str.w r2, [r3, #512] ; 0x200 + 8005e06: 697b ldr r3, [r7, #20] + 8005e08: f8d3 2200 ldr.w r2, [r3, #512] ; 0x200 + 8005e0c: 683b ldr r3, [r7, #0] + 8005e0e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005e10: 021b lsls r3, r3, #8 + 8005e12: 431a orrs r2, r3 + 8005e14: 697b ldr r3, [r7, #20] + 8005e16: f8c3 2200 str.w r2, [r3, #512] ; 0x200 #endif /* Convert filter number into bit position */ filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU); - 8005bae: 683b ldr r3, [r7, #0] - 8005bb0: 695b ldr r3, [r3, #20] - 8005bb2: f003 031f and.w r3, r3, #31 - 8005bb6: 2201 movs r2, #1 - 8005bb8: fa02 f303 lsl.w r3, r2, r3 - 8005bbc: 60fb str r3, [r7, #12] + 8005e1a: 683b ldr r3, [r7, #0] + 8005e1c: 695b ldr r3, [r3, #20] + 8005e1e: f003 031f and.w r3, r3, #31 + 8005e22: 2201 movs r2, #1 + 8005e24: fa02 f303 lsl.w r3, r2, r3 + 8005e28: 60fb str r3, [r7, #12] /* Filter Deactivation */ CLEAR_BIT(can_ip->FA1R, filternbrbitpos); - 8005bbe: 697b ldr r3, [r7, #20] - 8005bc0: f8d3 221c ldr.w r2, [r3, #540] ; 0x21c - 8005bc4: 68fb ldr r3, [r7, #12] - 8005bc6: 43db mvns r3, r3 - 8005bc8: 401a ands r2, r3 - 8005bca: 697b ldr r3, [r7, #20] - 8005bcc: f8c3 221c str.w r2, [r3, #540] ; 0x21c + 8005e2a: 697b ldr r3, [r7, #20] + 8005e2c: f8d3 221c ldr.w r2, [r3, #540] ; 0x21c + 8005e30: 68fb ldr r3, [r7, #12] + 8005e32: 43db mvns r3, r3 + 8005e34: 401a ands r2, r3 + 8005e36: 697b ldr r3, [r7, #20] + 8005e38: f8c3 221c str.w r2, [r3, #540] ; 0x21c /* Filter Scale */ if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT) - 8005bd0: 683b ldr r3, [r7, #0] - 8005bd2: 69db ldr r3, [r3, #28] - 8005bd4: 2b00 cmp r3, #0 - 8005bd6: d123 bne.n 8005c20 + 8005e3c: 683b ldr r3, [r7, #0] + 8005e3e: 69db ldr r3, [r3, #28] + 8005e40: 2b00 cmp r3, #0 + 8005e42: d123 bne.n 8005e8c { /* 16-bit scale for the filter */ CLEAR_BIT(can_ip->FS1R, filternbrbitpos); - 8005bd8: 697b ldr r3, [r7, #20] - 8005bda: f8d3 220c ldr.w r2, [r3, #524] ; 0x20c - 8005bde: 68fb ldr r3, [r7, #12] - 8005be0: 43db mvns r3, r3 - 8005be2: 401a ands r2, r3 - 8005be4: 697b ldr r3, [r7, #20] - 8005be6: f8c3 220c str.w r2, [r3, #524] ; 0x20c + 8005e44: 697b ldr r3, [r7, #20] + 8005e46: f8d3 220c ldr.w r2, [r3, #524] ; 0x20c + 8005e4a: 68fb ldr r3, [r7, #12] + 8005e4c: 43db mvns r3, r3 + 8005e4e: 401a ands r2, r3 + 8005e50: 697b ldr r3, [r7, #20] + 8005e52: f8c3 220c str.w r2, [r3, #524] ; 0x20c /* First 16-bit identifier and First 16-bit mask */ /* Or First 16-bit identifier and Second 16-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | - 8005bea: 683b ldr r3, [r7, #0] - 8005bec: 68db ldr r3, [r3, #12] - 8005bee: 0419 lsls r1, r3, #16 + 8005e56: 683b ldr r3, [r7, #0] + 8005e58: 68db ldr r3, [r3, #12] + 8005e5a: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); - 8005bf0: 683b ldr r3, [r7, #0] - 8005bf2: 685b ldr r3, [r3, #4] - 8005bf4: b29b uxth r3, r3 + 8005e5c: 683b ldr r3, [r7, #0] + 8005e5e: 685b ldr r3, [r3, #4] + 8005e60: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = - 8005bf6: 683a ldr r2, [r7, #0] - 8005bf8: 6952 ldr r2, [r2, #20] + 8005e62: 683a ldr r2, [r7, #0] + 8005e64: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) | - 8005bfa: 4319 orrs r1, r3 + 8005e66: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = - 8005bfc: 697b ldr r3, [r7, #20] - 8005bfe: 3248 adds r2, #72 ; 0x48 - 8005c00: f843 1032 str.w r1, [r3, r2, lsl #3] + 8005e68: 697b ldr r3, [r7, #20] + 8005e6a: 3248 adds r2, #72 ; 0x48 + 8005e6c: f843 1032 str.w r1, [r3, r2, lsl #3] /* Second 16-bit identifier and Second 16-bit mask */ /* Or Third 16-bit identifier and Fourth 16-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | - 8005c04: 683b ldr r3, [r7, #0] - 8005c06: 689b ldr r3, [r3, #8] - 8005c08: 0419 lsls r1, r3, #16 + 8005e70: 683b ldr r3, [r7, #0] + 8005e72: 689b ldr r3, [r3, #8] + 8005e74: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh); - 8005c0a: 683b ldr r3, [r7, #0] - 8005c0c: 681b ldr r3, [r3, #0] - 8005c0e: b29a uxth r2, r3 + 8005e76: 683b ldr r3, [r7, #0] + 8005e78: 681b ldr r3, [r3, #0] + 8005e7a: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = - 8005c10: 683b ldr r3, [r7, #0] - 8005c12: 695b ldr r3, [r3, #20] + 8005e7c: 683b ldr r3, [r7, #0] + 8005e7e: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | - 8005c14: 430a orrs r2, r1 + 8005e80: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = - 8005c16: 6979 ldr r1, [r7, #20] - 8005c18: 3348 adds r3, #72 ; 0x48 - 8005c1a: 00db lsls r3, r3, #3 - 8005c1c: 440b add r3, r1 - 8005c1e: 605a str r2, [r3, #4] + 8005e82: 6979 ldr r1, [r7, #20] + 8005e84: 3348 adds r3, #72 ; 0x48 + 8005e86: 00db lsls r3, r3, #3 + 8005e88: 440b add r3, r1 + 8005e8a: 605a str r2, [r3, #4] } if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT) - 8005c20: 683b ldr r3, [r7, #0] - 8005c22: 69db ldr r3, [r3, #28] - 8005c24: 2b01 cmp r3, #1 - 8005c26: d122 bne.n 8005c6e + 8005e8c: 683b ldr r3, [r7, #0] + 8005e8e: 69db ldr r3, [r3, #28] + 8005e90: 2b01 cmp r3, #1 + 8005e92: d122 bne.n 8005eda { /* 32-bit scale for the filter */ SET_BIT(can_ip->FS1R, filternbrbitpos); - 8005c28: 697b ldr r3, [r7, #20] - 8005c2a: f8d3 220c ldr.w r2, [r3, #524] ; 0x20c - 8005c2e: 68fb ldr r3, [r7, #12] - 8005c30: 431a orrs r2, r3 - 8005c32: 697b ldr r3, [r7, #20] - 8005c34: f8c3 220c str.w r2, [r3, #524] ; 0x20c + 8005e94: 697b ldr r3, [r7, #20] + 8005e96: f8d3 220c ldr.w r2, [r3, #524] ; 0x20c + 8005e9a: 68fb ldr r3, [r7, #12] + 8005e9c: 431a orrs r2, r3 + 8005e9e: 697b ldr r3, [r7, #20] + 8005ea0: f8c3 220c str.w r2, [r3, #524] ; 0x20c /* 32-bit identifier or First 32-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | - 8005c38: 683b ldr r3, [r7, #0] - 8005c3a: 681b ldr r3, [r3, #0] - 8005c3c: 0419 lsls r1, r3, #16 + 8005ea4: 683b ldr r3, [r7, #0] + 8005ea6: 681b ldr r3, [r3, #0] + 8005ea8: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); - 8005c3e: 683b ldr r3, [r7, #0] - 8005c40: 685b ldr r3, [r3, #4] - 8005c42: b29b uxth r3, r3 + 8005eaa: 683b ldr r3, [r7, #0] + 8005eac: 685b ldr r3, [r3, #4] + 8005eae: b29b uxth r3, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = - 8005c44: 683a ldr r2, [r7, #0] - 8005c46: 6952 ldr r2, [r2, #20] + 8005eb0: 683a ldr r2, [r7, #0] + 8005eb2: 6952 ldr r2, [r2, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | - 8005c48: 4319 orrs r1, r3 + 8005eb4: 4319 orrs r1, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 = - 8005c4a: 697b ldr r3, [r7, #20] - 8005c4c: 3248 adds r2, #72 ; 0x48 - 8005c4e: f843 1032 str.w r1, [r3, r2, lsl #3] + 8005eb6: 697b ldr r3, [r7, #20] + 8005eb8: 3248 adds r2, #72 ; 0x48 + 8005eba: f843 1032 str.w r1, [r3, r2, lsl #3] /* 32-bit mask or Second 32-bit identifier */ can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | - 8005c52: 683b ldr r3, [r7, #0] - 8005c54: 689b ldr r3, [r3, #8] - 8005c56: 0419 lsls r1, r3, #16 + 8005ebe: 683b ldr r3, [r7, #0] + 8005ec0: 689b ldr r3, [r3, #8] + 8005ec2: 0419 lsls r1, r3, #16 (0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow); - 8005c58: 683b ldr r3, [r7, #0] - 8005c5a: 68db ldr r3, [r3, #12] - 8005c5c: b29a uxth r2, r3 + 8005ec4: 683b ldr r3, [r7, #0] + 8005ec6: 68db ldr r3, [r3, #12] + 8005ec8: b29a uxth r2, r3 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = - 8005c5e: 683b ldr r3, [r7, #0] - 8005c60: 695b ldr r3, [r3, #20] + 8005eca: 683b ldr r3, [r7, #0] + 8005ecc: 695b ldr r3, [r3, #20] ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) | - 8005c62: 430a orrs r2, r1 + 8005ece: 430a orrs r2, r1 can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 = - 8005c64: 6979 ldr r1, [r7, #20] - 8005c66: 3348 adds r3, #72 ; 0x48 - 8005c68: 00db lsls r3, r3, #3 - 8005c6a: 440b add r3, r1 - 8005c6c: 605a str r2, [r3, #4] + 8005ed0: 6979 ldr r1, [r7, #20] + 8005ed2: 3348 adds r3, #72 ; 0x48 + 8005ed4: 00db lsls r3, r3, #3 + 8005ed6: 440b add r3, r1 + 8005ed8: 605a str r2, [r3, #4] } /* Filter Mode */ if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK) - 8005c6e: 683b ldr r3, [r7, #0] - 8005c70: 699b ldr r3, [r3, #24] - 8005c72: 2b00 cmp r3, #0 - 8005c74: d109 bne.n 8005c8a + 8005eda: 683b ldr r3, [r7, #0] + 8005edc: 699b ldr r3, [r3, #24] + 8005ede: 2b00 cmp r3, #0 + 8005ee0: d109 bne.n 8005ef6 { /* Id/Mask mode for the filter*/ CLEAR_BIT(can_ip->FM1R, filternbrbitpos); - 8005c76: 697b ldr r3, [r7, #20] - 8005c78: f8d3 2204 ldr.w r2, [r3, #516] ; 0x204 - 8005c7c: 68fb ldr r3, [r7, #12] - 8005c7e: 43db mvns r3, r3 - 8005c80: 401a ands r2, r3 - 8005c82: 697b ldr r3, [r7, #20] - 8005c84: f8c3 2204 str.w r2, [r3, #516] ; 0x204 - 8005c88: e007 b.n 8005c9a + 8005ee2: 697b ldr r3, [r7, #20] + 8005ee4: f8d3 2204 ldr.w r2, [r3, #516] ; 0x204 + 8005ee8: 68fb ldr r3, [r7, #12] + 8005eea: 43db mvns r3, r3 + 8005eec: 401a ands r2, r3 + 8005eee: 697b ldr r3, [r7, #20] + 8005ef0: f8c3 2204 str.w r2, [r3, #516] ; 0x204 + 8005ef4: e007 b.n 8005f06 } else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */ { /* Identifier list mode for the filter*/ SET_BIT(can_ip->FM1R, filternbrbitpos); - 8005c8a: 697b ldr r3, [r7, #20] - 8005c8c: f8d3 2204 ldr.w r2, [r3, #516] ; 0x204 - 8005c90: 68fb ldr r3, [r7, #12] - 8005c92: 431a orrs r2, r3 - 8005c94: 697b ldr r3, [r7, #20] - 8005c96: f8c3 2204 str.w r2, [r3, #516] ; 0x204 + 8005ef6: 697b ldr r3, [r7, #20] + 8005ef8: f8d3 2204 ldr.w r2, [r3, #516] ; 0x204 + 8005efc: 68fb ldr r3, [r7, #12] + 8005efe: 431a orrs r2, r3 + 8005f00: 697b ldr r3, [r7, #20] + 8005f02: f8c3 2204 str.w r2, [r3, #516] ; 0x204 } /* Filter FIFO assignment */ if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0) - 8005c9a: 683b ldr r3, [r7, #0] - 8005c9c: 691b ldr r3, [r3, #16] - 8005c9e: 2b00 cmp r3, #0 - 8005ca0: d109 bne.n 8005cb6 + 8005f06: 683b ldr r3, [r7, #0] + 8005f08: 691b ldr r3, [r3, #16] + 8005f0a: 2b00 cmp r3, #0 + 8005f0c: d109 bne.n 8005f22 { /* FIFO 0 assignation for the filter */ CLEAR_BIT(can_ip->FFA1R, filternbrbitpos); - 8005ca2: 697b ldr r3, [r7, #20] - 8005ca4: f8d3 2214 ldr.w r2, [r3, #532] ; 0x214 - 8005ca8: 68fb ldr r3, [r7, #12] - 8005caa: 43db mvns r3, r3 - 8005cac: 401a ands r2, r3 - 8005cae: 697b ldr r3, [r7, #20] - 8005cb0: f8c3 2214 str.w r2, [r3, #532] ; 0x214 - 8005cb4: e007 b.n 8005cc6 + 8005f0e: 697b ldr r3, [r7, #20] + 8005f10: f8d3 2214 ldr.w r2, [r3, #532] ; 0x214 + 8005f14: 68fb ldr r3, [r7, #12] + 8005f16: 43db mvns r3, r3 + 8005f18: 401a ands r2, r3 + 8005f1a: 697b ldr r3, [r7, #20] + 8005f1c: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + 8005f20: e007 b.n 8005f32 } else { /* FIFO 1 assignation for the filter */ SET_BIT(can_ip->FFA1R, filternbrbitpos); - 8005cb6: 697b ldr r3, [r7, #20] - 8005cb8: f8d3 2214 ldr.w r2, [r3, #532] ; 0x214 - 8005cbc: 68fb ldr r3, [r7, #12] - 8005cbe: 431a orrs r2, r3 - 8005cc0: 697b ldr r3, [r7, #20] - 8005cc2: f8c3 2214 str.w r2, [r3, #532] ; 0x214 + 8005f22: 697b ldr r3, [r7, #20] + 8005f24: f8d3 2214 ldr.w r2, [r3, #532] ; 0x214 + 8005f28: 68fb ldr r3, [r7, #12] + 8005f2a: 431a orrs r2, r3 + 8005f2c: 697b ldr r3, [r7, #20] + 8005f2e: f8c3 2214 str.w r2, [r3, #532] ; 0x214 } /* Filter activation */ if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE) - 8005cc6: 683b ldr r3, [r7, #0] - 8005cc8: 6a1b ldr r3, [r3, #32] - 8005cca: 2b01 cmp r3, #1 - 8005ccc: d107 bne.n 8005cde + 8005f32: 683b ldr r3, [r7, #0] + 8005f34: 6a1b ldr r3, [r3, #32] + 8005f36: 2b01 cmp r3, #1 + 8005f38: d107 bne.n 8005f4a { SET_BIT(can_ip->FA1R, filternbrbitpos); - 8005cce: 697b ldr r3, [r7, #20] - 8005cd0: f8d3 221c ldr.w r2, [r3, #540] ; 0x21c - 8005cd4: 68fb ldr r3, [r7, #12] - 8005cd6: 431a orrs r2, r3 - 8005cd8: 697b ldr r3, [r7, #20] - 8005cda: f8c3 221c str.w r2, [r3, #540] ; 0x21c + 8005f3a: 697b ldr r3, [r7, #20] + 8005f3c: f8d3 221c ldr.w r2, [r3, #540] ; 0x21c + 8005f40: 68fb ldr r3, [r7, #12] + 8005f42: 431a orrs r2, r3 + 8005f44: 697b ldr r3, [r7, #20] + 8005f46: f8c3 221c str.w r2, [r3, #540] ; 0x21c } /* Leave the initialisation mode for the filter */ CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT); - 8005cde: 697b ldr r3, [r7, #20] - 8005ce0: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 - 8005ce4: f023 0201 bic.w r2, r3, #1 - 8005ce8: 697b ldr r3, [r7, #20] - 8005cea: f8c3 2200 str.w r2, [r3, #512] ; 0x200 + 8005f4a: 697b ldr r3, [r7, #20] + 8005f4c: f8d3 3200 ldr.w r3, [r3, #512] ; 0x200 + 8005f50: f023 0201 bic.w r2, r3, #1 + 8005f54: 697b ldr r3, [r7, #20] + 8005f56: f8c3 2200 str.w r2, [r3, #512] ; 0x200 /* Return function status */ return HAL_OK; - 8005cee: 2300 movs r3, #0 - 8005cf0: e006 b.n 8005d00 + 8005f5a: 2300 movs r3, #0 + 8005f5c: e006 b.n 8005f6c } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 8005cf2: 687b ldr r3, [r7, #4] - 8005cf4: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005cf6: f443 2280 orr.w r2, r3, #262144 ; 0x40000 - 8005cfa: 687b ldr r3, [r7, #4] - 8005cfc: 625a str r2, [r3, #36] ; 0x24 + 8005f5e: 687b ldr r3, [r7, #4] + 8005f60: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005f62: f443 2280 orr.w r2, r3, #262144 ; 0x40000 + 8005f66: 687b ldr r3, [r7, #4] + 8005f68: 625a str r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005cfe: 2301 movs r3, #1 + 8005f6a: 2301 movs r3, #1 } } - 8005d00: 4618 mov r0, r3 - 8005d02: 371c adds r7, #28 - 8005d04: 46bd mov sp, r7 - 8005d06: bc80 pop {r7} - 8005d08: 4770 bx lr - 8005d0a: bf00 nop - 8005d0c: 40006400 .word 0x40006400 + 8005f6c: 4618 mov r0, r3 + 8005f6e: 371c adds r7, #28 + 8005f70: 46bd mov sp, r7 + 8005f72: bc80 pop {r7} + 8005f74: 4770 bx lr + 8005f76: bf00 nop + 8005f78: 40006400 .word 0x40006400 -08005d10 : +08005f7c : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan) { - 8005d10: b580 push {r7, lr} - 8005d12: b084 sub sp, #16 - 8005d14: af00 add r7, sp, #0 - 8005d16: 6078 str r0, [r7, #4] + 8005f7c: b580 push {r7, lr} + 8005f7e: b084 sub sp, #16 + 8005f80: af00 add r7, sp, #0 + 8005f82: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) - 8005d18: 687b ldr r3, [r7, #4] - 8005d1a: f893 3020 ldrb.w r3, [r3, #32] - 8005d1e: b2db uxtb r3, r3 - 8005d20: 2b01 cmp r3, #1 - 8005d22: d12e bne.n 8005d82 + 8005f84: 687b ldr r3, [r7, #4] + 8005f86: f893 3020 ldrb.w r3, [r3, #32] + 8005f8a: b2db uxtb r3, r3 + 8005f8c: 2b01 cmp r3, #1 + 8005f8e: d12e bne.n 8005fee { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; - 8005d24: 687b ldr r3, [r7, #4] - 8005d26: 2202 movs r2, #2 - 8005d28: f883 2020 strb.w r2, [r3, #32] + 8005f90: 687b ldr r3, [r7, #4] + 8005f92: 2202 movs r2, #2 + 8005f94: f883 2020 strb.w r2, [r3, #32] /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); - 8005d2c: 687b ldr r3, [r7, #4] - 8005d2e: 681b ldr r3, [r3, #0] - 8005d30: 681a ldr r2, [r3, #0] - 8005d32: 687b ldr r3, [r7, #4] - 8005d34: 681b ldr r3, [r3, #0] - 8005d36: f022 0201 bic.w r2, r2, #1 - 8005d3a: 601a str r2, [r3, #0] + 8005f98: 687b ldr r3, [r7, #4] + 8005f9a: 681b ldr r3, [r3, #0] + 8005f9c: 681a ldr r2, [r3, #0] + 8005f9e: 687b ldr r3, [r7, #4] + 8005fa0: 681b ldr r3, [r3, #0] + 8005fa2: f022 0201 bic.w r2, r2, #1 + 8005fa6: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8005d3c: f7ff f8da bl 8004ef4 - 8005d40: 60f8 str r0, [r7, #12] + 8005fa8: f7ff f8da bl 8005160 + 8005fac: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) - 8005d42: e012 b.n 8005d6a + 8005fae: e012 b.n 8005fd6 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8005d44: f7ff f8d6 bl 8004ef4 - 8005d48: 4602 mov r2, r0 - 8005d4a: 68fb ldr r3, [r7, #12] - 8005d4c: 1ad3 subs r3, r2, r3 - 8005d4e: 2b0a cmp r3, #10 - 8005d50: d90b bls.n 8005d6a + 8005fb0: f7ff f8d6 bl 8005160 + 8005fb4: 4602 mov r2, r0 + 8005fb6: 68fb ldr r3, [r7, #12] + 8005fb8: 1ad3 subs r3, r2, r3 + 8005fba: 2b0a cmp r3, #10 + 8005fbc: d90b bls.n 8005fd6 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 8005d52: 687b ldr r3, [r7, #4] - 8005d54: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005d56: f443 3200 orr.w r2, r3, #131072 ; 0x20000 - 8005d5a: 687b ldr r3, [r7, #4] - 8005d5c: 625a str r2, [r3, #36] ; 0x24 + 8005fbe: 687b ldr r3, [r7, #4] + 8005fc0: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005fc2: f443 3200 orr.w r2, r3, #131072 ; 0x20000 + 8005fc6: 687b ldr r3, [r7, #4] + 8005fc8: 625a str r2, [r3, #36] ; 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 8005d5e: 687b ldr r3, [r7, #4] - 8005d60: 2205 movs r2, #5 - 8005d62: f883 2020 strb.w r2, [r3, #32] + 8005fca: 687b ldr r3, [r7, #4] + 8005fcc: 2205 movs r2, #5 + 8005fce: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 8005d66: 2301 movs r3, #1 - 8005d68: e012 b.n 8005d90 + 8005fd2: 2301 movs r3, #1 + 8005fd4: e012 b.n 8005ffc while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) - 8005d6a: 687b ldr r3, [r7, #4] - 8005d6c: 681b ldr r3, [r3, #0] - 8005d6e: 685b ldr r3, [r3, #4] - 8005d70: f003 0301 and.w r3, r3, #1 - 8005d74: 2b00 cmp r3, #0 - 8005d76: d1e5 bne.n 8005d44 + 8005fd6: 687b ldr r3, [r7, #4] + 8005fd8: 681b ldr r3, [r3, #0] + 8005fda: 685b ldr r3, [r3, #4] + 8005fdc: f003 0301 and.w r3, r3, #1 + 8005fe0: 2b00 cmp r3, #0 + 8005fe2: d1e5 bne.n 8005fb0 } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; - 8005d78: 687b ldr r3, [r7, #4] - 8005d7a: 2200 movs r2, #0 - 8005d7c: 625a str r2, [r3, #36] ; 0x24 + 8005fe4: 687b ldr r3, [r7, #4] + 8005fe6: 2200 movs r2, #0 + 8005fe8: 625a str r2, [r3, #36] ; 0x24 /* Return function status */ return HAL_OK; - 8005d7e: 2300 movs r3, #0 - 8005d80: e006 b.n 8005d90 + 8005fea: 2300 movs r3, #0 + 8005fec: e006 b.n 8005ffc } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; - 8005d82: 687b ldr r3, [r7, #4] - 8005d84: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005d86: f443 2200 orr.w r2, r3, #524288 ; 0x80000 - 8005d8a: 687b ldr r3, [r7, #4] - 8005d8c: 625a str r2, [r3, #36] ; 0x24 + 8005fee: 687b ldr r3, [r7, #4] + 8005ff0: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005ff2: f443 2200 orr.w r2, r3, #524288 ; 0x80000 + 8005ff6: 687b ldr r3, [r7, #4] + 8005ff8: 625a str r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005d8e: 2301 movs r3, #1 + 8005ffa: 2301 movs r3, #1 } } - 8005d90: 4618 mov r0, r3 - 8005d92: 3710 adds r7, #16 - 8005d94: 46bd mov sp, r7 - 8005d96: bd80 pop {r7, pc} + 8005ffc: 4618 mov r0, r3 + 8005ffe: 3710 adds r7, #16 + 8006000: 46bd mov sp, r7 + 8006002: bd80 pop {r7, pc} -08005d98 : +08006004 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Stop(CAN_HandleTypeDef *hcan) { - 8005d98: b580 push {r7, lr} - 8005d9a: b084 sub sp, #16 - 8005d9c: af00 add r7, sp, #0 - 8005d9e: 6078 str r0, [r7, #4] + 8006004: b580 push {r7, lr} + 8006006: b084 sub sp, #16 + 8006008: af00 add r7, sp, #0 + 800600a: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_LISTENING) - 8005da0: 687b ldr r3, [r7, #4] - 8005da2: f893 3020 ldrb.w r3, [r3, #32] - 8005da6: b2db uxtb r3, r3 - 8005da8: 2b02 cmp r3, #2 - 8005daa: d133 bne.n 8005e14 + 800600c: 687b ldr r3, [r7, #4] + 800600e: f893 3020 ldrb.w r3, [r3, #32] + 8006012: b2db uxtb r3, r3 + 8006014: 2b02 cmp r3, #2 + 8006016: d133 bne.n 8006080 { /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); - 8005dac: 687b ldr r3, [r7, #4] - 8005dae: 681b ldr r3, [r3, #0] - 8005db0: 681a ldr r2, [r3, #0] - 8005db2: 687b ldr r3, [r7, #4] - 8005db4: 681b ldr r3, [r3, #0] - 8005db6: f042 0201 orr.w r2, r2, #1 - 8005dba: 601a str r2, [r3, #0] + 8006018: 687b ldr r3, [r7, #4] + 800601a: 681b ldr r3, [r3, #0] + 800601c: 681a ldr r2, [r3, #0] + 800601e: 687b ldr r3, [r7, #4] + 8006020: 681b ldr r3, [r3, #0] + 8006022: f042 0201 orr.w r2, r2, #1 + 8006026: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8005dbc: f7ff f89a bl 8004ef4 - 8005dc0: 60f8 str r0, [r7, #12] + 8006028: f7ff f89a bl 8005160 + 800602c: 60f8 str r0, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 8005dc2: e012 b.n 8005dea + 800602e: e012 b.n 8006056 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8005dc4: f7ff f896 bl 8004ef4 - 8005dc8: 4602 mov r2, r0 - 8005dca: 68fb ldr r3, [r7, #12] - 8005dcc: 1ad3 subs r3, r2, r3 - 8005dce: 2b0a cmp r3, #10 - 8005dd0: d90b bls.n 8005dea + 8006030: f7ff f896 bl 8005160 + 8006034: 4602 mov r2, r0 + 8006036: 68fb ldr r3, [r7, #12] + 8006038: 1ad3 subs r3, r2, r3 + 800603a: 2b0a cmp r3, #10 + 800603c: d90b bls.n 8006056 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 8005dd2: 687b ldr r3, [r7, #4] - 8005dd4: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005dd6: f443 3200 orr.w r2, r3, #131072 ; 0x20000 - 8005dda: 687b ldr r3, [r7, #4] - 8005ddc: 625a str r2, [r3, #36] ; 0x24 + 800603e: 687b ldr r3, [r7, #4] + 8006040: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006042: f443 3200 orr.w r2, r3, #131072 ; 0x20000 + 8006046: 687b ldr r3, [r7, #4] + 8006048: 625a str r2, [r3, #36] ; 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 8005dde: 687b ldr r3, [r7, #4] - 8005de0: 2205 movs r2, #5 - 8005de2: f883 2020 strb.w r2, [r3, #32] + 800604a: 687b ldr r3, [r7, #4] + 800604c: 2205 movs r2, #5 + 800604e: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 8005de6: 2301 movs r3, #1 - 8005de8: e01b b.n 8005e22 + 8006052: 2301 movs r3, #1 + 8006054: e01b b.n 800608e while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 8005dea: 687b ldr r3, [r7, #4] - 8005dec: 681b ldr r3, [r3, #0] - 8005dee: 685b ldr r3, [r3, #4] - 8005df0: f003 0301 and.w r3, r3, #1 - 8005df4: 2b00 cmp r3, #0 - 8005df6: d0e5 beq.n 8005dc4 + 8006056: 687b ldr r3, [r7, #4] + 8006058: 681b ldr r3, [r3, #0] + 800605a: 685b ldr r3, [r3, #4] + 800605c: f003 0301 and.w r3, r3, #1 + 8006060: 2b00 cmp r3, #0 + 8006062: d0e5 beq.n 8006030 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); - 8005df8: 687b ldr r3, [r7, #4] - 8005dfa: 681b ldr r3, [r3, #0] - 8005dfc: 681a ldr r2, [r3, #0] - 8005dfe: 687b ldr r3, [r7, #4] - 8005e00: 681b ldr r3, [r3, #0] - 8005e02: f022 0202 bic.w r2, r2, #2 - 8005e06: 601a str r2, [r3, #0] + 8006064: 687b ldr r3, [r7, #4] + 8006066: 681b ldr r3, [r3, #0] + 8006068: 681a ldr r2, [r3, #0] + 800606a: 687b ldr r3, [r7, #4] + 800606c: 681b ldr r3, [r3, #0] + 800606e: f022 0202 bic.w r2, r2, #2 + 8006072: 601a str r2, [r3, #0] /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_READY; - 8005e08: 687b ldr r3, [r7, #4] - 8005e0a: 2201 movs r2, #1 - 8005e0c: f883 2020 strb.w r2, [r3, #32] + 8006074: 687b ldr r3, [r7, #4] + 8006076: 2201 movs r2, #1 + 8006078: f883 2020 strb.w r2, [r3, #32] /* Return function status */ return HAL_OK; - 8005e10: 2300 movs r3, #0 - 8005e12: e006 b.n 8005e22 + 800607c: 2300 movs r3, #0 + 800607e: e006 b.n 800608e } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_STARTED; - 8005e14: 687b ldr r3, [r7, #4] - 8005e16: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005e18: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 - 8005e1c: 687b ldr r3, [r7, #4] - 8005e1e: 625a str r2, [r3, #36] ; 0x24 + 8006080: 687b ldr r3, [r7, #4] + 8006082: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006084: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 + 8006088: 687b ldr r3, [r7, #4] + 800608a: 625a str r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005e20: 2301 movs r3, #1 + 800608c: 2301 movs r3, #1 } } - 8005e22: 4618 mov r0, r3 - 8005e24: 3710 adds r7, #16 - 8005e26: 46bd mov sp, r7 - 8005e28: bd80 pop {r7, pc} + 800608e: 4618 mov r0, r3 + 8006090: 3710 adds r7, #16 + 8006092: 46bd mov sp, r7 + 8006094: bd80 pop {r7, pc} -08005e2a : +08006096 : * the TxMailbox used to store the Tx message. * This parameter can be a value of @arg CAN_Tx_Mailboxes. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, CAN_TxHeaderTypeDef *pHeader, uint8_t aData[], uint32_t *pTxMailbox) { - 8005e2a: b480 push {r7} - 8005e2c: b089 sub sp, #36 ; 0x24 - 8005e2e: af00 add r7, sp, #0 - 8005e30: 60f8 str r0, [r7, #12] - 8005e32: 60b9 str r1, [r7, #8] - 8005e34: 607a str r2, [r7, #4] - 8005e36: 603b str r3, [r7, #0] + 8006096: b480 push {r7} + 8006098: b089 sub sp, #36 ; 0x24 + 800609a: af00 add r7, sp, #0 + 800609c: 60f8 str r0, [r7, #12] + 800609e: 60b9 str r1, [r7, #8] + 80060a0: 607a str r2, [r7, #4] + 80060a2: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; - 8005e38: 68fb ldr r3, [r7, #12] - 8005e3a: f893 3020 ldrb.w r3, [r3, #32] - 8005e3e: 77fb strb r3, [r7, #31] + 80060a4: 68fb ldr r3, [r7, #12] + 80060a6: f893 3020 ldrb.w r3, [r3, #32] + 80060aa: 77fb strb r3, [r7, #31] uint32_t tsr = READ_REG(hcan->Instance->TSR); - 8005e40: 68fb ldr r3, [r7, #12] - 8005e42: 681b ldr r3, [r3, #0] - 8005e44: 689b ldr r3, [r3, #8] - 8005e46: 61bb str r3, [r7, #24] + 80060ac: 68fb ldr r3, [r7, #12] + 80060ae: 681b ldr r3, [r3, #0] + 80060b0: 689b ldr r3, [r3, #8] + 80060b2: 61bb str r3, [r7, #24] { assert_param(IS_CAN_EXTID(pHeader->ExtId)); } assert_param(IS_FUNCTIONAL_STATE(pHeader->TransmitGlobalTime)); if ((state == HAL_CAN_STATE_READY) || - 8005e48: 7ffb ldrb r3, [r7, #31] - 8005e4a: 2b01 cmp r3, #1 - 8005e4c: d003 beq.n 8005e56 - 8005e4e: 7ffb ldrb r3, [r7, #31] - 8005e50: 2b02 cmp r3, #2 - 8005e52: f040 80b8 bne.w 8005fc6 + 80060b4: 7ffb ldrb r3, [r7, #31] + 80060b6: 2b01 cmp r3, #1 + 80060b8: d003 beq.n 80060c2 + 80060ba: 7ffb ldrb r3, [r7, #31] + 80060bc: 2b02 cmp r3, #2 + 80060be: f040 80b8 bne.w 8006232 (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || - 8005e56: 69bb ldr r3, [r7, #24] - 8005e58: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 8005e5c: 2b00 cmp r3, #0 - 8005e5e: d10a bne.n 8005e76 + 80060c2: 69bb ldr r3, [r7, #24] + 80060c4: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 80060c8: 2b00 cmp r3, #0 + 80060ca: d10a bne.n 80060e2 ((tsr & CAN_TSR_TME1) != 0U) || - 8005e60: 69bb ldr r3, [r7, #24] - 8005e62: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 80060cc: 69bb ldr r3, [r7, #24] + 80060ce: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 if (((tsr & CAN_TSR_TME0) != 0U) || - 8005e66: 2b00 cmp r3, #0 - 8005e68: d105 bne.n 8005e76 + 80060d2: 2b00 cmp r3, #0 + 80060d4: d105 bne.n 80060e2 ((tsr & CAN_TSR_TME2) != 0U)) - 8005e6a: 69bb ldr r3, [r7, #24] - 8005e6c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80060d6: 69bb ldr r3, [r7, #24] + 80060d8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 ((tsr & CAN_TSR_TME1) != 0U) || - 8005e70: 2b00 cmp r3, #0 - 8005e72: f000 80a0 beq.w 8005fb6 + 80060dc: 2b00 cmp r3, #0 + 80060de: f000 80a0 beq.w 8006222 { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; - 8005e76: 69bb ldr r3, [r7, #24] - 8005e78: 0e1b lsrs r3, r3, #24 - 8005e7a: f003 0303 and.w r3, r3, #3 - 8005e7e: 617b str r3, [r7, #20] + 80060e2: 69bb ldr r3, [r7, #24] + 80060e4: 0e1b lsrs r3, r3, #24 + 80060e6: f003 0303 and.w r3, r3, #3 + 80060ea: 617b str r3, [r7, #20] /* Check transmit mailbox value */ if (transmitmailbox > 2U) - 8005e80: 697b ldr r3, [r7, #20] - 8005e82: 2b02 cmp r3, #2 - 8005e84: d907 bls.n 8005e96 + 80060ec: 697b ldr r3, [r7, #20] + 80060ee: 2b02 cmp r3, #2 + 80060f0: d907 bls.n 8006102 { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_INTERNAL; - 8005e86: 68fb ldr r3, [r7, #12] - 8005e88: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005e8a: f443 0200 orr.w r2, r3, #8388608 ; 0x800000 - 8005e8e: 68fb ldr r3, [r7, #12] - 8005e90: 625a str r2, [r3, #36] ; 0x24 + 80060f2: 68fb ldr r3, [r7, #12] + 80060f4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80060f6: f443 0200 orr.w r2, r3, #8388608 ; 0x800000 + 80060fa: 68fb ldr r3, [r7, #12] + 80060fc: 625a str r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005e92: 2301 movs r3, #1 - 8005e94: e09e b.n 8005fd4 + 80060fe: 2301 movs r3, #1 + 8006100: e09e b.n 8006240 } /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; - 8005e96: 2201 movs r2, #1 - 8005e98: 697b ldr r3, [r7, #20] - 8005e9a: 409a lsls r2, r3 - 8005e9c: 683b ldr r3, [r7, #0] - 8005e9e: 601a str r2, [r3, #0] + 8006102: 2201 movs r2, #1 + 8006104: 697b ldr r3, [r7, #20] + 8006106: 409a lsls r2, r3 + 8006108: 683b ldr r3, [r7, #0] + 800610a: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) - 8005ea0: 68bb ldr r3, [r7, #8] - 8005ea2: 689b ldr r3, [r3, #8] - 8005ea4: 2b00 cmp r3, #0 - 8005ea6: d10d bne.n 8005ec4 + 800610c: 68bb ldr r3, [r7, #8] + 800610e: 689b ldr r3, [r3, #8] + 8006110: 2b00 cmp r3, #0 + 8006112: d10d bne.n 8006130 { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | - 8005ea8: 68bb ldr r3, [r7, #8] - 8005eaa: 681b ldr r3, [r3, #0] - 8005eac: 055a lsls r2, r3, #21 + 8006114: 68bb ldr r3, [r7, #8] + 8006116: 681b ldr r3, [r3, #0] + 8006118: 055a lsls r2, r3, #21 pHeader->RTR); - 8005eae: 68bb ldr r3, [r7, #8] - 8005eb0: 68db ldr r3, [r3, #12] + 800611a: 68bb ldr r3, [r7, #8] + 800611c: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | - 8005eb2: 68f9 ldr r1, [r7, #12] - 8005eb4: 6809 ldr r1, [r1, #0] - 8005eb6: 431a orrs r2, r3 - 8005eb8: 697b ldr r3, [r7, #20] - 8005eba: 3318 adds r3, #24 - 8005ebc: 011b lsls r3, r3, #4 - 8005ebe: 440b add r3, r1 - 8005ec0: 601a str r2, [r3, #0] - 8005ec2: e00f b.n 8005ee4 + 800611e: 68f9 ldr r1, [r7, #12] + 8006120: 6809 ldr r1, [r1, #0] + 8006122: 431a orrs r2, r3 + 8006124: 697b ldr r3, [r7, #20] + 8006126: 3318 adds r3, #24 + 8006128: 011b lsls r3, r3, #4 + 800612a: 440b add r3, r1 + 800612c: 601a str r2, [r3, #0] + 800612e: e00f b.n 8006150 } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8005ec4: 68bb ldr r3, [r7, #8] - 8005ec6: 685b ldr r3, [r3, #4] - 8005ec8: 00da lsls r2, r3, #3 + 8006130: 68bb ldr r3, [r7, #8] + 8006132: 685b ldr r3, [r3, #4] + 8006134: 00da lsls r2, r3, #3 pHeader->IDE | - 8005eca: 68bb ldr r3, [r7, #8] - 8005ecc: 689b ldr r3, [r3, #8] + 8006136: 68bb ldr r3, [r7, #8] + 8006138: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8005ece: 431a orrs r2, r3 + 800613a: 431a orrs r2, r3 pHeader->RTR); - 8005ed0: 68bb ldr r3, [r7, #8] - 8005ed2: 68db ldr r3, [r3, #12] + 800613c: 68bb ldr r3, [r7, #8] + 800613e: 68db ldr r3, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8005ed4: 68f9 ldr r1, [r7, #12] - 8005ed6: 6809 ldr r1, [r1, #0] + 8006140: 68f9 ldr r1, [r7, #12] + 8006142: 6809 ldr r1, [r1, #0] pHeader->IDE | - 8005ed8: 431a orrs r2, r3 + 8006144: 431a orrs r2, r3 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8005eda: 697b ldr r3, [r7, #20] - 8005edc: 3318 adds r3, #24 - 8005ede: 011b lsls r3, r3, #4 - 8005ee0: 440b add r3, r1 - 8005ee2: 601a str r2, [r3, #0] + 8006146: 697b ldr r3, [r7, #20] + 8006148: 3318 adds r3, #24 + 800614a: 011b lsls r3, r3, #4 + 800614c: 440b add r3, r1 + 800614e: 601a str r2, [r3, #0] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); - 8005ee4: 68fb ldr r3, [r7, #12] - 8005ee6: 6819 ldr r1, [r3, #0] - 8005ee8: 68bb ldr r3, [r7, #8] - 8005eea: 691a ldr r2, [r3, #16] - 8005eec: 697b ldr r3, [r7, #20] - 8005eee: 3318 adds r3, #24 - 8005ef0: 011b lsls r3, r3, #4 - 8005ef2: 440b add r3, r1 - 8005ef4: 3304 adds r3, #4 - 8005ef6: 601a str r2, [r3, #0] + 8006150: 68fb ldr r3, [r7, #12] + 8006152: 6819 ldr r1, [r3, #0] + 8006154: 68bb ldr r3, [r7, #8] + 8006156: 691a ldr r2, [r3, #16] + 8006158: 697b ldr r3, [r7, #20] + 800615a: 3318 adds r3, #24 + 800615c: 011b lsls r3, r3, #4 + 800615e: 440b add r3, r1 + 8006160: 3304 adds r3, #4 + 8006162: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) - 8005ef8: 68bb ldr r3, [r7, #8] - 8005efa: 7d1b ldrb r3, [r3, #20] - 8005efc: 2b01 cmp r3, #1 - 8005efe: d111 bne.n 8005f24 + 8006164: 68bb ldr r3, [r7, #8] + 8006166: 7d1b ldrb r3, [r3, #20] + 8006168: 2b01 cmp r3, #1 + 800616a: d111 bne.n 8006190 { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); - 8005f00: 68fb ldr r3, [r7, #12] - 8005f02: 681a ldr r2, [r3, #0] - 8005f04: 697b ldr r3, [r7, #20] - 8005f06: 3318 adds r3, #24 - 8005f08: 011b lsls r3, r3, #4 - 8005f0a: 4413 add r3, r2 - 8005f0c: 3304 adds r3, #4 - 8005f0e: 681b ldr r3, [r3, #0] - 8005f10: 68fa ldr r2, [r7, #12] - 8005f12: 6811 ldr r1, [r2, #0] - 8005f14: f443 7280 orr.w r2, r3, #256 ; 0x100 - 8005f18: 697b ldr r3, [r7, #20] - 8005f1a: 3318 adds r3, #24 - 8005f1c: 011b lsls r3, r3, #4 - 8005f1e: 440b add r3, r1 - 8005f20: 3304 adds r3, #4 - 8005f22: 601a str r2, [r3, #0] + 800616c: 68fb ldr r3, [r7, #12] + 800616e: 681a ldr r2, [r3, #0] + 8006170: 697b ldr r3, [r7, #20] + 8006172: 3318 adds r3, #24 + 8006174: 011b lsls r3, r3, #4 + 8006176: 4413 add r3, r2 + 8006178: 3304 adds r3, #4 + 800617a: 681b ldr r3, [r3, #0] + 800617c: 68fa ldr r2, [r7, #12] + 800617e: 6811 ldr r1, [r2, #0] + 8006180: f443 7280 orr.w r2, r3, #256 ; 0x100 + 8006184: 697b ldr r3, [r7, #20] + 8006186: 3318 adds r3, #24 + 8006188: 011b lsls r3, r3, #4 + 800618a: 440b add r3, r1 + 800618c: 3304 adds r3, #4 + 800618e: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, - 8005f24: 687b ldr r3, [r7, #4] - 8005f26: 3307 adds r3, #7 - 8005f28: 781b ldrb r3, [r3, #0] - 8005f2a: 061a lsls r2, r3, #24 - 8005f2c: 687b ldr r3, [r7, #4] - 8005f2e: 3306 adds r3, #6 - 8005f30: 781b ldrb r3, [r3, #0] - 8005f32: 041b lsls r3, r3, #16 - 8005f34: 431a orrs r2, r3 - 8005f36: 687b ldr r3, [r7, #4] - 8005f38: 3305 adds r3, #5 - 8005f3a: 781b ldrb r3, [r3, #0] - 8005f3c: 021b lsls r3, r3, #8 - 8005f3e: 4313 orrs r3, r2 - 8005f40: 687a ldr r2, [r7, #4] - 8005f42: 3204 adds r2, #4 - 8005f44: 7812 ldrb r2, [r2, #0] - 8005f46: 4610 mov r0, r2 - 8005f48: 68fa ldr r2, [r7, #12] - 8005f4a: 6811 ldr r1, [r2, #0] - 8005f4c: ea43 0200 orr.w r2, r3, r0 - 8005f50: 697b ldr r3, [r7, #20] - 8005f52: 011b lsls r3, r3, #4 - 8005f54: 440b add r3, r1 - 8005f56: f503 73c6 add.w r3, r3, #396 ; 0x18c - 8005f5a: 601a str r2, [r3, #0] + 8006190: 687b ldr r3, [r7, #4] + 8006192: 3307 adds r3, #7 + 8006194: 781b ldrb r3, [r3, #0] + 8006196: 061a lsls r2, r3, #24 + 8006198: 687b ldr r3, [r7, #4] + 800619a: 3306 adds r3, #6 + 800619c: 781b ldrb r3, [r3, #0] + 800619e: 041b lsls r3, r3, #16 + 80061a0: 431a orrs r2, r3 + 80061a2: 687b ldr r3, [r7, #4] + 80061a4: 3305 adds r3, #5 + 80061a6: 781b ldrb r3, [r3, #0] + 80061a8: 021b lsls r3, r3, #8 + 80061aa: 4313 orrs r3, r2 + 80061ac: 687a ldr r2, [r7, #4] + 80061ae: 3204 adds r2, #4 + 80061b0: 7812 ldrb r2, [r2, #0] + 80061b2: 4610 mov r0, r2 + 80061b4: 68fa ldr r2, [r7, #12] + 80061b6: 6811 ldr r1, [r2, #0] + 80061b8: ea43 0200 orr.w r2, r3, r0 + 80061bc: 697b ldr r3, [r7, #20] + 80061be: 011b lsls r3, r3, #4 + 80061c0: 440b add r3, r1 + 80061c2: f503 73c6 add.w r3, r3, #396 ; 0x18c + 80061c6: 601a str r2, [r3, #0] ((uint32_t)aData[7] << CAN_TDH0R_DATA7_Pos) | ((uint32_t)aData[6] << CAN_TDH0R_DATA6_Pos) | ((uint32_t)aData[5] << CAN_TDH0R_DATA5_Pos) | ((uint32_t)aData[4] << CAN_TDH0R_DATA4_Pos)); WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDLR, - 8005f5c: 687b ldr r3, [r7, #4] - 8005f5e: 3303 adds r3, #3 - 8005f60: 781b ldrb r3, [r3, #0] - 8005f62: 061a lsls r2, r3, #24 - 8005f64: 687b ldr r3, [r7, #4] - 8005f66: 3302 adds r3, #2 - 8005f68: 781b ldrb r3, [r3, #0] - 8005f6a: 041b lsls r3, r3, #16 - 8005f6c: 431a orrs r2, r3 - 8005f6e: 687b ldr r3, [r7, #4] - 8005f70: 3301 adds r3, #1 - 8005f72: 781b ldrb r3, [r3, #0] - 8005f74: 021b lsls r3, r3, #8 - 8005f76: 4313 orrs r3, r2 - 8005f78: 687a ldr r2, [r7, #4] - 8005f7a: 7812 ldrb r2, [r2, #0] - 8005f7c: 4610 mov r0, r2 - 8005f7e: 68fa ldr r2, [r7, #12] - 8005f80: 6811 ldr r1, [r2, #0] - 8005f82: ea43 0200 orr.w r2, r3, r0 - 8005f86: 697b ldr r3, [r7, #20] - 8005f88: 011b lsls r3, r3, #4 - 8005f8a: 440b add r3, r1 - 8005f8c: f503 73c4 add.w r3, r3, #392 ; 0x188 - 8005f90: 601a str r2, [r3, #0] + 80061c8: 687b ldr r3, [r7, #4] + 80061ca: 3303 adds r3, #3 + 80061cc: 781b ldrb r3, [r3, #0] + 80061ce: 061a lsls r2, r3, #24 + 80061d0: 687b ldr r3, [r7, #4] + 80061d2: 3302 adds r3, #2 + 80061d4: 781b ldrb r3, [r3, #0] + 80061d6: 041b lsls r3, r3, #16 + 80061d8: 431a orrs r2, r3 + 80061da: 687b ldr r3, [r7, #4] + 80061dc: 3301 adds r3, #1 + 80061de: 781b ldrb r3, [r3, #0] + 80061e0: 021b lsls r3, r3, #8 + 80061e2: 4313 orrs r3, r2 + 80061e4: 687a ldr r2, [r7, #4] + 80061e6: 7812 ldrb r2, [r2, #0] + 80061e8: 4610 mov r0, r2 + 80061ea: 68fa ldr r2, [r7, #12] + 80061ec: 6811 ldr r1, [r2, #0] + 80061ee: ea43 0200 orr.w r2, r3, r0 + 80061f2: 697b ldr r3, [r7, #20] + 80061f4: 011b lsls r3, r3, #4 + 80061f6: 440b add r3, r1 + 80061f8: f503 73c4 add.w r3, r3, #392 ; 0x188 + 80061fc: 601a str r2, [r3, #0] ((uint32_t)aData[2] << CAN_TDL0R_DATA2_Pos) | ((uint32_t)aData[1] << CAN_TDL0R_DATA1_Pos) | ((uint32_t)aData[0] << CAN_TDL0R_DATA0_Pos)); /* Request transmission */ SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ); - 8005f92: 68fb ldr r3, [r7, #12] - 8005f94: 681a ldr r2, [r3, #0] - 8005f96: 697b ldr r3, [r7, #20] - 8005f98: 3318 adds r3, #24 - 8005f9a: 011b lsls r3, r3, #4 - 8005f9c: 4413 add r3, r2 - 8005f9e: 681b ldr r3, [r3, #0] - 8005fa0: 68fa ldr r2, [r7, #12] - 8005fa2: 6811 ldr r1, [r2, #0] - 8005fa4: f043 0201 orr.w r2, r3, #1 - 8005fa8: 697b ldr r3, [r7, #20] - 8005faa: 3318 adds r3, #24 - 8005fac: 011b lsls r3, r3, #4 - 8005fae: 440b add r3, r1 - 8005fb0: 601a str r2, [r3, #0] + 80061fe: 68fb ldr r3, [r7, #12] + 8006200: 681a ldr r2, [r3, #0] + 8006202: 697b ldr r3, [r7, #20] + 8006204: 3318 adds r3, #24 + 8006206: 011b lsls r3, r3, #4 + 8006208: 4413 add r3, r2 + 800620a: 681b ldr r3, [r3, #0] + 800620c: 68fa ldr r2, [r7, #12] + 800620e: 6811 ldr r1, [r2, #0] + 8006210: f043 0201 orr.w r2, r3, #1 + 8006214: 697b ldr r3, [r7, #20] + 8006216: 3318 adds r3, #24 + 8006218: 011b lsls r3, r3, #4 + 800621a: 440b add r3, r1 + 800621c: 601a str r2, [r3, #0] /* Return function status */ return HAL_OK; - 8005fb2: 2300 movs r3, #0 - 8005fb4: e00e b.n 8005fd4 + 800621e: 2300 movs r3, #0 + 8006220: e00e b.n 8006240 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 8005fb6: 68fb ldr r3, [r7, #12] - 8005fb8: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005fba: f443 1200 orr.w r2, r3, #2097152 ; 0x200000 - 8005fbe: 68fb ldr r3, [r7, #12] - 8005fc0: 625a str r2, [r3, #36] ; 0x24 + 8006222: 68fb ldr r3, [r7, #12] + 8006224: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006226: f443 1200 orr.w r2, r3, #2097152 ; 0x200000 + 800622a: 68fb ldr r3, [r7, #12] + 800622c: 625a str r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005fc2: 2301 movs r3, #1 - 8005fc4: e006 b.n 8005fd4 + 800622e: 2301 movs r3, #1 + 8006230: e006 b.n 8006240 } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 8005fc6: 68fb ldr r3, [r7, #12] - 8005fc8: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005fca: f443 2280 orr.w r2, r3, #262144 ; 0x40000 - 8005fce: 68fb ldr r3, [r7, #12] - 8005fd0: 625a str r2, [r3, #36] ; 0x24 + 8006232: 68fb ldr r3, [r7, #12] + 8006234: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006236: f443 2280 orr.w r2, r3, #262144 ; 0x40000 + 800623a: 68fb ldr r3, [r7, #12] + 800623c: 625a str r2, [r3, #36] ; 0x24 return HAL_ERROR; - 8005fd2: 2301 movs r3, #1 + 800623e: 2301 movs r3, #1 } } - 8005fd4: 4618 mov r0, r3 - 8005fd6: 3724 adds r7, #36 ; 0x24 - 8005fd8: 46bd mov sp, r7 - 8005fda: bc80 pop {r7} - 8005fdc: 4770 bx lr + 8006240: 4618 mov r0, r3 + 8006242: 3724 adds r7, #36 ; 0x24 + 8006244: 46bd mov sp, r7 + 8006246: bc80 pop {r7} + 8006248: 4770 bx lr -08005fde : +0800624a : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval Number of free Tx Mailboxes. */ uint32_t HAL_CAN_GetTxMailboxesFreeLevel(CAN_HandleTypeDef *hcan) { - 8005fde: b480 push {r7} - 8005fe0: b085 sub sp, #20 - 8005fe2: af00 add r7, sp, #0 - 8005fe4: 6078 str r0, [r7, #4] + 800624a: b480 push {r7} + 800624c: b085 sub sp, #20 + 800624e: af00 add r7, sp, #0 + 8006250: 6078 str r0, [r7, #4] uint32_t freelevel = 0U; - 8005fe6: 2300 movs r3, #0 - 8005fe8: 60fb str r3, [r7, #12] + 8006252: 2300 movs r3, #0 + 8006254: 60fb str r3, [r7, #12] HAL_CAN_StateTypeDef state = hcan->State; - 8005fea: 687b ldr r3, [r7, #4] - 8005fec: f893 3020 ldrb.w r3, [r3, #32] - 8005ff0: 72fb strb r3, [r7, #11] + 8006256: 687b ldr r3, [r7, #4] + 8006258: f893 3020 ldrb.w r3, [r3, #32] + 800625c: 72fb strb r3, [r7, #11] if ((state == HAL_CAN_STATE_READY) || - 8005ff2: 7afb ldrb r3, [r7, #11] - 8005ff4: 2b01 cmp r3, #1 - 8005ff6: d002 beq.n 8005ffe - 8005ff8: 7afb ldrb r3, [r7, #11] - 8005ffa: 2b02 cmp r3, #2 - 8005ffc: d11d bne.n 800603a + 800625e: 7afb ldrb r3, [r7, #11] + 8006260: 2b01 cmp r3, #1 + 8006262: d002 beq.n 800626a + 8006264: 7afb ldrb r3, [r7, #11] + 8006266: 2b02 cmp r3, #2 + 8006268: d11d bne.n 80062a6 (state == HAL_CAN_STATE_LISTENING)) { /* Check Tx Mailbox 0 status */ if ((hcan->Instance->TSR & CAN_TSR_TME0) != 0U) - 8005ffe: 687b ldr r3, [r7, #4] - 8006000: 681b ldr r3, [r3, #0] - 8006002: 689b ldr r3, [r3, #8] - 8006004: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 8006008: 2b00 cmp r3, #0 - 800600a: d002 beq.n 8006012 + 800626a: 687b ldr r3, [r7, #4] + 800626c: 681b ldr r3, [r3, #0] + 800626e: 689b ldr r3, [r3, #8] + 8006270: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 8006274: 2b00 cmp r3, #0 + 8006276: d002 beq.n 800627e { freelevel++; - 800600c: 68fb ldr r3, [r7, #12] - 800600e: 3301 adds r3, #1 - 8006010: 60fb str r3, [r7, #12] + 8006278: 68fb ldr r3, [r7, #12] + 800627a: 3301 adds r3, #1 + 800627c: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 1 status */ if ((hcan->Instance->TSR & CAN_TSR_TME1) != 0U) - 8006012: 687b ldr r3, [r7, #4] - 8006014: 681b ldr r3, [r3, #0] - 8006016: 689b ldr r3, [r3, #8] - 8006018: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 800601c: 2b00 cmp r3, #0 - 800601e: d002 beq.n 8006026 + 800627e: 687b ldr r3, [r7, #4] + 8006280: 681b ldr r3, [r3, #0] + 8006282: 689b ldr r3, [r3, #8] + 8006284: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 8006288: 2b00 cmp r3, #0 + 800628a: d002 beq.n 8006292 { freelevel++; - 8006020: 68fb ldr r3, [r7, #12] - 8006022: 3301 adds r3, #1 - 8006024: 60fb str r3, [r7, #12] + 800628c: 68fb ldr r3, [r7, #12] + 800628e: 3301 adds r3, #1 + 8006290: 60fb str r3, [r7, #12] } /* Check Tx Mailbox 2 status */ if ((hcan->Instance->TSR & CAN_TSR_TME2) != 0U) - 8006026: 687b ldr r3, [r7, #4] - 8006028: 681b ldr r3, [r3, #0] - 800602a: 689b ldr r3, [r3, #8] - 800602c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8006030: 2b00 cmp r3, #0 - 8006032: d002 beq.n 800603a + 8006292: 687b ldr r3, [r7, #4] + 8006294: 681b ldr r3, [r3, #0] + 8006296: 689b ldr r3, [r3, #8] + 8006298: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 800629c: 2b00 cmp r3, #0 + 800629e: d002 beq.n 80062a6 { freelevel++; - 8006034: 68fb ldr r3, [r7, #12] - 8006036: 3301 adds r3, #1 - 8006038: 60fb str r3, [r7, #12] + 80062a0: 68fb ldr r3, [r7, #12] + 80062a2: 3301 adds r3, #1 + 80062a4: 60fb str r3, [r7, #12] } } /* Return Tx Mailboxes free level */ return freelevel; - 800603a: 68fb ldr r3, [r7, #12] -} - 800603c: 4618 mov r0, r3 - 800603e: 3714 adds r7, #20 - 8006040: 46bd mov sp, r7 - 8006042: bc80 pop {r7} - 8006044: 4770 bx lr - -08006046 : - * of the Rx frame will be stored. - * @param aData array where the payload of the Rx frame will be stored. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo, CAN_RxHeaderTypeDef *pHeader, uint8_t aData[]) -{ - 8006046: b480 push {r7} - 8006048: b087 sub sp, #28 - 800604a: af00 add r7, sp, #0 - 800604c: 60f8 str r0, [r7, #12] - 800604e: 60b9 str r1, [r7, #8] - 8006050: 607a str r2, [r7, #4] - 8006052: 603b str r3, [r7, #0] - HAL_CAN_StateTypeDef state = hcan->State; - 8006054: 68fb ldr r3, [r7, #12] - 8006056: f893 3020 ldrb.w r3, [r3, #32] - 800605a: 75fb strb r3, [r7, #23] - - assert_param(IS_CAN_RX_FIFO(RxFifo)); - - if ((state == HAL_CAN_STATE_READY) || - 800605c: 7dfb ldrb r3, [r7, #23] - 800605e: 2b01 cmp r3, #1 - 8006060: d003 beq.n 800606a - 8006062: 7dfb ldrb r3, [r7, #23] - 8006064: 2b02 cmp r3, #2 - 8006066: f040 80f3 bne.w 8006250 - (state == HAL_CAN_STATE_LISTENING)) - { - /* Check the Rx FIFO */ - if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ - 800606a: 68bb ldr r3, [r7, #8] - 800606c: 2b00 cmp r3, #0 - 800606e: d10e bne.n 800608e - { - /* Check that the Rx FIFO 0 is not empty */ - if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) - 8006070: 68fb ldr r3, [r7, #12] - 8006072: 681b ldr r3, [r3, #0] - 8006074: 68db ldr r3, [r3, #12] - 8006076: f003 0303 and.w r3, r3, #3 - 800607a: 2b00 cmp r3, #0 - 800607c: d116 bne.n 80060ac - { - /* Update error code */ - hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 800607e: 68fb ldr r3, [r7, #12] - 8006080: 6a5b ldr r3, [r3, #36] ; 0x24 - 8006082: f443 1200 orr.w r2, r3, #2097152 ; 0x200000 - 8006086: 68fb ldr r3, [r7, #12] - 8006088: 625a str r2, [r3, #36] ; 0x24 - - return HAL_ERROR; - 800608a: 2301 movs r3, #1 - 800608c: e0e7 b.n 800625e - } - } - else /* Rx element is assigned to Rx FIFO 1 */ - { - /* Check that the Rx FIFO 1 is not empty */ - if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) == 0U) - 800608e: 68fb ldr r3, [r7, #12] - 8006090: 681b ldr r3, [r3, #0] - 8006092: 691b ldr r3, [r3, #16] - 8006094: f003 0303 and.w r3, r3, #3 - 8006098: 2b00 cmp r3, #0 - 800609a: d107 bne.n 80060ac - { - /* Update error code */ - hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 800609c: 68fb ldr r3, [r7, #12] - 800609e: 6a5b ldr r3, [r3, #36] ; 0x24 - 80060a0: f443 1200 orr.w r2, r3, #2097152 ; 0x200000 - 80060a4: 68fb ldr r3, [r7, #12] - 80060a6: 625a str r2, [r3, #36] ; 0x24 - - return HAL_ERROR; - 80060a8: 2301 movs r3, #1 - 80060aa: e0d8 b.n 800625e - } - } - - /* Get the header */ - pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; - 80060ac: 68fb ldr r3, [r7, #12] - 80060ae: 681a ldr r2, [r3, #0] - 80060b0: 68bb ldr r3, [r7, #8] - 80060b2: 331b adds r3, #27 - 80060b4: 011b lsls r3, r3, #4 - 80060b6: 4413 add r3, r2 - 80060b8: 681b ldr r3, [r3, #0] - 80060ba: f003 0204 and.w r2, r3, #4 - 80060be: 687b ldr r3, [r7, #4] - 80060c0: 609a str r2, [r3, #8] - if (pHeader->IDE == CAN_ID_STD) - 80060c2: 687b ldr r3, [r7, #4] - 80060c4: 689b ldr r3, [r3, #8] - 80060c6: 2b00 cmp r3, #0 - 80060c8: d10c bne.n 80060e4 - { - pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; - 80060ca: 68fb ldr r3, [r7, #12] - 80060cc: 681a ldr r2, [r3, #0] - 80060ce: 68bb ldr r3, [r7, #8] - 80060d0: 331b adds r3, #27 - 80060d2: 011b lsls r3, r3, #4 - 80060d4: 4413 add r3, r2 - 80060d6: 681b ldr r3, [r3, #0] - 80060d8: 0d5b lsrs r3, r3, #21 - 80060da: f3c3 020a ubfx r2, r3, #0, #11 - 80060de: 687b ldr r3, [r7, #4] - 80060e0: 601a str r2, [r3, #0] - 80060e2: e00b b.n 80060fc - } - else - { - pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; - 80060e4: 68fb ldr r3, [r7, #12] - 80060e6: 681a ldr r2, [r3, #0] - 80060e8: 68bb ldr r3, [r7, #8] - 80060ea: 331b adds r3, #27 - 80060ec: 011b lsls r3, r3, #4 - 80060ee: 4413 add r3, r2 - 80060f0: 681b ldr r3, [r3, #0] - 80060f2: 08db lsrs r3, r3, #3 - 80060f4: f023 4260 bic.w r2, r3, #3758096384 ; 0xe0000000 - 80060f8: 687b ldr r3, [r7, #4] - 80060fa: 605a str r2, [r3, #4] - } - pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); - 80060fc: 68fb ldr r3, [r7, #12] - 80060fe: 681a ldr r2, [r3, #0] - 8006100: 68bb ldr r3, [r7, #8] - 8006102: 331b adds r3, #27 - 8006104: 011b lsls r3, r3, #4 - 8006106: 4413 add r3, r2 - 8006108: 681b ldr r3, [r3, #0] - 800610a: f003 0202 and.w r2, r3, #2 - 800610e: 687b ldr r3, [r7, #4] - 8006110: 60da str r2, [r3, #12] - pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; - 8006112: 68fb ldr r3, [r7, #12] - 8006114: 681a ldr r2, [r3, #0] - 8006116: 68bb ldr r3, [r7, #8] - 8006118: 331b adds r3, #27 - 800611a: 011b lsls r3, r3, #4 - 800611c: 4413 add r3, r2 - 800611e: 3304 adds r3, #4 - 8006120: 681b ldr r3, [r3, #0] - 8006122: f003 020f and.w r2, r3, #15 - 8006126: 687b ldr r3, [r7, #4] - 8006128: 611a str r2, [r3, #16] - pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; - 800612a: 68fb ldr r3, [r7, #12] - 800612c: 681a ldr r2, [r3, #0] - 800612e: 68bb ldr r3, [r7, #8] - 8006130: 331b adds r3, #27 - 8006132: 011b lsls r3, r3, #4 - 8006134: 4413 add r3, r2 - 8006136: 3304 adds r3, #4 - 8006138: 681b ldr r3, [r3, #0] - 800613a: 0a1b lsrs r3, r3, #8 - 800613c: b2da uxtb r2, r3 - 800613e: 687b ldr r3, [r7, #4] - 8006140: 619a str r2, [r3, #24] - pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; - 8006142: 68fb ldr r3, [r7, #12] - 8006144: 681a ldr r2, [r3, #0] - 8006146: 68bb ldr r3, [r7, #8] - 8006148: 331b adds r3, #27 - 800614a: 011b lsls r3, r3, #4 - 800614c: 4413 add r3, r2 - 800614e: 3304 adds r3, #4 - 8006150: 681b ldr r3, [r3, #0] - 8006152: 0c1b lsrs r3, r3, #16 - 8006154: b29a uxth r2, r3 - 8006156: 687b ldr r3, [r7, #4] - 8006158: 615a str r2, [r3, #20] - - /* Get the data */ - aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); - 800615a: 68fb ldr r3, [r7, #12] - 800615c: 681a ldr r2, [r3, #0] - 800615e: 68bb ldr r3, [r7, #8] - 8006160: 011b lsls r3, r3, #4 - 8006162: 4413 add r3, r2 - 8006164: f503 73dc add.w r3, r3, #440 ; 0x1b8 - 8006168: 681b ldr r3, [r3, #0] - 800616a: b2da uxtb r2, r3 - 800616c: 683b ldr r3, [r7, #0] - 800616e: 701a strb r2, [r3, #0] - aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); - 8006170: 68fb ldr r3, [r7, #12] - 8006172: 681a ldr r2, [r3, #0] - 8006174: 68bb ldr r3, [r7, #8] - 8006176: 011b lsls r3, r3, #4 - 8006178: 4413 add r3, r2 - 800617a: f503 73dc add.w r3, r3, #440 ; 0x1b8 - 800617e: 681b ldr r3, [r3, #0] - 8006180: 0a1a lsrs r2, r3, #8 - 8006182: 683b ldr r3, [r7, #0] - 8006184: 3301 adds r3, #1 - 8006186: b2d2 uxtb r2, r2 - 8006188: 701a strb r2, [r3, #0] - aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); - 800618a: 68fb ldr r3, [r7, #12] - 800618c: 681a ldr r2, [r3, #0] - 800618e: 68bb ldr r3, [r7, #8] - 8006190: 011b lsls r3, r3, #4 - 8006192: 4413 add r3, r2 - 8006194: f503 73dc add.w r3, r3, #440 ; 0x1b8 - 8006198: 681b ldr r3, [r3, #0] - 800619a: 0c1a lsrs r2, r3, #16 - 800619c: 683b ldr r3, [r7, #0] - 800619e: 3302 adds r3, #2 - 80061a0: b2d2 uxtb r2, r2 - 80061a2: 701a strb r2, [r3, #0] - aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); - 80061a4: 68fb ldr r3, [r7, #12] - 80061a6: 681a ldr r2, [r3, #0] - 80061a8: 68bb ldr r3, [r7, #8] - 80061aa: 011b lsls r3, r3, #4 - 80061ac: 4413 add r3, r2 - 80061ae: f503 73dc add.w r3, r3, #440 ; 0x1b8 - 80061b2: 681b ldr r3, [r3, #0] - 80061b4: 0e1a lsrs r2, r3, #24 - 80061b6: 683b ldr r3, [r7, #0] - 80061b8: 3303 adds r3, #3 - 80061ba: b2d2 uxtb r2, r2 - 80061bc: 701a strb r2, [r3, #0] - aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); - 80061be: 68fb ldr r3, [r7, #12] - 80061c0: 681a ldr r2, [r3, #0] - 80061c2: 68bb ldr r3, [r7, #8] - 80061c4: 011b lsls r3, r3, #4 - 80061c6: 4413 add r3, r2 - 80061c8: f503 73de add.w r3, r3, #444 ; 0x1bc - 80061cc: 681a ldr r2, [r3, #0] - 80061ce: 683b ldr r3, [r7, #0] - 80061d0: 3304 adds r3, #4 - 80061d2: b2d2 uxtb r2, r2 - 80061d4: 701a strb r2, [r3, #0] - aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); - 80061d6: 68fb ldr r3, [r7, #12] - 80061d8: 681a ldr r2, [r3, #0] - 80061da: 68bb ldr r3, [r7, #8] - 80061dc: 011b lsls r3, r3, #4 - 80061de: 4413 add r3, r2 - 80061e0: f503 73de add.w r3, r3, #444 ; 0x1bc - 80061e4: 681b ldr r3, [r3, #0] - 80061e6: 0a1a lsrs r2, r3, #8 - 80061e8: 683b ldr r3, [r7, #0] - 80061ea: 3305 adds r3, #5 - 80061ec: b2d2 uxtb r2, r2 - 80061ee: 701a strb r2, [r3, #0] - aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); - 80061f0: 68fb ldr r3, [r7, #12] - 80061f2: 681a ldr r2, [r3, #0] - 80061f4: 68bb ldr r3, [r7, #8] - 80061f6: 011b lsls r3, r3, #4 - 80061f8: 4413 add r3, r2 - 80061fa: f503 73de add.w r3, r3, #444 ; 0x1bc - 80061fe: 681b ldr r3, [r3, #0] - 8006200: 0c1a lsrs r2, r3, #16 - 8006202: 683b ldr r3, [r7, #0] - 8006204: 3306 adds r3, #6 - 8006206: b2d2 uxtb r2, r2 - 8006208: 701a strb r2, [r3, #0] - aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); - 800620a: 68fb ldr r3, [r7, #12] - 800620c: 681a ldr r2, [r3, #0] - 800620e: 68bb ldr r3, [r7, #8] - 8006210: 011b lsls r3, r3, #4 - 8006212: 4413 add r3, r2 - 8006214: f503 73de add.w r3, r3, #444 ; 0x1bc - 8006218: 681b ldr r3, [r3, #0] - 800621a: 0e1a lsrs r2, r3, #24 - 800621c: 683b ldr r3, [r7, #0] - 800621e: 3307 adds r3, #7 - 8006220: b2d2 uxtb r2, r2 - 8006222: 701a strb r2, [r3, #0] - - /* Release the FIFO */ - if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ - 8006224: 68bb ldr r3, [r7, #8] - 8006226: 2b00 cmp r3, #0 - 8006228: d108 bne.n 800623c - { - /* Release RX FIFO 0 */ - SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); - 800622a: 68fb ldr r3, [r7, #12] - 800622c: 681b ldr r3, [r3, #0] - 800622e: 68da ldr r2, [r3, #12] - 8006230: 68fb ldr r3, [r7, #12] - 8006232: 681b ldr r3, [r3, #0] - 8006234: f042 0220 orr.w r2, r2, #32 - 8006238: 60da str r2, [r3, #12] - 800623a: e007 b.n 800624c - } - else /* Rx element is assigned to Rx FIFO 1 */ - { - /* Release RX FIFO 1 */ - SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); - 800623c: 68fb ldr r3, [r7, #12] - 800623e: 681b ldr r3, [r3, #0] - 8006240: 691a ldr r2, [r3, #16] - 8006242: 68fb ldr r3, [r7, #12] - 8006244: 681b ldr r3, [r3, #0] - 8006246: f042 0220 orr.w r2, r2, #32 - 800624a: 611a str r2, [r3, #16] - } - - /* Return function status */ - return HAL_OK; - 800624c: 2300 movs r3, #0 - 800624e: e006 b.n 800625e - } - else - { - /* Update error code */ - hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 8006250: 68fb ldr r3, [r7, #12] - 8006252: 6a5b ldr r3, [r3, #36] ; 0x24 - 8006254: f443 2280 orr.w r2, r3, #262144 ; 0x40000 - 8006258: 68fb ldr r3, [r7, #12] - 800625a: 625a str r2, [r3, #36] ; 0x24 - - return HAL_ERROR; - 800625c: 2301 movs r3, #1 - } -} - 800625e: 4618 mov r0, r3 - 8006260: 371c adds r7, #28 - 8006262: 46bd mov sp, r7 - 8006264: bc80 pop {r7} - 8006266: 4770 bx lr - -08006268 : - * @param ActiveITs indicates which interrupts will be enabled. - * This parameter can be any combination of @arg CAN_Interrupts. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_CAN_ActivateNotification(CAN_HandleTypeDef *hcan, uint32_t ActiveITs) -{ - 8006268: b480 push {r7} - 800626a: b085 sub sp, #20 - 800626c: af00 add r7, sp, #0 - 800626e: 6078 str r0, [r7, #4] - 8006270: 6039 str r1, [r7, #0] - HAL_CAN_StateTypeDef state = hcan->State; - 8006272: 687b ldr r3, [r7, #4] - 8006274: f893 3020 ldrb.w r3, [r3, #32] - 8006278: 73fb strb r3, [r7, #15] - - /* Check function parameters */ - assert_param(IS_CAN_IT(ActiveITs)); - - if ((state == HAL_CAN_STATE_READY) || - 800627a: 7bfb ldrb r3, [r7, #15] - 800627c: 2b01 cmp r3, #1 - 800627e: d002 beq.n 8006286 - 8006280: 7bfb ldrb r3, [r7, #15] - 8006282: 2b02 cmp r3, #2 - 8006284: d109 bne.n 800629a - (state == HAL_CAN_STATE_LISTENING)) - { - /* Enable the selected interrupts */ - __HAL_CAN_ENABLE_IT(hcan, ActiveITs); - 8006286: 687b ldr r3, [r7, #4] - 8006288: 681b ldr r3, [r3, #0] - 800628a: 6959 ldr r1, [r3, #20] - 800628c: 687b ldr r3, [r7, #4] - 800628e: 681b ldr r3, [r3, #0] - 8006290: 683a ldr r2, [r7, #0] - 8006292: 430a orrs r2, r1 - 8006294: 615a str r2, [r3, #20] - - /* Return function status */ - return HAL_OK; - 8006296: 2300 movs r3, #0 - 8006298: e006 b.n 80062a8 - } - else - { - /* Update error code */ - hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 800629a: 687b ldr r3, [r7, #4] - 800629c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800629e: f443 2280 orr.w r2, r3, #262144 ; 0x40000 - 80062a2: 687b ldr r3, [r7, #4] - 80062a4: 625a str r2, [r3, #36] ; 0x24 - - return HAL_ERROR; - 80062a6: 2301 movs r3, #1 - } + 80062a6: 68fb ldr r3, [r7, #12] } 80062a8: 4618 mov r0, r3 80062aa: 3714 adds r7, #20 @@ -14496,13915 +14397,14320 @@ HAL_StatusTypeDef HAL_CAN_ActivateNotification(CAN_HandleTypeDef *hcan, uint32_t 80062ae: bc80 pop {r7} 80062b0: 4770 bx lr -080062b2 : +080062b2 : + * of the Rx frame will be stored. + * @param aData array where the payload of the Rx frame will be stored. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo, CAN_RxHeaderTypeDef *pHeader, uint8_t aData[]) +{ + 80062b2: b480 push {r7} + 80062b4: b087 sub sp, #28 + 80062b6: af00 add r7, sp, #0 + 80062b8: 60f8 str r0, [r7, #12] + 80062ba: 60b9 str r1, [r7, #8] + 80062bc: 607a str r2, [r7, #4] + 80062be: 603b str r3, [r7, #0] + HAL_CAN_StateTypeDef state = hcan->State; + 80062c0: 68fb ldr r3, [r7, #12] + 80062c2: f893 3020 ldrb.w r3, [r3, #32] + 80062c6: 75fb strb r3, [r7, #23] + + assert_param(IS_CAN_RX_FIFO(RxFifo)); + + if ((state == HAL_CAN_STATE_READY) || + 80062c8: 7dfb ldrb r3, [r7, #23] + 80062ca: 2b01 cmp r3, #1 + 80062cc: d003 beq.n 80062d6 + 80062ce: 7dfb ldrb r3, [r7, #23] + 80062d0: 2b02 cmp r3, #2 + 80062d2: f040 80f3 bne.w 80064bc + (state == HAL_CAN_STATE_LISTENING)) + { + /* Check the Rx FIFO */ + if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ + 80062d6: 68bb ldr r3, [r7, #8] + 80062d8: 2b00 cmp r3, #0 + 80062da: d10e bne.n 80062fa + { + /* Check that the Rx FIFO 0 is not empty */ + if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U) + 80062dc: 68fb ldr r3, [r7, #12] + 80062de: 681b ldr r3, [r3, #0] + 80062e0: 68db ldr r3, [r3, #12] + 80062e2: f003 0303 and.w r3, r3, #3 + 80062e6: 2b00 cmp r3, #0 + 80062e8: d116 bne.n 8006318 + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; + 80062ea: 68fb ldr r3, [r7, #12] + 80062ec: 6a5b ldr r3, [r3, #36] ; 0x24 + 80062ee: f443 1200 orr.w r2, r3, #2097152 ; 0x200000 + 80062f2: 68fb ldr r3, [r7, #12] + 80062f4: 625a str r2, [r3, #36] ; 0x24 + + return HAL_ERROR; + 80062f6: 2301 movs r3, #1 + 80062f8: e0e7 b.n 80064ca + } + } + else /* Rx element is assigned to Rx FIFO 1 */ + { + /* Check that the Rx FIFO 1 is not empty */ + if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) == 0U) + 80062fa: 68fb ldr r3, [r7, #12] + 80062fc: 681b ldr r3, [r3, #0] + 80062fe: 691b ldr r3, [r3, #16] + 8006300: f003 0303 and.w r3, r3, #3 + 8006304: 2b00 cmp r3, #0 + 8006306: d107 bne.n 8006318 + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; + 8006308: 68fb ldr r3, [r7, #12] + 800630a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800630c: f443 1200 orr.w r2, r3, #2097152 ; 0x200000 + 8006310: 68fb ldr r3, [r7, #12] + 8006312: 625a str r2, [r3, #36] ; 0x24 + + return HAL_ERROR; + 8006314: 2301 movs r3, #1 + 8006316: e0d8 b.n 80064ca + } + } + + /* Get the header */ + pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR; + 8006318: 68fb ldr r3, [r7, #12] + 800631a: 681a ldr r2, [r3, #0] + 800631c: 68bb ldr r3, [r7, #8] + 800631e: 331b adds r3, #27 + 8006320: 011b lsls r3, r3, #4 + 8006322: 4413 add r3, r2 + 8006324: 681b ldr r3, [r3, #0] + 8006326: f003 0204 and.w r2, r3, #4 + 800632a: 687b ldr r3, [r7, #4] + 800632c: 609a str r2, [r3, #8] + if (pHeader->IDE == CAN_ID_STD) + 800632e: 687b ldr r3, [r7, #4] + 8006330: 689b ldr r3, [r3, #8] + 8006332: 2b00 cmp r3, #0 + 8006334: d10c bne.n 8006350 + { + pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos; + 8006336: 68fb ldr r3, [r7, #12] + 8006338: 681a ldr r2, [r3, #0] + 800633a: 68bb ldr r3, [r7, #8] + 800633c: 331b adds r3, #27 + 800633e: 011b lsls r3, r3, #4 + 8006340: 4413 add r3, r2 + 8006342: 681b ldr r3, [r3, #0] + 8006344: 0d5b lsrs r3, r3, #21 + 8006346: f3c3 020a ubfx r2, r3, #0, #11 + 800634a: 687b ldr r3, [r7, #4] + 800634c: 601a str r2, [r3, #0] + 800634e: e00b b.n 8006368 + } + else + { + pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos; + 8006350: 68fb ldr r3, [r7, #12] + 8006352: 681a ldr r2, [r3, #0] + 8006354: 68bb ldr r3, [r7, #8] + 8006356: 331b adds r3, #27 + 8006358: 011b lsls r3, r3, #4 + 800635a: 4413 add r3, r2 + 800635c: 681b ldr r3, [r3, #0] + 800635e: 08db lsrs r3, r3, #3 + 8006360: f023 4260 bic.w r2, r3, #3758096384 ; 0xe0000000 + 8006364: 687b ldr r3, [r7, #4] + 8006366: 605a str r2, [r3, #4] + } + pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR); + 8006368: 68fb ldr r3, [r7, #12] + 800636a: 681a ldr r2, [r3, #0] + 800636c: 68bb ldr r3, [r7, #8] + 800636e: 331b adds r3, #27 + 8006370: 011b lsls r3, r3, #4 + 8006372: 4413 add r3, r2 + 8006374: 681b ldr r3, [r3, #0] + 8006376: f003 0202 and.w r2, r3, #2 + 800637a: 687b ldr r3, [r7, #4] + 800637c: 60da str r2, [r3, #12] + pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos; + 800637e: 68fb ldr r3, [r7, #12] + 8006380: 681a ldr r2, [r3, #0] + 8006382: 68bb ldr r3, [r7, #8] + 8006384: 331b adds r3, #27 + 8006386: 011b lsls r3, r3, #4 + 8006388: 4413 add r3, r2 + 800638a: 3304 adds r3, #4 + 800638c: 681b ldr r3, [r3, #0] + 800638e: f003 020f and.w r2, r3, #15 + 8006392: 687b ldr r3, [r7, #4] + 8006394: 611a str r2, [r3, #16] + pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos; + 8006396: 68fb ldr r3, [r7, #12] + 8006398: 681a ldr r2, [r3, #0] + 800639a: 68bb ldr r3, [r7, #8] + 800639c: 331b adds r3, #27 + 800639e: 011b lsls r3, r3, #4 + 80063a0: 4413 add r3, r2 + 80063a2: 3304 adds r3, #4 + 80063a4: 681b ldr r3, [r3, #0] + 80063a6: 0a1b lsrs r3, r3, #8 + 80063a8: b2da uxtb r2, r3 + 80063aa: 687b ldr r3, [r7, #4] + 80063ac: 619a str r2, [r3, #24] + pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos; + 80063ae: 68fb ldr r3, [r7, #12] + 80063b0: 681a ldr r2, [r3, #0] + 80063b2: 68bb ldr r3, [r7, #8] + 80063b4: 331b adds r3, #27 + 80063b6: 011b lsls r3, r3, #4 + 80063b8: 4413 add r3, r2 + 80063ba: 3304 adds r3, #4 + 80063bc: 681b ldr r3, [r3, #0] + 80063be: 0c1b lsrs r3, r3, #16 + 80063c0: b29a uxth r2, r3 + 80063c2: 687b ldr r3, [r7, #4] + 80063c4: 615a str r2, [r3, #20] + + /* Get the data */ + aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos); + 80063c6: 68fb ldr r3, [r7, #12] + 80063c8: 681a ldr r2, [r3, #0] + 80063ca: 68bb ldr r3, [r7, #8] + 80063cc: 011b lsls r3, r3, #4 + 80063ce: 4413 add r3, r2 + 80063d0: f503 73dc add.w r3, r3, #440 ; 0x1b8 + 80063d4: 681b ldr r3, [r3, #0] + 80063d6: b2da uxtb r2, r3 + 80063d8: 683b ldr r3, [r7, #0] + 80063da: 701a strb r2, [r3, #0] + aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos); + 80063dc: 68fb ldr r3, [r7, #12] + 80063de: 681a ldr r2, [r3, #0] + 80063e0: 68bb ldr r3, [r7, #8] + 80063e2: 011b lsls r3, r3, #4 + 80063e4: 4413 add r3, r2 + 80063e6: f503 73dc add.w r3, r3, #440 ; 0x1b8 + 80063ea: 681b ldr r3, [r3, #0] + 80063ec: 0a1a lsrs r2, r3, #8 + 80063ee: 683b ldr r3, [r7, #0] + 80063f0: 3301 adds r3, #1 + 80063f2: b2d2 uxtb r2, r2 + 80063f4: 701a strb r2, [r3, #0] + aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos); + 80063f6: 68fb ldr r3, [r7, #12] + 80063f8: 681a ldr r2, [r3, #0] + 80063fa: 68bb ldr r3, [r7, #8] + 80063fc: 011b lsls r3, r3, #4 + 80063fe: 4413 add r3, r2 + 8006400: f503 73dc add.w r3, r3, #440 ; 0x1b8 + 8006404: 681b ldr r3, [r3, #0] + 8006406: 0c1a lsrs r2, r3, #16 + 8006408: 683b ldr r3, [r7, #0] + 800640a: 3302 adds r3, #2 + 800640c: b2d2 uxtb r2, r2 + 800640e: 701a strb r2, [r3, #0] + aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos); + 8006410: 68fb ldr r3, [r7, #12] + 8006412: 681a ldr r2, [r3, #0] + 8006414: 68bb ldr r3, [r7, #8] + 8006416: 011b lsls r3, r3, #4 + 8006418: 4413 add r3, r2 + 800641a: f503 73dc add.w r3, r3, #440 ; 0x1b8 + 800641e: 681b ldr r3, [r3, #0] + 8006420: 0e1a lsrs r2, r3, #24 + 8006422: 683b ldr r3, [r7, #0] + 8006424: 3303 adds r3, #3 + 8006426: b2d2 uxtb r2, r2 + 8006428: 701a strb r2, [r3, #0] + aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos); + 800642a: 68fb ldr r3, [r7, #12] + 800642c: 681a ldr r2, [r3, #0] + 800642e: 68bb ldr r3, [r7, #8] + 8006430: 011b lsls r3, r3, #4 + 8006432: 4413 add r3, r2 + 8006434: f503 73de add.w r3, r3, #444 ; 0x1bc + 8006438: 681a ldr r2, [r3, #0] + 800643a: 683b ldr r3, [r7, #0] + 800643c: 3304 adds r3, #4 + 800643e: b2d2 uxtb r2, r2 + 8006440: 701a strb r2, [r3, #0] + aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos); + 8006442: 68fb ldr r3, [r7, #12] + 8006444: 681a ldr r2, [r3, #0] + 8006446: 68bb ldr r3, [r7, #8] + 8006448: 011b lsls r3, r3, #4 + 800644a: 4413 add r3, r2 + 800644c: f503 73de add.w r3, r3, #444 ; 0x1bc + 8006450: 681b ldr r3, [r3, #0] + 8006452: 0a1a lsrs r2, r3, #8 + 8006454: 683b ldr r3, [r7, #0] + 8006456: 3305 adds r3, #5 + 8006458: b2d2 uxtb r2, r2 + 800645a: 701a strb r2, [r3, #0] + aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos); + 800645c: 68fb ldr r3, [r7, #12] + 800645e: 681a ldr r2, [r3, #0] + 8006460: 68bb ldr r3, [r7, #8] + 8006462: 011b lsls r3, r3, #4 + 8006464: 4413 add r3, r2 + 8006466: f503 73de add.w r3, r3, #444 ; 0x1bc + 800646a: 681b ldr r3, [r3, #0] + 800646c: 0c1a lsrs r2, r3, #16 + 800646e: 683b ldr r3, [r7, #0] + 8006470: 3306 adds r3, #6 + 8006472: b2d2 uxtb r2, r2 + 8006474: 701a strb r2, [r3, #0] + aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos); + 8006476: 68fb ldr r3, [r7, #12] + 8006478: 681a ldr r2, [r3, #0] + 800647a: 68bb ldr r3, [r7, #8] + 800647c: 011b lsls r3, r3, #4 + 800647e: 4413 add r3, r2 + 8006480: f503 73de add.w r3, r3, #444 ; 0x1bc + 8006484: 681b ldr r3, [r3, #0] + 8006486: 0e1a lsrs r2, r3, #24 + 8006488: 683b ldr r3, [r7, #0] + 800648a: 3307 adds r3, #7 + 800648c: b2d2 uxtb r2, r2 + 800648e: 701a strb r2, [r3, #0] + + /* Release the FIFO */ + if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */ + 8006490: 68bb ldr r3, [r7, #8] + 8006492: 2b00 cmp r3, #0 + 8006494: d108 bne.n 80064a8 + { + /* Release RX FIFO 0 */ + SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0); + 8006496: 68fb ldr r3, [r7, #12] + 8006498: 681b ldr r3, [r3, #0] + 800649a: 68da ldr r2, [r3, #12] + 800649c: 68fb ldr r3, [r7, #12] + 800649e: 681b ldr r3, [r3, #0] + 80064a0: f042 0220 orr.w r2, r2, #32 + 80064a4: 60da str r2, [r3, #12] + 80064a6: e007 b.n 80064b8 + } + else /* Rx element is assigned to Rx FIFO 1 */ + { + /* Release RX FIFO 1 */ + SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1); + 80064a8: 68fb ldr r3, [r7, #12] + 80064aa: 681b ldr r3, [r3, #0] + 80064ac: 691a ldr r2, [r3, #16] + 80064ae: 68fb ldr r3, [r7, #12] + 80064b0: 681b ldr r3, [r3, #0] + 80064b2: f042 0220 orr.w r2, r2, #32 + 80064b6: 611a str r2, [r3, #16] + } + + /* Return function status */ + return HAL_OK; + 80064b8: 2300 movs r3, #0 + 80064ba: e006 b.n 80064ca + } + else + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; + 80064bc: 68fb ldr r3, [r7, #12] + 80064be: 6a5b ldr r3, [r3, #36] ; 0x24 + 80064c0: f443 2280 orr.w r2, r3, #262144 ; 0x40000 + 80064c4: 68fb ldr r3, [r7, #12] + 80064c6: 625a str r2, [r3, #36] ; 0x24 + + return HAL_ERROR; + 80064c8: 2301 movs r3, #1 + } +} + 80064ca: 4618 mov r0, r3 + 80064cc: 371c adds r7, #28 + 80064ce: 46bd mov sp, r7 + 80064d0: bc80 pop {r7} + 80064d2: 4770 bx lr + +080064d4 : + * @param ActiveITs indicates which interrupts will be enabled. + * This parameter can be any combination of @arg CAN_Interrupts. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_CAN_ActivateNotification(CAN_HandleTypeDef *hcan, uint32_t ActiveITs) +{ + 80064d4: b480 push {r7} + 80064d6: b085 sub sp, #20 + 80064d8: af00 add r7, sp, #0 + 80064da: 6078 str r0, [r7, #4] + 80064dc: 6039 str r1, [r7, #0] + HAL_CAN_StateTypeDef state = hcan->State; + 80064de: 687b ldr r3, [r7, #4] + 80064e0: f893 3020 ldrb.w r3, [r3, #32] + 80064e4: 73fb strb r3, [r7, #15] + + /* Check function parameters */ + assert_param(IS_CAN_IT(ActiveITs)); + + if ((state == HAL_CAN_STATE_READY) || + 80064e6: 7bfb ldrb r3, [r7, #15] + 80064e8: 2b01 cmp r3, #1 + 80064ea: d002 beq.n 80064f2 + 80064ec: 7bfb ldrb r3, [r7, #15] + 80064ee: 2b02 cmp r3, #2 + 80064f0: d109 bne.n 8006506 + (state == HAL_CAN_STATE_LISTENING)) + { + /* Enable the selected interrupts */ + __HAL_CAN_ENABLE_IT(hcan, ActiveITs); + 80064f2: 687b ldr r3, [r7, #4] + 80064f4: 681b ldr r3, [r3, #0] + 80064f6: 6959 ldr r1, [r3, #20] + 80064f8: 687b ldr r3, [r7, #4] + 80064fa: 681b ldr r3, [r3, #0] + 80064fc: 683a ldr r2, [r7, #0] + 80064fe: 430a orrs r2, r1 + 8006500: 615a str r2, [r3, #20] + + /* Return function status */ + return HAL_OK; + 8006502: 2300 movs r3, #0 + 8006504: e006 b.n 8006514 + } + else + { + /* Update error code */ + hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; + 8006506: 687b ldr r3, [r7, #4] + 8006508: 6a5b ldr r3, [r3, #36] ; 0x24 + 800650a: f443 2280 orr.w r2, r3, #262144 ; 0x40000 + 800650e: 687b ldr r3, [r7, #4] + 8006510: 625a str r2, [r3, #36] ; 0x24 + + return HAL_ERROR; + 8006512: 2301 movs r3, #1 + } +} + 8006514: 4618 mov r0, r3 + 8006516: 3714 adds r7, #20 + 8006518: 46bd mov sp, r7 + 800651a: bc80 pop {r7} + 800651c: 4770 bx lr + +0800651e : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ void HAL_CAN_IRQHandler(CAN_HandleTypeDef *hcan) { - 80062b2: b580 push {r7, lr} - 80062b4: b08a sub sp, #40 ; 0x28 - 80062b6: af00 add r7, sp, #0 - 80062b8: 6078 str r0, [r7, #4] + 800651e: b580 push {r7, lr} + 8006520: b08a sub sp, #40 ; 0x28 + 8006522: af00 add r7, sp, #0 + 8006524: 6078 str r0, [r7, #4] uint32_t errorcode = HAL_CAN_ERROR_NONE; - 80062ba: 2300 movs r3, #0 - 80062bc: 627b str r3, [r7, #36] ; 0x24 + 8006526: 2300 movs r3, #0 + 8006528: 627b str r3, [r7, #36] ; 0x24 uint32_t interrupts = READ_REG(hcan->Instance->IER); - 80062be: 687b ldr r3, [r7, #4] - 80062c0: 681b ldr r3, [r3, #0] - 80062c2: 695b ldr r3, [r3, #20] - 80062c4: 623b str r3, [r7, #32] + 800652a: 687b ldr r3, [r7, #4] + 800652c: 681b ldr r3, [r3, #0] + 800652e: 695b ldr r3, [r3, #20] + 8006530: 623b str r3, [r7, #32] uint32_t msrflags = READ_REG(hcan->Instance->MSR); - 80062c6: 687b ldr r3, [r7, #4] - 80062c8: 681b ldr r3, [r3, #0] - 80062ca: 685b ldr r3, [r3, #4] - 80062cc: 61fb str r3, [r7, #28] + 8006532: 687b ldr r3, [r7, #4] + 8006534: 681b ldr r3, [r3, #0] + 8006536: 685b ldr r3, [r3, #4] + 8006538: 61fb str r3, [r7, #28] uint32_t tsrflags = READ_REG(hcan->Instance->TSR); - 80062ce: 687b ldr r3, [r7, #4] - 80062d0: 681b ldr r3, [r3, #0] - 80062d2: 689b ldr r3, [r3, #8] - 80062d4: 61bb str r3, [r7, #24] + 800653a: 687b ldr r3, [r7, #4] + 800653c: 681b ldr r3, [r3, #0] + 800653e: 689b ldr r3, [r3, #8] + 8006540: 61bb str r3, [r7, #24] uint32_t rf0rflags = READ_REG(hcan->Instance->RF0R); - 80062d6: 687b ldr r3, [r7, #4] - 80062d8: 681b ldr r3, [r3, #0] - 80062da: 68db ldr r3, [r3, #12] - 80062dc: 617b str r3, [r7, #20] + 8006542: 687b ldr r3, [r7, #4] + 8006544: 681b ldr r3, [r3, #0] + 8006546: 68db ldr r3, [r3, #12] + 8006548: 617b str r3, [r7, #20] uint32_t rf1rflags = READ_REG(hcan->Instance->RF1R); - 80062de: 687b ldr r3, [r7, #4] - 80062e0: 681b ldr r3, [r3, #0] - 80062e2: 691b ldr r3, [r3, #16] - 80062e4: 613b str r3, [r7, #16] + 800654a: 687b ldr r3, [r7, #4] + 800654c: 681b ldr r3, [r3, #0] + 800654e: 691b ldr r3, [r3, #16] + 8006550: 613b str r3, [r7, #16] uint32_t esrflags = READ_REG(hcan->Instance->ESR); - 80062e6: 687b ldr r3, [r7, #4] - 80062e8: 681b ldr r3, [r3, #0] - 80062ea: 699b ldr r3, [r3, #24] - 80062ec: 60fb str r3, [r7, #12] + 8006552: 687b ldr r3, [r7, #4] + 8006554: 681b ldr r3, [r3, #0] + 8006556: 699b ldr r3, [r3, #24] + 8006558: 60fb str r3, [r7, #12] /* Transmit Mailbox empty interrupt management *****************************/ if ((interrupts & CAN_IT_TX_MAILBOX_EMPTY) != 0U) - 80062ee: 6a3b ldr r3, [r7, #32] - 80062f0: f003 0301 and.w r3, r3, #1 - 80062f4: 2b00 cmp r3, #0 - 80062f6: d07c beq.n 80063f2 + 800655a: 6a3b ldr r3, [r7, #32] + 800655c: f003 0301 and.w r3, r3, #1 + 8006560: 2b00 cmp r3, #0 + 8006562: d07c beq.n 800665e { /* Transmit Mailbox 0 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP0) != 0U) - 80062f8: 69bb ldr r3, [r7, #24] - 80062fa: f003 0301 and.w r3, r3, #1 - 80062fe: 2b00 cmp r3, #0 - 8006300: d023 beq.n 800634a + 8006564: 69bb ldr r3, [r7, #24] + 8006566: f003 0301 and.w r3, r3, #1 + 800656a: 2b00 cmp r3, #0 + 800656c: d023 beq.n 80065b6 { /* Clear the Transmission Complete flag (and TXOK0,ALST0,TERR0 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP0); - 8006302: 687b ldr r3, [r7, #4] - 8006304: 681b ldr r3, [r3, #0] - 8006306: 2201 movs r2, #1 - 8006308: 609a str r2, [r3, #8] + 800656e: 687b ldr r3, [r7, #4] + 8006570: 681b ldr r3, [r3, #0] + 8006572: 2201 movs r2, #1 + 8006574: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK0) != 0U) - 800630a: 69bb ldr r3, [r7, #24] - 800630c: f003 0302 and.w r3, r3, #2 - 8006310: 2b00 cmp r3, #0 - 8006312: d003 beq.n 800631c + 8006576: 69bb ldr r3, [r7, #24] + 8006578: f003 0302 and.w r3, r3, #2 + 800657c: 2b00 cmp r3, #0 + 800657e: d003 beq.n 8006588 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0CompleteCallback(hcan); - 8006314: 6878 ldr r0, [r7, #4] - 8006316: f7fd fc21 bl 8003b5c - 800631a: e016 b.n 800634a + 8006580: 6878 ldr r0, [r7, #4] + 8006582: f7fd fc2b bl 8003ddc + 8006586: e016 b.n 80065b6 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST0) != 0U) - 800631c: 69bb ldr r3, [r7, #24] - 800631e: f003 0304 and.w r3, r3, #4 - 8006322: 2b00 cmp r3, #0 - 8006324: d004 beq.n 8006330 + 8006588: 69bb ldr r3, [r7, #24] + 800658a: f003 0304 and.w r3, r3, #4 + 800658e: 2b00 cmp r3, #0 + 8006590: d004 beq.n 800659c { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST0; - 8006326: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006328: f443 6300 orr.w r3, r3, #2048 ; 0x800 - 800632c: 627b str r3, [r7, #36] ; 0x24 - 800632e: e00c b.n 800634a + 8006592: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006594: f443 6300 orr.w r3, r3, #2048 ; 0x800 + 8006598: 627b str r3, [r7, #36] ; 0x24 + 800659a: e00c b.n 80065b6 } else if ((tsrflags & CAN_TSR_TERR0) != 0U) - 8006330: 69bb ldr r3, [r7, #24] - 8006332: f003 0308 and.w r3, r3, #8 - 8006336: 2b00 cmp r3, #0 - 8006338: d004 beq.n 8006344 + 800659c: 69bb ldr r3, [r7, #24] + 800659e: f003 0308 and.w r3, r3, #8 + 80065a2: 2b00 cmp r3, #0 + 80065a4: d004 beq.n 80065b0 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR0; - 800633a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800633c: f443 5380 orr.w r3, r3, #4096 ; 0x1000 - 8006340: 627b str r3, [r7, #36] ; 0x24 - 8006342: e002 b.n 800634a + 80065a6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80065a8: f443 5380 orr.w r3, r3, #4096 ; 0x1000 + 80065ac: 627b str r3, [r7, #36] ; 0x24 + 80065ae: e002 b.n 80065b6 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox0AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox0AbortCallback(hcan); - 8006344: 6878 ldr r0, [r7, #4] - 8006346: f000 f96b bl 8006620 + 80065b0: 6878 ldr r0, [r7, #4] + 80065b2: f000 f96b bl 800688c } } } /* Transmit Mailbox 1 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP1) != 0U) - 800634a: 69bb ldr r3, [r7, #24] - 800634c: f403 7380 and.w r3, r3, #256 ; 0x100 - 8006350: 2b00 cmp r3, #0 - 8006352: d024 beq.n 800639e + 80065b6: 69bb ldr r3, [r7, #24] + 80065b8: f403 7380 and.w r3, r3, #256 ; 0x100 + 80065bc: 2b00 cmp r3, #0 + 80065be: d024 beq.n 800660a { /* Clear the Transmission Complete flag (and TXOK1,ALST1,TERR1 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP1); - 8006354: 687b ldr r3, [r7, #4] - 8006356: 681b ldr r3, [r3, #0] - 8006358: f44f 7280 mov.w r2, #256 ; 0x100 - 800635c: 609a str r2, [r3, #8] + 80065c0: 687b ldr r3, [r7, #4] + 80065c2: 681b ldr r3, [r3, #0] + 80065c4: f44f 7280 mov.w r2, #256 ; 0x100 + 80065c8: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK1) != 0U) - 800635e: 69bb ldr r3, [r7, #24] - 8006360: f403 7300 and.w r3, r3, #512 ; 0x200 - 8006364: 2b00 cmp r3, #0 - 8006366: d003 beq.n 8006370 + 80065ca: 69bb ldr r3, [r7, #24] + 80065cc: f403 7300 and.w r3, r3, #512 ; 0x200 + 80065d0: 2b00 cmp r3, #0 + 80065d2: d003 beq.n 80065dc #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1CompleteCallback(hcan); - 8006368: 6878 ldr r0, [r7, #4] - 800636a: f7fd fc11 bl 8003b90 - 800636e: e016 b.n 800639e + 80065d4: 6878 ldr r0, [r7, #4] + 80065d6: f7fd fc1b bl 8003e10 + 80065da: e016 b.n 800660a #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST1) != 0U) - 8006370: 69bb ldr r3, [r7, #24] - 8006372: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8006376: 2b00 cmp r3, #0 - 8006378: d004 beq.n 8006384 + 80065dc: 69bb ldr r3, [r7, #24] + 80065de: f403 6380 and.w r3, r3, #1024 ; 0x400 + 80065e2: 2b00 cmp r3, #0 + 80065e4: d004 beq.n 80065f0 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST1; - 800637a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800637c: f443 5300 orr.w r3, r3, #8192 ; 0x2000 - 8006380: 627b str r3, [r7, #36] ; 0x24 - 8006382: e00c b.n 800639e + 80065e6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80065e8: f443 5300 orr.w r3, r3, #8192 ; 0x2000 + 80065ec: 627b str r3, [r7, #36] ; 0x24 + 80065ee: e00c b.n 800660a } else if ((tsrflags & CAN_TSR_TERR1) != 0U) - 8006384: 69bb ldr r3, [r7, #24] - 8006386: f403 6300 and.w r3, r3, #2048 ; 0x800 - 800638a: 2b00 cmp r3, #0 - 800638c: d004 beq.n 8006398 + 80065f0: 69bb ldr r3, [r7, #24] + 80065f2: f403 6300 and.w r3, r3, #2048 ; 0x800 + 80065f6: 2b00 cmp r3, #0 + 80065f8: d004 beq.n 8006604 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR1; - 800638e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006390: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 8006394: 627b str r3, [r7, #36] ; 0x24 - 8006396: e002 b.n 800639e + 80065fa: 6a7b ldr r3, [r7, #36] ; 0x24 + 80065fc: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8006600: 627b str r3, [r7, #36] ; 0x24 + 8006602: e002 b.n 800660a #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox1AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox1AbortCallback(hcan); - 8006398: 6878 ldr r0, [r7, #4] - 800639a: f000 f94a bl 8006632 + 8006604: 6878 ldr r0, [r7, #4] + 8006606: f000 f94a bl 800689e } } } /* Transmit Mailbox 2 management *****************************************/ if ((tsrflags & CAN_TSR_RQCP2) != 0U) - 800639e: 69bb ldr r3, [r7, #24] - 80063a0: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80063a4: 2b00 cmp r3, #0 - 80063a6: d024 beq.n 80063f2 + 800660a: 69bb ldr r3, [r7, #24] + 800660c: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8006610: 2b00 cmp r3, #0 + 8006612: d024 beq.n 800665e { /* Clear the Transmission Complete flag (and TXOK2,ALST2,TERR2 bits) */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_RQCP2); - 80063a8: 687b ldr r3, [r7, #4] - 80063aa: 681b ldr r3, [r3, #0] - 80063ac: f44f 3280 mov.w r2, #65536 ; 0x10000 - 80063b0: 609a str r2, [r3, #8] + 8006614: 687b ldr r3, [r7, #4] + 8006616: 681b ldr r3, [r3, #0] + 8006618: f44f 3280 mov.w r2, #65536 ; 0x10000 + 800661c: 609a str r2, [r3, #8] if ((tsrflags & CAN_TSR_TXOK2) != 0U) - 80063b2: 69bb ldr r3, [r7, #24] - 80063b4: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80063b8: 2b00 cmp r3, #0 - 80063ba: d003 beq.n 80063c4 + 800661e: 69bb ldr r3, [r7, #24] + 8006620: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8006624: 2b00 cmp r3, #0 + 8006626: d003 beq.n 8006630 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2CompleteCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2CompleteCallback(hcan); - 80063bc: 6878 ldr r0, [r7, #4] - 80063be: f7fd fc01 bl 8003bc4 - 80063c2: e016 b.n 80063f2 + 8006628: 6878 ldr r0, [r7, #4] + 800662a: f7fd fc0b bl 8003e44 + 800662e: e016 b.n 800665e #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } else { if ((tsrflags & CAN_TSR_ALST2) != 0U) - 80063c4: 69bb ldr r3, [r7, #24] - 80063c6: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 80063ca: 2b00 cmp r3, #0 - 80063cc: d004 beq.n 80063d8 + 8006630: 69bb ldr r3, [r7, #24] + 8006632: f403 2380 and.w r3, r3, #262144 ; 0x40000 + 8006636: 2b00 cmp r3, #0 + 8006638: d004 beq.n 8006644 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_ALST2; - 80063ce: 6a7b ldr r3, [r7, #36] ; 0x24 - 80063d0: f443 4300 orr.w r3, r3, #32768 ; 0x8000 - 80063d4: 627b str r3, [r7, #36] ; 0x24 - 80063d6: e00c b.n 80063f2 + 800663a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800663c: f443 4300 orr.w r3, r3, #32768 ; 0x8000 + 8006640: 627b str r3, [r7, #36] ; 0x24 + 8006642: e00c b.n 800665e } else if ((tsrflags & CAN_TSR_TERR2) != 0U) - 80063d8: 69bb ldr r3, [r7, #24] - 80063da: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 80063de: 2b00 cmp r3, #0 - 80063e0: d004 beq.n 80063ec + 8006644: 69bb ldr r3, [r7, #24] + 8006646: f403 2300 and.w r3, r3, #524288 ; 0x80000 + 800664a: 2b00 cmp r3, #0 + 800664c: d004 beq.n 8006658 { /* Update error code */ errorcode |= HAL_CAN_ERROR_TX_TERR2; - 80063e2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80063e4: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 80063e8: 627b str r3, [r7, #36] ; 0x24 - 80063ea: e002 b.n 80063f2 + 800664e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006650: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8006654: 627b str r3, [r7, #36] ; 0x24 + 8006656: e002 b.n 800665e #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->TxMailbox2AbortCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_TxMailbox2AbortCallback(hcan); - 80063ec: 6878 ldr r0, [r7, #4] - 80063ee: f000 f929 bl 8006644 + 8006658: 6878 ldr r0, [r7, #4] + 800665a: f000 f929 bl 80068b0 } } } /* Receive FIFO 0 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO0_OVERRUN) != 0U) - 80063f2: 6a3b ldr r3, [r7, #32] - 80063f4: f003 0308 and.w r3, r3, #8 - 80063f8: 2b00 cmp r3, #0 - 80063fa: d00c beq.n 8006416 + 800665e: 6a3b ldr r3, [r7, #32] + 8006660: f003 0308 and.w r3, r3, #8 + 8006664: 2b00 cmp r3, #0 + 8006666: d00c beq.n 8006682 { if ((rf0rflags & CAN_RF0R_FOVR0) != 0U) - 80063fc: 697b ldr r3, [r7, #20] - 80063fe: f003 0310 and.w r3, r3, #16 - 8006402: 2b00 cmp r3, #0 - 8006404: d007 beq.n 8006416 + 8006668: 697b ldr r3, [r7, #20] + 800666a: f003 0310 and.w r3, r3, #16 + 800666e: 2b00 cmp r3, #0 + 8006670: d007 beq.n 8006682 { /* Set CAN error code to Rx Fifo 0 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV0; - 8006406: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006408: f443 7300 orr.w r3, r3, #512 ; 0x200 - 800640c: 627b str r3, [r7, #36] ; 0x24 + 8006672: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006674: f443 7300 orr.w r3, r3, #512 ; 0x200 + 8006678: 627b str r3, [r7, #36] ; 0x24 /* Clear FIFO0 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV0); - 800640e: 687b ldr r3, [r7, #4] - 8006410: 681b ldr r3, [r3, #0] - 8006412: 2210 movs r2, #16 - 8006414: 60da str r2, [r3, #12] + 800667a: 687b ldr r3, [r7, #4] + 800667c: 681b ldr r3, [r3, #0] + 800667e: 2210 movs r2, #16 + 8006680: 60da str r2, [r3, #12] } } /* Receive FIFO 0 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO0_FULL) != 0U) - 8006416: 6a3b ldr r3, [r7, #32] - 8006418: f003 0304 and.w r3, r3, #4 - 800641c: 2b00 cmp r3, #0 - 800641e: d00b beq.n 8006438 + 8006682: 6a3b ldr r3, [r7, #32] + 8006684: f003 0304 and.w r3, r3, #4 + 8006688: 2b00 cmp r3, #0 + 800668a: d00b beq.n 80066a4 { if ((rf0rflags & CAN_RF0R_FULL0) != 0U) - 8006420: 697b ldr r3, [r7, #20] - 8006422: f003 0308 and.w r3, r3, #8 - 8006426: 2b00 cmp r3, #0 - 8006428: d006 beq.n 8006438 + 800668c: 697b ldr r3, [r7, #20] + 800668e: f003 0308 and.w r3, r3, #8 + 8006692: 2b00 cmp r3, #0 + 8006694: d006 beq.n 80066a4 { /* Clear FIFO 0 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF0); - 800642a: 687b ldr r3, [r7, #4] - 800642c: 681b ldr r3, [r3, #0] - 800642e: 2208 movs r2, #8 - 8006430: 60da str r2, [r3, #12] + 8006696: 687b ldr r3, [r7, #4] + 8006698: 681b ldr r3, [r3, #0] + 800669a: 2208 movs r2, #8 + 800669c: 60da str r2, [r3, #12] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0FullCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0FullCallback(hcan); - 8006432: 6878 ldr r0, [r7, #4] - 8006434: f000 f90f bl 8006656 + 800669e: 6878 ldr r0, [r7, #4] + 80066a0: f000 f90f bl 80068c2 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 0 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U) - 8006438: 6a3b ldr r3, [r7, #32] - 800643a: f003 0302 and.w r3, r3, #2 - 800643e: 2b00 cmp r3, #0 - 8006440: d009 beq.n 8006456 + 80066a4: 6a3b ldr r3, [r7, #32] + 80066a6: f003 0302 and.w r3, r3, #2 + 80066aa: 2b00 cmp r3, #0 + 80066ac: d009 beq.n 80066c2 { /* Check if message is still pending */ if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U) - 8006442: 687b ldr r3, [r7, #4] - 8006444: 681b ldr r3, [r3, #0] - 8006446: 68db ldr r3, [r3, #12] - 8006448: f003 0303 and.w r3, r3, #3 - 800644c: 2b00 cmp r3, #0 - 800644e: d002 beq.n 8006456 + 80066ae: 687b ldr r3, [r7, #4] + 80066b0: 681b ldr r3, [r3, #0] + 80066b2: 68db ldr r3, [r3, #12] + 80066b4: f003 0303 and.w r3, r3, #3 + 80066b8: 2b00 cmp r3, #0 + 80066ba: d002 beq.n 80066c2 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo0MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo0MsgPendingCallback(hcan); - 8006450: 6878 ldr r0, [r7, #4] - 8006452: f7fd f82d bl 80034b0 + 80066bc: 6878 ldr r0, [r7, #4] + 80066be: f7fd f837 bl 8003730 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 overrun interrupt management *****************************/ if ((interrupts & CAN_IT_RX_FIFO1_OVERRUN) != 0U) - 8006456: 6a3b ldr r3, [r7, #32] - 8006458: f003 0340 and.w r3, r3, #64 ; 0x40 - 800645c: 2b00 cmp r3, #0 - 800645e: d00c beq.n 800647a + 80066c2: 6a3b ldr r3, [r7, #32] + 80066c4: f003 0340 and.w r3, r3, #64 ; 0x40 + 80066c8: 2b00 cmp r3, #0 + 80066ca: d00c beq.n 80066e6 { if ((rf1rflags & CAN_RF1R_FOVR1) != 0U) - 8006460: 693b ldr r3, [r7, #16] - 8006462: f003 0310 and.w r3, r3, #16 - 8006466: 2b00 cmp r3, #0 - 8006468: d007 beq.n 800647a + 80066cc: 693b ldr r3, [r7, #16] + 80066ce: f003 0310 and.w r3, r3, #16 + 80066d2: 2b00 cmp r3, #0 + 80066d4: d007 beq.n 80066e6 { /* Set CAN error code to Rx Fifo 1 overrun error */ errorcode |= HAL_CAN_ERROR_RX_FOV1; - 800646a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800646c: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8006470: 627b str r3, [r7, #36] ; 0x24 + 80066d6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80066d8: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 80066dc: 627b str r3, [r7, #36] ; 0x24 /* Clear FIFO1 Overrun Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FOV1); - 8006472: 687b ldr r3, [r7, #4] - 8006474: 681b ldr r3, [r3, #0] - 8006476: 2210 movs r2, #16 - 8006478: 611a str r2, [r3, #16] + 80066de: 687b ldr r3, [r7, #4] + 80066e0: 681b ldr r3, [r3, #0] + 80066e2: 2210 movs r2, #16 + 80066e4: 611a str r2, [r3, #16] } } /* Receive FIFO 1 full interrupt management ********************************/ if ((interrupts & CAN_IT_RX_FIFO1_FULL) != 0U) - 800647a: 6a3b ldr r3, [r7, #32] - 800647c: f003 0320 and.w r3, r3, #32 - 8006480: 2b00 cmp r3, #0 - 8006482: d00b beq.n 800649c + 80066e6: 6a3b ldr r3, [r7, #32] + 80066e8: f003 0320 and.w r3, r3, #32 + 80066ec: 2b00 cmp r3, #0 + 80066ee: d00b beq.n 8006708 { if ((rf1rflags & CAN_RF1R_FULL1) != 0U) - 8006484: 693b ldr r3, [r7, #16] - 8006486: f003 0308 and.w r3, r3, #8 - 800648a: 2b00 cmp r3, #0 - 800648c: d006 beq.n 800649c + 80066f0: 693b ldr r3, [r7, #16] + 80066f2: f003 0308 and.w r3, r3, #8 + 80066f6: 2b00 cmp r3, #0 + 80066f8: d006 beq.n 8006708 { /* Clear FIFO 1 full Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_FF1); - 800648e: 687b ldr r3, [r7, #4] - 8006490: 681b ldr r3, [r3, #0] - 8006492: 2208 movs r2, #8 - 8006494: 611a str r2, [r3, #16] + 80066fa: 687b ldr r3, [r7, #4] + 80066fc: 681b ldr r3, [r3, #0] + 80066fe: 2208 movs r2, #8 + 8006700: 611a str r2, [r3, #16] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1FullCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1FullCallback(hcan); - 8006496: 6878 ldr r0, [r7, #4] - 8006498: f000 f8e6 bl 8006668 + 8006702: 6878 ldr r0, [r7, #4] + 8006704: f000 f8e6 bl 80068d4 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Receive FIFO 1 message pending interrupt management *********************/ if ((interrupts & CAN_IT_RX_FIFO1_MSG_PENDING) != 0U) - 800649c: 6a3b ldr r3, [r7, #32] - 800649e: f003 0310 and.w r3, r3, #16 - 80064a2: 2b00 cmp r3, #0 - 80064a4: d009 beq.n 80064ba + 8006708: 6a3b ldr r3, [r7, #32] + 800670a: f003 0310 and.w r3, r3, #16 + 800670e: 2b00 cmp r3, #0 + 8006710: d009 beq.n 8006726 { /* Check if message is still pending */ if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) != 0U) - 80064a6: 687b ldr r3, [r7, #4] - 80064a8: 681b ldr r3, [r3, #0] - 80064aa: 691b ldr r3, [r3, #16] - 80064ac: f003 0303 and.w r3, r3, #3 - 80064b0: 2b00 cmp r3, #0 - 80064b2: d002 beq.n 80064ba + 8006712: 687b ldr r3, [r7, #4] + 8006714: 681b ldr r3, [r3, #0] + 8006716: 691b ldr r3, [r3, #16] + 8006718: f003 0303 and.w r3, r3, #3 + 800671c: 2b00 cmp r3, #0 + 800671e: d002 beq.n 8006726 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->RxFifo1MsgPendingCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_RxFifo1MsgPendingCallback(hcan); - 80064b4: 6878 ldr r0, [r7, #4] - 80064b6: f7fd fafb bl 8003ab0 + 8006720: 6878 ldr r0, [r7, #4] + 8006722: f7fd fb05 bl 8003d30 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Sleep interrupt management *********************************************/ if ((interrupts & CAN_IT_SLEEP_ACK) != 0U) - 80064ba: 6a3b ldr r3, [r7, #32] - 80064bc: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80064c0: 2b00 cmp r3, #0 - 80064c2: d00b beq.n 80064dc + 8006726: 6a3b ldr r3, [r7, #32] + 8006728: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 800672c: 2b00 cmp r3, #0 + 800672e: d00b beq.n 8006748 { if ((msrflags & CAN_MSR_SLAKI) != 0U) - 80064c4: 69fb ldr r3, [r7, #28] - 80064c6: f003 0310 and.w r3, r3, #16 - 80064ca: 2b00 cmp r3, #0 - 80064cc: d006 beq.n 80064dc + 8006730: 69fb ldr r3, [r7, #28] + 8006732: f003 0310 and.w r3, r3, #16 + 8006736: 2b00 cmp r3, #0 + 8006738: d006 beq.n 8006748 { /* Clear Sleep interrupt Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_SLAKI); - 80064ce: 687b ldr r3, [r7, #4] - 80064d0: 681b ldr r3, [r3, #0] - 80064d2: 2210 movs r2, #16 - 80064d4: 605a str r2, [r3, #4] + 800673a: 687b ldr r3, [r7, #4] + 800673c: 681b ldr r3, [r3, #0] + 800673e: 2210 movs r2, #16 + 8006740: 605a str r2, [r3, #4] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->SleepCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_SleepCallback(hcan); - 80064d6: 6878 ldr r0, [r7, #4] - 80064d8: f000 f8cf bl 800667a + 8006742: 6878 ldr r0, [r7, #4] + 8006744: f000 f8cf bl 80068e6 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* WakeUp interrupt management *********************************************/ if ((interrupts & CAN_IT_WAKEUP) != 0U) - 80064dc: 6a3b ldr r3, [r7, #32] - 80064de: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80064e2: 2b00 cmp r3, #0 - 80064e4: d00b beq.n 80064fe + 8006748: 6a3b ldr r3, [r7, #32] + 800674a: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 800674e: 2b00 cmp r3, #0 + 8006750: d00b beq.n 800676a { if ((msrflags & CAN_MSR_WKUI) != 0U) - 80064e6: 69fb ldr r3, [r7, #28] - 80064e8: f003 0308 and.w r3, r3, #8 - 80064ec: 2b00 cmp r3, #0 - 80064ee: d006 beq.n 80064fe + 8006752: 69fb ldr r3, [r7, #28] + 8006754: f003 0308 and.w r3, r3, #8 + 8006758: 2b00 cmp r3, #0 + 800675a: d006 beq.n 800676a { /* Clear WakeUp Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_WKU); - 80064f0: 687b ldr r3, [r7, #4] - 80064f2: 681b ldr r3, [r3, #0] - 80064f4: 2208 movs r2, #8 - 80064f6: 605a str r2, [r3, #4] + 800675c: 687b ldr r3, [r7, #4] + 800675e: 681b ldr r3, [r3, #0] + 8006760: 2208 movs r2, #8 + 8006762: 605a str r2, [r3, #4] #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->WakeUpFromRxMsgCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_WakeUpFromRxMsgCallback(hcan); - 80064f8: 6878 ldr r0, [r7, #4] - 80064fa: f000 f8c7 bl 800668c + 8006764: 6878 ldr r0, [r7, #4] + 8006766: f000 f8c7 bl 80068f8 #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } /* Error interrupts management *********************************************/ if ((interrupts & CAN_IT_ERROR) != 0U) - 80064fe: 6a3b ldr r3, [r7, #32] - 8006500: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 8006504: 2b00 cmp r3, #0 - 8006506: d07b beq.n 8006600 + 800676a: 6a3b ldr r3, [r7, #32] + 800676c: f403 4300 and.w r3, r3, #32768 ; 0x8000 + 8006770: 2b00 cmp r3, #0 + 8006772: d07b beq.n 800686c { if ((msrflags & CAN_MSR_ERRI) != 0U) - 8006508: 69fb ldr r3, [r7, #28] - 800650a: f003 0304 and.w r3, r3, #4 - 800650e: 2b00 cmp r3, #0 - 8006510: d072 beq.n 80065f8 + 8006774: 69fb ldr r3, [r7, #28] + 8006776: f003 0304 and.w r3, r3, #4 + 800677a: 2b00 cmp r3, #0 + 800677c: d072 beq.n 8006864 { /* Check Error Warning Flag */ if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && - 8006512: 6a3b ldr r3, [r7, #32] - 8006514: f403 7380 and.w r3, r3, #256 ; 0x100 - 8006518: 2b00 cmp r3, #0 - 800651a: d008 beq.n 800652e + 800677e: 6a3b ldr r3, [r7, #32] + 8006780: f403 7380 and.w r3, r3, #256 ; 0x100 + 8006784: 2b00 cmp r3, #0 + 8006786: d008 beq.n 800679a ((esrflags & CAN_ESR_EWGF) != 0U)) - 800651c: 68fb ldr r3, [r7, #12] - 800651e: f003 0301 and.w r3, r3, #1 + 8006788: 68fb ldr r3, [r7, #12] + 800678a: f003 0301 and.w r3, r3, #1 if (((interrupts & CAN_IT_ERROR_WARNING) != 0U) && - 8006522: 2b00 cmp r3, #0 - 8006524: d003 beq.n 800652e + 800678e: 2b00 cmp r3, #0 + 8006790: d003 beq.n 800679a { /* Set CAN error code to Error Warning */ errorcode |= HAL_CAN_ERROR_EWG; - 8006526: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006528: f043 0301 orr.w r3, r3, #1 - 800652c: 627b str r3, [r7, #36] ; 0x24 + 8006792: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006794: f043 0301 orr.w r3, r3, #1 + 8006798: 627b str r3, [r7, #36] ; 0x24 /* No need for clear of Error Warning Flag as read-only */ } /* Check Error Passive Flag */ if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && - 800652e: 6a3b ldr r3, [r7, #32] - 8006530: f403 7300 and.w r3, r3, #512 ; 0x200 - 8006534: 2b00 cmp r3, #0 - 8006536: d008 beq.n 800654a + 800679a: 6a3b ldr r3, [r7, #32] + 800679c: f403 7300 and.w r3, r3, #512 ; 0x200 + 80067a0: 2b00 cmp r3, #0 + 80067a2: d008 beq.n 80067b6 ((esrflags & CAN_ESR_EPVF) != 0U)) - 8006538: 68fb ldr r3, [r7, #12] - 800653a: f003 0302 and.w r3, r3, #2 + 80067a4: 68fb ldr r3, [r7, #12] + 80067a6: f003 0302 and.w r3, r3, #2 if (((interrupts & CAN_IT_ERROR_PASSIVE) != 0U) && - 800653e: 2b00 cmp r3, #0 - 8006540: d003 beq.n 800654a + 80067aa: 2b00 cmp r3, #0 + 80067ac: d003 beq.n 80067b6 { /* Set CAN error code to Error Passive */ errorcode |= HAL_CAN_ERROR_EPV; - 8006542: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006544: f043 0302 orr.w r3, r3, #2 - 8006548: 627b str r3, [r7, #36] ; 0x24 + 80067ae: 6a7b ldr r3, [r7, #36] ; 0x24 + 80067b0: f043 0302 orr.w r3, r3, #2 + 80067b4: 627b str r3, [r7, #36] ; 0x24 /* No need for clear of Error Passive Flag as read-only */ } /* Check Bus-off Flag */ if (((interrupts & CAN_IT_BUSOFF) != 0U) && - 800654a: 6a3b ldr r3, [r7, #32] - 800654c: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8006550: 2b00 cmp r3, #0 - 8006552: d008 beq.n 8006566 + 80067b6: 6a3b ldr r3, [r7, #32] + 80067b8: f403 6380 and.w r3, r3, #1024 ; 0x400 + 80067bc: 2b00 cmp r3, #0 + 80067be: d008 beq.n 80067d2 ((esrflags & CAN_ESR_BOFF) != 0U)) - 8006554: 68fb ldr r3, [r7, #12] - 8006556: f003 0304 and.w r3, r3, #4 + 80067c0: 68fb ldr r3, [r7, #12] + 80067c2: f003 0304 and.w r3, r3, #4 if (((interrupts & CAN_IT_BUSOFF) != 0U) && - 800655a: 2b00 cmp r3, #0 - 800655c: d003 beq.n 8006566 + 80067c6: 2b00 cmp r3, #0 + 80067c8: d003 beq.n 80067d2 { /* Set CAN error code to Bus-Off */ errorcode |= HAL_CAN_ERROR_BOF; - 800655e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006560: f043 0304 orr.w r3, r3, #4 - 8006564: 627b str r3, [r7, #36] ; 0x24 + 80067ca: 6a7b ldr r3, [r7, #36] ; 0x24 + 80067cc: f043 0304 orr.w r3, r3, #4 + 80067d0: 627b str r3, [r7, #36] ; 0x24 /* No need for clear of Error Bus-Off as read-only */ } /* Check Last Error Code Flag */ if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && - 8006566: 6a3b ldr r3, [r7, #32] - 8006568: f403 6300 and.w r3, r3, #2048 ; 0x800 - 800656c: 2b00 cmp r3, #0 - 800656e: d043 beq.n 80065f8 + 80067d2: 6a3b ldr r3, [r7, #32] + 80067d4: f403 6300 and.w r3, r3, #2048 ; 0x800 + 80067d8: 2b00 cmp r3, #0 + 80067da: d043 beq.n 8006864 ((esrflags & CAN_ESR_LEC) != 0U)) - 8006570: 68fb ldr r3, [r7, #12] - 8006572: f003 0370 and.w r3, r3, #112 ; 0x70 + 80067dc: 68fb ldr r3, [r7, #12] + 80067de: f003 0370 and.w r3, r3, #112 ; 0x70 if (((interrupts & CAN_IT_LAST_ERROR_CODE) != 0U) && - 8006576: 2b00 cmp r3, #0 - 8006578: d03e beq.n 80065f8 + 80067e2: 2b00 cmp r3, #0 + 80067e4: d03e beq.n 8006864 { switch (esrflags & CAN_ESR_LEC) - 800657a: 68fb ldr r3, [r7, #12] - 800657c: f003 0370 and.w r3, r3, #112 ; 0x70 - 8006580: 2b60 cmp r3, #96 ; 0x60 - 8006582: d02b beq.n 80065dc - 8006584: 2b60 cmp r3, #96 ; 0x60 - 8006586: d82e bhi.n 80065e6 - 8006588: 2b50 cmp r3, #80 ; 0x50 - 800658a: d022 beq.n 80065d2 - 800658c: 2b50 cmp r3, #80 ; 0x50 - 800658e: d82a bhi.n 80065e6 - 8006590: 2b40 cmp r3, #64 ; 0x40 - 8006592: d019 beq.n 80065c8 - 8006594: 2b40 cmp r3, #64 ; 0x40 - 8006596: d826 bhi.n 80065e6 - 8006598: 2b30 cmp r3, #48 ; 0x30 - 800659a: d010 beq.n 80065be - 800659c: 2b30 cmp r3, #48 ; 0x30 - 800659e: d822 bhi.n 80065e6 - 80065a0: 2b10 cmp r3, #16 - 80065a2: d002 beq.n 80065aa - 80065a4: 2b20 cmp r3, #32 - 80065a6: d005 beq.n 80065b4 + 80067e6: 68fb ldr r3, [r7, #12] + 80067e8: f003 0370 and.w r3, r3, #112 ; 0x70 + 80067ec: 2b60 cmp r3, #96 ; 0x60 + 80067ee: d02b beq.n 8006848 + 80067f0: 2b60 cmp r3, #96 ; 0x60 + 80067f2: d82e bhi.n 8006852 + 80067f4: 2b50 cmp r3, #80 ; 0x50 + 80067f6: d022 beq.n 800683e + 80067f8: 2b50 cmp r3, #80 ; 0x50 + 80067fa: d82a bhi.n 8006852 + 80067fc: 2b40 cmp r3, #64 ; 0x40 + 80067fe: d019 beq.n 8006834 + 8006800: 2b40 cmp r3, #64 ; 0x40 + 8006802: d826 bhi.n 8006852 + 8006804: 2b30 cmp r3, #48 ; 0x30 + 8006806: d010 beq.n 800682a + 8006808: 2b30 cmp r3, #48 ; 0x30 + 800680a: d822 bhi.n 8006852 + 800680c: 2b10 cmp r3, #16 + 800680e: d002 beq.n 8006816 + 8006810: 2b20 cmp r3, #32 + 8006812: d005 beq.n 8006820 case (CAN_ESR_LEC_2 | CAN_ESR_LEC_1): /* Set CAN error code to CRC error */ errorcode |= HAL_CAN_ERROR_CRC; break; default: break; - 80065a8: e01d b.n 80065e6 + 8006814: e01d b.n 8006852 errorcode |= HAL_CAN_ERROR_STF; - 80065aa: 6a7b ldr r3, [r7, #36] ; 0x24 - 80065ac: f043 0308 orr.w r3, r3, #8 - 80065b0: 627b str r3, [r7, #36] ; 0x24 + 8006816: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006818: f043 0308 orr.w r3, r3, #8 + 800681c: 627b str r3, [r7, #36] ; 0x24 break; - 80065b2: e019 b.n 80065e8 + 800681e: e019 b.n 8006854 errorcode |= HAL_CAN_ERROR_FOR; - 80065b4: 6a7b ldr r3, [r7, #36] ; 0x24 - 80065b6: f043 0310 orr.w r3, r3, #16 - 80065ba: 627b str r3, [r7, #36] ; 0x24 + 8006820: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006822: f043 0310 orr.w r3, r3, #16 + 8006826: 627b str r3, [r7, #36] ; 0x24 break; - 80065bc: e014 b.n 80065e8 + 8006828: e014 b.n 8006854 errorcode |= HAL_CAN_ERROR_ACK; - 80065be: 6a7b ldr r3, [r7, #36] ; 0x24 - 80065c0: f043 0320 orr.w r3, r3, #32 - 80065c4: 627b str r3, [r7, #36] ; 0x24 + 800682a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800682c: f043 0320 orr.w r3, r3, #32 + 8006830: 627b str r3, [r7, #36] ; 0x24 break; - 80065c6: e00f b.n 80065e8 + 8006832: e00f b.n 8006854 errorcode |= HAL_CAN_ERROR_BR; - 80065c8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80065ca: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80065ce: 627b str r3, [r7, #36] ; 0x24 + 8006834: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006836: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800683a: 627b str r3, [r7, #36] ; 0x24 break; - 80065d0: e00a b.n 80065e8 + 800683c: e00a b.n 8006854 errorcode |= HAL_CAN_ERROR_BD; - 80065d2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80065d4: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80065d8: 627b str r3, [r7, #36] ; 0x24 + 800683e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006840: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8006844: 627b str r3, [r7, #36] ; 0x24 break; - 80065da: e005 b.n 80065e8 + 8006846: e005 b.n 8006854 errorcode |= HAL_CAN_ERROR_CRC; - 80065dc: 6a7b ldr r3, [r7, #36] ; 0x24 - 80065de: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80065e2: 627b str r3, [r7, #36] ; 0x24 + 8006848: 6a7b ldr r3, [r7, #36] ; 0x24 + 800684a: f443 7380 orr.w r3, r3, #256 ; 0x100 + 800684e: 627b str r3, [r7, #36] ; 0x24 break; - 80065e4: e000 b.n 80065e8 + 8006850: e000 b.n 8006854 break; - 80065e6: bf00 nop + 8006852: bf00 nop } /* Clear Last error code Flag */ CLEAR_BIT(hcan->Instance->ESR, CAN_ESR_LEC); - 80065e8: 687b ldr r3, [r7, #4] - 80065ea: 681b ldr r3, [r3, #0] - 80065ec: 699a ldr r2, [r3, #24] - 80065ee: 687b ldr r3, [r7, #4] - 80065f0: 681b ldr r3, [r3, #0] - 80065f2: f022 0270 bic.w r2, r2, #112 ; 0x70 - 80065f6: 619a str r2, [r3, #24] + 8006854: 687b ldr r3, [r7, #4] + 8006856: 681b ldr r3, [r3, #0] + 8006858: 699a ldr r2, [r3, #24] + 800685a: 687b ldr r3, [r7, #4] + 800685c: 681b ldr r3, [r3, #0] + 800685e: f022 0270 bic.w r2, r2, #112 ; 0x70 + 8006862: 619a str r2, [r3, #24] } } /* Clear ERRI Flag */ __HAL_CAN_CLEAR_FLAG(hcan, CAN_FLAG_ERRI); - 80065f8: 687b ldr r3, [r7, #4] - 80065fa: 681b ldr r3, [r3, #0] - 80065fc: 2204 movs r2, #4 - 80065fe: 605a str r2, [r3, #4] + 8006864: 687b ldr r3, [r7, #4] + 8006866: 681b ldr r3, [r3, #0] + 8006868: 2204 movs r2, #4 + 800686a: 605a str r2, [r3, #4] } /* Call the Error call Back in case of Errors */ if (errorcode != HAL_CAN_ERROR_NONE) - 8006600: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006602: 2b00 cmp r3, #0 - 8006604: d008 beq.n 8006618 + 800686c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800686e: 2b00 cmp r3, #0 + 8006870: d008 beq.n 8006884 { /* Update error code in handle */ hcan->ErrorCode |= errorcode; - 8006606: 687b ldr r3, [r7, #4] - 8006608: 6a5a ldr r2, [r3, #36] ; 0x24 - 800660a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800660c: 431a orrs r2, r3 - 800660e: 687b ldr r3, [r7, #4] - 8006610: 625a str r2, [r3, #36] ; 0x24 + 8006872: 687b ldr r3, [r7, #4] + 8006874: 6a5a ldr r2, [r3, #36] ; 0x24 + 8006876: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006878: 431a orrs r2, r3 + 800687a: 687b ldr r3, [r7, #4] + 800687c: 625a str r2, [r3, #36] ; 0x24 #if USE_HAL_CAN_REGISTER_CALLBACKS == 1 /* Call registered callback*/ hcan->ErrorCallback(hcan); #else /* Call weak (surcharged) callback */ HAL_CAN_ErrorCallback(hcan); - 8006612: 6878 ldr r0, [r7, #4] - 8006614: f000 f843 bl 800669e + 800687e: 6878 ldr r0, [r7, #4] + 8006880: f000 f843 bl 800690a #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ } } - 8006618: bf00 nop - 800661a: 3728 adds r7, #40 ; 0x28 - 800661c: 46bd mov sp, r7 - 800661e: bd80 pop {r7, pc} + 8006884: bf00 nop + 8006886: 3728 adds r7, #40 ; 0x28 + 8006888: 46bd mov sp, r7 + 800688a: bd80 pop {r7, pc} -08006620 : +0800688c : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox0AbortCallback(CAN_HandleTypeDef *hcan) { - 8006620: b480 push {r7} - 8006622: b083 sub sp, #12 - 8006624: af00 add r7, sp, #0 - 8006626: 6078 str r0, [r7, #4] + 800688c: b480 push {r7} + 800688e: b083 sub sp, #12 + 8006890: af00 add r7, sp, #0 + 8006892: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox0AbortCallback could be implemented in the user file */ } - 8006628: bf00 nop - 800662a: 370c adds r7, #12 - 800662c: 46bd mov sp, r7 - 800662e: bc80 pop {r7} - 8006630: 4770 bx lr + 8006894: bf00 nop + 8006896: 370c adds r7, #12 + 8006898: 46bd mov sp, r7 + 800689a: bc80 pop {r7} + 800689c: 4770 bx lr -08006632 : +0800689e : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox1AbortCallback(CAN_HandleTypeDef *hcan) { - 8006632: b480 push {r7} - 8006634: b083 sub sp, #12 - 8006636: af00 add r7, sp, #0 - 8006638: 6078 str r0, [r7, #4] + 800689e: b480 push {r7} + 80068a0: b083 sub sp, #12 + 80068a2: af00 add r7, sp, #0 + 80068a4: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox1AbortCallback could be implemented in the user file */ } - 800663a: bf00 nop - 800663c: 370c adds r7, #12 - 800663e: 46bd mov sp, r7 - 8006640: bc80 pop {r7} - 8006642: 4770 bx lr + 80068a6: bf00 nop + 80068a8: 370c adds r7, #12 + 80068aa: 46bd mov sp, r7 + 80068ac: bc80 pop {r7} + 80068ae: 4770 bx lr -08006644 : +080068b0 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_TxMailbox2AbortCallback(CAN_HandleTypeDef *hcan) { - 8006644: b480 push {r7} - 8006646: b083 sub sp, #12 - 8006648: af00 add r7, sp, #0 - 800664a: 6078 str r0, [r7, #4] + 80068b0: b480 push {r7} + 80068b2: b083 sub sp, #12 + 80068b4: af00 add r7, sp, #0 + 80068b6: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_TxMailbox2AbortCallback could be implemented in the user file */ } - 800664c: bf00 nop - 800664e: 370c adds r7, #12 - 8006650: 46bd mov sp, r7 - 8006652: bc80 pop {r7} - 8006654: 4770 bx lr + 80068b8: bf00 nop + 80068ba: 370c adds r7, #12 + 80068bc: 46bd mov sp, r7 + 80068be: bc80 pop {r7} + 80068c0: 4770 bx lr -08006656 : +080068c2 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo0FullCallback(CAN_HandleTypeDef *hcan) { - 8006656: b480 push {r7} - 8006658: b083 sub sp, #12 - 800665a: af00 add r7, sp, #0 - 800665c: 6078 str r0, [r7, #4] + 80068c2: b480 push {r7} + 80068c4: b083 sub sp, #12 + 80068c6: af00 add r7, sp, #0 + 80068c8: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo0FullCallback could be implemented in the user file */ } - 800665e: bf00 nop - 8006660: 370c adds r7, #12 - 8006662: 46bd mov sp, r7 - 8006664: bc80 pop {r7} - 8006666: 4770 bx lr + 80068ca: bf00 nop + 80068cc: 370c adds r7, #12 + 80068ce: 46bd mov sp, r7 + 80068d0: bc80 pop {r7} + 80068d2: 4770 bx lr -08006668 : +080068d4 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_RxFifo1FullCallback(CAN_HandleTypeDef *hcan) { - 8006668: b480 push {r7} - 800666a: b083 sub sp, #12 - 800666c: af00 add r7, sp, #0 - 800666e: 6078 str r0, [r7, #4] + 80068d4: b480 push {r7} + 80068d6: b083 sub sp, #12 + 80068d8: af00 add r7, sp, #0 + 80068da: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_RxFifo1FullCallback could be implemented in the user file */ } - 8006670: bf00 nop - 8006672: 370c adds r7, #12 - 8006674: 46bd mov sp, r7 - 8006676: bc80 pop {r7} - 8006678: 4770 bx lr + 80068dc: bf00 nop + 80068de: 370c adds r7, #12 + 80068e0: 46bd mov sp, r7 + 80068e2: bc80 pop {r7} + 80068e4: 4770 bx lr -0800667a : +080068e6 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_SleepCallback(CAN_HandleTypeDef *hcan) { - 800667a: b480 push {r7} - 800667c: b083 sub sp, #12 - 800667e: af00 add r7, sp, #0 - 8006680: 6078 str r0, [r7, #4] + 80068e6: b480 push {r7} + 80068e8: b083 sub sp, #12 + 80068ea: af00 add r7, sp, #0 + 80068ec: 6078 str r0, [r7, #4] UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_SleepCallback could be implemented in the user file */ } - 8006682: bf00 nop - 8006684: 370c adds r7, #12 - 8006686: 46bd mov sp, r7 - 8006688: bc80 pop {r7} - 800668a: 4770 bx lr + 80068ee: bf00 nop + 80068f0: 370c adds r7, #12 + 80068f2: 46bd mov sp, r7 + 80068f4: bc80 pop {r7} + 80068f6: 4770 bx lr -0800668c : +080068f8 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_WakeUpFromRxMsgCallback(CAN_HandleTypeDef *hcan) { - 800668c: b480 push {r7} - 800668e: b083 sub sp, #12 - 8006690: af00 add r7, sp, #0 - 8006692: 6078 str r0, [r7, #4] + 80068f8: b480 push {r7} + 80068fa: b083 sub sp, #12 + 80068fc: af00 add r7, sp, #0 + 80068fe: 6078 str r0, [r7, #4] /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_WakeUpFromRxMsgCallback could be implemented in the user file */ } - 8006694: bf00 nop - 8006696: 370c adds r7, #12 - 8006698: 46bd mov sp, r7 - 800669a: bc80 pop {r7} - 800669c: 4770 bx lr + 8006900: bf00 nop + 8006902: 370c adds r7, #12 + 8006904: 46bd mov sp, r7 + 8006906: bc80 pop {r7} + 8006908: 4770 bx lr -0800669e : +0800690a : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval None */ __weak void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan) { - 800669e: b480 push {r7} - 80066a0: b083 sub sp, #12 - 80066a2: af00 add r7, sp, #0 - 80066a4: 6078 str r0, [r7, #4] + 800690a: b480 push {r7} + 800690c: b083 sub sp, #12 + 800690e: af00 add r7, sp, #0 + 8006910: 6078 str r0, [r7, #4] UNUSED(hcan); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_CAN_ErrorCallback could be implemented in the user file */ } - 80066a6: bf00 nop - 80066a8: 370c adds r7, #12 - 80066aa: 46bd mov sp, r7 - 80066ac: bc80 pop {r7} - 80066ae: 4770 bx lr + 8006912: bf00 nop + 8006914: 370c adds r7, #12 + 8006916: 46bd mov sp, r7 + 8006918: bc80 pop {r7} + 800691a: 4770 bx lr -080066b0 <__NVIC_SetPriorityGrouping>: +0800691c <__NVIC_SetPriorityGrouping>: { - 80066b0: b480 push {r7} - 80066b2: b085 sub sp, #20 - 80066b4: af00 add r7, sp, #0 - 80066b6: 6078 str r0, [r7, #4] + 800691c: b480 push {r7} + 800691e: b085 sub sp, #20 + 8006920: af00 add r7, sp, #0 + 8006922: 6078 str r0, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80066b8: 687b ldr r3, [r7, #4] - 80066ba: f003 0307 and.w r3, r3, #7 - 80066be: 60fb str r3, [r7, #12] + 8006924: 687b ldr r3, [r7, #4] + 8006926: f003 0307 and.w r3, r3, #7 + 800692a: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 80066c0: 4b0c ldr r3, [pc, #48] ; (80066f4 <__NVIC_SetPriorityGrouping+0x44>) - 80066c2: 68db ldr r3, [r3, #12] - 80066c4: 60bb str r3, [r7, #8] + 800692c: 4b0c ldr r3, [pc, #48] ; (8006960 <__NVIC_SetPriorityGrouping+0x44>) + 800692e: 68db ldr r3, [r3, #12] + 8006930: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 80066c6: 68ba ldr r2, [r7, #8] - 80066c8: f64f 03ff movw r3, #63743 ; 0xf8ff - 80066cc: 4013 ands r3, r2 - 80066ce: 60bb str r3, [r7, #8] + 8006932: 68ba ldr r2, [r7, #8] + 8006934: f64f 03ff movw r3, #63743 ; 0xf8ff + 8006938: 4013 ands r3, r2 + 800693a: 60bb str r3, [r7, #8] (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 80066d0: 68fb ldr r3, [r7, #12] - 80066d2: 021a lsls r2, r3, #8 + 800693c: 68fb ldr r3, [r7, #12] + 800693e: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 80066d4: 68bb ldr r3, [r7, #8] - 80066d6: 4313 orrs r3, r2 + 8006940: 68bb ldr r3, [r7, #8] + 8006942: 4313 orrs r3, r2 reg_value = (reg_value | - 80066d8: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 - 80066dc: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 80066e0: 60bb str r3, [r7, #8] + 8006944: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 + 8006948: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 800694c: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 80066e2: 4a04 ldr r2, [pc, #16] ; (80066f4 <__NVIC_SetPriorityGrouping+0x44>) - 80066e4: 68bb ldr r3, [r7, #8] - 80066e6: 60d3 str r3, [r2, #12] + 800694e: 4a04 ldr r2, [pc, #16] ; (8006960 <__NVIC_SetPriorityGrouping+0x44>) + 8006950: 68bb ldr r3, [r7, #8] + 8006952: 60d3 str r3, [r2, #12] } - 80066e8: bf00 nop - 80066ea: 3714 adds r7, #20 - 80066ec: 46bd mov sp, r7 - 80066ee: bc80 pop {r7} - 80066f0: 4770 bx lr - 80066f2: bf00 nop - 80066f4: e000ed00 .word 0xe000ed00 + 8006954: bf00 nop + 8006956: 3714 adds r7, #20 + 8006958: 46bd mov sp, r7 + 800695a: bc80 pop {r7} + 800695c: 4770 bx lr + 800695e: bf00 nop + 8006960: e000ed00 .word 0xe000ed00 -080066f8 <__NVIC_GetPriorityGrouping>: +08006964 <__NVIC_GetPriorityGrouping>: { - 80066f8: b480 push {r7} - 80066fa: af00 add r7, sp, #0 + 8006964: b480 push {r7} + 8006966: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 80066fc: 4b04 ldr r3, [pc, #16] ; (8006710 <__NVIC_GetPriorityGrouping+0x18>) - 80066fe: 68db ldr r3, [r3, #12] - 8006700: 0a1b lsrs r3, r3, #8 - 8006702: f003 0307 and.w r3, r3, #7 + 8006968: 4b04 ldr r3, [pc, #16] ; (800697c <__NVIC_GetPriorityGrouping+0x18>) + 800696a: 68db ldr r3, [r3, #12] + 800696c: 0a1b lsrs r3, r3, #8 + 800696e: f003 0307 and.w r3, r3, #7 } - 8006706: 4618 mov r0, r3 - 8006708: 46bd mov sp, r7 - 800670a: bc80 pop {r7} - 800670c: 4770 bx lr - 800670e: bf00 nop - 8006710: e000ed00 .word 0xe000ed00 + 8006972: 4618 mov r0, r3 + 8006974: 46bd mov sp, r7 + 8006976: bc80 pop {r7} + 8006978: 4770 bx lr + 800697a: bf00 nop + 800697c: e000ed00 .word 0xe000ed00 -08006714 <__NVIC_EnableIRQ>: +08006980 <__NVIC_EnableIRQ>: { - 8006714: b480 push {r7} - 8006716: b083 sub sp, #12 - 8006718: af00 add r7, sp, #0 - 800671a: 4603 mov r3, r0 - 800671c: 71fb strb r3, [r7, #7] + 8006980: b480 push {r7} + 8006982: b083 sub sp, #12 + 8006984: af00 add r7, sp, #0 + 8006986: 4603 mov r3, r0 + 8006988: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 800671e: f997 3007 ldrsb.w r3, [r7, #7] - 8006722: 2b00 cmp r3, #0 - 8006724: db0b blt.n 800673e <__NVIC_EnableIRQ+0x2a> + 800698a: f997 3007 ldrsb.w r3, [r7, #7] + 800698e: 2b00 cmp r3, #0 + 8006990: db0b blt.n 80069aa <__NVIC_EnableIRQ+0x2a> NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8006726: 79fb ldrb r3, [r7, #7] - 8006728: f003 021f and.w r2, r3, #31 - 800672c: 4906 ldr r1, [pc, #24] ; (8006748 <__NVIC_EnableIRQ+0x34>) - 800672e: f997 3007 ldrsb.w r3, [r7, #7] - 8006732: 095b lsrs r3, r3, #5 - 8006734: 2001 movs r0, #1 - 8006736: fa00 f202 lsl.w r2, r0, r2 - 800673a: f841 2023 str.w r2, [r1, r3, lsl #2] + 8006992: 79fb ldrb r3, [r7, #7] + 8006994: f003 021f and.w r2, r3, #31 + 8006998: 4906 ldr r1, [pc, #24] ; (80069b4 <__NVIC_EnableIRQ+0x34>) + 800699a: f997 3007 ldrsb.w r3, [r7, #7] + 800699e: 095b lsrs r3, r3, #5 + 80069a0: 2001 movs r0, #1 + 80069a2: fa00 f202 lsl.w r2, r0, r2 + 80069a6: f841 2023 str.w r2, [r1, r3, lsl #2] } - 800673e: bf00 nop - 8006740: 370c adds r7, #12 - 8006742: 46bd mov sp, r7 - 8006744: bc80 pop {r7} - 8006746: 4770 bx lr - 8006748: e000e100 .word 0xe000e100 + 80069aa: bf00 nop + 80069ac: 370c adds r7, #12 + 80069ae: 46bd mov sp, r7 + 80069b0: bc80 pop {r7} + 80069b2: 4770 bx lr + 80069b4: e000e100 .word 0xe000e100 -0800674c <__NVIC_SetPriority>: +080069b8 <__NVIC_SetPriority>: { - 800674c: b480 push {r7} - 800674e: b083 sub sp, #12 - 8006750: af00 add r7, sp, #0 - 8006752: 4603 mov r3, r0 - 8006754: 6039 str r1, [r7, #0] - 8006756: 71fb strb r3, [r7, #7] + 80069b8: b480 push {r7} + 80069ba: b083 sub sp, #12 + 80069bc: af00 add r7, sp, #0 + 80069be: 4603 mov r3, r0 + 80069c0: 6039 str r1, [r7, #0] + 80069c2: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8006758: f997 3007 ldrsb.w r3, [r7, #7] - 800675c: 2b00 cmp r3, #0 - 800675e: db0a blt.n 8006776 <__NVIC_SetPriority+0x2a> + 80069c4: f997 3007 ldrsb.w r3, [r7, #7] + 80069c8: 2b00 cmp r3, #0 + 80069ca: db0a blt.n 80069e2 <__NVIC_SetPriority+0x2a> NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8006760: 683b ldr r3, [r7, #0] - 8006762: b2da uxtb r2, r3 - 8006764: 490c ldr r1, [pc, #48] ; (8006798 <__NVIC_SetPriority+0x4c>) - 8006766: f997 3007 ldrsb.w r3, [r7, #7] - 800676a: 0112 lsls r2, r2, #4 - 800676c: b2d2 uxtb r2, r2 - 800676e: 440b add r3, r1 - 8006770: f883 2300 strb.w r2, [r3, #768] ; 0x300 + 80069cc: 683b ldr r3, [r7, #0] + 80069ce: b2da uxtb r2, r3 + 80069d0: 490c ldr r1, [pc, #48] ; (8006a04 <__NVIC_SetPriority+0x4c>) + 80069d2: f997 3007 ldrsb.w r3, [r7, #7] + 80069d6: 0112 lsls r2, r2, #4 + 80069d8: b2d2 uxtb r2, r2 + 80069da: 440b add r3, r1 + 80069dc: f883 2300 strb.w r2, [r3, #768] ; 0x300 } - 8006774: e00a b.n 800678c <__NVIC_SetPriority+0x40> + 80069e0: e00a b.n 80069f8 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8006776: 683b ldr r3, [r7, #0] - 8006778: b2da uxtb r2, r3 - 800677a: 4908 ldr r1, [pc, #32] ; (800679c <__NVIC_SetPriority+0x50>) - 800677c: 79fb ldrb r3, [r7, #7] - 800677e: f003 030f and.w r3, r3, #15 - 8006782: 3b04 subs r3, #4 - 8006784: 0112 lsls r2, r2, #4 - 8006786: b2d2 uxtb r2, r2 - 8006788: 440b add r3, r1 - 800678a: 761a strb r2, [r3, #24] + 80069e2: 683b ldr r3, [r7, #0] + 80069e4: b2da uxtb r2, r3 + 80069e6: 4908 ldr r1, [pc, #32] ; (8006a08 <__NVIC_SetPriority+0x50>) + 80069e8: 79fb ldrb r3, [r7, #7] + 80069ea: f003 030f and.w r3, r3, #15 + 80069ee: 3b04 subs r3, #4 + 80069f0: 0112 lsls r2, r2, #4 + 80069f2: b2d2 uxtb r2, r2 + 80069f4: 440b add r3, r1 + 80069f6: 761a strb r2, [r3, #24] } - 800678c: bf00 nop - 800678e: 370c adds r7, #12 - 8006790: 46bd mov sp, r7 - 8006792: bc80 pop {r7} - 8006794: 4770 bx lr - 8006796: bf00 nop - 8006798: e000e100 .word 0xe000e100 - 800679c: e000ed00 .word 0xe000ed00 + 80069f8: bf00 nop + 80069fa: 370c adds r7, #12 + 80069fc: 46bd mov sp, r7 + 80069fe: bc80 pop {r7} + 8006a00: 4770 bx lr + 8006a02: bf00 nop + 8006a04: e000e100 .word 0xe000e100 + 8006a08: e000ed00 .word 0xe000ed00 -080067a0 : +08006a0c : { - 80067a0: b480 push {r7} - 80067a2: b089 sub sp, #36 ; 0x24 - 80067a4: af00 add r7, sp, #0 - 80067a6: 60f8 str r0, [r7, #12] - 80067a8: 60b9 str r1, [r7, #8] - 80067aa: 607a str r2, [r7, #4] + 8006a0c: b480 push {r7} + 8006a0e: b089 sub sp, #36 ; 0x24 + 8006a10: af00 add r7, sp, #0 + 8006a12: 60f8 str r0, [r7, #12] + 8006a14: 60b9 str r1, [r7, #8] + 8006a16: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80067ac: 68fb ldr r3, [r7, #12] - 80067ae: f003 0307 and.w r3, r3, #7 - 80067b2: 61fb str r3, [r7, #28] + 8006a18: 68fb ldr r3, [r7, #12] + 8006a1a: f003 0307 and.w r3, r3, #7 + 8006a1e: 61fb str r3, [r7, #28] PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80067b4: 69fb ldr r3, [r7, #28] - 80067b6: f1c3 0307 rsb r3, r3, #7 - 80067ba: 2b04 cmp r3, #4 - 80067bc: bf28 it cs - 80067be: 2304 movcs r3, #4 - 80067c0: 61bb str r3, [r7, #24] + 8006a20: 69fb ldr r3, [r7, #28] + 8006a22: f1c3 0307 rsb r3, r3, #7 + 8006a26: 2b04 cmp r3, #4 + 8006a28: bf28 it cs + 8006a2a: 2304 movcs r3, #4 + 8006a2c: 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)); - 80067c2: 69fb ldr r3, [r7, #28] - 80067c4: 3304 adds r3, #4 - 80067c6: 2b06 cmp r3, #6 - 80067c8: d902 bls.n 80067d0 - 80067ca: 69fb ldr r3, [r7, #28] - 80067cc: 3b03 subs r3, #3 - 80067ce: e000 b.n 80067d2 - 80067d0: 2300 movs r3, #0 - 80067d2: 617b str r3, [r7, #20] + 8006a2e: 69fb ldr r3, [r7, #28] + 8006a30: 3304 adds r3, #4 + 8006a32: 2b06 cmp r3, #6 + 8006a34: d902 bls.n 8006a3c + 8006a36: 69fb ldr r3, [r7, #28] + 8006a38: 3b03 subs r3, #3 + 8006a3a: e000 b.n 8006a3e + 8006a3c: 2300 movs r3, #0 + 8006a3e: 617b str r3, [r7, #20] ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80067d4: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80067d8: 69bb ldr r3, [r7, #24] - 80067da: fa02 f303 lsl.w r3, r2, r3 - 80067de: 43da mvns r2, r3 - 80067e0: 68bb ldr r3, [r7, #8] - 80067e2: 401a ands r2, r3 - 80067e4: 697b ldr r3, [r7, #20] - 80067e6: 409a lsls r2, r3 + 8006a40: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8006a44: 69bb ldr r3, [r7, #24] + 8006a46: fa02 f303 lsl.w r3, r2, r3 + 8006a4a: 43da mvns r2, r3 + 8006a4c: 68bb ldr r3, [r7, #8] + 8006a4e: 401a ands r2, r3 + 8006a50: 697b ldr r3, [r7, #20] + 8006a52: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 80067e8: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff - 80067ec: 697b ldr r3, [r7, #20] - 80067ee: fa01 f303 lsl.w r3, r1, r3 - 80067f2: 43d9 mvns r1, r3 - 80067f4: 687b ldr r3, [r7, #4] - 80067f6: 400b ands r3, r1 + 8006a54: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 8006a58: 697b ldr r3, [r7, #20] + 8006a5a: fa01 f303 lsl.w r3, r1, r3 + 8006a5e: 43d9 mvns r1, r3 + 8006a60: 687b ldr r3, [r7, #4] + 8006a62: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80067f8: 4313 orrs r3, r2 + 8006a64: 4313 orrs r3, r2 } - 80067fa: 4618 mov r0, r3 - 80067fc: 3724 adds r7, #36 ; 0x24 - 80067fe: 46bd mov sp, r7 - 8006800: bc80 pop {r7} - 8006802: 4770 bx lr + 8006a66: 4618 mov r0, r3 + 8006a68: 3724 adds r7, #36 ; 0x24 + 8006a6a: 46bd mov sp, r7 + 8006a6c: bc80 pop {r7} + 8006a6e: 4770 bx lr -08006804 : +08006a70 : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8006804: b580 push {r7, lr} - 8006806: b082 sub sp, #8 - 8006808: af00 add r7, sp, #0 - 800680a: 6078 str r0, [r7, #4] + 8006a70: b580 push {r7, lr} + 8006a72: b082 sub sp, #8 + 8006a74: af00 add r7, sp, #0 + 8006a76: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 800680c: 687b ldr r3, [r7, #4] - 800680e: 3b01 subs r3, #1 - 8006810: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 8006814: d301 bcc.n 800681a + 8006a78: 687b ldr r3, [r7, #4] + 8006a7a: 3b01 subs r3, #1 + 8006a7c: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 + 8006a80: d301 bcc.n 8006a86 { return (1UL); /* Reload value impossible */ - 8006816: 2301 movs r3, #1 - 8006818: e00f b.n 800683a + 8006a82: 2301 movs r3, #1 + 8006a84: e00f b.n 8006aa6 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 800681a: 4a0a ldr r2, [pc, #40] ; (8006844 ) - 800681c: 687b ldr r3, [r7, #4] - 800681e: 3b01 subs r3, #1 - 8006820: 6053 str r3, [r2, #4] + 8006a86: 4a0a ldr r2, [pc, #40] ; (8006ab0 ) + 8006a88: 687b ldr r3, [r7, #4] + 8006a8a: 3b01 subs r3, #1 + 8006a8c: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8006822: 210f movs r1, #15 - 8006824: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006828: f7ff ff90 bl 800674c <__NVIC_SetPriority> + 8006a8e: 210f movs r1, #15 + 8006a90: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8006a94: f7ff ff90 bl 80069b8 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 800682c: 4b05 ldr r3, [pc, #20] ; (8006844 ) - 800682e: 2200 movs r2, #0 - 8006830: 609a str r2, [r3, #8] + 8006a98: 4b05 ldr r3, [pc, #20] ; (8006ab0 ) + 8006a9a: 2200 movs r2, #0 + 8006a9c: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8006832: 4b04 ldr r3, [pc, #16] ; (8006844 ) - 8006834: 2207 movs r2, #7 - 8006836: 601a str r2, [r3, #0] + 8006a9e: 4b04 ldr r3, [pc, #16] ; (8006ab0 ) + 8006aa0: 2207 movs r2, #7 + 8006aa2: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8006838: 2300 movs r3, #0 + 8006aa4: 2300 movs r3, #0 } - 800683a: 4618 mov r0, r3 - 800683c: 3708 adds r7, #8 - 800683e: 46bd mov sp, r7 - 8006840: bd80 pop {r7, pc} - 8006842: bf00 nop - 8006844: e000e010 .word 0xe000e010 + 8006aa6: 4618 mov r0, r3 + 8006aa8: 3708 adds r7, #8 + 8006aaa: 46bd mov sp, r7 + 8006aac: bd80 pop {r7, pc} + 8006aae: bf00 nop + 8006ab0: e000e010 .word 0xe000e010 -08006848 : +08006ab4 : * @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) { - 8006848: b580 push {r7, lr} - 800684a: b082 sub sp, #8 - 800684c: af00 add r7, sp, #0 - 800684e: 6078 str r0, [r7, #4] + 8006ab4: b580 push {r7, lr} + 8006ab6: b082 sub sp, #8 + 8006ab8: af00 add r7, sp, #0 + 8006aba: 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); - 8006850: 6878 ldr r0, [r7, #4] - 8006852: f7ff ff2d bl 80066b0 <__NVIC_SetPriorityGrouping> + 8006abc: 6878 ldr r0, [r7, #4] + 8006abe: f7ff ff2d bl 800691c <__NVIC_SetPriorityGrouping> } - 8006856: bf00 nop - 8006858: 3708 adds r7, #8 - 800685a: 46bd mov sp, r7 - 800685c: bd80 pop {r7, pc} + 8006ac2: bf00 nop + 8006ac4: 3708 adds r7, #8 + 8006ac6: 46bd mov sp, r7 + 8006ac8: bd80 pop {r7, pc} -0800685e : +08006aca : * 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) { - 800685e: b580 push {r7, lr} - 8006860: b086 sub sp, #24 - 8006862: af00 add r7, sp, #0 - 8006864: 4603 mov r3, r0 - 8006866: 60b9 str r1, [r7, #8] - 8006868: 607a str r2, [r7, #4] - 800686a: 73fb strb r3, [r7, #15] + 8006aca: b580 push {r7, lr} + 8006acc: b086 sub sp, #24 + 8006ace: af00 add r7, sp, #0 + 8006ad0: 4603 mov r3, r0 + 8006ad2: 60b9 str r1, [r7, #8] + 8006ad4: 607a str r2, [r7, #4] + 8006ad6: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 800686c: 2300 movs r3, #0 - 800686e: 617b str r3, [r7, #20] + 8006ad8: 2300 movs r3, #0 + 8006ada: 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(); - 8006870: f7ff ff42 bl 80066f8 <__NVIC_GetPriorityGrouping> - 8006874: 6178 str r0, [r7, #20] + 8006adc: f7ff ff42 bl 8006964 <__NVIC_GetPriorityGrouping> + 8006ae0: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8006876: 687a ldr r2, [r7, #4] - 8006878: 68b9 ldr r1, [r7, #8] - 800687a: 6978 ldr r0, [r7, #20] - 800687c: f7ff ff90 bl 80067a0 - 8006880: 4602 mov r2, r0 - 8006882: f997 300f ldrsb.w r3, [r7, #15] - 8006886: 4611 mov r1, r2 - 8006888: 4618 mov r0, r3 - 800688a: f7ff ff5f bl 800674c <__NVIC_SetPriority> + 8006ae2: 687a ldr r2, [r7, #4] + 8006ae4: 68b9 ldr r1, [r7, #8] + 8006ae6: 6978 ldr r0, [r7, #20] + 8006ae8: f7ff ff90 bl 8006a0c + 8006aec: 4602 mov r2, r0 + 8006aee: f997 300f ldrsb.w r3, [r7, #15] + 8006af2: 4611 mov r1, r2 + 8006af4: 4618 mov r0, r3 + 8006af6: f7ff ff5f bl 80069b8 <__NVIC_SetPriority> } - 800688e: bf00 nop - 8006890: 3718 adds r7, #24 - 8006892: 46bd mov sp, r7 - 8006894: bd80 pop {r7, pc} + 8006afa: bf00 nop + 8006afc: 3718 adds r7, #24 + 8006afe: 46bd mov sp, r7 + 8006b00: bd80 pop {r7, pc} -08006896 : +08006b02 : * 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 (stm32f10xxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { - 8006896: b580 push {r7, lr} - 8006898: b082 sub sp, #8 - 800689a: af00 add r7, sp, #0 - 800689c: 4603 mov r3, r0 - 800689e: 71fb strb r3, [r7, #7] + 8006b02: b580 push {r7, lr} + 8006b04: b082 sub sp, #8 + 8006b06: af00 add r7, sp, #0 + 8006b08: 4603 mov r3, r0 + 8006b0a: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 80068a0: f997 3007 ldrsb.w r3, [r7, #7] - 80068a4: 4618 mov r0, r3 - 80068a6: f7ff ff35 bl 8006714 <__NVIC_EnableIRQ> + 8006b0c: f997 3007 ldrsb.w r3, [r7, #7] + 8006b10: 4618 mov r0, r3 + 8006b12: f7ff ff35 bl 8006980 <__NVIC_EnableIRQ> } - 80068aa: bf00 nop - 80068ac: 3708 adds r7, #8 - 80068ae: 46bd mov sp, r7 - 80068b0: bd80 pop {r7, pc} + 8006b16: bf00 nop + 8006b18: 3708 adds r7, #8 + 8006b1a: 46bd mov sp, r7 + 8006b1c: bd80 pop {r7, pc} -080068b2 : +08006b1e : * @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) { - 80068b2: b580 push {r7, lr} - 80068b4: b082 sub sp, #8 - 80068b6: af00 add r7, sp, #0 - 80068b8: 6078 str r0, [r7, #4] + 8006b1e: b580 push {r7, lr} + 8006b20: b082 sub sp, #8 + 8006b22: af00 add r7, sp, #0 + 8006b24: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 80068ba: 6878 ldr r0, [r7, #4] - 80068bc: f7ff ffa2 bl 8006804 - 80068c0: 4603 mov r3, r0 + 8006b26: 6878 ldr r0, [r7, #4] + 8006b28: f7ff ffa2 bl 8006a70 + 8006b2c: 4603 mov r3, r0 } - 80068c2: 4618 mov r0, r3 - 80068c4: 3708 adds r7, #8 - 80068c6: 46bd mov sp, r7 - 80068c8: bd80 pop {r7, pc} + 8006b2e: 4618 mov r0, r3 + 8006b30: 3708 adds r7, #8 + 8006b32: 46bd mov sp, r7 + 8006b34: bd80 pop {r7, pc} -080068ca : +08006b36 : * @param hdma: pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) { - 80068ca: b480 push {r7} - 80068cc: b085 sub sp, #20 - 80068ce: af00 add r7, sp, #0 - 80068d0: 6078 str r0, [r7, #4] + 8006b36: b480 push {r7} + 8006b38: b085 sub sp, #20 + 8006b3a: af00 add r7, sp, #0 + 8006b3c: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 80068d2: 2300 movs r3, #0 - 80068d4: 73fb strb r3, [r7, #15] + 8006b3e: 2300 movs r3, #0 + 8006b40: 73fb strb r3, [r7, #15] if(hdma->State != HAL_DMA_STATE_BUSY) - 80068d6: 687b ldr r3, [r7, #4] - 80068d8: f893 3021 ldrb.w r3, [r3, #33] ; 0x21 - 80068dc: 2b02 cmp r3, #2 - 80068de: d008 beq.n 80068f2 + 8006b42: 687b ldr r3, [r7, #4] + 8006b44: f893 3021 ldrb.w r3, [r3, #33] ; 0x21 + 8006b48: 2b02 cmp r3, #2 + 8006b4a: d008 beq.n 8006b5e { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 80068e0: 687b ldr r3, [r7, #4] - 80068e2: 2204 movs r2, #4 - 80068e4: 639a str r2, [r3, #56] ; 0x38 + 8006b4c: 687b ldr r3, [r7, #4] + 8006b4e: 2204 movs r2, #4 + 8006b50: 639a str r2, [r3, #56] ; 0x38 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 80068e6: 687b ldr r3, [r7, #4] - 80068e8: 2200 movs r2, #0 - 80068ea: f883 2020 strb.w r2, [r3, #32] + 8006b52: 687b ldr r3, [r7, #4] + 8006b54: 2200 movs r2, #0 + 8006b56: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 80068ee: 2301 movs r3, #1 - 80068f0: e020 b.n 8006934 + 8006b5a: 2301 movs r3, #1 + 8006b5c: e020 b.n 8006ba0 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 80068f2: 687b ldr r3, [r7, #4] - 80068f4: 681b ldr r3, [r3, #0] - 80068f6: 681a ldr r2, [r3, #0] - 80068f8: 687b ldr r3, [r7, #4] - 80068fa: 681b ldr r3, [r3, #0] - 80068fc: f022 020e bic.w r2, r2, #14 - 8006900: 601a str r2, [r3, #0] + 8006b5e: 687b ldr r3, [r7, #4] + 8006b60: 681b ldr r3, [r3, #0] + 8006b62: 681a ldr r2, [r3, #0] + 8006b64: 687b ldr r3, [r7, #4] + 8006b66: 681b ldr r3, [r3, #0] + 8006b68: f022 020e bic.w r2, r2, #14 + 8006b6c: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); - 8006902: 687b ldr r3, [r7, #4] - 8006904: 681b ldr r3, [r3, #0] - 8006906: 681a ldr r2, [r3, #0] - 8006908: 687b ldr r3, [r7, #4] - 800690a: 681b ldr r3, [r3, #0] - 800690c: f022 0201 bic.w r2, r2, #1 - 8006910: 601a str r2, [r3, #0] + 8006b6e: 687b ldr r3, [r7, #4] + 8006b70: 681b ldr r3, [r3, #0] + 8006b72: 681a ldr r2, [r3, #0] + 8006b74: 687b ldr r3, [r7, #4] + 8006b76: 681b ldr r3, [r3, #0] + 8006b78: f022 0201 bic.w r2, r2, #1 + 8006b7c: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); - 8006912: 687b ldr r3, [r7, #4] - 8006914: 6c1a ldr r2, [r3, #64] ; 0x40 - 8006916: 687b ldr r3, [r7, #4] - 8006918: 6bdb ldr r3, [r3, #60] ; 0x3c - 800691a: 2101 movs r1, #1 - 800691c: fa01 f202 lsl.w r2, r1, r2 - 8006920: 605a str r2, [r3, #4] + 8006b7e: 687b ldr r3, [r7, #4] + 8006b80: 6c1a ldr r2, [r3, #64] ; 0x40 + 8006b82: 687b ldr r3, [r7, #4] + 8006b84: 6bdb ldr r3, [r3, #60] ; 0x3c + 8006b86: 2101 movs r1, #1 + 8006b88: fa01 f202 lsl.w r2, r1, r2 + 8006b8c: 605a str r2, [r3, #4] } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8006922: 687b ldr r3, [r7, #4] - 8006924: 2201 movs r2, #1 - 8006926: f883 2021 strb.w r2, [r3, #33] ; 0x21 + 8006b8e: 687b ldr r3, [r7, #4] + 8006b90: 2201 movs r2, #1 + 8006b92: f883 2021 strb.w r2, [r3, #33] ; 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 800692a: 687b ldr r3, [r7, #4] - 800692c: 2200 movs r2, #0 - 800692e: f883 2020 strb.w r2, [r3, #32] + 8006b96: 687b ldr r3, [r7, #4] + 8006b98: 2200 movs r2, #0 + 8006b9a: f883 2020 strb.w r2, [r3, #32] return status; - 8006932: 7bfb ldrb r3, [r7, #15] + 8006b9e: 7bfb ldrb r3, [r7, #15] } - 8006934: 4618 mov r0, r3 - 8006936: 3714 adds r7, #20 - 8006938: 46bd mov sp, r7 - 800693a: bc80 pop {r7} - 800693c: 4770 bx lr + 8006ba0: 4618 mov r0, r3 + 8006ba2: 3714 adds r7, #20 + 8006ba4: 46bd mov sp, r7 + 8006ba6: bc80 pop {r7} + 8006ba8: 4770 bx lr ... -08006940 : +08006bac : * @param hdma : pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { - 8006940: b580 push {r7, lr} - 8006942: b084 sub sp, #16 - 8006944: af00 add r7, sp, #0 - 8006946: 6078 str r0, [r7, #4] + 8006bac: b580 push {r7, lr} + 8006bae: b084 sub sp, #16 + 8006bb0: af00 add r7, sp, #0 + 8006bb2: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8006948: 2300 movs r3, #0 - 800694a: 73fb strb r3, [r7, #15] + 8006bb4: 2300 movs r3, #0 + 8006bb6: 73fb strb r3, [r7, #15] if(HAL_DMA_STATE_BUSY != hdma->State) - 800694c: 687b ldr r3, [r7, #4] - 800694e: f893 3021 ldrb.w r3, [r3, #33] ; 0x21 - 8006952: 2b02 cmp r3, #2 - 8006954: d005 beq.n 8006962 + 8006bb8: 687b ldr r3, [r7, #4] + 8006bba: f893 3021 ldrb.w r3, [r3, #33] ; 0x21 + 8006bbe: 2b02 cmp r3, #2 + 8006bc0: d005 beq.n 8006bce { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8006956: 687b ldr r3, [r7, #4] - 8006958: 2204 movs r2, #4 - 800695a: 639a str r2, [r3, #56] ; 0x38 + 8006bc2: 687b ldr r3, [r7, #4] + 8006bc4: 2204 movs r2, #4 + 8006bc6: 639a str r2, [r3, #56] ; 0x38 status = HAL_ERROR; - 800695c: 2301 movs r3, #1 - 800695e: 73fb strb r3, [r7, #15] - 8006960: e0d6 b.n 8006b10 + 8006bc8: 2301 movs r3, #1 + 8006bca: 73fb strb r3, [r7, #15] + 8006bcc: e0d6 b.n 8006d7c } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 8006962: 687b ldr r3, [r7, #4] - 8006964: 681b ldr r3, [r3, #0] - 8006966: 681a ldr r2, [r3, #0] - 8006968: 687b ldr r3, [r7, #4] - 800696a: 681b ldr r3, [r3, #0] - 800696c: f022 020e bic.w r2, r2, #14 - 8006970: 601a str r2, [r3, #0] + 8006bce: 687b ldr r3, [r7, #4] + 8006bd0: 681b ldr r3, [r3, #0] + 8006bd2: 681a ldr r2, [r3, #0] + 8006bd4: 687b ldr r3, [r7, #4] + 8006bd6: 681b ldr r3, [r3, #0] + 8006bd8: f022 020e bic.w r2, r2, #14 + 8006bdc: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); - 8006972: 687b ldr r3, [r7, #4] - 8006974: 681b ldr r3, [r3, #0] - 8006976: 681a ldr r2, [r3, #0] - 8006978: 687b ldr r3, [r7, #4] - 800697a: 681b ldr r3, [r3, #0] - 800697c: f022 0201 bic.w r2, r2, #1 - 8006980: 601a str r2, [r3, #0] + 8006bde: 687b ldr r3, [r7, #4] + 8006be0: 681b ldr r3, [r3, #0] + 8006be2: 681a ldr r2, [r3, #0] + 8006be4: 687b ldr r3, [r7, #4] + 8006be6: 681b ldr r3, [r3, #0] + 8006be8: f022 0201 bic.w r2, r2, #1 + 8006bec: 601a str r2, [r3, #0] /* Clear all flags */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma)); - 8006982: 687b ldr r3, [r7, #4] - 8006984: 681b ldr r3, [r3, #0] - 8006986: 461a mov r2, r3 - 8006988: 4b64 ldr r3, [pc, #400] ; (8006b1c ) - 800698a: 429a cmp r2, r3 - 800698c: d958 bls.n 8006a40 - 800698e: 687b ldr r3, [r7, #4] - 8006990: 681b ldr r3, [r3, #0] - 8006992: 4a63 ldr r2, [pc, #396] ; (8006b20 ) - 8006994: 4293 cmp r3, r2 - 8006996: d04f beq.n 8006a38 - 8006998: 687b ldr r3, [r7, #4] - 800699a: 681b ldr r3, [r3, #0] - 800699c: 4a61 ldr r2, [pc, #388] ; (8006b24 ) - 800699e: 4293 cmp r3, r2 - 80069a0: d048 beq.n 8006a34 - 80069a2: 687b ldr r3, [r7, #4] - 80069a4: 681b ldr r3, [r3, #0] - 80069a6: 4a60 ldr r2, [pc, #384] ; (8006b28 ) - 80069a8: 4293 cmp r3, r2 - 80069aa: d040 beq.n 8006a2e - 80069ac: 687b ldr r3, [r7, #4] - 80069ae: 681b ldr r3, [r3, #0] - 80069b0: 4a5e ldr r2, [pc, #376] ; (8006b2c ) - 80069b2: 4293 cmp r3, r2 - 80069b4: d038 beq.n 8006a28 - 80069b6: 687b ldr r3, [r7, #4] - 80069b8: 681b ldr r3, [r3, #0] - 80069ba: 4a5d ldr r2, [pc, #372] ; (8006b30 ) - 80069bc: 4293 cmp r3, r2 - 80069be: d030 beq.n 8006a22 - 80069c0: 687b ldr r3, [r7, #4] - 80069c2: 681b ldr r3, [r3, #0] - 80069c4: 4a5b ldr r2, [pc, #364] ; (8006b34 ) - 80069c6: 4293 cmp r3, r2 - 80069c8: d028 beq.n 8006a1c - 80069ca: 687b ldr r3, [r7, #4] - 80069cc: 681b ldr r3, [r3, #0] - 80069ce: 4a53 ldr r2, [pc, #332] ; (8006b1c ) - 80069d0: 4293 cmp r3, r2 - 80069d2: d020 beq.n 8006a16 - 80069d4: 687b ldr r3, [r7, #4] - 80069d6: 681b ldr r3, [r3, #0] - 80069d8: 4a57 ldr r2, [pc, #348] ; (8006b38 ) - 80069da: 4293 cmp r3, r2 - 80069dc: d019 beq.n 8006a12 - 80069de: 687b ldr r3, [r7, #4] - 80069e0: 681b ldr r3, [r3, #0] - 80069e2: 4a56 ldr r2, [pc, #344] ; (8006b3c ) - 80069e4: 4293 cmp r3, r2 - 80069e6: d012 beq.n 8006a0e - 80069e8: 687b ldr r3, [r7, #4] - 80069ea: 681b ldr r3, [r3, #0] - 80069ec: 4a54 ldr r2, [pc, #336] ; (8006b40 ) - 80069ee: 4293 cmp r3, r2 - 80069f0: d00a beq.n 8006a08 - 80069f2: 687b ldr r3, [r7, #4] - 80069f4: 681b ldr r3, [r3, #0] - 80069f6: 4a53 ldr r2, [pc, #332] ; (8006b44 ) - 80069f8: 4293 cmp r3, r2 - 80069fa: d102 bne.n 8006a02 - 80069fc: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8006a00: e01b b.n 8006a3a - 8006a02: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8006a06: e018 b.n 8006a3a - 8006a08: f44f 7380 mov.w r3, #256 ; 0x100 - 8006a0c: e015 b.n 8006a3a - 8006a0e: 2310 movs r3, #16 - 8006a10: e013 b.n 8006a3a - 8006a12: 2301 movs r3, #1 - 8006a14: e011 b.n 8006a3a - 8006a16: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 8006a1a: e00e b.n 8006a3a - 8006a1c: f44f 1380 mov.w r3, #1048576 ; 0x100000 - 8006a20: e00b b.n 8006a3a - 8006a22: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8006a26: e008 b.n 8006a3a - 8006a28: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8006a2c: e005 b.n 8006a3a - 8006a2e: f44f 7380 mov.w r3, #256 ; 0x100 - 8006a32: e002 b.n 8006a3a - 8006a34: 2310 movs r3, #16 - 8006a36: e000 b.n 8006a3a - 8006a38: 2301 movs r3, #1 - 8006a3a: 4a43 ldr r2, [pc, #268] ; (8006b48 ) - 8006a3c: 6053 str r3, [r2, #4] - 8006a3e: e057 b.n 8006af0 - 8006a40: 687b ldr r3, [r7, #4] - 8006a42: 681b ldr r3, [r3, #0] - 8006a44: 4a36 ldr r2, [pc, #216] ; (8006b20 ) - 8006a46: 4293 cmp r3, r2 - 8006a48: d04f beq.n 8006aea - 8006a4a: 687b ldr r3, [r7, #4] - 8006a4c: 681b ldr r3, [r3, #0] - 8006a4e: 4a35 ldr r2, [pc, #212] ; (8006b24 ) - 8006a50: 4293 cmp r3, r2 - 8006a52: d048 beq.n 8006ae6 - 8006a54: 687b ldr r3, [r7, #4] - 8006a56: 681b ldr r3, [r3, #0] - 8006a58: 4a33 ldr r2, [pc, #204] ; (8006b28 ) - 8006a5a: 4293 cmp r3, r2 - 8006a5c: d040 beq.n 8006ae0 - 8006a5e: 687b ldr r3, [r7, #4] - 8006a60: 681b ldr r3, [r3, #0] - 8006a62: 4a32 ldr r2, [pc, #200] ; (8006b2c ) - 8006a64: 4293 cmp r3, r2 - 8006a66: d038 beq.n 8006ada - 8006a68: 687b ldr r3, [r7, #4] - 8006a6a: 681b ldr r3, [r3, #0] - 8006a6c: 4a30 ldr r2, [pc, #192] ; (8006b30 ) - 8006a6e: 4293 cmp r3, r2 - 8006a70: d030 beq.n 8006ad4 - 8006a72: 687b ldr r3, [r7, #4] - 8006a74: 681b ldr r3, [r3, #0] - 8006a76: 4a2f ldr r2, [pc, #188] ; (8006b34 ) - 8006a78: 4293 cmp r3, r2 - 8006a7a: d028 beq.n 8006ace - 8006a7c: 687b ldr r3, [r7, #4] - 8006a7e: 681b ldr r3, [r3, #0] - 8006a80: 4a26 ldr r2, [pc, #152] ; (8006b1c ) - 8006a82: 4293 cmp r3, r2 - 8006a84: d020 beq.n 8006ac8 - 8006a86: 687b ldr r3, [r7, #4] - 8006a88: 681b ldr r3, [r3, #0] - 8006a8a: 4a2b ldr r2, [pc, #172] ; (8006b38 ) - 8006a8c: 4293 cmp r3, r2 - 8006a8e: d019 beq.n 8006ac4 - 8006a90: 687b ldr r3, [r7, #4] - 8006a92: 681b ldr r3, [r3, #0] - 8006a94: 4a29 ldr r2, [pc, #164] ; (8006b3c ) - 8006a96: 4293 cmp r3, r2 - 8006a98: d012 beq.n 8006ac0 - 8006a9a: 687b ldr r3, [r7, #4] - 8006a9c: 681b ldr r3, [r3, #0] - 8006a9e: 4a28 ldr r2, [pc, #160] ; (8006b40 ) - 8006aa0: 4293 cmp r3, r2 - 8006aa2: d00a beq.n 8006aba - 8006aa4: 687b ldr r3, [r7, #4] - 8006aa6: 681b ldr r3, [r3, #0] - 8006aa8: 4a26 ldr r2, [pc, #152] ; (8006b44 ) - 8006aaa: 4293 cmp r3, r2 - 8006aac: d102 bne.n 8006ab4 - 8006aae: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8006ab2: e01b b.n 8006aec - 8006ab4: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8006ab8: e018 b.n 8006aec - 8006aba: f44f 7380 mov.w r3, #256 ; 0x100 - 8006abe: e015 b.n 8006aec - 8006ac0: 2310 movs r3, #16 - 8006ac2: e013 b.n 8006aec - 8006ac4: 2301 movs r3, #1 - 8006ac6: e011 b.n 8006aec - 8006ac8: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 8006acc: e00e b.n 8006aec - 8006ace: f44f 1380 mov.w r3, #1048576 ; 0x100000 - 8006ad2: e00b b.n 8006aec - 8006ad4: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8006ad8: e008 b.n 8006aec - 8006ada: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8006ade: e005 b.n 8006aec - 8006ae0: f44f 7380 mov.w r3, #256 ; 0x100 - 8006ae4: e002 b.n 8006aec - 8006ae6: 2310 movs r3, #16 - 8006ae8: e000 b.n 8006aec - 8006aea: 2301 movs r3, #1 - 8006aec: 4a17 ldr r2, [pc, #92] ; (8006b4c ) - 8006aee: 6053 str r3, [r2, #4] + 8006bee: 687b ldr r3, [r7, #4] + 8006bf0: 681b ldr r3, [r3, #0] + 8006bf2: 461a mov r2, r3 + 8006bf4: 4b64 ldr r3, [pc, #400] ; (8006d88 ) + 8006bf6: 429a cmp r2, r3 + 8006bf8: d958 bls.n 8006cac + 8006bfa: 687b ldr r3, [r7, #4] + 8006bfc: 681b ldr r3, [r3, #0] + 8006bfe: 4a63 ldr r2, [pc, #396] ; (8006d8c ) + 8006c00: 4293 cmp r3, r2 + 8006c02: d04f beq.n 8006ca4 + 8006c04: 687b ldr r3, [r7, #4] + 8006c06: 681b ldr r3, [r3, #0] + 8006c08: 4a61 ldr r2, [pc, #388] ; (8006d90 ) + 8006c0a: 4293 cmp r3, r2 + 8006c0c: d048 beq.n 8006ca0 + 8006c0e: 687b ldr r3, [r7, #4] + 8006c10: 681b ldr r3, [r3, #0] + 8006c12: 4a60 ldr r2, [pc, #384] ; (8006d94 ) + 8006c14: 4293 cmp r3, r2 + 8006c16: d040 beq.n 8006c9a + 8006c18: 687b ldr r3, [r7, #4] + 8006c1a: 681b ldr r3, [r3, #0] + 8006c1c: 4a5e ldr r2, [pc, #376] ; (8006d98 ) + 8006c1e: 4293 cmp r3, r2 + 8006c20: d038 beq.n 8006c94 + 8006c22: 687b ldr r3, [r7, #4] + 8006c24: 681b ldr r3, [r3, #0] + 8006c26: 4a5d ldr r2, [pc, #372] ; (8006d9c ) + 8006c28: 4293 cmp r3, r2 + 8006c2a: d030 beq.n 8006c8e + 8006c2c: 687b ldr r3, [r7, #4] + 8006c2e: 681b ldr r3, [r3, #0] + 8006c30: 4a5b ldr r2, [pc, #364] ; (8006da0 ) + 8006c32: 4293 cmp r3, r2 + 8006c34: d028 beq.n 8006c88 + 8006c36: 687b ldr r3, [r7, #4] + 8006c38: 681b ldr r3, [r3, #0] + 8006c3a: 4a53 ldr r2, [pc, #332] ; (8006d88 ) + 8006c3c: 4293 cmp r3, r2 + 8006c3e: d020 beq.n 8006c82 + 8006c40: 687b ldr r3, [r7, #4] + 8006c42: 681b ldr r3, [r3, #0] + 8006c44: 4a57 ldr r2, [pc, #348] ; (8006da4 ) + 8006c46: 4293 cmp r3, r2 + 8006c48: d019 beq.n 8006c7e + 8006c4a: 687b ldr r3, [r7, #4] + 8006c4c: 681b ldr r3, [r3, #0] + 8006c4e: 4a56 ldr r2, [pc, #344] ; (8006da8 ) + 8006c50: 4293 cmp r3, r2 + 8006c52: d012 beq.n 8006c7a + 8006c54: 687b ldr r3, [r7, #4] + 8006c56: 681b ldr r3, [r3, #0] + 8006c58: 4a54 ldr r2, [pc, #336] ; (8006dac ) + 8006c5a: 4293 cmp r3, r2 + 8006c5c: d00a beq.n 8006c74 + 8006c5e: 687b ldr r3, [r7, #4] + 8006c60: 681b ldr r3, [r3, #0] + 8006c62: 4a53 ldr r2, [pc, #332] ; (8006db0 ) + 8006c64: 4293 cmp r3, r2 + 8006c66: d102 bne.n 8006c6e + 8006c68: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8006c6c: e01b b.n 8006ca6 + 8006c6e: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8006c72: e018 b.n 8006ca6 + 8006c74: f44f 7380 mov.w r3, #256 ; 0x100 + 8006c78: e015 b.n 8006ca6 + 8006c7a: 2310 movs r3, #16 + 8006c7c: e013 b.n 8006ca6 + 8006c7e: 2301 movs r3, #1 + 8006c80: e011 b.n 8006ca6 + 8006c82: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 8006c86: e00e b.n 8006ca6 + 8006c88: f44f 1380 mov.w r3, #1048576 ; 0x100000 + 8006c8c: e00b b.n 8006ca6 + 8006c8e: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8006c92: e008 b.n 8006ca6 + 8006c94: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8006c98: e005 b.n 8006ca6 + 8006c9a: f44f 7380 mov.w r3, #256 ; 0x100 + 8006c9e: e002 b.n 8006ca6 + 8006ca0: 2310 movs r3, #16 + 8006ca2: e000 b.n 8006ca6 + 8006ca4: 2301 movs r3, #1 + 8006ca6: 4a43 ldr r2, [pc, #268] ; (8006db4 ) + 8006ca8: 6053 str r3, [r2, #4] + 8006caa: e057 b.n 8006d5c + 8006cac: 687b ldr r3, [r7, #4] + 8006cae: 681b ldr r3, [r3, #0] + 8006cb0: 4a36 ldr r2, [pc, #216] ; (8006d8c ) + 8006cb2: 4293 cmp r3, r2 + 8006cb4: d04f beq.n 8006d56 + 8006cb6: 687b ldr r3, [r7, #4] + 8006cb8: 681b ldr r3, [r3, #0] + 8006cba: 4a35 ldr r2, [pc, #212] ; (8006d90 ) + 8006cbc: 4293 cmp r3, r2 + 8006cbe: d048 beq.n 8006d52 + 8006cc0: 687b ldr r3, [r7, #4] + 8006cc2: 681b ldr r3, [r3, #0] + 8006cc4: 4a33 ldr r2, [pc, #204] ; (8006d94 ) + 8006cc6: 4293 cmp r3, r2 + 8006cc8: d040 beq.n 8006d4c + 8006cca: 687b ldr r3, [r7, #4] + 8006ccc: 681b ldr r3, [r3, #0] + 8006cce: 4a32 ldr r2, [pc, #200] ; (8006d98 ) + 8006cd0: 4293 cmp r3, r2 + 8006cd2: d038 beq.n 8006d46 + 8006cd4: 687b ldr r3, [r7, #4] + 8006cd6: 681b ldr r3, [r3, #0] + 8006cd8: 4a30 ldr r2, [pc, #192] ; (8006d9c ) + 8006cda: 4293 cmp r3, r2 + 8006cdc: d030 beq.n 8006d40 + 8006cde: 687b ldr r3, [r7, #4] + 8006ce0: 681b ldr r3, [r3, #0] + 8006ce2: 4a2f ldr r2, [pc, #188] ; (8006da0 ) + 8006ce4: 4293 cmp r3, r2 + 8006ce6: d028 beq.n 8006d3a + 8006ce8: 687b ldr r3, [r7, #4] + 8006cea: 681b ldr r3, [r3, #0] + 8006cec: 4a26 ldr r2, [pc, #152] ; (8006d88 ) + 8006cee: 4293 cmp r3, r2 + 8006cf0: d020 beq.n 8006d34 + 8006cf2: 687b ldr r3, [r7, #4] + 8006cf4: 681b ldr r3, [r3, #0] + 8006cf6: 4a2b ldr r2, [pc, #172] ; (8006da4 ) + 8006cf8: 4293 cmp r3, r2 + 8006cfa: d019 beq.n 8006d30 + 8006cfc: 687b ldr r3, [r7, #4] + 8006cfe: 681b ldr r3, [r3, #0] + 8006d00: 4a29 ldr r2, [pc, #164] ; (8006da8 ) + 8006d02: 4293 cmp r3, r2 + 8006d04: d012 beq.n 8006d2c + 8006d06: 687b ldr r3, [r7, #4] + 8006d08: 681b ldr r3, [r3, #0] + 8006d0a: 4a28 ldr r2, [pc, #160] ; (8006dac ) + 8006d0c: 4293 cmp r3, r2 + 8006d0e: d00a beq.n 8006d26 + 8006d10: 687b ldr r3, [r7, #4] + 8006d12: 681b ldr r3, [r3, #0] + 8006d14: 4a26 ldr r2, [pc, #152] ; (8006db0 ) + 8006d16: 4293 cmp r3, r2 + 8006d18: d102 bne.n 8006d20 + 8006d1a: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8006d1e: e01b b.n 8006d58 + 8006d20: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8006d24: e018 b.n 8006d58 + 8006d26: f44f 7380 mov.w r3, #256 ; 0x100 + 8006d2a: e015 b.n 8006d58 + 8006d2c: 2310 movs r3, #16 + 8006d2e: e013 b.n 8006d58 + 8006d30: 2301 movs r3, #1 + 8006d32: e011 b.n 8006d58 + 8006d34: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 8006d38: e00e b.n 8006d58 + 8006d3a: f44f 1380 mov.w r3, #1048576 ; 0x100000 + 8006d3e: e00b b.n 8006d58 + 8006d40: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8006d44: e008 b.n 8006d58 + 8006d46: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8006d4a: e005 b.n 8006d58 + 8006d4c: f44f 7380 mov.w r3, #256 ; 0x100 + 8006d50: e002 b.n 8006d58 + 8006d52: 2310 movs r3, #16 + 8006d54: e000 b.n 8006d58 + 8006d56: 2301 movs r3, #1 + 8006d58: 4a17 ldr r2, [pc, #92] ; (8006db8 ) + 8006d5a: 6053 str r3, [r2, #4] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8006af0: 687b ldr r3, [r7, #4] - 8006af2: 2201 movs r2, #1 - 8006af4: f883 2021 strb.w r2, [r3, #33] ; 0x21 + 8006d5c: 687b ldr r3, [r7, #4] + 8006d5e: 2201 movs r2, #1 + 8006d60: f883 2021 strb.w r2, [r3, #33] ; 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8006af8: 687b ldr r3, [r7, #4] - 8006afa: 2200 movs r2, #0 - 8006afc: f883 2020 strb.w r2, [r3, #32] + 8006d64: 687b ldr r3, [r7, #4] + 8006d66: 2200 movs r2, #0 + 8006d68: f883 2020 strb.w r2, [r3, #32] /* Call User Abort callback */ if(hdma->XferAbortCallback != NULL) - 8006b00: 687b ldr r3, [r7, #4] - 8006b02: 6b5b ldr r3, [r3, #52] ; 0x34 - 8006b04: 2b00 cmp r3, #0 - 8006b06: d003 beq.n 8006b10 + 8006d6c: 687b ldr r3, [r7, #4] + 8006d6e: 6b5b ldr r3, [r3, #52] ; 0x34 + 8006d70: 2b00 cmp r3, #0 + 8006d72: d003 beq.n 8006d7c { hdma->XferAbortCallback(hdma); - 8006b08: 687b ldr r3, [r7, #4] - 8006b0a: 6b5b ldr r3, [r3, #52] ; 0x34 - 8006b0c: 6878 ldr r0, [r7, #4] - 8006b0e: 4798 blx r3 + 8006d74: 687b ldr r3, [r7, #4] + 8006d76: 6b5b ldr r3, [r3, #52] ; 0x34 + 8006d78: 6878 ldr r0, [r7, #4] + 8006d7a: 4798 blx r3 } } return status; - 8006b10: 7bfb ldrb r3, [r7, #15] + 8006d7c: 7bfb ldrb r3, [r7, #15] } - 8006b12: 4618 mov r0, r3 - 8006b14: 3710 adds r7, #16 - 8006b16: 46bd mov sp, r7 - 8006b18: bd80 pop {r7, pc} - 8006b1a: bf00 nop - 8006b1c: 40020080 .word 0x40020080 - 8006b20: 40020008 .word 0x40020008 - 8006b24: 4002001c .word 0x4002001c - 8006b28: 40020030 .word 0x40020030 - 8006b2c: 40020044 .word 0x40020044 - 8006b30: 40020058 .word 0x40020058 - 8006b34: 4002006c .word 0x4002006c - 8006b38: 40020408 .word 0x40020408 - 8006b3c: 4002041c .word 0x4002041c - 8006b40: 40020430 .word 0x40020430 - 8006b44: 40020444 .word 0x40020444 - 8006b48: 40020400 .word 0x40020400 - 8006b4c: 40020000 .word 0x40020000 + 8006d7e: 4618 mov r0, r3 + 8006d80: 3710 adds r7, #16 + 8006d82: 46bd mov sp, r7 + 8006d84: bd80 pop {r7, pc} + 8006d86: bf00 nop + 8006d88: 40020080 .word 0x40020080 + 8006d8c: 40020008 .word 0x40020008 + 8006d90: 4002001c .word 0x4002001c + 8006d94: 40020030 .word 0x40020030 + 8006d98: 40020044 .word 0x40020044 + 8006d9c: 40020058 .word 0x40020058 + 8006da0: 4002006c .word 0x4002006c + 8006da4: 40020408 .word 0x40020408 + 8006da8: 4002041c .word 0x4002041c + 8006dac: 40020430 .word 0x40020430 + 8006db0: 40020444 .word 0x40020444 + 8006db4: 40020400 .word 0x40020400 + 8006db8: 40020000 .word 0x40020000 -08006b50 : +08006dbc : * @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) { - 8006b50: b480 push {r7} - 8006b52: b08b sub sp, #44 ; 0x2c - 8006b54: af00 add r7, sp, #0 - 8006b56: 6078 str r0, [r7, #4] - 8006b58: 6039 str r1, [r7, #0] + 8006dbc: b480 push {r7} + 8006dbe: b08b sub sp, #44 ; 0x2c + 8006dc0: af00 add r7, sp, #0 + 8006dc2: 6078 str r0, [r7, #4] + 8006dc4: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 8006b5a: 2300 movs r3, #0 - 8006b5c: 627b str r3, [r7, #36] ; 0x24 + 8006dc6: 2300 movs r3, #0 + 8006dc8: 627b str r3, [r7, #36] ; 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; - 8006b5e: 2300 movs r3, #0 - 8006b60: 623b str r3, [r7, #32] + 8006dca: 2300 movs r3, #0 + 8006dcc: 623b str r3, [r7, #32] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ while (((GPIO_Init->Pin) >> position) != 0x00u) - 8006b62: e169 b.n 8006e38 + 8006dce: e169 b.n 80070a4 { /* Get the IO position */ ioposition = (0x01uL << position); - 8006b64: 2201 movs r2, #1 - 8006b66: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006b68: fa02 f303 lsl.w r3, r2, r3 - 8006b6c: 61fb str r3, [r7, #28] + 8006dd0: 2201 movs r2, #1 + 8006dd2: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006dd4: fa02 f303 lsl.w r3, r2, r3 + 8006dd8: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 8006b6e: 683b ldr r3, [r7, #0] - 8006b70: 681b ldr r3, [r3, #0] - 8006b72: 69fa ldr r2, [r7, #28] - 8006b74: 4013 ands r3, r2 - 8006b76: 61bb str r3, [r7, #24] + 8006dda: 683b ldr r3, [r7, #0] + 8006ddc: 681b ldr r3, [r3, #0] + 8006dde: 69fa ldr r2, [r7, #28] + 8006de0: 4013 ands r3, r2 + 8006de2: 61bb str r3, [r7, #24] if (iocurrent == ioposition) - 8006b78: 69ba ldr r2, [r7, #24] - 8006b7a: 69fb ldr r3, [r7, #28] - 8006b7c: 429a cmp r2, r3 - 8006b7e: f040 8158 bne.w 8006e32 + 8006de4: 69ba ldr r2, [r7, #24] + 8006de6: 69fb ldr r3, [r7, #28] + 8006de8: 429a cmp r2, r3 + 8006dea: f040 8158 bne.w 800709e { /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */ switch (GPIO_Init->Mode) - 8006b82: 683b ldr r3, [r7, #0] - 8006b84: 685b ldr r3, [r3, #4] - 8006b86: 4a9a ldr r2, [pc, #616] ; (8006df0 ) - 8006b88: 4293 cmp r3, r2 - 8006b8a: d05e beq.n 8006c4a - 8006b8c: 4a98 ldr r2, [pc, #608] ; (8006df0 ) - 8006b8e: 4293 cmp r3, r2 - 8006b90: d875 bhi.n 8006c7e - 8006b92: 4a98 ldr r2, [pc, #608] ; (8006df4 ) - 8006b94: 4293 cmp r3, r2 - 8006b96: d058 beq.n 8006c4a - 8006b98: 4a96 ldr r2, [pc, #600] ; (8006df4 ) - 8006b9a: 4293 cmp r3, r2 - 8006b9c: d86f bhi.n 8006c7e - 8006b9e: 4a96 ldr r2, [pc, #600] ; (8006df8 ) - 8006ba0: 4293 cmp r3, r2 - 8006ba2: d052 beq.n 8006c4a - 8006ba4: 4a94 ldr r2, [pc, #592] ; (8006df8 ) - 8006ba6: 4293 cmp r3, r2 - 8006ba8: d869 bhi.n 8006c7e - 8006baa: 4a94 ldr r2, [pc, #592] ; (8006dfc ) - 8006bac: 4293 cmp r3, r2 - 8006bae: d04c beq.n 8006c4a - 8006bb0: 4a92 ldr r2, [pc, #584] ; (8006dfc ) - 8006bb2: 4293 cmp r3, r2 - 8006bb4: d863 bhi.n 8006c7e - 8006bb6: 4a92 ldr r2, [pc, #584] ; (8006e00 ) - 8006bb8: 4293 cmp r3, r2 - 8006bba: d046 beq.n 8006c4a - 8006bbc: 4a90 ldr r2, [pc, #576] ; (8006e00 ) - 8006bbe: 4293 cmp r3, r2 - 8006bc0: d85d bhi.n 8006c7e - 8006bc2: 2b12 cmp r3, #18 - 8006bc4: d82a bhi.n 8006c1c - 8006bc6: 2b12 cmp r3, #18 - 8006bc8: d859 bhi.n 8006c7e - 8006bca: a201 add r2, pc, #4 ; (adr r2, 8006bd0 ) - 8006bcc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8006bd0: 08006c4b .word 0x08006c4b - 8006bd4: 08006c25 .word 0x08006c25 - 8006bd8: 08006c37 .word 0x08006c37 - 8006bdc: 08006c79 .word 0x08006c79 - 8006be0: 08006c7f .word 0x08006c7f - 8006be4: 08006c7f .word 0x08006c7f - 8006be8: 08006c7f .word 0x08006c7f - 8006bec: 08006c7f .word 0x08006c7f - 8006bf0: 08006c7f .word 0x08006c7f - 8006bf4: 08006c7f .word 0x08006c7f - 8006bf8: 08006c7f .word 0x08006c7f - 8006bfc: 08006c7f .word 0x08006c7f - 8006c00: 08006c7f .word 0x08006c7f - 8006c04: 08006c7f .word 0x08006c7f - 8006c08: 08006c7f .word 0x08006c7f - 8006c0c: 08006c7f .word 0x08006c7f - 8006c10: 08006c7f .word 0x08006c7f - 8006c14: 08006c2d .word 0x08006c2d - 8006c18: 08006c41 .word 0x08006c41 - 8006c1c: 4a79 ldr r2, [pc, #484] ; (8006e04 ) - 8006c1e: 4293 cmp r3, r2 - 8006c20: d013 beq.n 8006c4a + 8006dee: 683b ldr r3, [r7, #0] + 8006df0: 685b ldr r3, [r3, #4] + 8006df2: 4a9a ldr r2, [pc, #616] ; (800705c ) + 8006df4: 4293 cmp r3, r2 + 8006df6: d05e beq.n 8006eb6 + 8006df8: 4a98 ldr r2, [pc, #608] ; (800705c ) + 8006dfa: 4293 cmp r3, r2 + 8006dfc: d875 bhi.n 8006eea + 8006dfe: 4a98 ldr r2, [pc, #608] ; (8007060 ) + 8006e00: 4293 cmp r3, r2 + 8006e02: d058 beq.n 8006eb6 + 8006e04: 4a96 ldr r2, [pc, #600] ; (8007060 ) + 8006e06: 4293 cmp r3, r2 + 8006e08: d86f bhi.n 8006eea + 8006e0a: 4a96 ldr r2, [pc, #600] ; (8007064 ) + 8006e0c: 4293 cmp r3, r2 + 8006e0e: d052 beq.n 8006eb6 + 8006e10: 4a94 ldr r2, [pc, #592] ; (8007064 ) + 8006e12: 4293 cmp r3, r2 + 8006e14: d869 bhi.n 8006eea + 8006e16: 4a94 ldr r2, [pc, #592] ; (8007068 ) + 8006e18: 4293 cmp r3, r2 + 8006e1a: d04c beq.n 8006eb6 + 8006e1c: 4a92 ldr r2, [pc, #584] ; (8007068 ) + 8006e1e: 4293 cmp r3, r2 + 8006e20: d863 bhi.n 8006eea + 8006e22: 4a92 ldr r2, [pc, #584] ; (800706c ) + 8006e24: 4293 cmp r3, r2 + 8006e26: d046 beq.n 8006eb6 + 8006e28: 4a90 ldr r2, [pc, #576] ; (800706c ) + 8006e2a: 4293 cmp r3, r2 + 8006e2c: d85d bhi.n 8006eea + 8006e2e: 2b12 cmp r3, #18 + 8006e30: d82a bhi.n 8006e88 + 8006e32: 2b12 cmp r3, #18 + 8006e34: d859 bhi.n 8006eea + 8006e36: a201 add r2, pc, #4 ; (adr r2, 8006e3c ) + 8006e38: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8006e3c: 08006eb7 .word 0x08006eb7 + 8006e40: 08006e91 .word 0x08006e91 + 8006e44: 08006ea3 .word 0x08006ea3 + 8006e48: 08006ee5 .word 0x08006ee5 + 8006e4c: 08006eeb .word 0x08006eeb + 8006e50: 08006eeb .word 0x08006eeb + 8006e54: 08006eeb .word 0x08006eeb + 8006e58: 08006eeb .word 0x08006eeb + 8006e5c: 08006eeb .word 0x08006eeb + 8006e60: 08006eeb .word 0x08006eeb + 8006e64: 08006eeb .word 0x08006eeb + 8006e68: 08006eeb .word 0x08006eeb + 8006e6c: 08006eeb .word 0x08006eeb + 8006e70: 08006eeb .word 0x08006eeb + 8006e74: 08006eeb .word 0x08006eeb + 8006e78: 08006eeb .word 0x08006eeb + 8006e7c: 08006eeb .word 0x08006eeb + 8006e80: 08006e99 .word 0x08006e99 + 8006e84: 08006ead .word 0x08006ead + 8006e88: 4a79 ldr r2, [pc, #484] ; (8007070 ) + 8006e8a: 4293 cmp r3, r2 + 8006e8c: d013 beq.n 8006eb6 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; - 8006c22: e02c b.n 8006c7e + 8006e8e: e02c b.n 8006eea config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; - 8006c24: 683b ldr r3, [r7, #0] - 8006c26: 68db ldr r3, [r3, #12] - 8006c28: 623b str r3, [r7, #32] + 8006e90: 683b ldr r3, [r7, #0] + 8006e92: 68db ldr r3, [r3, #12] + 8006e94: 623b str r3, [r7, #32] break; - 8006c2a: e029 b.n 8006c80 + 8006e96: e029 b.n 8006eec config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; - 8006c2c: 683b ldr r3, [r7, #0] - 8006c2e: 68db ldr r3, [r3, #12] - 8006c30: 3304 adds r3, #4 - 8006c32: 623b str r3, [r7, #32] + 8006e98: 683b ldr r3, [r7, #0] + 8006e9a: 68db ldr r3, [r3, #12] + 8006e9c: 3304 adds r3, #4 + 8006e9e: 623b str r3, [r7, #32] break; - 8006c34: e024 b.n 8006c80 + 8006ea0: e024 b.n 8006eec config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; - 8006c36: 683b ldr r3, [r7, #0] - 8006c38: 68db ldr r3, [r3, #12] - 8006c3a: 3308 adds r3, #8 - 8006c3c: 623b str r3, [r7, #32] + 8006ea2: 683b ldr r3, [r7, #0] + 8006ea4: 68db ldr r3, [r3, #12] + 8006ea6: 3308 adds r3, #8 + 8006ea8: 623b str r3, [r7, #32] break; - 8006c3e: e01f b.n 8006c80 + 8006eaa: e01f b.n 8006eec config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; - 8006c40: 683b ldr r3, [r7, #0] - 8006c42: 68db ldr r3, [r3, #12] - 8006c44: 330c adds r3, #12 - 8006c46: 623b str r3, [r7, #32] + 8006eac: 683b ldr r3, [r7, #0] + 8006eae: 68db ldr r3, [r3, #12] + 8006eb0: 330c adds r3, #12 + 8006eb2: 623b str r3, [r7, #32] break; - 8006c48: e01a b.n 8006c80 + 8006eb4: e01a b.n 8006eec if (GPIO_Init->Pull == GPIO_NOPULL) - 8006c4a: 683b ldr r3, [r7, #0] - 8006c4c: 689b ldr r3, [r3, #8] - 8006c4e: 2b00 cmp r3, #0 - 8006c50: d102 bne.n 8006c58 + 8006eb6: 683b ldr r3, [r7, #0] + 8006eb8: 689b ldr r3, [r3, #8] + 8006eba: 2b00 cmp r3, #0 + 8006ebc: d102 bne.n 8006ec4 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; - 8006c52: 2304 movs r3, #4 - 8006c54: 623b str r3, [r7, #32] + 8006ebe: 2304 movs r3, #4 + 8006ec0: 623b str r3, [r7, #32] break; - 8006c56: e013 b.n 8006c80 + 8006ec2: e013 b.n 8006eec else if (GPIO_Init->Pull == GPIO_PULLUP) - 8006c58: 683b ldr r3, [r7, #0] - 8006c5a: 689b ldr r3, [r3, #8] - 8006c5c: 2b01 cmp r3, #1 - 8006c5e: d105 bne.n 8006c6c + 8006ec4: 683b ldr r3, [r7, #0] + 8006ec6: 689b ldr r3, [r3, #8] + 8006ec8: 2b01 cmp r3, #1 + 8006eca: d105 bne.n 8006ed8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8006c60: 2308 movs r3, #8 - 8006c62: 623b str r3, [r7, #32] + 8006ecc: 2308 movs r3, #8 + 8006ece: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; - 8006c64: 687b ldr r3, [r7, #4] - 8006c66: 69fa ldr r2, [r7, #28] - 8006c68: 611a str r2, [r3, #16] + 8006ed0: 687b ldr r3, [r7, #4] + 8006ed2: 69fa ldr r2, [r7, #28] + 8006ed4: 611a str r2, [r3, #16] break; - 8006c6a: e009 b.n 8006c80 + 8006ed6: e009 b.n 8006eec config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8006c6c: 2308 movs r3, #8 - 8006c6e: 623b str r3, [r7, #32] + 8006ed8: 2308 movs r3, #8 + 8006eda: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; - 8006c70: 687b ldr r3, [r7, #4] - 8006c72: 69fa ldr r2, [r7, #28] - 8006c74: 615a str r2, [r3, #20] + 8006edc: 687b ldr r3, [r7, #4] + 8006ede: 69fa ldr r2, [r7, #28] + 8006ee0: 615a str r2, [r3, #20] break; - 8006c76: e003 b.n 8006c80 + 8006ee2: e003 b.n 8006eec config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; - 8006c78: 2300 movs r3, #0 - 8006c7a: 623b str r3, [r7, #32] + 8006ee4: 2300 movs r3, #0 + 8006ee6: 623b str r3, [r7, #32] break; - 8006c7c: e000 b.n 8006c80 + 8006ee8: e000 b.n 8006eec break; - 8006c7e: bf00 nop + 8006eea: bf00 nop } /* Check if the current bit belongs to first half or last half of the pin count number in order to address CRH or CRL register*/ configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH; - 8006c80: 69bb ldr r3, [r7, #24] - 8006c82: 2bff cmp r3, #255 ; 0xff - 8006c84: d801 bhi.n 8006c8a - 8006c86: 687b ldr r3, [r7, #4] - 8006c88: e001 b.n 8006c8e - 8006c8a: 687b ldr r3, [r7, #4] - 8006c8c: 3304 adds r3, #4 - 8006c8e: 617b str r3, [r7, #20] + 8006eec: 69bb ldr r3, [r7, #24] + 8006eee: 2bff cmp r3, #255 ; 0xff + 8006ef0: d801 bhi.n 8006ef6 + 8006ef2: 687b ldr r3, [r7, #4] + 8006ef4: e001 b.n 8006efa + 8006ef6: 687b ldr r3, [r7, #4] + 8006ef8: 3304 adds r3, #4 + 8006efa: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); - 8006c90: 69bb ldr r3, [r7, #24] - 8006c92: 2bff cmp r3, #255 ; 0xff - 8006c94: d802 bhi.n 8006c9c - 8006c96: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006c98: 009b lsls r3, r3, #2 - 8006c9a: e002 b.n 8006ca2 - 8006c9c: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006c9e: 3b08 subs r3, #8 - 8006ca0: 009b lsls r3, r3, #2 - 8006ca2: 613b str r3, [r7, #16] + 8006efc: 69bb ldr r3, [r7, #24] + 8006efe: 2bff cmp r3, #255 ; 0xff + 8006f00: d802 bhi.n 8006f08 + 8006f02: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006f04: 009b lsls r3, r3, #2 + 8006f06: e002 b.n 8006f0e + 8006f08: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006f0a: 3b08 subs r3, #8 + 8006f0c: 009b lsls r3, r3, #2 + 8006f0e: 613b str r3, [r7, #16] /* Apply the new configuration of the pin to the register */ MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset)); - 8006ca4: 697b ldr r3, [r7, #20] - 8006ca6: 681a ldr r2, [r3, #0] - 8006ca8: 210f movs r1, #15 - 8006caa: 693b ldr r3, [r7, #16] - 8006cac: fa01 f303 lsl.w r3, r1, r3 - 8006cb0: 43db mvns r3, r3 - 8006cb2: 401a ands r2, r3 - 8006cb4: 6a39 ldr r1, [r7, #32] - 8006cb6: 693b ldr r3, [r7, #16] - 8006cb8: fa01 f303 lsl.w r3, r1, r3 - 8006cbc: 431a orrs r2, r3 - 8006cbe: 697b ldr r3, [r7, #20] - 8006cc0: 601a str r2, [r3, #0] + 8006f10: 697b ldr r3, [r7, #20] + 8006f12: 681a ldr r2, [r3, #0] + 8006f14: 210f movs r1, #15 + 8006f16: 693b ldr r3, [r7, #16] + 8006f18: fa01 f303 lsl.w r3, r1, r3 + 8006f1c: 43db mvns r3, r3 + 8006f1e: 401a ands r2, r3 + 8006f20: 6a39 ldr r1, [r7, #32] + 8006f22: 693b ldr r3, [r7, #16] + 8006f24: fa01 f303 lsl.w r3, r1, r3 + 8006f28: 431a orrs r2, r3 + 8006f2a: 697b ldr r3, [r7, #20] + 8006f2c: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) - 8006cc2: 683b ldr r3, [r7, #0] - 8006cc4: 685b ldr r3, [r3, #4] - 8006cc6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8006cca: 2b00 cmp r3, #0 - 8006ccc: f000 80b1 beq.w 8006e32 + 8006f2e: 683b ldr r3, [r7, #0] + 8006f30: 685b ldr r3, [r3, #4] + 8006f32: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8006f36: 2b00 cmp r3, #0 + 8006f38: f000 80b1 beq.w 800709e { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); - 8006cd0: 4b4d ldr r3, [pc, #308] ; (8006e08 ) - 8006cd2: 699b ldr r3, [r3, #24] - 8006cd4: 4a4c ldr r2, [pc, #304] ; (8006e08 ) - 8006cd6: f043 0301 orr.w r3, r3, #1 - 8006cda: 6193 str r3, [r2, #24] - 8006cdc: 4b4a ldr r3, [pc, #296] ; (8006e08 ) - 8006cde: 699b ldr r3, [r3, #24] - 8006ce0: f003 0301 and.w r3, r3, #1 - 8006ce4: 60bb str r3, [r7, #8] - 8006ce6: 68bb ldr r3, [r7, #8] + 8006f3c: 4b4d ldr r3, [pc, #308] ; (8007074 ) + 8006f3e: 699b ldr r3, [r3, #24] + 8006f40: 4a4c ldr r2, [pc, #304] ; (8007074 ) + 8006f42: f043 0301 orr.w r3, r3, #1 + 8006f46: 6193 str r3, [r2, #24] + 8006f48: 4b4a ldr r3, [pc, #296] ; (8007074 ) + 8006f4a: 699b ldr r3, [r3, #24] + 8006f4c: f003 0301 and.w r3, r3, #1 + 8006f50: 60bb str r3, [r7, #8] + 8006f52: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; - 8006ce8: 4a48 ldr r2, [pc, #288] ; (8006e0c ) - 8006cea: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006cec: 089b lsrs r3, r3, #2 - 8006cee: 3302 adds r3, #2 - 8006cf0: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8006cf4: 60fb str r3, [r7, #12] + 8006f54: 4a48 ldr r2, [pc, #288] ; (8007078 ) + 8006f56: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006f58: 089b lsrs r3, r3, #2 + 8006f5a: 3302 adds r3, #2 + 8006f5c: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8006f60: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); - 8006cf6: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006cf8: f003 0303 and.w r3, r3, #3 - 8006cfc: 009b lsls r3, r3, #2 - 8006cfe: 220f movs r2, #15 - 8006d00: fa02 f303 lsl.w r3, r2, r3 - 8006d04: 43db mvns r3, r3 - 8006d06: 68fa ldr r2, [r7, #12] - 8006d08: 4013 ands r3, r2 - 8006d0a: 60fb str r3, [r7, #12] + 8006f62: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006f64: f003 0303 and.w r3, r3, #3 + 8006f68: 009b lsls r3, r3, #2 + 8006f6a: 220f movs r2, #15 + 8006f6c: fa02 f303 lsl.w r3, r2, r3 + 8006f70: 43db mvns r3, r3 + 8006f72: 68fa ldr r2, [r7, #12] + 8006f74: 4013 ands r3, r2 + 8006f76: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); - 8006d0c: 687b ldr r3, [r7, #4] - 8006d0e: 4a40 ldr r2, [pc, #256] ; (8006e10 ) - 8006d10: 4293 cmp r3, r2 - 8006d12: d013 beq.n 8006d3c - 8006d14: 687b ldr r3, [r7, #4] - 8006d16: 4a3f ldr r2, [pc, #252] ; (8006e14 ) - 8006d18: 4293 cmp r3, r2 - 8006d1a: d00d beq.n 8006d38 - 8006d1c: 687b ldr r3, [r7, #4] - 8006d1e: 4a3e ldr r2, [pc, #248] ; (8006e18 ) - 8006d20: 4293 cmp r3, r2 - 8006d22: d007 beq.n 8006d34 - 8006d24: 687b ldr r3, [r7, #4] - 8006d26: 4a3d ldr r2, [pc, #244] ; (8006e1c ) - 8006d28: 4293 cmp r3, r2 - 8006d2a: d101 bne.n 8006d30 - 8006d2c: 2303 movs r3, #3 - 8006d2e: e006 b.n 8006d3e - 8006d30: 2304 movs r3, #4 - 8006d32: e004 b.n 8006d3e - 8006d34: 2302 movs r3, #2 - 8006d36: e002 b.n 8006d3e - 8006d38: 2301 movs r3, #1 - 8006d3a: e000 b.n 8006d3e - 8006d3c: 2300 movs r3, #0 - 8006d3e: 6a7a ldr r2, [r7, #36] ; 0x24 - 8006d40: f002 0203 and.w r2, r2, #3 - 8006d44: 0092 lsls r2, r2, #2 - 8006d46: 4093 lsls r3, r2 - 8006d48: 68fa ldr r2, [r7, #12] - 8006d4a: 4313 orrs r3, r2 - 8006d4c: 60fb str r3, [r7, #12] + 8006f78: 687b ldr r3, [r7, #4] + 8006f7a: 4a40 ldr r2, [pc, #256] ; (800707c ) + 8006f7c: 4293 cmp r3, r2 + 8006f7e: d013 beq.n 8006fa8 + 8006f80: 687b ldr r3, [r7, #4] + 8006f82: 4a3f ldr r2, [pc, #252] ; (8007080 ) + 8006f84: 4293 cmp r3, r2 + 8006f86: d00d beq.n 8006fa4 + 8006f88: 687b ldr r3, [r7, #4] + 8006f8a: 4a3e ldr r2, [pc, #248] ; (8007084 ) + 8006f8c: 4293 cmp r3, r2 + 8006f8e: d007 beq.n 8006fa0 + 8006f90: 687b ldr r3, [r7, #4] + 8006f92: 4a3d ldr r2, [pc, #244] ; (8007088 ) + 8006f94: 4293 cmp r3, r2 + 8006f96: d101 bne.n 8006f9c + 8006f98: 2303 movs r3, #3 + 8006f9a: e006 b.n 8006faa + 8006f9c: 2304 movs r3, #4 + 8006f9e: e004 b.n 8006faa + 8006fa0: 2302 movs r3, #2 + 8006fa2: e002 b.n 8006faa + 8006fa4: 2301 movs r3, #1 + 8006fa6: e000 b.n 8006faa + 8006fa8: 2300 movs r3, #0 + 8006faa: 6a7a ldr r2, [r7, #36] ; 0x24 + 8006fac: f002 0203 and.w r2, r2, #3 + 8006fb0: 0092 lsls r2, r2, #2 + 8006fb2: 4093 lsls r3, r2 + 8006fb4: 68fa ldr r2, [r7, #12] + 8006fb6: 4313 orrs r3, r2 + 8006fb8: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; - 8006d4e: 492f ldr r1, [pc, #188] ; (8006e0c ) - 8006d50: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006d52: 089b lsrs r3, r3, #2 - 8006d54: 3302 adds r3, #2 - 8006d56: 68fa ldr r2, [r7, #12] - 8006d58: f841 2023 str.w r2, [r1, r3, lsl #2] + 8006fba: 492f ldr r1, [pc, #188] ; (8007078 ) + 8006fbc: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006fbe: 089b lsrs r3, r3, #2 + 8006fc0: 3302 adds r3, #2 + 8006fc2: 68fa ldr r2, [r7, #12] + 8006fc4: f841 2023 str.w r2, [r1, r3, lsl #2] /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 8006d5c: 683b ldr r3, [r7, #0] - 8006d5e: 685b ldr r3, [r3, #4] - 8006d60: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8006d64: 2b00 cmp r3, #0 - 8006d66: d006 beq.n 8006d76 + 8006fc8: 683b ldr r3, [r7, #0] + 8006fca: 685b ldr r3, [r3, #4] + 8006fcc: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8006fd0: 2b00 cmp r3, #0 + 8006fd2: d006 beq.n 8006fe2 { SET_BIT(EXTI->IMR, iocurrent); - 8006d68: 4b2d ldr r3, [pc, #180] ; (8006e20 ) - 8006d6a: 681a ldr r2, [r3, #0] - 8006d6c: 492c ldr r1, [pc, #176] ; (8006e20 ) - 8006d6e: 69bb ldr r3, [r7, #24] - 8006d70: 4313 orrs r3, r2 - 8006d72: 600b str r3, [r1, #0] - 8006d74: e006 b.n 8006d84 + 8006fd4: 4b2d ldr r3, [pc, #180] ; (800708c ) + 8006fd6: 681a ldr r2, [r3, #0] + 8006fd8: 492c ldr r1, [pc, #176] ; (800708c ) + 8006fda: 69bb ldr r3, [r7, #24] + 8006fdc: 4313 orrs r3, r2 + 8006fde: 600b str r3, [r1, #0] + 8006fe0: e006 b.n 8006ff0 } else { CLEAR_BIT(EXTI->IMR, iocurrent); - 8006d76: 4b2a ldr r3, [pc, #168] ; (8006e20 ) - 8006d78: 681a ldr r2, [r3, #0] - 8006d7a: 69bb ldr r3, [r7, #24] - 8006d7c: 43db mvns r3, r3 - 8006d7e: 4928 ldr r1, [pc, #160] ; (8006e20 ) - 8006d80: 4013 ands r3, r2 - 8006d82: 600b str r3, [r1, #0] + 8006fe2: 4b2a ldr r3, [pc, #168] ; (800708c ) + 8006fe4: 681a ldr r2, [r3, #0] + 8006fe6: 69bb ldr r3, [r7, #24] + 8006fe8: 43db mvns r3, r3 + 8006fea: 4928 ldr r1, [pc, #160] ; (800708c ) + 8006fec: 4013 ands r3, r2 + 8006fee: 600b str r3, [r1, #0] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 8006d84: 683b ldr r3, [r7, #0] - 8006d86: 685b ldr r3, [r3, #4] - 8006d88: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006d8c: 2b00 cmp r3, #0 - 8006d8e: d006 beq.n 8006d9e + 8006ff0: 683b ldr r3, [r7, #0] + 8006ff2: 685b ldr r3, [r3, #4] + 8006ff4: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8006ff8: 2b00 cmp r3, #0 + 8006ffa: d006 beq.n 800700a { SET_BIT(EXTI->EMR, iocurrent); - 8006d90: 4b23 ldr r3, [pc, #140] ; (8006e20 ) - 8006d92: 685a ldr r2, [r3, #4] - 8006d94: 4922 ldr r1, [pc, #136] ; (8006e20 ) - 8006d96: 69bb ldr r3, [r7, #24] - 8006d98: 4313 orrs r3, r2 - 8006d9a: 604b str r3, [r1, #4] - 8006d9c: e006 b.n 8006dac + 8006ffc: 4b23 ldr r3, [pc, #140] ; (800708c ) + 8006ffe: 685a ldr r2, [r3, #4] + 8007000: 4922 ldr r1, [pc, #136] ; (800708c ) + 8007002: 69bb ldr r3, [r7, #24] + 8007004: 4313 orrs r3, r2 + 8007006: 604b str r3, [r1, #4] + 8007008: e006 b.n 8007018 } else { CLEAR_BIT(EXTI->EMR, iocurrent); - 8006d9e: 4b20 ldr r3, [pc, #128] ; (8006e20 ) - 8006da0: 685a ldr r2, [r3, #4] - 8006da2: 69bb ldr r3, [r7, #24] - 8006da4: 43db mvns r3, r3 - 8006da6: 491e ldr r1, [pc, #120] ; (8006e20 ) - 8006da8: 4013 ands r3, r2 - 8006daa: 604b str r3, [r1, #4] + 800700a: 4b20 ldr r3, [pc, #128] ; (800708c ) + 800700c: 685a ldr r2, [r3, #4] + 800700e: 69bb ldr r3, [r7, #24] + 8007010: 43db mvns r3, r3 + 8007012: 491e ldr r1, [pc, #120] ; (800708c ) + 8007014: 4013 ands r3, r2 + 8007016: 604b str r3, [r1, #4] } /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 8006dac: 683b ldr r3, [r7, #0] - 8006dae: 685b ldr r3, [r3, #4] - 8006db0: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8006db4: 2b00 cmp r3, #0 - 8006db6: d006 beq.n 8006dc6 + 8007018: 683b ldr r3, [r7, #0] + 800701a: 685b ldr r3, [r3, #4] + 800701c: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 8007020: 2b00 cmp r3, #0 + 8007022: d006 beq.n 8007032 { SET_BIT(EXTI->RTSR, iocurrent); - 8006db8: 4b19 ldr r3, [pc, #100] ; (8006e20 ) - 8006dba: 689a ldr r2, [r3, #8] - 8006dbc: 4918 ldr r1, [pc, #96] ; (8006e20 ) - 8006dbe: 69bb ldr r3, [r7, #24] - 8006dc0: 4313 orrs r3, r2 - 8006dc2: 608b str r3, [r1, #8] - 8006dc4: e006 b.n 8006dd4 + 8007024: 4b19 ldr r3, [pc, #100] ; (800708c ) + 8007026: 689a ldr r2, [r3, #8] + 8007028: 4918 ldr r1, [pc, #96] ; (800708c ) + 800702a: 69bb ldr r3, [r7, #24] + 800702c: 4313 orrs r3, r2 + 800702e: 608b str r3, [r1, #8] + 8007030: e006 b.n 8007040 } else { CLEAR_BIT(EXTI->RTSR, iocurrent); - 8006dc6: 4b16 ldr r3, [pc, #88] ; (8006e20 ) - 8006dc8: 689a ldr r2, [r3, #8] - 8006dca: 69bb ldr r3, [r7, #24] - 8006dcc: 43db mvns r3, r3 - 8006dce: 4914 ldr r1, [pc, #80] ; (8006e20 ) - 8006dd0: 4013 ands r3, r2 - 8006dd2: 608b str r3, [r1, #8] + 8007032: 4b16 ldr r3, [pc, #88] ; (800708c ) + 8007034: 689a ldr r2, [r3, #8] + 8007036: 69bb ldr r3, [r7, #24] + 8007038: 43db mvns r3, r3 + 800703a: 4914 ldr r1, [pc, #80] ; (800708c ) + 800703c: 4013 ands r3, r2 + 800703e: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8006dd4: 683b ldr r3, [r7, #0] - 8006dd6: 685b ldr r3, [r3, #4] - 8006dd8: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8006ddc: 2b00 cmp r3, #0 - 8006dde: d021 beq.n 8006e24 + 8007040: 683b ldr r3, [r7, #0] + 8007042: 685b ldr r3, [r3, #4] + 8007044: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8007048: 2b00 cmp r3, #0 + 800704a: d021 beq.n 8007090 { SET_BIT(EXTI->FTSR, iocurrent); - 8006de0: 4b0f ldr r3, [pc, #60] ; (8006e20 ) - 8006de2: 68da ldr r2, [r3, #12] - 8006de4: 490e ldr r1, [pc, #56] ; (8006e20 ) - 8006de6: 69bb ldr r3, [r7, #24] - 8006de8: 4313 orrs r3, r2 - 8006dea: 60cb str r3, [r1, #12] - 8006dec: e021 b.n 8006e32 - 8006dee: bf00 nop - 8006df0: 10320000 .word 0x10320000 - 8006df4: 10310000 .word 0x10310000 - 8006df8: 10220000 .word 0x10220000 - 8006dfc: 10210000 .word 0x10210000 - 8006e00: 10120000 .word 0x10120000 - 8006e04: 10110000 .word 0x10110000 - 8006e08: 40021000 .word 0x40021000 - 8006e0c: 40010000 .word 0x40010000 - 8006e10: 40010800 .word 0x40010800 - 8006e14: 40010c00 .word 0x40010c00 - 8006e18: 40011000 .word 0x40011000 - 8006e1c: 40011400 .word 0x40011400 - 8006e20: 40010400 .word 0x40010400 + 800704c: 4b0f ldr r3, [pc, #60] ; (800708c ) + 800704e: 68da ldr r2, [r3, #12] + 8007050: 490e ldr r1, [pc, #56] ; (800708c ) + 8007052: 69bb ldr r3, [r7, #24] + 8007054: 4313 orrs r3, r2 + 8007056: 60cb str r3, [r1, #12] + 8007058: e021 b.n 800709e + 800705a: bf00 nop + 800705c: 10320000 .word 0x10320000 + 8007060: 10310000 .word 0x10310000 + 8007064: 10220000 .word 0x10220000 + 8007068: 10210000 .word 0x10210000 + 800706c: 10120000 .word 0x10120000 + 8007070: 10110000 .word 0x10110000 + 8007074: 40021000 .word 0x40021000 + 8007078: 40010000 .word 0x40010000 + 800707c: 40010800 .word 0x40010800 + 8007080: 40010c00 .word 0x40010c00 + 8007084: 40011000 .word 0x40011000 + 8007088: 40011400 .word 0x40011400 + 800708c: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); - 8006e24: 4b0b ldr r3, [pc, #44] ; (8006e54 ) - 8006e26: 68da ldr r2, [r3, #12] - 8006e28: 69bb ldr r3, [r7, #24] - 8006e2a: 43db mvns r3, r3 - 8006e2c: 4909 ldr r1, [pc, #36] ; (8006e54 ) - 8006e2e: 4013 ands r3, r2 - 8006e30: 60cb str r3, [r1, #12] + 8007090: 4b0b ldr r3, [pc, #44] ; (80070c0 ) + 8007092: 68da ldr r2, [r3, #12] + 8007094: 69bb ldr r3, [r7, #24] + 8007096: 43db mvns r3, r3 + 8007098: 4909 ldr r1, [pc, #36] ; (80070c0 ) + 800709a: 4013 ands r3, r2 + 800709c: 60cb str r3, [r1, #12] } } } position++; - 8006e32: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006e34: 3301 adds r3, #1 - 8006e36: 627b str r3, [r7, #36] ; 0x24 + 800709e: 6a7b ldr r3, [r7, #36] ; 0x24 + 80070a0: 3301 adds r3, #1 + 80070a2: 627b str r3, [r7, #36] ; 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) - 8006e38: 683b ldr r3, [r7, #0] - 8006e3a: 681a ldr r2, [r3, #0] - 8006e3c: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006e3e: fa22 f303 lsr.w r3, r2, r3 - 8006e42: 2b00 cmp r3, #0 - 8006e44: f47f ae8e bne.w 8006b64 + 80070a4: 683b ldr r3, [r7, #0] + 80070a6: 681a ldr r2, [r3, #0] + 80070a8: 6a7b ldr r3, [r7, #36] ; 0x24 + 80070aa: fa22 f303 lsr.w r3, r2, r3 + 80070ae: 2b00 cmp r3, #0 + 80070b0: f47f ae8e bne.w 8006dd0 } } - 8006e48: bf00 nop - 8006e4a: bf00 nop - 8006e4c: 372c adds r7, #44 ; 0x2c - 8006e4e: 46bd mov sp, r7 - 8006e50: bc80 pop {r7} - 8006e52: 4770 bx lr - 8006e54: 40010400 .word 0x40010400 + 80070b4: bf00 nop + 80070b6: bf00 nop + 80070b8: 372c adds r7, #44 ; 0x2c + 80070ba: 46bd mov sp, r7 + 80070bc: bc80 pop {r7} + 80070be: 4770 bx lr + 80070c0: 40010400 .word 0x40010400 -08006e58 : +080070c4 : * @param GPIO_Pin: specifies the port bit to read. * This parameter can be GPIO_PIN_x where x can be (0..15). * @retval The input port pin value. */ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) { - 8006e58: b480 push {r7} - 8006e5a: b085 sub sp, #20 - 8006e5c: af00 add r7, sp, #0 - 8006e5e: 6078 str r0, [r7, #4] - 8006e60: 460b mov r3, r1 - 8006e62: 807b strh r3, [r7, #2] + 80070c4: b480 push {r7} + 80070c6: b085 sub sp, #20 + 80070c8: af00 add r7, sp, #0 + 80070ca: 6078 str r0, [r7, #4] + 80070cc: 460b mov r3, r1 + 80070ce: 807b strh r3, [r7, #2] GPIO_PinState bitstatus; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) - 8006e64: 687b ldr r3, [r7, #4] - 8006e66: 689a ldr r2, [r3, #8] - 8006e68: 887b ldrh r3, [r7, #2] - 8006e6a: 4013 ands r3, r2 - 8006e6c: 2b00 cmp r3, #0 - 8006e6e: d002 beq.n 8006e76 + 80070d0: 687b ldr r3, [r7, #4] + 80070d2: 689a ldr r2, [r3, #8] + 80070d4: 887b ldrh r3, [r7, #2] + 80070d6: 4013 ands r3, r2 + 80070d8: 2b00 cmp r3, #0 + 80070da: d002 beq.n 80070e2 { bitstatus = GPIO_PIN_SET; - 8006e70: 2301 movs r3, #1 - 8006e72: 73fb strb r3, [r7, #15] - 8006e74: e001 b.n 8006e7a + 80070dc: 2301 movs r3, #1 + 80070de: 73fb strb r3, [r7, #15] + 80070e0: e001 b.n 80070e6 } else { bitstatus = GPIO_PIN_RESET; - 8006e76: 2300 movs r3, #0 - 8006e78: 73fb strb r3, [r7, #15] + 80070e2: 2300 movs r3, #0 + 80070e4: 73fb strb r3, [r7, #15] } return bitstatus; - 8006e7a: 7bfb ldrb r3, [r7, #15] + 80070e6: 7bfb ldrb r3, [r7, #15] } - 8006e7c: 4618 mov r0, r3 - 8006e7e: 3714 adds r7, #20 - 8006e80: 46bd mov sp, r7 - 8006e82: bc80 pop {r7} - 8006e84: 4770 bx lr + 80070e8: 4618 mov r0, r3 + 80070ea: 3714 adds r7, #20 + 80070ec: 46bd mov sp, r7 + 80070ee: bc80 pop {r7} + 80070f0: 4770 bx lr -08006e86 : +080070f2 : * @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) { - 8006e86: b480 push {r7} - 8006e88: b083 sub sp, #12 - 8006e8a: af00 add r7, sp, #0 - 8006e8c: 6078 str r0, [r7, #4] - 8006e8e: 460b mov r3, r1 - 8006e90: 807b strh r3, [r7, #2] - 8006e92: 4613 mov r3, r2 - 8006e94: 707b strb r3, [r7, #1] + 80070f2: b480 push {r7} + 80070f4: b083 sub sp, #12 + 80070f6: af00 add r7, sp, #0 + 80070f8: 6078 str r0, [r7, #4] + 80070fa: 460b mov r3, r1 + 80070fc: 807b strh r3, [r7, #2] + 80070fe: 4613 mov r3, r2 + 8007100: 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) - 8006e96: 787b ldrb r3, [r7, #1] - 8006e98: 2b00 cmp r3, #0 - 8006e9a: d003 beq.n 8006ea4 + 8007102: 787b ldrb r3, [r7, #1] + 8007104: 2b00 cmp r3, #0 + 8007106: d003 beq.n 8007110 { GPIOx->BSRR = GPIO_Pin; - 8006e9c: 887a ldrh r2, [r7, #2] - 8006e9e: 687b ldr r3, [r7, #4] - 8006ea0: 611a str r2, [r3, #16] + 8007108: 887a ldrh r2, [r7, #2] + 800710a: 687b ldr r3, [r7, #4] + 800710c: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } - 8006ea2: e003 b.n 8006eac + 800710e: e003 b.n 8007118 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; - 8006ea4: 887b ldrh r3, [r7, #2] - 8006ea6: 041a lsls r2, r3, #16 - 8006ea8: 687b ldr r3, [r7, #4] - 8006eaa: 611a str r2, [r3, #16] + 8007110: 887b ldrh r3, [r7, #2] + 8007112: 041a lsls r2, r3, #16 + 8007114: 687b ldr r3, [r7, #4] + 8007116: 611a str r2, [r3, #16] } - 8006eac: bf00 nop - 8006eae: 370c adds r7, #12 - 8006eb0: 46bd mov sp, r7 - 8006eb2: bc80 pop {r7} - 8006eb4: 4770 bx lr + 8007118: bf00 nop + 800711a: 370c adds r7, #12 + 800711c: 46bd mov sp, r7 + 800711e: bc80 pop {r7} + 8007120: 4770 bx lr ... -08006eb8 : +08007124 : * @note If the HSE divided by 128 is used as the RTC clock, the * Backup Domain Access should be kept enabled. * @retval None */ void HAL_PWR_EnableBkUpAccess(void) { - 8006eb8: b480 push {r7} - 8006eba: af00 add r7, sp, #0 + 8007124: b480 push {r7} + 8007126: af00 add r7, sp, #0 /* Enable access to RTC and backup registers */ *(__IO uint32_t *) CR_DBP_BB = (uint32_t)ENABLE; - 8006ebc: 4b03 ldr r3, [pc, #12] ; (8006ecc ) - 8006ebe: 2201 movs r2, #1 - 8006ec0: 601a str r2, [r3, #0] + 8007128: 4b03 ldr r3, [pc, #12] ; (8007138 ) + 800712a: 2201 movs r2, #1 + 800712c: 601a str r2, [r3, #0] } - 8006ec2: bf00 nop - 8006ec4: 46bd mov sp, r7 - 8006ec6: bc80 pop {r7} - 8006ec8: 4770 bx lr - 8006eca: bf00 nop - 8006ecc: 420e0020 .word 0x420e0020 + 800712e: bf00 nop + 8007130: 46bd mov sp, r7 + 8007132: bc80 pop {r7} + 8007134: 4770 bx lr + 8007136: bf00 nop + 8007138: 420e0020 .word 0x420e0020 -08006ed0 : +0800713c : * supported by this macro. 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) { - 8006ed0: b580 push {r7, lr} - 8006ed2: b086 sub sp, #24 - 8006ed4: af00 add r7, sp, #0 - 8006ed6: 6078 str r0, [r7, #4] + 800713c: b580 push {r7, lr} + 800713e: b086 sub sp, #24 + 8007140: af00 add r7, sp, #0 + 8007142: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 8006ed8: 687b ldr r3, [r7, #4] - 8006eda: 2b00 cmp r3, #0 - 8006edc: d101 bne.n 8006ee2 + 8007144: 687b ldr r3, [r7, #4] + 8007146: 2b00 cmp r3, #0 + 8007148: d101 bne.n 800714e { return HAL_ERROR; - 8006ede: 2301 movs r3, #1 - 8006ee0: e304 b.n 80074ec + 800714a: 2301 movs r3, #1 + 800714c: e304 b.n 8007758 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8006ee2: 687b ldr r3, [r7, #4] - 8006ee4: 681b ldr r3, [r3, #0] - 8006ee6: f003 0301 and.w r3, r3, #1 - 8006eea: 2b00 cmp r3, #0 - 8006eec: f000 8087 beq.w 8006ffe + 800714e: 687b ldr r3, [r7, #4] + 8007150: 681b ldr r3, [r3, #0] + 8007152: f003 0301 and.w r3, r3, #1 + 8007156: 2b00 cmp r3, #0 + 8007158: f000 8087 beq.w 800726a { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 8006ef0: 4b92 ldr r3, [pc, #584] ; (800713c ) - 8006ef2: 685b ldr r3, [r3, #4] - 8006ef4: f003 030c and.w r3, r3, #12 - 8006ef8: 2b04 cmp r3, #4 - 8006efa: d00c beq.n 8006f16 + 800715c: 4b92 ldr r3, [pc, #584] ; (80073a8 ) + 800715e: 685b ldr r3, [r3, #4] + 8007160: f003 030c and.w r3, r3, #12 + 8007164: 2b04 cmp r3, #4 + 8007166: d00c beq.n 8007182 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 8006efc: 4b8f ldr r3, [pc, #572] ; (800713c ) - 8006efe: 685b ldr r3, [r3, #4] - 8006f00: f003 030c and.w r3, r3, #12 - 8006f04: 2b08 cmp r3, #8 - 8006f06: d112 bne.n 8006f2e - 8006f08: 4b8c ldr r3, [pc, #560] ; (800713c ) - 8006f0a: 685b ldr r3, [r3, #4] - 8006f0c: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8006f10: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8006f14: d10b bne.n 8006f2e + 8007168: 4b8f ldr r3, [pc, #572] ; (80073a8 ) + 800716a: 685b ldr r3, [r3, #4] + 800716c: f003 030c and.w r3, r3, #12 + 8007170: 2b08 cmp r3, #8 + 8007172: d112 bne.n 800719a + 8007174: 4b8c ldr r3, [pc, #560] ; (80073a8 ) + 8007176: 685b ldr r3, [r3, #4] + 8007178: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 800717c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8007180: d10b bne.n 800719a { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8006f16: 4b89 ldr r3, [pc, #548] ; (800713c ) - 8006f18: 681b ldr r3, [r3, #0] - 8006f1a: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006f1e: 2b00 cmp r3, #0 - 8006f20: d06c beq.n 8006ffc - 8006f22: 687b ldr r3, [r7, #4] - 8006f24: 689b ldr r3, [r3, #8] - 8006f26: 2b00 cmp r3, #0 - 8006f28: d168 bne.n 8006ffc + 8007182: 4b89 ldr r3, [pc, #548] ; (80073a8 ) + 8007184: 681b ldr r3, [r3, #0] + 8007186: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 800718a: 2b00 cmp r3, #0 + 800718c: d06c beq.n 8007268 + 800718e: 687b ldr r3, [r7, #4] + 8007190: 689b ldr r3, [r3, #8] + 8007192: 2b00 cmp r3, #0 + 8007194: d168 bne.n 8007268 { return HAL_ERROR; - 8006f2a: 2301 movs r3, #1 - 8006f2c: e2de b.n 80074ec + 8007196: 2301 movs r3, #1 + 8007198: e2de b.n 8007758 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8006f2e: 687b ldr r3, [r7, #4] - 8006f30: 689b ldr r3, [r3, #8] - 8006f32: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8006f36: d106 bne.n 8006f46 - 8006f38: 4b80 ldr r3, [pc, #512] ; (800713c ) - 8006f3a: 681b ldr r3, [r3, #0] - 8006f3c: 4a7f ldr r2, [pc, #508] ; (800713c ) - 8006f3e: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8006f42: 6013 str r3, [r2, #0] - 8006f44: e02e b.n 8006fa4 - 8006f46: 687b ldr r3, [r7, #4] - 8006f48: 689b ldr r3, [r3, #8] - 8006f4a: 2b00 cmp r3, #0 - 8006f4c: d10c bne.n 8006f68 - 8006f4e: 4b7b ldr r3, [pc, #492] ; (800713c ) - 8006f50: 681b ldr r3, [r3, #0] - 8006f52: 4a7a ldr r2, [pc, #488] ; (800713c ) - 8006f54: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8006f58: 6013 str r3, [r2, #0] - 8006f5a: 4b78 ldr r3, [pc, #480] ; (800713c ) - 8006f5c: 681b ldr r3, [r3, #0] - 8006f5e: 4a77 ldr r2, [pc, #476] ; (800713c ) - 8006f60: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8006f64: 6013 str r3, [r2, #0] - 8006f66: e01d b.n 8006fa4 - 8006f68: 687b ldr r3, [r7, #4] - 8006f6a: 689b ldr r3, [r3, #8] - 8006f6c: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 8006f70: d10c bne.n 8006f8c - 8006f72: 4b72 ldr r3, [pc, #456] ; (800713c ) - 8006f74: 681b ldr r3, [r3, #0] - 8006f76: 4a71 ldr r2, [pc, #452] ; (800713c ) - 8006f78: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8006f7c: 6013 str r3, [r2, #0] - 8006f7e: 4b6f ldr r3, [pc, #444] ; (800713c ) - 8006f80: 681b ldr r3, [r3, #0] - 8006f82: 4a6e ldr r2, [pc, #440] ; (800713c ) - 8006f84: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8006f88: 6013 str r3, [r2, #0] - 8006f8a: e00b b.n 8006fa4 - 8006f8c: 4b6b ldr r3, [pc, #428] ; (800713c ) - 8006f8e: 681b ldr r3, [r3, #0] - 8006f90: 4a6a ldr r2, [pc, #424] ; (800713c ) - 8006f92: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8006f96: 6013 str r3, [r2, #0] - 8006f98: 4b68 ldr r3, [pc, #416] ; (800713c ) - 8006f9a: 681b ldr r3, [r3, #0] - 8006f9c: 4a67 ldr r2, [pc, #412] ; (800713c ) - 8006f9e: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8006fa2: 6013 str r3, [r2, #0] + 800719a: 687b ldr r3, [r7, #4] + 800719c: 689b ldr r3, [r3, #8] + 800719e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 80071a2: d106 bne.n 80071b2 + 80071a4: 4b80 ldr r3, [pc, #512] ; (80073a8 ) + 80071a6: 681b ldr r3, [r3, #0] + 80071a8: 4a7f ldr r2, [pc, #508] ; (80073a8 ) + 80071aa: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 80071ae: 6013 str r3, [r2, #0] + 80071b0: e02e b.n 8007210 + 80071b2: 687b ldr r3, [r7, #4] + 80071b4: 689b ldr r3, [r3, #8] + 80071b6: 2b00 cmp r3, #0 + 80071b8: d10c bne.n 80071d4 + 80071ba: 4b7b ldr r3, [pc, #492] ; (80073a8 ) + 80071bc: 681b ldr r3, [r3, #0] + 80071be: 4a7a ldr r2, [pc, #488] ; (80073a8 ) + 80071c0: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 80071c4: 6013 str r3, [r2, #0] + 80071c6: 4b78 ldr r3, [pc, #480] ; (80073a8 ) + 80071c8: 681b ldr r3, [r3, #0] + 80071ca: 4a77 ldr r2, [pc, #476] ; (80073a8 ) + 80071cc: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 80071d0: 6013 str r3, [r2, #0] + 80071d2: e01d b.n 8007210 + 80071d4: 687b ldr r3, [r7, #4] + 80071d6: 689b ldr r3, [r3, #8] + 80071d8: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 + 80071dc: d10c bne.n 80071f8 + 80071de: 4b72 ldr r3, [pc, #456] ; (80073a8 ) + 80071e0: 681b ldr r3, [r3, #0] + 80071e2: 4a71 ldr r2, [pc, #452] ; (80073a8 ) + 80071e4: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 80071e8: 6013 str r3, [r2, #0] + 80071ea: 4b6f ldr r3, [pc, #444] ; (80073a8 ) + 80071ec: 681b ldr r3, [r3, #0] + 80071ee: 4a6e ldr r2, [pc, #440] ; (80073a8 ) + 80071f0: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 80071f4: 6013 str r3, [r2, #0] + 80071f6: e00b b.n 8007210 + 80071f8: 4b6b ldr r3, [pc, #428] ; (80073a8 ) + 80071fa: 681b ldr r3, [r3, #0] + 80071fc: 4a6a ldr r2, [pc, #424] ; (80073a8 ) + 80071fe: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8007202: 6013 str r3, [r2, #0] + 8007204: 4b68 ldr r3, [pc, #416] ; (80073a8 ) + 8007206: 681b ldr r3, [r3, #0] + 8007208: 4a67 ldr r2, [pc, #412] ; (80073a8 ) + 800720a: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 800720e: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8006fa4: 687b ldr r3, [r7, #4] - 8006fa6: 689b ldr r3, [r3, #8] - 8006fa8: 2b00 cmp r3, #0 - 8006faa: d013 beq.n 8006fd4 + 8007210: 687b ldr r3, [r7, #4] + 8007212: 689b ldr r3, [r3, #8] + 8007214: 2b00 cmp r3, #0 + 8007216: d013 beq.n 8007240 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8006fac: f7fd ffa2 bl 8004ef4 - 8006fb0: 6138 str r0, [r7, #16] + 8007218: f7fd ffa2 bl 8005160 + 800721c: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8006fb2: e008 b.n 8006fc6 + 800721e: e008 b.n 8007232 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8006fb4: f7fd ff9e bl 8004ef4 - 8006fb8: 4602 mov r2, r0 - 8006fba: 693b ldr r3, [r7, #16] - 8006fbc: 1ad3 subs r3, r2, r3 - 8006fbe: 2b64 cmp r3, #100 ; 0x64 - 8006fc0: d901 bls.n 8006fc6 + 8007220: f7fd ff9e bl 8005160 + 8007224: 4602 mov r2, r0 + 8007226: 693b ldr r3, [r7, #16] + 8007228: 1ad3 subs r3, r2, r3 + 800722a: 2b64 cmp r3, #100 ; 0x64 + 800722c: d901 bls.n 8007232 { return HAL_TIMEOUT; - 8006fc2: 2303 movs r3, #3 - 8006fc4: e292 b.n 80074ec + 800722e: 2303 movs r3, #3 + 8007230: e292 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8006fc6: 4b5d ldr r3, [pc, #372] ; (800713c ) - 8006fc8: 681b ldr r3, [r3, #0] - 8006fca: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006fce: 2b00 cmp r3, #0 - 8006fd0: d0f0 beq.n 8006fb4 - 8006fd2: e014 b.n 8006ffe + 8007232: 4b5d ldr r3, [pc, #372] ; (80073a8 ) + 8007234: 681b ldr r3, [r3, #0] + 8007236: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 800723a: 2b00 cmp r3, #0 + 800723c: d0f0 beq.n 8007220 + 800723e: e014 b.n 800726a } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8006fd4: f7fd ff8e bl 8004ef4 - 8006fd8: 6138 str r0, [r7, #16] + 8007240: f7fd ff8e bl 8005160 + 8007244: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8006fda: e008 b.n 8006fee + 8007246: e008 b.n 800725a { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8006fdc: f7fd ff8a bl 8004ef4 - 8006fe0: 4602 mov r2, r0 - 8006fe2: 693b ldr r3, [r7, #16] - 8006fe4: 1ad3 subs r3, r2, r3 - 8006fe6: 2b64 cmp r3, #100 ; 0x64 - 8006fe8: d901 bls.n 8006fee + 8007248: f7fd ff8a bl 8005160 + 800724c: 4602 mov r2, r0 + 800724e: 693b ldr r3, [r7, #16] + 8007250: 1ad3 subs r3, r2, r3 + 8007252: 2b64 cmp r3, #100 ; 0x64 + 8007254: d901 bls.n 800725a { return HAL_TIMEOUT; - 8006fea: 2303 movs r3, #3 - 8006fec: e27e b.n 80074ec + 8007256: 2303 movs r3, #3 + 8007258: e27e b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8006fee: 4b53 ldr r3, [pc, #332] ; (800713c ) - 8006ff0: 681b ldr r3, [r3, #0] - 8006ff2: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8006ff6: 2b00 cmp r3, #0 - 8006ff8: d1f0 bne.n 8006fdc - 8006ffa: e000 b.n 8006ffe + 800725a: 4b53 ldr r3, [pc, #332] ; (80073a8 ) + 800725c: 681b ldr r3, [r3, #0] + 800725e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8007262: 2b00 cmp r3, #0 + 8007264: d1f0 bne.n 8007248 + 8007266: e000 b.n 800726a if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8006ffc: bf00 nop + 8007268: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8006ffe: 687b ldr r3, [r7, #4] - 8007000: 681b ldr r3, [r3, #0] - 8007002: f003 0302 and.w r3, r3, #2 - 8007006: 2b00 cmp r3, #0 - 8007008: d063 beq.n 80070d2 + 800726a: 687b ldr r3, [r7, #4] + 800726c: 681b ldr r3, [r3, #0] + 800726e: f003 0302 and.w r3, r3, #2 + 8007272: 2b00 cmp r3, #0 + 8007274: d063 beq.n 800733e /* 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) - 800700a: 4b4c ldr r3, [pc, #304] ; (800713c ) - 800700c: 685b ldr r3, [r3, #4] - 800700e: f003 030c and.w r3, r3, #12 - 8007012: 2b00 cmp r3, #0 - 8007014: d00b beq.n 800702e + 8007276: 4b4c ldr r3, [pc, #304] ; (80073a8 ) + 8007278: 685b ldr r3, [r3, #4] + 800727a: f003 030c and.w r3, r3, #12 + 800727e: 2b00 cmp r3, #0 + 8007280: d00b beq.n 800729a || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) - 8007016: 4b49 ldr r3, [pc, #292] ; (800713c ) - 8007018: 685b ldr r3, [r3, #4] - 800701a: f003 030c and.w r3, r3, #12 - 800701e: 2b08 cmp r3, #8 - 8007020: d11c bne.n 800705c - 8007022: 4b46 ldr r3, [pc, #280] ; (800713c ) - 8007024: 685b ldr r3, [r3, #4] - 8007026: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800702a: 2b00 cmp r3, #0 - 800702c: d116 bne.n 800705c + 8007282: 4b49 ldr r3, [pc, #292] ; (80073a8 ) + 8007284: 685b ldr r3, [r3, #4] + 8007286: f003 030c and.w r3, r3, #12 + 800728a: 2b08 cmp r3, #8 + 800728c: d11c bne.n 80072c8 + 800728e: 4b46 ldr r3, [pc, #280] ; (80073a8 ) + 8007290: 685b ldr r3, [r3, #4] + 8007292: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8007296: 2b00 cmp r3, #0 + 8007298: d116 bne.n 80072c8 { /* 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)) - 800702e: 4b43 ldr r3, [pc, #268] ; (800713c ) - 8007030: 681b ldr r3, [r3, #0] - 8007032: f003 0302 and.w r3, r3, #2 - 8007036: 2b00 cmp r3, #0 - 8007038: d005 beq.n 8007046 - 800703a: 687b ldr r3, [r7, #4] - 800703c: 695b ldr r3, [r3, #20] - 800703e: 2b01 cmp r3, #1 - 8007040: d001 beq.n 8007046 + 800729a: 4b43 ldr r3, [pc, #268] ; (80073a8 ) + 800729c: 681b ldr r3, [r3, #0] + 800729e: f003 0302 and.w r3, r3, #2 + 80072a2: 2b00 cmp r3, #0 + 80072a4: d005 beq.n 80072b2 + 80072a6: 687b ldr r3, [r7, #4] + 80072a8: 695b ldr r3, [r3, #20] + 80072aa: 2b01 cmp r3, #1 + 80072ac: d001 beq.n 80072b2 { return HAL_ERROR; - 8007042: 2301 movs r3, #1 - 8007044: e252 b.n 80074ec + 80072ae: 2301 movs r3, #1 + 80072b0: e252 b.n 8007758 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8007046: 4b3d ldr r3, [pc, #244] ; (800713c ) - 8007048: 681b ldr r3, [r3, #0] - 800704a: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 800704e: 687b ldr r3, [r7, #4] - 8007050: 699b ldr r3, [r3, #24] - 8007052: 00db lsls r3, r3, #3 - 8007054: 4939 ldr r1, [pc, #228] ; (800713c ) - 8007056: 4313 orrs r3, r2 - 8007058: 600b str r3, [r1, #0] + 80072b2: 4b3d ldr r3, [pc, #244] ; (80073a8 ) + 80072b4: 681b ldr r3, [r3, #0] + 80072b6: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 80072ba: 687b ldr r3, [r7, #4] + 80072bc: 699b ldr r3, [r3, #24] + 80072be: 00db lsls r3, r3, #3 + 80072c0: 4939 ldr r1, [pc, #228] ; (80073a8 ) + 80072c2: 4313 orrs r3, r2 + 80072c4: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 800705a: e03a b.n 80070d2 + 80072c6: e03a b.n 800733e } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 800705c: 687b ldr r3, [r7, #4] - 800705e: 695b ldr r3, [r3, #20] - 8007060: 2b00 cmp r3, #0 - 8007062: d020 beq.n 80070a6 + 80072c8: 687b ldr r3, [r7, #4] + 80072ca: 695b ldr r3, [r3, #20] + 80072cc: 2b00 cmp r3, #0 + 80072ce: d020 beq.n 8007312 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8007064: 4b36 ldr r3, [pc, #216] ; (8007140 ) - 8007066: 2201 movs r2, #1 - 8007068: 601a str r2, [r3, #0] + 80072d0: 4b36 ldr r3, [pc, #216] ; (80073ac ) + 80072d2: 2201 movs r2, #1 + 80072d4: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800706a: f7fd ff43 bl 8004ef4 - 800706e: 6138 str r0, [r7, #16] + 80072d6: f7fd ff43 bl 8005160 + 80072da: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8007070: e008 b.n 8007084 + 80072dc: e008 b.n 80072f0 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8007072: f7fd ff3f bl 8004ef4 - 8007076: 4602 mov r2, r0 - 8007078: 693b ldr r3, [r7, #16] - 800707a: 1ad3 subs r3, r2, r3 - 800707c: 2b02 cmp r3, #2 - 800707e: d901 bls.n 8007084 + 80072de: f7fd ff3f bl 8005160 + 80072e2: 4602 mov r2, r0 + 80072e4: 693b ldr r3, [r7, #16] + 80072e6: 1ad3 subs r3, r2, r3 + 80072e8: 2b02 cmp r3, #2 + 80072ea: d901 bls.n 80072f0 { return HAL_TIMEOUT; - 8007080: 2303 movs r3, #3 - 8007082: e233 b.n 80074ec + 80072ec: 2303 movs r3, #3 + 80072ee: e233 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8007084: 4b2d ldr r3, [pc, #180] ; (800713c ) - 8007086: 681b ldr r3, [r3, #0] - 8007088: f003 0302 and.w r3, r3, #2 - 800708c: 2b00 cmp r3, #0 - 800708e: d0f0 beq.n 8007072 + 80072f0: 4b2d ldr r3, [pc, #180] ; (80073a8 ) + 80072f2: 681b ldr r3, [r3, #0] + 80072f4: f003 0302 and.w r3, r3, #2 + 80072f8: 2b00 cmp r3, #0 + 80072fa: d0f0 beq.n 80072de } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8007090: 4b2a ldr r3, [pc, #168] ; (800713c ) - 8007092: 681b ldr r3, [r3, #0] - 8007094: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 8007098: 687b ldr r3, [r7, #4] - 800709a: 699b ldr r3, [r3, #24] - 800709c: 00db lsls r3, r3, #3 - 800709e: 4927 ldr r1, [pc, #156] ; (800713c ) - 80070a0: 4313 orrs r3, r2 - 80070a2: 600b str r3, [r1, #0] - 80070a4: e015 b.n 80070d2 + 80072fc: 4b2a ldr r3, [pc, #168] ; (80073a8 ) + 80072fe: 681b ldr r3, [r3, #0] + 8007300: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 8007304: 687b ldr r3, [r7, #4] + 8007306: 699b ldr r3, [r3, #24] + 8007308: 00db lsls r3, r3, #3 + 800730a: 4927 ldr r1, [pc, #156] ; (80073a8 ) + 800730c: 4313 orrs r3, r2 + 800730e: 600b str r3, [r1, #0] + 8007310: e015 b.n 800733e } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 80070a6: 4b26 ldr r3, [pc, #152] ; (8007140 ) - 80070a8: 2200 movs r2, #0 - 80070aa: 601a str r2, [r3, #0] + 8007312: 4b26 ldr r3, [pc, #152] ; (80073ac ) + 8007314: 2200 movs r2, #0 + 8007316: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80070ac: f7fd ff22 bl 8004ef4 - 80070b0: 6138 str r0, [r7, #16] + 8007318: f7fd ff22 bl 8005160 + 800731c: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80070b2: e008 b.n 80070c6 + 800731e: e008 b.n 8007332 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 80070b4: f7fd ff1e bl 8004ef4 - 80070b8: 4602 mov r2, r0 - 80070ba: 693b ldr r3, [r7, #16] - 80070bc: 1ad3 subs r3, r2, r3 - 80070be: 2b02 cmp r3, #2 - 80070c0: d901 bls.n 80070c6 + 8007320: f7fd ff1e bl 8005160 + 8007324: 4602 mov r2, r0 + 8007326: 693b ldr r3, [r7, #16] + 8007328: 1ad3 subs r3, r2, r3 + 800732a: 2b02 cmp r3, #2 + 800732c: d901 bls.n 8007332 { return HAL_TIMEOUT; - 80070c2: 2303 movs r3, #3 - 80070c4: e212 b.n 80074ec + 800732e: 2303 movs r3, #3 + 8007330: e212 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80070c6: 4b1d ldr r3, [pc, #116] ; (800713c ) - 80070c8: 681b ldr r3, [r3, #0] - 80070ca: f003 0302 and.w r3, r3, #2 - 80070ce: 2b00 cmp r3, #0 - 80070d0: d1f0 bne.n 80070b4 + 8007332: 4b1d ldr r3, [pc, #116] ; (80073a8 ) + 8007334: 681b ldr r3, [r3, #0] + 8007336: f003 0302 and.w r3, r3, #2 + 800733a: 2b00 cmp r3, #0 + 800733c: d1f0 bne.n 8007320 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 80070d2: 687b ldr r3, [r7, #4] - 80070d4: 681b ldr r3, [r3, #0] - 80070d6: f003 0308 and.w r3, r3, #8 - 80070da: 2b00 cmp r3, #0 - 80070dc: d03a beq.n 8007154 + 800733e: 687b ldr r3, [r7, #4] + 8007340: 681b ldr r3, [r3, #0] + 8007342: f003 0308 and.w r3, r3, #8 + 8007346: 2b00 cmp r3, #0 + 8007348: d03a beq.n 80073c0 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 80070de: 687b ldr r3, [r7, #4] - 80070e0: 69db ldr r3, [r3, #28] - 80070e2: 2b00 cmp r3, #0 - 80070e4: d019 beq.n 800711a + 800734a: 687b ldr r3, [r7, #4] + 800734c: 69db ldr r3, [r3, #28] + 800734e: 2b00 cmp r3, #0 + 8007350: d019 beq.n 8007386 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 80070e6: 4b17 ldr r3, [pc, #92] ; (8007144 ) - 80070e8: 2201 movs r2, #1 - 80070ea: 601a str r2, [r3, #0] + 8007352: 4b17 ldr r3, [pc, #92] ; (80073b0 ) + 8007354: 2201 movs r2, #1 + 8007356: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80070ec: f7fd ff02 bl 8004ef4 - 80070f0: 6138 str r0, [r7, #16] + 8007358: f7fd ff02 bl 8005160 + 800735c: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 80070f2: e008 b.n 8007106 + 800735e: e008 b.n 8007372 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 80070f4: f7fd fefe bl 8004ef4 - 80070f8: 4602 mov r2, r0 - 80070fa: 693b ldr r3, [r7, #16] - 80070fc: 1ad3 subs r3, r2, r3 - 80070fe: 2b02 cmp r3, #2 - 8007100: d901 bls.n 8007106 + 8007360: f7fd fefe bl 8005160 + 8007364: 4602 mov r2, r0 + 8007366: 693b ldr r3, [r7, #16] + 8007368: 1ad3 subs r3, r2, r3 + 800736a: 2b02 cmp r3, #2 + 800736c: d901 bls.n 8007372 { return HAL_TIMEOUT; - 8007102: 2303 movs r3, #3 - 8007104: e1f2 b.n 80074ec + 800736e: 2303 movs r3, #3 + 8007370: e1f2 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8007106: 4b0d ldr r3, [pc, #52] ; (800713c ) - 8007108: 6a5b ldr r3, [r3, #36] ; 0x24 - 800710a: f003 0302 and.w r3, r3, #2 - 800710e: 2b00 cmp r3, #0 - 8007110: d0f0 beq.n 80070f4 + 8007372: 4b0d ldr r3, [pc, #52] ; (80073a8 ) + 8007374: 6a5b ldr r3, [r3, #36] ; 0x24 + 8007376: f003 0302 and.w r3, r3, #2 + 800737a: 2b00 cmp r3, #0 + 800737c: d0f0 beq.n 8007360 } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); - 8007112: 2001 movs r0, #1 - 8007114: f000 fbec bl 80078f0 - 8007118: e01c b.n 8007154 + 800737e: 2001 movs r0, #1 + 8007380: f000 fbec bl 8007b5c + 8007384: e01c b.n 80073c0 } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 800711a: 4b0a ldr r3, [pc, #40] ; (8007144 ) - 800711c: 2200 movs r2, #0 - 800711e: 601a str r2, [r3, #0] + 8007386: 4b0a ldr r3, [pc, #40] ; (80073b0 ) + 8007388: 2200 movs r2, #0 + 800738a: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007120: f7fd fee8 bl 8004ef4 - 8007124: 6138 str r0, [r7, #16] + 800738c: f7fd fee8 bl 8005160 + 8007390: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8007126: e00f b.n 8007148 + 8007392: e00f b.n 80073b4 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8007128: f7fd fee4 bl 8004ef4 - 800712c: 4602 mov r2, r0 - 800712e: 693b ldr r3, [r7, #16] - 8007130: 1ad3 subs r3, r2, r3 - 8007132: 2b02 cmp r3, #2 - 8007134: d908 bls.n 8007148 + 8007394: f7fd fee4 bl 8005160 + 8007398: 4602 mov r2, r0 + 800739a: 693b ldr r3, [r7, #16] + 800739c: 1ad3 subs r3, r2, r3 + 800739e: 2b02 cmp r3, #2 + 80073a0: d908 bls.n 80073b4 { return HAL_TIMEOUT; - 8007136: 2303 movs r3, #3 - 8007138: e1d8 b.n 80074ec - 800713a: bf00 nop - 800713c: 40021000 .word 0x40021000 - 8007140: 42420000 .word 0x42420000 - 8007144: 42420480 .word 0x42420480 + 80073a2: 2303 movs r3, #3 + 80073a4: e1d8 b.n 8007758 + 80073a6: bf00 nop + 80073a8: 40021000 .word 0x40021000 + 80073ac: 42420000 .word 0x42420000 + 80073b0: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8007148: 4b9b ldr r3, [pc, #620] ; (80073b8 ) - 800714a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800714c: f003 0302 and.w r3, r3, #2 - 8007150: 2b00 cmp r3, #0 - 8007152: d1e9 bne.n 8007128 + 80073b4: 4b9b ldr r3, [pc, #620] ; (8007624 ) + 80073b6: 6a5b ldr r3, [r3, #36] ; 0x24 + 80073b8: f003 0302 and.w r3, r3, #2 + 80073bc: 2b00 cmp r3, #0 + 80073be: d1e9 bne.n 8007394 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8007154: 687b ldr r3, [r7, #4] - 8007156: 681b ldr r3, [r3, #0] - 8007158: f003 0304 and.w r3, r3, #4 - 800715c: 2b00 cmp r3, #0 - 800715e: f000 80a6 beq.w 80072ae + 80073c0: 687b ldr r3, [r7, #4] + 80073c2: 681b ldr r3, [r3, #0] + 80073c4: f003 0304 and.w r3, r3, #4 + 80073c8: 2b00 cmp r3, #0 + 80073ca: f000 80a6 beq.w 800751a { FlagStatus pwrclkchanged = RESET; - 8007162: 2300 movs r3, #0 - 8007164: 75fb strb r3, [r7, #23] + 80073ce: 2300 movs r3, #0 + 80073d0: 75fb strb r3, [r7, #23] /* 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()) - 8007166: 4b94 ldr r3, [pc, #592] ; (80073b8 ) - 8007168: 69db ldr r3, [r3, #28] - 800716a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800716e: 2b00 cmp r3, #0 - 8007170: d10d bne.n 800718e + 80073d2: 4b94 ldr r3, [pc, #592] ; (8007624 ) + 80073d4: 69db ldr r3, [r3, #28] + 80073d6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80073da: 2b00 cmp r3, #0 + 80073dc: d10d bne.n 80073fa { __HAL_RCC_PWR_CLK_ENABLE(); - 8007172: 4b91 ldr r3, [pc, #580] ; (80073b8 ) - 8007174: 69db ldr r3, [r3, #28] - 8007176: 4a90 ldr r2, [pc, #576] ; (80073b8 ) - 8007178: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 800717c: 61d3 str r3, [r2, #28] - 800717e: 4b8e ldr r3, [pc, #568] ; (80073b8 ) - 8007180: 69db ldr r3, [r3, #28] - 8007182: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007186: 60bb str r3, [r7, #8] - 8007188: 68bb ldr r3, [r7, #8] + 80073de: 4b91 ldr r3, [pc, #580] ; (8007624 ) + 80073e0: 69db ldr r3, [r3, #28] + 80073e2: 4a90 ldr r2, [pc, #576] ; (8007624 ) + 80073e4: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80073e8: 61d3 str r3, [r2, #28] + 80073ea: 4b8e ldr r3, [pc, #568] ; (8007624 ) + 80073ec: 69db ldr r3, [r3, #28] + 80073ee: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80073f2: 60bb str r3, [r7, #8] + 80073f4: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 800718a: 2301 movs r3, #1 - 800718c: 75fb strb r3, [r7, #23] + 80073f6: 2301 movs r3, #1 + 80073f8: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800718e: 4b8b ldr r3, [pc, #556] ; (80073bc ) - 8007190: 681b ldr r3, [r3, #0] - 8007192: f403 7380 and.w r3, r3, #256 ; 0x100 - 8007196: 2b00 cmp r3, #0 - 8007198: d118 bne.n 80071cc + 80073fa: 4b8b ldr r3, [pc, #556] ; (8007628 ) + 80073fc: 681b ldr r3, [r3, #0] + 80073fe: f403 7380 and.w r3, r3, #256 ; 0x100 + 8007402: 2b00 cmp r3, #0 + 8007404: d118 bne.n 8007438 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 800719a: 4b88 ldr r3, [pc, #544] ; (80073bc ) - 800719c: 681b ldr r3, [r3, #0] - 800719e: 4a87 ldr r2, [pc, #540] ; (80073bc ) - 80071a0: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80071a4: 6013 str r3, [r2, #0] + 8007406: 4b88 ldr r3, [pc, #544] ; (8007628 ) + 8007408: 681b ldr r3, [r3, #0] + 800740a: 4a87 ldr r2, [pc, #540] ; (8007628 ) + 800740c: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8007410: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 80071a6: f7fd fea5 bl 8004ef4 - 80071aa: 6138 str r0, [r7, #16] + 8007412: f7fd fea5 bl 8005160 + 8007416: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80071ac: e008 b.n 80071c0 + 8007418: e008 b.n 800742c { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80071ae: f7fd fea1 bl 8004ef4 - 80071b2: 4602 mov r2, r0 - 80071b4: 693b ldr r3, [r7, #16] - 80071b6: 1ad3 subs r3, r2, r3 - 80071b8: 2b64 cmp r3, #100 ; 0x64 - 80071ba: d901 bls.n 80071c0 + 800741a: f7fd fea1 bl 8005160 + 800741e: 4602 mov r2, r0 + 8007420: 693b ldr r3, [r7, #16] + 8007422: 1ad3 subs r3, r2, r3 + 8007424: 2b64 cmp r3, #100 ; 0x64 + 8007426: d901 bls.n 800742c { return HAL_TIMEOUT; - 80071bc: 2303 movs r3, #3 - 80071be: e195 b.n 80074ec + 8007428: 2303 movs r3, #3 + 800742a: e195 b.n 8007758 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80071c0: 4b7e ldr r3, [pc, #504] ; (80073bc ) - 80071c2: 681b ldr r3, [r3, #0] - 80071c4: f403 7380 and.w r3, r3, #256 ; 0x100 - 80071c8: 2b00 cmp r3, #0 - 80071ca: d0f0 beq.n 80071ae + 800742c: 4b7e ldr r3, [pc, #504] ; (8007628 ) + 800742e: 681b ldr r3, [r3, #0] + 8007430: f403 7380 and.w r3, r3, #256 ; 0x100 + 8007434: 2b00 cmp r3, #0 + 8007436: d0f0 beq.n 800741a } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80071cc: 687b ldr r3, [r7, #4] - 80071ce: 691b ldr r3, [r3, #16] - 80071d0: 2b01 cmp r3, #1 - 80071d2: d106 bne.n 80071e2 - 80071d4: 4b78 ldr r3, [pc, #480] ; (80073b8 ) - 80071d6: 6a1b ldr r3, [r3, #32] - 80071d8: 4a77 ldr r2, [pc, #476] ; (80073b8 ) - 80071da: f043 0301 orr.w r3, r3, #1 - 80071de: 6213 str r3, [r2, #32] - 80071e0: e02d b.n 800723e - 80071e2: 687b ldr r3, [r7, #4] - 80071e4: 691b ldr r3, [r3, #16] - 80071e6: 2b00 cmp r3, #0 - 80071e8: d10c bne.n 8007204 - 80071ea: 4b73 ldr r3, [pc, #460] ; (80073b8 ) - 80071ec: 6a1b ldr r3, [r3, #32] - 80071ee: 4a72 ldr r2, [pc, #456] ; (80073b8 ) - 80071f0: f023 0301 bic.w r3, r3, #1 - 80071f4: 6213 str r3, [r2, #32] - 80071f6: 4b70 ldr r3, [pc, #448] ; (80073b8 ) - 80071f8: 6a1b ldr r3, [r3, #32] - 80071fa: 4a6f ldr r2, [pc, #444] ; (80073b8 ) - 80071fc: f023 0304 bic.w r3, r3, #4 - 8007200: 6213 str r3, [r2, #32] - 8007202: e01c b.n 800723e - 8007204: 687b ldr r3, [r7, #4] - 8007206: 691b ldr r3, [r3, #16] - 8007208: 2b05 cmp r3, #5 - 800720a: d10c bne.n 8007226 - 800720c: 4b6a ldr r3, [pc, #424] ; (80073b8 ) - 800720e: 6a1b ldr r3, [r3, #32] - 8007210: 4a69 ldr r2, [pc, #420] ; (80073b8 ) - 8007212: f043 0304 orr.w r3, r3, #4 - 8007216: 6213 str r3, [r2, #32] - 8007218: 4b67 ldr r3, [pc, #412] ; (80073b8 ) - 800721a: 6a1b ldr r3, [r3, #32] - 800721c: 4a66 ldr r2, [pc, #408] ; (80073b8 ) - 800721e: f043 0301 orr.w r3, r3, #1 - 8007222: 6213 str r3, [r2, #32] - 8007224: e00b b.n 800723e - 8007226: 4b64 ldr r3, [pc, #400] ; (80073b8 ) - 8007228: 6a1b ldr r3, [r3, #32] - 800722a: 4a63 ldr r2, [pc, #396] ; (80073b8 ) - 800722c: f023 0301 bic.w r3, r3, #1 - 8007230: 6213 str r3, [r2, #32] - 8007232: 4b61 ldr r3, [pc, #388] ; (80073b8 ) - 8007234: 6a1b ldr r3, [r3, #32] - 8007236: 4a60 ldr r2, [pc, #384] ; (80073b8 ) - 8007238: f023 0304 bic.w r3, r3, #4 - 800723c: 6213 str r3, [r2, #32] + 8007438: 687b ldr r3, [r7, #4] + 800743a: 691b ldr r3, [r3, #16] + 800743c: 2b01 cmp r3, #1 + 800743e: d106 bne.n 800744e + 8007440: 4b78 ldr r3, [pc, #480] ; (8007624 ) + 8007442: 6a1b ldr r3, [r3, #32] + 8007444: 4a77 ldr r2, [pc, #476] ; (8007624 ) + 8007446: f043 0301 orr.w r3, r3, #1 + 800744a: 6213 str r3, [r2, #32] + 800744c: e02d b.n 80074aa + 800744e: 687b ldr r3, [r7, #4] + 8007450: 691b ldr r3, [r3, #16] + 8007452: 2b00 cmp r3, #0 + 8007454: d10c bne.n 8007470 + 8007456: 4b73 ldr r3, [pc, #460] ; (8007624 ) + 8007458: 6a1b ldr r3, [r3, #32] + 800745a: 4a72 ldr r2, [pc, #456] ; (8007624 ) + 800745c: f023 0301 bic.w r3, r3, #1 + 8007460: 6213 str r3, [r2, #32] + 8007462: 4b70 ldr r3, [pc, #448] ; (8007624 ) + 8007464: 6a1b ldr r3, [r3, #32] + 8007466: 4a6f ldr r2, [pc, #444] ; (8007624 ) + 8007468: f023 0304 bic.w r3, r3, #4 + 800746c: 6213 str r3, [r2, #32] + 800746e: e01c b.n 80074aa + 8007470: 687b ldr r3, [r7, #4] + 8007472: 691b ldr r3, [r3, #16] + 8007474: 2b05 cmp r3, #5 + 8007476: d10c bne.n 8007492 + 8007478: 4b6a ldr r3, [pc, #424] ; (8007624 ) + 800747a: 6a1b ldr r3, [r3, #32] + 800747c: 4a69 ldr r2, [pc, #420] ; (8007624 ) + 800747e: f043 0304 orr.w r3, r3, #4 + 8007482: 6213 str r3, [r2, #32] + 8007484: 4b67 ldr r3, [pc, #412] ; (8007624 ) + 8007486: 6a1b ldr r3, [r3, #32] + 8007488: 4a66 ldr r2, [pc, #408] ; (8007624 ) + 800748a: f043 0301 orr.w r3, r3, #1 + 800748e: 6213 str r3, [r2, #32] + 8007490: e00b b.n 80074aa + 8007492: 4b64 ldr r3, [pc, #400] ; (8007624 ) + 8007494: 6a1b ldr r3, [r3, #32] + 8007496: 4a63 ldr r2, [pc, #396] ; (8007624 ) + 8007498: f023 0301 bic.w r3, r3, #1 + 800749c: 6213 str r3, [r2, #32] + 800749e: 4b61 ldr r3, [pc, #388] ; (8007624 ) + 80074a0: 6a1b ldr r3, [r3, #32] + 80074a2: 4a60 ldr r2, [pc, #384] ; (8007624 ) + 80074a4: f023 0304 bic.w r3, r3, #4 + 80074a8: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 800723e: 687b ldr r3, [r7, #4] - 8007240: 691b ldr r3, [r3, #16] - 8007242: 2b00 cmp r3, #0 - 8007244: d015 beq.n 8007272 + 80074aa: 687b ldr r3, [r7, #4] + 80074ac: 691b ldr r3, [r3, #16] + 80074ae: 2b00 cmp r3, #0 + 80074b0: d015 beq.n 80074de { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007246: f7fd fe55 bl 8004ef4 - 800724a: 6138 str r0, [r7, #16] + 80074b2: f7fd fe55 bl 8005160 + 80074b6: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 800724c: e00a b.n 8007264 + 80074b8: e00a b.n 80074d0 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800724e: f7fd fe51 bl 8004ef4 - 8007252: 4602 mov r2, r0 - 8007254: 693b ldr r3, [r7, #16] - 8007256: 1ad3 subs r3, r2, r3 - 8007258: f241 3288 movw r2, #5000 ; 0x1388 - 800725c: 4293 cmp r3, r2 - 800725e: d901 bls.n 8007264 + 80074ba: f7fd fe51 bl 8005160 + 80074be: 4602 mov r2, r0 + 80074c0: 693b ldr r3, [r7, #16] + 80074c2: 1ad3 subs r3, r2, r3 + 80074c4: f241 3288 movw r2, #5000 ; 0x1388 + 80074c8: 4293 cmp r3, r2 + 80074ca: d901 bls.n 80074d0 { return HAL_TIMEOUT; - 8007260: 2303 movs r3, #3 - 8007262: e143 b.n 80074ec + 80074cc: 2303 movs r3, #3 + 80074ce: e143 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8007264: 4b54 ldr r3, [pc, #336] ; (80073b8 ) - 8007266: 6a1b ldr r3, [r3, #32] - 8007268: f003 0302 and.w r3, r3, #2 - 800726c: 2b00 cmp r3, #0 - 800726e: d0ee beq.n 800724e - 8007270: e014 b.n 800729c + 80074d0: 4b54 ldr r3, [pc, #336] ; (8007624 ) + 80074d2: 6a1b ldr r3, [r3, #32] + 80074d4: f003 0302 and.w r3, r3, #2 + 80074d8: 2b00 cmp r3, #0 + 80074da: d0ee beq.n 80074ba + 80074dc: e014 b.n 8007508 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007272: f7fd fe3f bl 8004ef4 - 8007276: 6138 str r0, [r7, #16] + 80074de: f7fd fe3f bl 8005160 + 80074e2: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8007278: e00a b.n 8007290 + 80074e4: e00a b.n 80074fc { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800727a: f7fd fe3b bl 8004ef4 - 800727e: 4602 mov r2, r0 - 8007280: 693b ldr r3, [r7, #16] - 8007282: 1ad3 subs r3, r2, r3 - 8007284: f241 3288 movw r2, #5000 ; 0x1388 - 8007288: 4293 cmp r3, r2 - 800728a: d901 bls.n 8007290 + 80074e6: f7fd fe3b bl 8005160 + 80074ea: 4602 mov r2, r0 + 80074ec: 693b ldr r3, [r7, #16] + 80074ee: 1ad3 subs r3, r2, r3 + 80074f0: f241 3288 movw r2, #5000 ; 0x1388 + 80074f4: 4293 cmp r3, r2 + 80074f6: d901 bls.n 80074fc { return HAL_TIMEOUT; - 800728c: 2303 movs r3, #3 - 800728e: e12d b.n 80074ec + 80074f8: 2303 movs r3, #3 + 80074fa: e12d b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8007290: 4b49 ldr r3, [pc, #292] ; (80073b8 ) - 8007292: 6a1b ldr r3, [r3, #32] - 8007294: f003 0302 and.w r3, r3, #2 - 8007298: 2b00 cmp r3, #0 - 800729a: d1ee bne.n 800727a + 80074fc: 4b49 ldr r3, [pc, #292] ; (8007624 ) + 80074fe: 6a1b ldr r3, [r3, #32] + 8007500: f003 0302 and.w r3, r3, #2 + 8007504: 2b00 cmp r3, #0 + 8007506: d1ee bne.n 80074e6 } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 800729c: 7dfb ldrb r3, [r7, #23] - 800729e: 2b01 cmp r3, #1 - 80072a0: d105 bne.n 80072ae + 8007508: 7dfb ldrb r3, [r7, #23] + 800750a: 2b01 cmp r3, #1 + 800750c: d105 bne.n 800751a { __HAL_RCC_PWR_CLK_DISABLE(); - 80072a2: 4b45 ldr r3, [pc, #276] ; (80073b8 ) - 80072a4: 69db ldr r3, [r3, #28] - 80072a6: 4a44 ldr r2, [pc, #272] ; (80073b8 ) - 80072a8: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 80072ac: 61d3 str r3, [r2, #28] + 800750e: 4b45 ldr r3, [pc, #276] ; (8007624 ) + 8007510: 69db ldr r3, [r3, #28] + 8007512: 4a44 ldr r2, [pc, #272] ; (8007624 ) + 8007514: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8007518: 61d3 str r3, [r2, #28] #if defined(RCC_CR_PLL2ON) /*-------------------------------- PLL2 Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL2(RCC_OscInitStruct->PLL2.PLL2State)); if ((RCC_OscInitStruct->PLL2.PLL2State) != RCC_PLL2_NONE) - 80072ae: 687b ldr r3, [r7, #4] - 80072b0: 6adb ldr r3, [r3, #44] ; 0x2c - 80072b2: 2b00 cmp r3, #0 - 80072b4: f000 808c beq.w 80073d0 + 800751a: 687b ldr r3, [r7, #4] + 800751c: 6adb ldr r3, [r3, #44] ; 0x2c + 800751e: 2b00 cmp r3, #0 + 8007520: f000 808c beq.w 800763c { /* This bit can not be cleared if the PLL2 clock is used indirectly as system clock (i.e. it is used as PLL clock entry that is used as system clock). */ if ((__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE) && \ - 80072b8: 4b3f ldr r3, [pc, #252] ; (80073b8 ) - 80072ba: 685b ldr r3, [r3, #4] - 80072bc: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80072c0: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80072c4: d10e bne.n 80072e4 + 8007524: 4b3f ldr r3, [pc, #252] ; (8007624 ) + 8007526: 685b ldr r3, [r3, #4] + 8007528: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 800752c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8007530: d10e bne.n 8007550 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ - 80072c6: 4b3c ldr r3, [pc, #240] ; (80073b8 ) - 80072c8: 685b ldr r3, [r3, #4] - 80072ca: f003 030c and.w r3, r3, #12 + 8007532: 4b3c ldr r3, [pc, #240] ; (8007624 ) + 8007534: 685b ldr r3, [r3, #4] + 8007536: f003 030c and.w r3, r3, #12 if ((__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE) && \ - 80072ce: 2b08 cmp r3, #8 - 80072d0: d108 bne.n 80072e4 + 800753a: 2b08 cmp r3, #8 + 800753c: d108 bne.n 8007550 ((READ_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) == RCC_CFGR2_PREDIV1SRC_PLL2)) - 80072d2: 4b39 ldr r3, [pc, #228] ; (80073b8 ) - 80072d4: 6adb ldr r3, [r3, #44] ; 0x2c - 80072d6: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 800753e: 4b39 ldr r3, [pc, #228] ; (8007624 ) + 8007540: 6adb ldr r3, [r3, #44] ; 0x2c + 8007542: f403 3380 and.w r3, r3, #65536 ; 0x10000 (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && \ - 80072da: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80072de: d101 bne.n 80072e4 + 8007546: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800754a: d101 bne.n 8007550 { return HAL_ERROR; - 80072e0: 2301 movs r3, #1 - 80072e2: e103 b.n 80074ec + 800754c: 2301 movs r3, #1 + 800754e: e103 b.n 8007758 } else { if ((RCC_OscInitStruct->PLL2.PLL2State) == RCC_PLL2_ON) - 80072e4: 687b ldr r3, [r7, #4] - 80072e6: 6adb ldr r3, [r3, #44] ; 0x2c - 80072e8: 2b02 cmp r3, #2 - 80072ea: d14e bne.n 800738a + 8007550: 687b ldr r3, [r7, #4] + 8007552: 6adb ldr r3, [r3, #44] ; 0x2c + 8007554: 2b02 cmp r3, #2 + 8007556: d14e bne.n 80075f6 assert_param(IS_RCC_PLL2_MUL(RCC_OscInitStruct->PLL2.PLL2MUL)); assert_param(IS_RCC_HSE_PREDIV2(RCC_OscInitStruct->PLL2.HSEPrediv2Value)); /* Prediv2 can be written only when the PLLI2S is disabled. */ /* Return an error only if new value is different from the programmed value */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON) && \ - 80072ec: 4b32 ldr r3, [pc, #200] ; (80073b8 ) - 80072ee: 681b ldr r3, [r3, #0] - 80072f0: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80072f4: 2b00 cmp r3, #0 - 80072f6: d009 beq.n 800730c + 8007558: 4b32 ldr r3, [pc, #200] ; (8007624 ) + 800755a: 681b ldr r3, [r3, #0] + 800755c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007560: 2b00 cmp r3, #0 + 8007562: d009 beq.n 8007578 (__HAL_RCC_HSE_GET_PREDIV2() != RCC_OscInitStruct->PLL2.HSEPrediv2Value)) - 80072f8: 4b2f ldr r3, [pc, #188] ; (80073b8 ) - 80072fa: 6adb ldr r3, [r3, #44] ; 0x2c - 80072fc: f003 02f0 and.w r2, r3, #240 ; 0xf0 - 8007300: 687b ldr r3, [r7, #4] - 8007302: 6b5b ldr r3, [r3, #52] ; 0x34 + 8007564: 4b2f ldr r3, [pc, #188] ; (8007624 ) + 8007566: 6adb ldr r3, [r3, #44] ; 0x2c + 8007568: f003 02f0 and.w r2, r3, #240 ; 0xf0 + 800756c: 687b ldr r3, [r7, #4] + 800756e: 6b5b ldr r3, [r3, #52] ; 0x34 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON) && \ - 8007304: 429a cmp r2, r3 - 8007306: d001 beq.n 800730c + 8007570: 429a cmp r2, r3 + 8007572: d001 beq.n 8007578 { return HAL_ERROR; - 8007308: 2301 movs r3, #1 - 800730a: e0ef b.n 80074ec + 8007574: 2301 movs r3, #1 + 8007576: e0ef b.n 8007758 } /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); - 800730c: 4b2c ldr r3, [pc, #176] ; (80073c0 ) - 800730e: 2200 movs r2, #0 - 8007310: 601a str r2, [r3, #0] + 8007578: 4b2c ldr r3, [pc, #176] ; (800762c ) + 800757a: 2200 movs r2, #0 + 800757c: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007312: f7fd fdef bl 8004ef4 - 8007316: 6138 str r0, [r7, #16] + 800757e: f7fd fdef bl 8005160 + 8007582: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) - 8007318: e008 b.n 800732c + 8007584: e008 b.n 8007598 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - 800731a: f7fd fdeb bl 8004ef4 - 800731e: 4602 mov r2, r0 - 8007320: 693b ldr r3, [r7, #16] - 8007322: 1ad3 subs r3, r2, r3 - 8007324: 2b64 cmp r3, #100 ; 0x64 - 8007326: d901 bls.n 800732c + 8007586: f7fd fdeb bl 8005160 + 800758a: 4602 mov r2, r0 + 800758c: 693b ldr r3, [r7, #16] + 800758e: 1ad3 subs r3, r2, r3 + 8007590: 2b64 cmp r3, #100 ; 0x64 + 8007592: d901 bls.n 8007598 { return HAL_TIMEOUT; - 8007328: 2303 movs r3, #3 - 800732a: e0df b.n 80074ec + 8007594: 2303 movs r3, #3 + 8007596: e0df b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) - 800732c: 4b22 ldr r3, [pc, #136] ; (80073b8 ) - 800732e: 681b ldr r3, [r3, #0] - 8007330: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8007334: 2b00 cmp r3, #0 - 8007336: d1f0 bne.n 800731a + 8007598: 4b22 ldr r3, [pc, #136] ; (8007624 ) + 800759a: 681b ldr r3, [r3, #0] + 800759c: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 80075a0: 2b00 cmp r3, #0 + 80075a2: d1f0 bne.n 8007586 } } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(RCC_OscInitStruct->PLL2.HSEPrediv2Value); - 8007338: 4b1f ldr r3, [pc, #124] ; (80073b8 ) - 800733a: 6adb ldr r3, [r3, #44] ; 0x2c - 800733c: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 8007340: 687b ldr r3, [r7, #4] - 8007342: 6b5b ldr r3, [r3, #52] ; 0x34 - 8007344: 491c ldr r1, [pc, #112] ; (80073b8 ) - 8007346: 4313 orrs r3, r2 - 8007348: 62cb str r3, [r1, #44] ; 0x2c + 80075a4: 4b1f ldr r3, [pc, #124] ; (8007624 ) + 80075a6: 6adb ldr r3, [r3, #44] ; 0x2c + 80075a8: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 80075ac: 687b ldr r3, [r7, #4] + 80075ae: 6b5b ldr r3, [r3, #52] ; 0x34 + 80075b0: 491c ldr r1, [pc, #112] ; (8007624 ) + 80075b2: 4313 orrs r3, r2 + 80075b4: 62cb str r3, [r1, #44] ; 0x2c /* Configure the main PLL2 multiplication factors. */ __HAL_RCC_PLL2_CONFIG(RCC_OscInitStruct->PLL2.PLL2MUL); - 800734a: 4b1b ldr r3, [pc, #108] ; (80073b8 ) - 800734c: 6adb ldr r3, [r3, #44] ; 0x2c - 800734e: f423 6270 bic.w r2, r3, #3840 ; 0xf00 - 8007352: 687b ldr r3, [r7, #4] - 8007354: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007356: 4918 ldr r1, [pc, #96] ; (80073b8 ) - 8007358: 4313 orrs r3, r2 - 800735a: 62cb str r3, [r1, #44] ; 0x2c + 80075b6: 4b1b ldr r3, [pc, #108] ; (8007624 ) + 80075b8: 6adb ldr r3, [r3, #44] ; 0x2c + 80075ba: f423 6270 bic.w r2, r3, #3840 ; 0xf00 + 80075be: 687b ldr r3, [r7, #4] + 80075c0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80075c2: 4918 ldr r1, [pc, #96] ; (8007624 ) + 80075c4: 4313 orrs r3, r2 + 80075c6: 62cb str r3, [r1, #44] ; 0x2c /* Enable the main PLL2. */ __HAL_RCC_PLL2_ENABLE(); - 800735c: 4b18 ldr r3, [pc, #96] ; (80073c0 ) - 800735e: 2201 movs r2, #1 - 8007360: 601a str r2, [r3, #0] + 80075c8: 4b18 ldr r3, [pc, #96] ; (800762c ) + 80075ca: 2201 movs r2, #1 + 80075cc: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007362: f7fd fdc7 bl 8004ef4 - 8007366: 6138 str r0, [r7, #16] + 80075ce: f7fd fdc7 bl 8005160 + 80075d2: 6138 str r0, [r7, #16] /* Wait till PLL2 is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) - 8007368: e008 b.n 800737c + 80075d4: e008 b.n 80075e8 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - 800736a: f7fd fdc3 bl 8004ef4 - 800736e: 4602 mov r2, r0 - 8007370: 693b ldr r3, [r7, #16] - 8007372: 1ad3 subs r3, r2, r3 - 8007374: 2b64 cmp r3, #100 ; 0x64 - 8007376: d901 bls.n 800737c + 80075d6: f7fd fdc3 bl 8005160 + 80075da: 4602 mov r2, r0 + 80075dc: 693b ldr r3, [r7, #16] + 80075de: 1ad3 subs r3, r2, r3 + 80075e0: 2b64 cmp r3, #100 ; 0x64 + 80075e2: d901 bls.n 80075e8 { return HAL_TIMEOUT; - 8007378: 2303 movs r3, #3 - 800737a: e0b7 b.n 80074ec + 80075e4: 2303 movs r3, #3 + 80075e6: e0b7 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == RESET) - 800737c: 4b0e ldr r3, [pc, #56] ; (80073b8 ) - 800737e: 681b ldr r3, [r3, #0] - 8007380: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8007384: 2b00 cmp r3, #0 - 8007386: d0f0 beq.n 800736a - 8007388: e022 b.n 80073d0 + 80075e8: 4b0e ldr r3, [pc, #56] ; (8007624 ) + 80075ea: 681b ldr r3, [r3, #0] + 80075ec: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 80075f0: 2b00 cmp r3, #0 + 80075f2: d0f0 beq.n 80075d6 + 80075f4: e022 b.n 800763c } } else { /* Set PREDIV1 source to HSE */ CLEAR_BIT(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC); - 800738a: 4b0b ldr r3, [pc, #44] ; (80073b8 ) - 800738c: 6adb ldr r3, [r3, #44] ; 0x2c - 800738e: 4a0a ldr r2, [pc, #40] ; (80073b8 ) - 8007390: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8007394: 62d3 str r3, [r2, #44] ; 0x2c + 80075f6: 4b0b ldr r3, [pc, #44] ; (8007624 ) + 80075f8: 6adb ldr r3, [r3, #44] ; 0x2c + 80075fa: 4a0a ldr r2, [pc, #40] ; (8007624 ) + 80075fc: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8007600: 62d3 str r3, [r2, #44] ; 0x2c /* Disable the main PLL2. */ __HAL_RCC_PLL2_DISABLE(); - 8007396: 4b0a ldr r3, [pc, #40] ; (80073c0 ) - 8007398: 2200 movs r2, #0 - 800739a: 601a str r2, [r3, #0] + 8007602: 4b0a ldr r3, [pc, #40] ; (800762c ) + 8007604: 2200 movs r2, #0 + 8007606: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800739c: f7fd fdaa bl 8004ef4 - 80073a0: 6138 str r0, [r7, #16] + 8007608: f7fd fdaa bl 8005160 + 800760c: 6138 str r0, [r7, #16] /* Wait till PLL2 is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) - 80073a2: e00f b.n 80073c4 + 800760e: e00f b.n 8007630 { if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE) - 80073a4: f7fd fda6 bl 8004ef4 - 80073a8: 4602 mov r2, r0 - 80073aa: 693b ldr r3, [r7, #16] - 80073ac: 1ad3 subs r3, r2, r3 - 80073ae: 2b64 cmp r3, #100 ; 0x64 - 80073b0: d908 bls.n 80073c4 + 8007610: f7fd fda6 bl 8005160 + 8007614: 4602 mov r2, r0 + 8007616: 693b ldr r3, [r7, #16] + 8007618: 1ad3 subs r3, r2, r3 + 800761a: 2b64 cmp r3, #100 ; 0x64 + 800761c: d908 bls.n 8007630 { return HAL_TIMEOUT; - 80073b2: 2303 movs r3, #3 - 80073b4: e09a b.n 80074ec - 80073b6: bf00 nop - 80073b8: 40021000 .word 0x40021000 - 80073bc: 40007000 .word 0x40007000 - 80073c0: 42420068 .word 0x42420068 + 800761e: 2303 movs r3, #3 + 8007620: e09a b.n 8007758 + 8007622: bf00 nop + 8007624: 40021000 .word 0x40021000 + 8007628: 40007000 .word 0x40007000 + 800762c: 42420068 .word 0x42420068 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != RESET) - 80073c4: 4b4b ldr r3, [pc, #300] ; (80074f4 ) - 80073c6: 681b ldr r3, [r3, #0] - 80073c8: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 80073cc: 2b00 cmp r3, #0 - 80073ce: d1e9 bne.n 80073a4 + 8007630: 4b4b ldr r3, [pc, #300] ; (8007760 ) + 8007632: 681b ldr r3, [r3, #0] + 8007634: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 8007638: 2b00 cmp r3, #0 + 800763a: d1e9 bne.n 8007610 #endif /* RCC_CR_PLL2ON */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 80073d0: 687b ldr r3, [r7, #4] - 80073d2: 6a1b ldr r3, [r3, #32] - 80073d4: 2b00 cmp r3, #0 - 80073d6: f000 8088 beq.w 80074ea + 800763c: 687b ldr r3, [r7, #4] + 800763e: 6a1b ldr r3, [r3, #32] + 8007640: 2b00 cmp r3, #0 + 8007642: f000 8088 beq.w 8007756 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 80073da: 4b46 ldr r3, [pc, #280] ; (80074f4 ) - 80073dc: 685b ldr r3, [r3, #4] - 80073de: f003 030c and.w r3, r3, #12 - 80073e2: 2b08 cmp r3, #8 - 80073e4: d068 beq.n 80074b8 + 8007646: 4b46 ldr r3, [pc, #280] ; (8007760 ) + 8007648: 685b ldr r3, [r3, #4] + 800764a: f003 030c and.w r3, r3, #12 + 800764e: 2b08 cmp r3, #8 + 8007650: d068 beq.n 8007724 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 80073e6: 687b ldr r3, [r7, #4] - 80073e8: 6a1b ldr r3, [r3, #32] - 80073ea: 2b02 cmp r3, #2 - 80073ec: d14d bne.n 800748a + 8007652: 687b ldr r3, [r7, #4] + 8007654: 6a1b ldr r3, [r3, #32] + 8007656: 2b02 cmp r3, #2 + 8007658: d14d bne.n 80076f6 /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80073ee: 4b42 ldr r3, [pc, #264] ; (80074f8 ) - 80073f0: 2200 movs r2, #0 - 80073f2: 601a str r2, [r3, #0] + 800765a: 4b42 ldr r3, [pc, #264] ; (8007764 ) + 800765c: 2200 movs r2, #0 + 800765e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80073f4: f7fd fd7e bl 8004ef4 - 80073f8: 6138 str r0, [r7, #16] + 8007660: f7fd fd7e bl 8005160 + 8007664: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80073fa: e008 b.n 800740e + 8007666: e008 b.n 800767a { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80073fc: f7fd fd7a bl 8004ef4 - 8007400: 4602 mov r2, r0 - 8007402: 693b ldr r3, [r7, #16] - 8007404: 1ad3 subs r3, r2, r3 - 8007406: 2b02 cmp r3, #2 - 8007408: d901 bls.n 800740e + 8007668: f7fd fd7a bl 8005160 + 800766c: 4602 mov r2, r0 + 800766e: 693b ldr r3, [r7, #16] + 8007670: 1ad3 subs r3, r2, r3 + 8007672: 2b02 cmp r3, #2 + 8007674: d901 bls.n 800767a { return HAL_TIMEOUT; - 800740a: 2303 movs r3, #3 - 800740c: e06e b.n 80074ec + 8007676: 2303 movs r3, #3 + 8007678: e06e b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800740e: 4b39 ldr r3, [pc, #228] ; (80074f4 ) - 8007410: 681b ldr r3, [r3, #0] - 8007412: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8007416: 2b00 cmp r3, #0 - 8007418: d1f0 bne.n 80073fc + 800767a: 4b39 ldr r3, [pc, #228] ; (8007760 ) + 800767c: 681b ldr r3, [r3, #0] + 800767e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8007682: 2b00 cmp r3, #0 + 8007684: d1f0 bne.n 8007668 } } /* Configure the HSE prediv factor --------------------------------*/ /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */ if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE) - 800741a: 687b ldr r3, [r7, #4] - 800741c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800741e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8007422: d10f bne.n 8007444 + 8007686: 687b ldr r3, [r7, #4] + 8007688: 6a5b ldr r3, [r3, #36] ; 0x24 + 800768a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800768e: d10f bne.n 80076b0 assert_param(IS_RCC_HSE_PREDIV(RCC_OscInitStruct->HSEPredivValue)); #if defined(RCC_CFGR2_PREDIV1SRC) assert_param(IS_RCC_PREDIV1_SOURCE(RCC_OscInitStruct->Prediv1Source)); /* Set PREDIV1 source */ SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source); - 8007424: 4b33 ldr r3, [pc, #204] ; (80074f4 ) - 8007426: 6ada ldr r2, [r3, #44] ; 0x2c - 8007428: 687b ldr r3, [r7, #4] - 800742a: 685b ldr r3, [r3, #4] - 800742c: 4931 ldr r1, [pc, #196] ; (80074f4 ) - 800742e: 4313 orrs r3, r2 - 8007430: 62cb str r3, [r1, #44] ; 0x2c + 8007690: 4b33 ldr r3, [pc, #204] ; (8007760 ) + 8007692: 6ada ldr r2, [r3, #44] ; 0x2c + 8007694: 687b ldr r3, [r7, #4] + 8007696: 685b ldr r3, [r3, #4] + 8007698: 4931 ldr r1, [pc, #196] ; (8007760 ) + 800769a: 4313 orrs r3, r2 + 800769c: 62cb str r3, [r1, #44] ; 0x2c #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); - 8007432: 4b30 ldr r3, [pc, #192] ; (80074f4 ) - 8007434: 6adb ldr r3, [r3, #44] ; 0x2c - 8007436: f023 020f bic.w r2, r3, #15 - 800743a: 687b ldr r3, [r7, #4] - 800743c: 68db ldr r3, [r3, #12] - 800743e: 492d ldr r1, [pc, #180] ; (80074f4 ) - 8007440: 4313 orrs r3, r2 - 8007442: 62cb str r3, [r1, #44] ; 0x2c + 800769e: 4b30 ldr r3, [pc, #192] ; (8007760 ) + 80076a0: 6adb ldr r3, [r3, #44] ; 0x2c + 80076a2: f023 020f bic.w r2, r3, #15 + 80076a6: 687b ldr r3, [r7, #4] + 80076a8: 68db ldr r3, [r3, #12] + 80076aa: 492d ldr r1, [pc, #180] ; (8007760 ) + 80076ac: 4313 orrs r3, r2 + 80076ae: 62cb str r3, [r1, #44] ; 0x2c } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8007444: 4b2b ldr r3, [pc, #172] ; (80074f4 ) - 8007446: 685b ldr r3, [r3, #4] - 8007448: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 - 800744c: 687b ldr r3, [r7, #4] - 800744e: 6a59 ldr r1, [r3, #36] ; 0x24 - 8007450: 687b ldr r3, [r7, #4] - 8007452: 6a9b ldr r3, [r3, #40] ; 0x28 - 8007454: 430b orrs r3, r1 - 8007456: 4927 ldr r1, [pc, #156] ; (80074f4 ) - 8007458: 4313 orrs r3, r2 - 800745a: 604b str r3, [r1, #4] + 80076b0: 4b2b ldr r3, [pc, #172] ; (8007760 ) + 80076b2: 685b ldr r3, [r3, #4] + 80076b4: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 + 80076b8: 687b ldr r3, [r7, #4] + 80076ba: 6a59 ldr r1, [r3, #36] ; 0x24 + 80076bc: 687b ldr r3, [r7, #4] + 80076be: 6a9b ldr r3, [r3, #40] ; 0x28 + 80076c0: 430b orrs r3, r1 + 80076c2: 4927 ldr r1, [pc, #156] ; (8007760 ) + 80076c4: 4313 orrs r3, r2 + 80076c6: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 800745c: 4b26 ldr r3, [pc, #152] ; (80074f8 ) - 800745e: 2201 movs r2, #1 - 8007460: 601a str r2, [r3, #0] + 80076c8: 4b26 ldr r3, [pc, #152] ; (8007764 ) + 80076ca: 2201 movs r2, #1 + 80076cc: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007462: f7fd fd47 bl 8004ef4 - 8007466: 6138 str r0, [r7, #16] + 80076ce: f7fd fd47 bl 8005160 + 80076d2: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8007468: e008 b.n 800747c + 80076d4: e008 b.n 80076e8 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800746a: f7fd fd43 bl 8004ef4 - 800746e: 4602 mov r2, r0 - 8007470: 693b ldr r3, [r7, #16] - 8007472: 1ad3 subs r3, r2, r3 - 8007474: 2b02 cmp r3, #2 - 8007476: d901 bls.n 800747c + 80076d6: f7fd fd43 bl 8005160 + 80076da: 4602 mov r2, r0 + 80076dc: 693b ldr r3, [r7, #16] + 80076de: 1ad3 subs r3, r2, r3 + 80076e0: 2b02 cmp r3, #2 + 80076e2: d901 bls.n 80076e8 { return HAL_TIMEOUT; - 8007478: 2303 movs r3, #3 - 800747a: e037 b.n 80074ec + 80076e4: 2303 movs r3, #3 + 80076e6: e037 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800747c: 4b1d ldr r3, [pc, #116] ; (80074f4 ) - 800747e: 681b ldr r3, [r3, #0] - 8007480: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8007484: 2b00 cmp r3, #0 - 8007486: d0f0 beq.n 800746a - 8007488: e02f b.n 80074ea + 80076e8: 4b1d ldr r3, [pc, #116] ; (8007760 ) + 80076ea: 681b ldr r3, [r3, #0] + 80076ec: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80076f0: 2b00 cmp r3, #0 + 80076f2: d0f0 beq.n 80076d6 + 80076f4: e02f b.n 8007756 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 800748a: 4b1b ldr r3, [pc, #108] ; (80074f8 ) - 800748c: 2200 movs r2, #0 - 800748e: 601a str r2, [r3, #0] + 80076f6: 4b1b ldr r3, [pc, #108] ; (8007764 ) + 80076f8: 2200 movs r2, #0 + 80076fa: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8007490: f7fd fd30 bl 8004ef4 - 8007494: 6138 str r0, [r7, #16] + 80076fc: f7fd fd30 bl 8005160 + 8007700: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8007496: e008 b.n 80074aa + 8007702: e008 b.n 8007716 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8007498: f7fd fd2c bl 8004ef4 - 800749c: 4602 mov r2, r0 - 800749e: 693b ldr r3, [r7, #16] - 80074a0: 1ad3 subs r3, r2, r3 - 80074a2: 2b02 cmp r3, #2 - 80074a4: d901 bls.n 80074aa + 8007704: f7fd fd2c bl 8005160 + 8007708: 4602 mov r2, r0 + 800770a: 693b ldr r3, [r7, #16] + 800770c: 1ad3 subs r3, r2, r3 + 800770e: 2b02 cmp r3, #2 + 8007710: d901 bls.n 8007716 { return HAL_TIMEOUT; - 80074a6: 2303 movs r3, #3 - 80074a8: e020 b.n 80074ec + 8007712: 2303 movs r3, #3 + 8007714: e020 b.n 8007758 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80074aa: 4b12 ldr r3, [pc, #72] ; (80074f4 ) - 80074ac: 681b ldr r3, [r3, #0] - 80074ae: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80074b2: 2b00 cmp r3, #0 - 80074b4: d1f0 bne.n 8007498 - 80074b6: e018 b.n 80074ea + 8007716: 4b12 ldr r3, [pc, #72] ; (8007760 ) + 8007718: 681b ldr r3, [r3, #0] + 800771a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800771e: 2b00 cmp r3, #0 + 8007720: d1f0 bne.n 8007704 + 8007722: e018 b.n 8007756 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 80074b8: 687b ldr r3, [r7, #4] - 80074ba: 6a1b ldr r3, [r3, #32] - 80074bc: 2b01 cmp r3, #1 - 80074be: d101 bne.n 80074c4 + 8007724: 687b ldr r3, [r7, #4] + 8007726: 6a1b ldr r3, [r3, #32] + 8007728: 2b01 cmp r3, #1 + 800772a: d101 bne.n 8007730 { return HAL_ERROR; - 80074c0: 2301 movs r3, #1 - 80074c2: e013 b.n 80074ec + 800772c: 2301 movs r3, #1 + 800772e: e013 b.n 8007758 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 80074c4: 4b0b ldr r3, [pc, #44] ; (80074f4 ) - 80074c6: 685b ldr r3, [r3, #4] - 80074c8: 60fb str r3, [r7, #12] + 8007730: 4b0b ldr r3, [pc, #44] ; (8007760 ) + 8007732: 685b ldr r3, [r3, #4] + 8007734: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80074ca: 68fb ldr r3, [r7, #12] - 80074cc: f403 3280 and.w r2, r3, #65536 ; 0x10000 - 80074d0: 687b ldr r3, [r7, #4] - 80074d2: 6a5b ldr r3, [r3, #36] ; 0x24 - 80074d4: 429a cmp r2, r3 - 80074d6: d106 bne.n 80074e6 + 8007736: 68fb ldr r3, [r7, #12] + 8007738: f403 3280 and.w r2, r3, #65536 ; 0x10000 + 800773c: 687b ldr r3, [r7, #4] + 800773e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8007740: 429a cmp r2, r3 + 8007742: d106 bne.n 8007752 (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) - 80074d8: 68fb ldr r3, [r7, #12] - 80074da: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 - 80074de: 687b ldr r3, [r7, #4] - 80074e0: 6a9b ldr r3, [r3, #40] ; 0x28 + 8007744: 68fb ldr r3, [r7, #12] + 8007746: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 + 800774a: 687b ldr r3, [r7, #4] + 800774c: 6a9b ldr r3, [r3, #40] ; 0x28 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80074e2: 429a cmp r2, r3 - 80074e4: d001 beq.n 80074ea + 800774e: 429a cmp r2, r3 + 8007750: d001 beq.n 8007756 { return HAL_ERROR; - 80074e6: 2301 movs r3, #1 - 80074e8: e000 b.n 80074ec + 8007752: 2301 movs r3, #1 + 8007754: e000 b.n 8007758 } } } } return HAL_OK; - 80074ea: 2300 movs r3, #0 + 8007756: 2300 movs r3, #0 } - 80074ec: 4618 mov r0, r3 - 80074ee: 3718 adds r7, #24 - 80074f0: 46bd mov sp, r7 - 80074f2: bd80 pop {r7, pc} - 80074f4: 40021000 .word 0x40021000 - 80074f8: 42420060 .word 0x42420060 + 8007758: 4618 mov r0, r3 + 800775a: 3718 adds r7, #24 + 800775c: 46bd mov sp, r7 + 800775e: bd80 pop {r7, pc} + 8007760: 40021000 .word 0x40021000 + 8007764: 42420060 .word 0x42420060 -080074fc : +08007768 : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 80074fc: b580 push {r7, lr} - 80074fe: b084 sub sp, #16 - 8007500: af00 add r7, sp, #0 - 8007502: 6078 str r0, [r7, #4] - 8007504: 6039 str r1, [r7, #0] + 8007768: b580 push {r7, lr} + 800776a: b084 sub sp, #16 + 800776c: af00 add r7, sp, #0 + 800776e: 6078 str r0, [r7, #4] + 8007770: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 8007506: 687b ldr r3, [r7, #4] - 8007508: 2b00 cmp r3, #0 - 800750a: d101 bne.n 8007510 + 8007772: 687b ldr r3, [r7, #4] + 8007774: 2b00 cmp r3, #0 + 8007776: d101 bne.n 800777c { return HAL_ERROR; - 800750c: 2301 movs r3, #1 - 800750e: e0d0 b.n 80076b2 + 8007778: 2301 movs r3, #1 + 800777a: e0d0 b.n 800791e must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ #if defined(FLASH_ACR_LATENCY) /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 8007510: 4b6a ldr r3, [pc, #424] ; (80076bc ) - 8007512: 681b ldr r3, [r3, #0] - 8007514: f003 0307 and.w r3, r3, #7 - 8007518: 683a ldr r2, [r7, #0] - 800751a: 429a cmp r2, r3 - 800751c: d910 bls.n 8007540 + 800777c: 4b6a ldr r3, [pc, #424] ; (8007928 ) + 800777e: 681b ldr r3, [r3, #0] + 8007780: f003 0307 and.w r3, r3, #7 + 8007784: 683a ldr r2, [r7, #0] + 8007786: 429a cmp r2, r3 + 8007788: d910 bls.n 80077ac { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800751e: 4b67 ldr r3, [pc, #412] ; (80076bc ) - 8007520: 681b ldr r3, [r3, #0] - 8007522: f023 0207 bic.w r2, r3, #7 - 8007526: 4965 ldr r1, [pc, #404] ; (80076bc ) - 8007528: 683b ldr r3, [r7, #0] - 800752a: 4313 orrs r3, r2 - 800752c: 600b str r3, [r1, #0] + 800778a: 4b67 ldr r3, [pc, #412] ; (8007928 ) + 800778c: 681b ldr r3, [r3, #0] + 800778e: f023 0207 bic.w r2, r3, #7 + 8007792: 4965 ldr r1, [pc, #404] ; (8007928 ) + 8007794: 683b ldr r3, [r7, #0] + 8007796: 4313 orrs r3, r2 + 8007798: 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) - 800752e: 4b63 ldr r3, [pc, #396] ; (80076bc ) - 8007530: 681b ldr r3, [r3, #0] - 8007532: f003 0307 and.w r3, r3, #7 - 8007536: 683a ldr r2, [r7, #0] - 8007538: 429a cmp r2, r3 - 800753a: d001 beq.n 8007540 + 800779a: 4b63 ldr r3, [pc, #396] ; (8007928 ) + 800779c: 681b ldr r3, [r3, #0] + 800779e: f003 0307 and.w r3, r3, #7 + 80077a2: 683a ldr r2, [r7, #0] + 80077a4: 429a cmp r2, r3 + 80077a6: d001 beq.n 80077ac { return HAL_ERROR; - 800753c: 2301 movs r3, #1 - 800753e: e0b8 b.n 80076b2 + 80077a8: 2301 movs r3, #1 + 80077aa: e0b8 b.n 800791e } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8007540: 687b ldr r3, [r7, #4] - 8007542: 681b ldr r3, [r3, #0] - 8007544: f003 0302 and.w r3, r3, #2 - 8007548: 2b00 cmp r3, #0 - 800754a: d020 beq.n 800758e + 80077ac: 687b ldr r3, [r7, #4] + 80077ae: 681b ldr r3, [r3, #0] + 80077b0: f003 0302 and.w r3, r3, #2 + 80077b4: 2b00 cmp r3, #0 + 80077b6: d020 beq.n 80077fa { /* 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) - 800754c: 687b ldr r3, [r7, #4] - 800754e: 681b ldr r3, [r3, #0] - 8007550: f003 0304 and.w r3, r3, #4 - 8007554: 2b00 cmp r3, #0 - 8007556: d005 beq.n 8007564 + 80077b8: 687b ldr r3, [r7, #4] + 80077ba: 681b ldr r3, [r3, #0] + 80077bc: f003 0304 and.w r3, r3, #4 + 80077c0: 2b00 cmp r3, #0 + 80077c2: d005 beq.n 80077d0 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8007558: 4b59 ldr r3, [pc, #356] ; (80076c0 ) - 800755a: 685b ldr r3, [r3, #4] - 800755c: 4a58 ldr r2, [pc, #352] ; (80076c0 ) - 800755e: f443 63e0 orr.w r3, r3, #1792 ; 0x700 - 8007562: 6053 str r3, [r2, #4] + 80077c4: 4b59 ldr r3, [pc, #356] ; (800792c ) + 80077c6: 685b ldr r3, [r3, #4] + 80077c8: 4a58 ldr r2, [pc, #352] ; (800792c ) + 80077ca: f443 63e0 orr.w r3, r3, #1792 ; 0x700 + 80077ce: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8007564: 687b ldr r3, [r7, #4] - 8007566: 681b ldr r3, [r3, #0] - 8007568: f003 0308 and.w r3, r3, #8 - 800756c: 2b00 cmp r3, #0 - 800756e: d005 beq.n 800757c + 80077d0: 687b ldr r3, [r7, #4] + 80077d2: 681b ldr r3, [r3, #0] + 80077d4: f003 0308 and.w r3, r3, #8 + 80077d8: 2b00 cmp r3, #0 + 80077da: d005 beq.n 80077e8 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 8007570: 4b53 ldr r3, [pc, #332] ; (80076c0 ) - 8007572: 685b ldr r3, [r3, #4] - 8007574: 4a52 ldr r2, [pc, #328] ; (80076c0 ) - 8007576: f443 5360 orr.w r3, r3, #14336 ; 0x3800 - 800757a: 6053 str r3, [r2, #4] + 80077dc: 4b53 ldr r3, [pc, #332] ; (800792c ) + 80077de: 685b ldr r3, [r3, #4] + 80077e0: 4a52 ldr r2, [pc, #328] ; (800792c ) + 80077e2: f443 5360 orr.w r3, r3, #14336 ; 0x3800 + 80077e6: 6053 str r3, [r2, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 800757c: 4b50 ldr r3, [pc, #320] ; (80076c0 ) - 800757e: 685b ldr r3, [r3, #4] - 8007580: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 8007584: 687b ldr r3, [r7, #4] - 8007586: 689b ldr r3, [r3, #8] - 8007588: 494d ldr r1, [pc, #308] ; (80076c0 ) - 800758a: 4313 orrs r3, r2 - 800758c: 604b str r3, [r1, #4] + 80077e8: 4b50 ldr r3, [pc, #320] ; (800792c ) + 80077ea: 685b ldr r3, [r3, #4] + 80077ec: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 80077f0: 687b ldr r3, [r7, #4] + 80077f2: 689b ldr r3, [r3, #8] + 80077f4: 494d ldr r1, [pc, #308] ; (800792c ) + 80077f6: 4313 orrs r3, r2 + 80077f8: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 800758e: 687b ldr r3, [r7, #4] - 8007590: 681b ldr r3, [r3, #0] - 8007592: f003 0301 and.w r3, r3, #1 - 8007596: 2b00 cmp r3, #0 - 8007598: d040 beq.n 800761c + 80077fa: 687b ldr r3, [r7, #4] + 80077fc: 681b ldr r3, [r3, #0] + 80077fe: f003 0301 and.w r3, r3, #1 + 8007802: 2b00 cmp r3, #0 + 8007804: d040 beq.n 8007888 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 800759a: 687b ldr r3, [r7, #4] - 800759c: 685b ldr r3, [r3, #4] - 800759e: 2b01 cmp r3, #1 - 80075a0: d107 bne.n 80075b2 + 8007806: 687b ldr r3, [r7, #4] + 8007808: 685b ldr r3, [r3, #4] + 800780a: 2b01 cmp r3, #1 + 800780c: d107 bne.n 800781e { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80075a2: 4b47 ldr r3, [pc, #284] ; (80076c0 ) - 80075a4: 681b ldr r3, [r3, #0] - 80075a6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80075aa: 2b00 cmp r3, #0 - 80075ac: d115 bne.n 80075da + 800780e: 4b47 ldr r3, [pc, #284] ; (800792c ) + 8007810: 681b ldr r3, [r3, #0] + 8007812: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8007816: 2b00 cmp r3, #0 + 8007818: d115 bne.n 8007846 { return HAL_ERROR; - 80075ae: 2301 movs r3, #1 - 80075b0: e07f b.n 80076b2 + 800781a: 2301 movs r3, #1 + 800781c: e07f b.n 800791e } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 80075b2: 687b ldr r3, [r7, #4] - 80075b4: 685b ldr r3, [r3, #4] - 80075b6: 2b02 cmp r3, #2 - 80075b8: d107 bne.n 80075ca + 800781e: 687b ldr r3, [r7, #4] + 8007820: 685b ldr r3, [r3, #4] + 8007822: 2b02 cmp r3, #2 + 8007824: d107 bne.n 8007836 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80075ba: 4b41 ldr r3, [pc, #260] ; (80076c0 ) - 80075bc: 681b ldr r3, [r3, #0] - 80075be: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80075c2: 2b00 cmp r3, #0 - 80075c4: d109 bne.n 80075da + 8007826: 4b41 ldr r3, [pc, #260] ; (800792c ) + 8007828: 681b ldr r3, [r3, #0] + 800782a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800782e: 2b00 cmp r3, #0 + 8007830: d109 bne.n 8007846 { return HAL_ERROR; - 80075c6: 2301 movs r3, #1 - 80075c8: e073 b.n 80076b2 + 8007832: 2301 movs r3, #1 + 8007834: e073 b.n 800791e } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 80075ca: 4b3d ldr r3, [pc, #244] ; (80076c0 ) - 80075cc: 681b ldr r3, [r3, #0] - 80075ce: f003 0302 and.w r3, r3, #2 - 80075d2: 2b00 cmp r3, #0 - 80075d4: d101 bne.n 80075da + 8007836: 4b3d ldr r3, [pc, #244] ; (800792c ) + 8007838: 681b ldr r3, [r3, #0] + 800783a: f003 0302 and.w r3, r3, #2 + 800783e: 2b00 cmp r3, #0 + 8007840: d101 bne.n 8007846 { return HAL_ERROR; - 80075d6: 2301 movs r3, #1 - 80075d8: e06b b.n 80076b2 + 8007842: 2301 movs r3, #1 + 8007844: e06b b.n 800791e } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 80075da: 4b39 ldr r3, [pc, #228] ; (80076c0 ) - 80075dc: 685b ldr r3, [r3, #4] - 80075de: f023 0203 bic.w r2, r3, #3 - 80075e2: 687b ldr r3, [r7, #4] - 80075e4: 685b ldr r3, [r3, #4] - 80075e6: 4936 ldr r1, [pc, #216] ; (80076c0 ) - 80075e8: 4313 orrs r3, r2 - 80075ea: 604b str r3, [r1, #4] + 8007846: 4b39 ldr r3, [pc, #228] ; (800792c ) + 8007848: 685b ldr r3, [r3, #4] + 800784a: f023 0203 bic.w r2, r3, #3 + 800784e: 687b ldr r3, [r7, #4] + 8007850: 685b ldr r3, [r3, #4] + 8007852: 4936 ldr r1, [pc, #216] ; (800792c ) + 8007854: 4313 orrs r3, r2 + 8007856: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80075ec: f7fd fc82 bl 8004ef4 - 80075f0: 60f8 str r0, [r7, #12] + 8007858: f7fd fc82 bl 8005160 + 800785c: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80075f2: e00a b.n 800760a + 800785e: e00a b.n 8007876 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 80075f4: f7fd fc7e bl 8004ef4 - 80075f8: 4602 mov r2, r0 - 80075fa: 68fb ldr r3, [r7, #12] - 80075fc: 1ad3 subs r3, r2, r3 - 80075fe: f241 3288 movw r2, #5000 ; 0x1388 - 8007602: 4293 cmp r3, r2 - 8007604: d901 bls.n 800760a + 8007860: f7fd fc7e bl 8005160 + 8007864: 4602 mov r2, r0 + 8007866: 68fb ldr r3, [r7, #12] + 8007868: 1ad3 subs r3, r2, r3 + 800786a: f241 3288 movw r2, #5000 ; 0x1388 + 800786e: 4293 cmp r3, r2 + 8007870: d901 bls.n 8007876 { return HAL_TIMEOUT; - 8007606: 2303 movs r3, #3 - 8007608: e053 b.n 80076b2 + 8007872: 2303 movs r3, #3 + 8007874: e053 b.n 800791e while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800760a: 4b2d ldr r3, [pc, #180] ; (80076c0 ) - 800760c: 685b ldr r3, [r3, #4] - 800760e: f003 020c and.w r2, r3, #12 - 8007612: 687b ldr r3, [r7, #4] - 8007614: 685b ldr r3, [r3, #4] - 8007616: 009b lsls r3, r3, #2 - 8007618: 429a cmp r2, r3 - 800761a: d1eb bne.n 80075f4 + 8007876: 4b2d ldr r3, [pc, #180] ; (800792c ) + 8007878: 685b ldr r3, [r3, #4] + 800787a: f003 020c and.w r2, r3, #12 + 800787e: 687b ldr r3, [r7, #4] + 8007880: 685b ldr r3, [r3, #4] + 8007882: 009b lsls r3, r3, #2 + 8007884: 429a cmp r2, r3 + 8007886: d1eb bne.n 8007860 } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 800761c: 4b27 ldr r3, [pc, #156] ; (80076bc ) - 800761e: 681b ldr r3, [r3, #0] - 8007620: f003 0307 and.w r3, r3, #7 - 8007624: 683a ldr r2, [r7, #0] - 8007626: 429a cmp r2, r3 - 8007628: d210 bcs.n 800764c + 8007888: 4b27 ldr r3, [pc, #156] ; (8007928 ) + 800788a: 681b ldr r3, [r3, #0] + 800788c: f003 0307 and.w r3, r3, #7 + 8007890: 683a ldr r2, [r7, #0] + 8007892: 429a cmp r2, r3 + 8007894: d210 bcs.n 80078b8 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800762a: 4b24 ldr r3, [pc, #144] ; (80076bc ) - 800762c: 681b ldr r3, [r3, #0] - 800762e: f023 0207 bic.w r2, r3, #7 - 8007632: 4922 ldr r1, [pc, #136] ; (80076bc ) - 8007634: 683b ldr r3, [r7, #0] - 8007636: 4313 orrs r3, r2 - 8007638: 600b str r3, [r1, #0] + 8007896: 4b24 ldr r3, [pc, #144] ; (8007928 ) + 8007898: 681b ldr r3, [r3, #0] + 800789a: f023 0207 bic.w r2, r3, #7 + 800789e: 4922 ldr r1, [pc, #136] ; (8007928 ) + 80078a0: 683b ldr r3, [r7, #0] + 80078a2: 4313 orrs r3, r2 + 80078a4: 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) - 800763a: 4b20 ldr r3, [pc, #128] ; (80076bc ) - 800763c: 681b ldr r3, [r3, #0] - 800763e: f003 0307 and.w r3, r3, #7 - 8007642: 683a ldr r2, [r7, #0] - 8007644: 429a cmp r2, r3 - 8007646: d001 beq.n 800764c + 80078a6: 4b20 ldr r3, [pc, #128] ; (8007928 ) + 80078a8: 681b ldr r3, [r3, #0] + 80078aa: f003 0307 and.w r3, r3, #7 + 80078ae: 683a ldr r2, [r7, #0] + 80078b0: 429a cmp r2, r3 + 80078b2: d001 beq.n 80078b8 { return HAL_ERROR; - 8007648: 2301 movs r3, #1 - 800764a: e032 b.n 80076b2 + 80078b4: 2301 movs r3, #1 + 80078b6: e032 b.n 800791e } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 800764c: 687b ldr r3, [r7, #4] - 800764e: 681b ldr r3, [r3, #0] - 8007650: f003 0304 and.w r3, r3, #4 - 8007654: 2b00 cmp r3, #0 - 8007656: d008 beq.n 800766a + 80078b8: 687b ldr r3, [r7, #4] + 80078ba: 681b ldr r3, [r3, #0] + 80078bc: f003 0304 and.w r3, r3, #4 + 80078c0: 2b00 cmp r3, #0 + 80078c2: d008 beq.n 80078d6 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8007658: 4b19 ldr r3, [pc, #100] ; (80076c0 ) - 800765a: 685b ldr r3, [r3, #4] - 800765c: f423 62e0 bic.w r2, r3, #1792 ; 0x700 - 8007660: 687b ldr r3, [r7, #4] - 8007662: 68db ldr r3, [r3, #12] - 8007664: 4916 ldr r1, [pc, #88] ; (80076c0 ) - 8007666: 4313 orrs r3, r2 - 8007668: 604b str r3, [r1, #4] + 80078c4: 4b19 ldr r3, [pc, #100] ; (800792c ) + 80078c6: 685b ldr r3, [r3, #4] + 80078c8: f423 62e0 bic.w r2, r3, #1792 ; 0x700 + 80078cc: 687b ldr r3, [r7, #4] + 80078ce: 68db ldr r3, [r3, #12] + 80078d0: 4916 ldr r1, [pc, #88] ; (800792c ) + 80078d2: 4313 orrs r3, r2 + 80078d4: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 800766a: 687b ldr r3, [r7, #4] - 800766c: 681b ldr r3, [r3, #0] - 800766e: f003 0308 and.w r3, r3, #8 - 8007672: 2b00 cmp r3, #0 - 8007674: d009 beq.n 800768a + 80078d6: 687b ldr r3, [r7, #4] + 80078d8: 681b ldr r3, [r3, #0] + 80078da: f003 0308 and.w r3, r3, #8 + 80078de: 2b00 cmp r3, #0 + 80078e0: d009 beq.n 80078f6 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); - 8007676: 4b12 ldr r3, [pc, #72] ; (80076c0 ) - 8007678: 685b ldr r3, [r3, #4] - 800767a: f423 5260 bic.w r2, r3, #14336 ; 0x3800 - 800767e: 687b ldr r3, [r7, #4] - 8007680: 691b ldr r3, [r3, #16] - 8007682: 00db lsls r3, r3, #3 - 8007684: 490e ldr r1, [pc, #56] ; (80076c0 ) - 8007686: 4313 orrs r3, r2 - 8007688: 604b str r3, [r1, #4] + 80078e2: 4b12 ldr r3, [pc, #72] ; (800792c ) + 80078e4: 685b ldr r3, [r3, #4] + 80078e6: f423 5260 bic.w r2, r3, #14336 ; 0x3800 + 80078ea: 687b ldr r3, [r7, #4] + 80078ec: 691b ldr r3, [r3, #16] + 80078ee: 00db lsls r3, r3, #3 + 80078f0: 490e ldr r1, [pc, #56] ; (800792c ) + 80078f2: 4313 orrs r3, r2 + 80078f4: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 800768a: f000 f821 bl 80076d0 - 800768e: 4602 mov r2, r0 - 8007690: 4b0b ldr r3, [pc, #44] ; (80076c0 ) - 8007692: 685b ldr r3, [r3, #4] - 8007694: 091b lsrs r3, r3, #4 - 8007696: f003 030f and.w r3, r3, #15 - 800769a: 490a ldr r1, [pc, #40] ; (80076c4 ) - 800769c: 5ccb ldrb r3, [r1, r3] - 800769e: fa22 f303 lsr.w r3, r2, r3 - 80076a2: 4a09 ldr r2, [pc, #36] ; (80076c8 ) - 80076a4: 6013 str r3, [r2, #0] + 80078f6: f000 f821 bl 800793c + 80078fa: 4602 mov r2, r0 + 80078fc: 4b0b ldr r3, [pc, #44] ; (800792c ) + 80078fe: 685b ldr r3, [r3, #4] + 8007900: 091b lsrs r3, r3, #4 + 8007902: f003 030f and.w r3, r3, #15 + 8007906: 490a ldr r1, [pc, #40] ; (8007930 ) + 8007908: 5ccb ldrb r3, [r1, r3] + 800790a: fa22 f303 lsr.w r3, r2, r3 + 800790e: 4a09 ldr r2, [pc, #36] ; (8007934 ) + 8007910: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); - 80076a6: 4b09 ldr r3, [pc, #36] ; (80076cc ) - 80076a8: 681b ldr r3, [r3, #0] - 80076aa: 4618 mov r0, r3 - 80076ac: f7fd fbe0 bl 8004e70 + 8007912: 4b09 ldr r3, [pc, #36] ; (8007938 ) + 8007914: 681b ldr r3, [r3, #0] + 8007916: 4618 mov r0, r3 + 8007918: f7fd fbe0 bl 80050dc return HAL_OK; - 80076b0: 2300 movs r3, #0 + 800791c: 2300 movs r3, #0 } - 80076b2: 4618 mov r0, r3 - 80076b4: 3710 adds r7, #16 - 80076b6: 46bd mov sp, r7 - 80076b8: bd80 pop {r7, pc} - 80076ba: bf00 nop - 80076bc: 40022000 .word 0x40022000 - 80076c0: 40021000 .word 0x40021000 - 80076c4: 0800cfd4 .word 0x0800cfd4 - 80076c8: 20000008 .word 0x20000008 - 80076cc: 2000000c .word 0x2000000c + 800791e: 4618 mov r0, r3 + 8007920: 3710 adds r7, #16 + 8007922: 46bd mov sp, r7 + 8007924: bd80 pop {r7, pc} + 8007926: bf00 nop + 8007928: 40022000 .word 0x40022000 + 800792c: 40021000 .word 0x40021000 + 8007930: 0800d264 .word 0x0800d264 + 8007934: 20000008 .word 0x20000008 + 8007938: 2000000c .word 0x2000000c -080076d0 : +0800793c : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 80076d0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 80076d4: b099 sub sp, #100 ; 0x64 - 80076d6: af00 add r7, sp, #0 + 800793c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007940: b099 sub sp, #100 ; 0x64 + 8007942: af00 add r7, sp, #0 #if defined(RCC_CFGR2_PREDIV1SRC) const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13}; - 80076d8: 4b66 ldr r3, [pc, #408] ; (8007874 ) - 80076da: f107 0434 add.w r4, r7, #52 ; 0x34 - 80076de: cb0f ldmia r3, {r0, r1, r2, r3} - 80076e0: c407 stmia r4!, {r0, r1, r2} - 80076e2: 8023 strh r3, [r4, #0] + 8007944: 4b66 ldr r3, [pc, #408] ; (8007ae0 ) + 8007946: f107 0434 add.w r4, r7, #52 ; 0x34 + 800794a: cb0f ldmia r3, {r0, r1, r2, r3} + 800794c: c407 stmia r4!, {r0, r1, r2} + 800794e: 8023 strh r3, [r4, #0] const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; - 80076e4: 4b64 ldr r3, [pc, #400] ; (8007878 ) - 80076e6: f107 0424 add.w r4, r7, #36 ; 0x24 - 80076ea: cb0f ldmia r3, {r0, r1, r2, r3} - 80076ec: e884 000f stmia.w r4, {r0, r1, r2, r3} + 8007950: 4b64 ldr r3, [pc, #400] ; (8007ae4 ) + 8007952: f107 0424 add.w r4, r7, #36 ; 0x24 + 8007956: cb0f ldmia r3, {r0, r1, r2, r3} + 8007958: e884 000f stmia.w r4, {r0, r1, r2, r3} #else const uint8_t aPredivFactorTable[2] = {1, 2}; #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 80076f0: 2300 movs r3, #0 - 80076f2: 657b str r3, [r7, #84] ; 0x54 - 80076f4: 2300 movs r3, #0 - 80076f6: 653b str r3, [r7, #80] ; 0x50 - 80076f8: 2300 movs r3, #0 - 80076fa: 65fb str r3, [r7, #92] ; 0x5c - 80076fc: 2300 movs r3, #0 - 80076fe: 64fb str r3, [r7, #76] ; 0x4c + 800795c: 2300 movs r3, #0 + 800795e: 657b str r3, [r7, #84] ; 0x54 + 8007960: 2300 movs r3, #0 + 8007962: 653b str r3, [r7, #80] ; 0x50 + 8007964: 2300 movs r3, #0 + 8007966: 65fb str r3, [r7, #92] ; 0x5c + 8007968: 2300 movs r3, #0 + 800796a: 64fb str r3, [r7, #76] ; 0x4c uint32_t sysclockfreq = 0U; - 8007700: 2300 movs r3, #0 - 8007702: 65bb str r3, [r7, #88] ; 0x58 + 800796c: 2300 movs r3, #0 + 800796e: 65bb str r3, [r7, #88] ; 0x58 #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; - 8007704: 2300 movs r3, #0 - 8007706: 64bb str r3, [r7, #72] ; 0x48 - 8007708: 2300 movs r3, #0 - 800770a: 647b str r3, [r7, #68] ; 0x44 + 8007970: 2300 movs r3, #0 + 8007972: 64bb str r3, [r7, #72] ; 0x48 + 8007974: 2300 movs r3, #0 + 8007976: 647b str r3, [r7, #68] ; 0x44 #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; - 800770c: 4b5b ldr r3, [pc, #364] ; (800787c ) - 800770e: 685b ldr r3, [r3, #4] - 8007710: 657b str r3, [r7, #84] ; 0x54 + 8007978: 4b5b ldr r3, [pc, #364] ; (8007ae8 ) + 800797a: 685b ldr r3, [r3, #4] + 800797c: 657b str r3, [r7, #84] ; 0x54 /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 8007712: 6d7b ldr r3, [r7, #84] ; 0x54 - 8007714: f003 030c and.w r3, r3, #12 - 8007718: 2b04 cmp r3, #4 - 800771a: d002 beq.n 8007722 - 800771c: 2b08 cmp r3, #8 - 800771e: d003 beq.n 8007728 - 8007720: e09f b.n 8007862 + 800797e: 6d7b ldr r3, [r7, #84] ; 0x54 + 8007980: f003 030c and.w r3, r3, #12 + 8007984: 2b04 cmp r3, #4 + 8007986: d002 beq.n 800798e + 8007988: 2b08 cmp r3, #8 + 800798a: d003 beq.n 8007994 + 800798c: e09f b.n 8007ace { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 8007722: 4b57 ldr r3, [pc, #348] ; (8007880 ) - 8007724: 65bb str r3, [r7, #88] ; 0x58 + 800798e: 4b57 ldr r3, [pc, #348] ; (8007aec ) + 8007990: 65bb str r3, [r7, #88] ; 0x58 break; - 8007726: e09f b.n 8007868 + 8007992: e09f b.n 8007ad4 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; - 8007728: 6d7b ldr r3, [r7, #84] ; 0x54 - 800772a: 0c9b lsrs r3, r3, #18 - 800772c: f003 030f and.w r3, r3, #15 - 8007730: 3340 adds r3, #64 ; 0x40 - 8007732: f107 0220 add.w r2, r7, #32 - 8007736: 4413 add r3, r2 - 8007738: f813 3c2c ldrb.w r3, [r3, #-44] - 800773c: 64fb str r3, [r7, #76] ; 0x4c + 8007994: 6d7b ldr r3, [r7, #84] ; 0x54 + 8007996: 0c9b lsrs r3, r3, #18 + 8007998: f003 030f and.w r3, r3, #15 + 800799c: 3340 adds r3, #64 ; 0x40 + 800799e: f107 0220 add.w r2, r7, #32 + 80079a2: 4413 add r3, r2 + 80079a4: f813 3c2c ldrb.w r3, [r3, #-44] + 80079a8: 64fb str r3, [r7, #76] ; 0x4c if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) - 800773e: 6d7b ldr r3, [r7, #84] ; 0x54 - 8007740: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8007744: 2b00 cmp r3, #0 - 8007746: f000 8084 beq.w 8007852 + 80079aa: 6d7b ldr r3, [r7, #84] ; 0x54 + 80079ac: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 80079b0: 2b00 cmp r3, #0 + 80079b2: f000 8084 beq.w 8007abe { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; - 800774a: 4b4c ldr r3, [pc, #304] ; (800787c ) - 800774c: 6adb ldr r3, [r3, #44] ; 0x2c - 800774e: f003 030f and.w r3, r3, #15 - 8007752: 3340 adds r3, #64 ; 0x40 - 8007754: f107 0220 add.w r2, r7, #32 - 8007758: 4413 add r3, r2 - 800775a: f813 3c3c ldrb.w r3, [r3, #-60] - 800775e: 653b str r3, [r7, #80] ; 0x50 + 80079b6: 4b4c ldr r3, [pc, #304] ; (8007ae8 ) + 80079b8: 6adb ldr r3, [r3, #44] ; 0x2c + 80079ba: f003 030f and.w r3, r3, #15 + 80079be: 3340 adds r3, #64 ; 0x40 + 80079c0: f107 0220 add.w r2, r7, #32 + 80079c4: 4413 add r3, r2 + 80079c6: f813 3c3c ldrb.w r3, [r3, #-60] + 80079ca: 653b str r3, [r7, #80] ; 0x50 #else prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; #endif /*RCC_CFGR2_PREDIV1*/ #if defined(RCC_CFGR2_PREDIV1SRC) if (HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) - 8007760: 4b46 ldr r3, [pc, #280] ; (800787c ) - 8007762: 6adb ldr r3, [r3, #44] ; 0x2c - 8007764: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8007768: 2b00 cmp r3, #0 - 800776a: d060 beq.n 800782e + 80079cc: 4b46 ldr r3, [pc, #280] ; (8007ae8 ) + 80079ce: 6adb ldr r3, [r3, #44] ; 0x2c + 80079d0: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 80079d4: 2b00 cmp r3, #0 + 80079d6: d060 beq.n 8007a9a { /* PLL2 selected as Prediv1 source */ /* PLLCLK = PLL2CLK / PREDIV1 * PLLMUL with PLL2CLK = HSE/PREDIV2 * PLL2MUL */ prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; - 800776c: 4b43 ldr r3, [pc, #268] ; (800787c ) - 800776e: 6adb ldr r3, [r3, #44] ; 0x2c - 8007770: 091b lsrs r3, r3, #4 - 8007772: f003 030f and.w r3, r3, #15 - 8007776: 3301 adds r3, #1 - 8007778: 64bb str r3, [r7, #72] ; 0x48 + 80079d8: 4b43 ldr r3, [pc, #268] ; (8007ae8 ) + 80079da: 6adb ldr r3, [r3, #44] ; 0x2c + 80079dc: 091b lsrs r3, r3, #4 + 80079de: f003 030f and.w r3, r3, #15 + 80079e2: 3301 adds r3, #1 + 80079e4: 64bb str r3, [r7, #72] ; 0x48 pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; - 800777a: 4b40 ldr r3, [pc, #256] ; (800787c ) - 800777c: 6adb ldr r3, [r3, #44] ; 0x2c - 800777e: 0a1b lsrs r3, r3, #8 - 8007780: f003 030f and.w r3, r3, #15 - 8007784: 3302 adds r3, #2 - 8007786: 647b str r3, [r7, #68] ; 0x44 + 80079e6: 4b40 ldr r3, [pc, #256] ; (8007ae8 ) + 80079e8: 6adb ldr r3, [r3, #44] ; 0x2c + 80079ea: 0a1b lsrs r3, r3, #8 + 80079ec: f003 030f and.w r3, r3, #15 + 80079f0: 3302 adds r3, #2 + 80079f2: 647b str r3, [r7, #68] ; 0x44 pllclk = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pll2mul * (uint64_t)pllmul) / ((uint64_t)prediv2 * (uint64_t)prediv)); - 8007788: 6c7b ldr r3, [r7, #68] ; 0x44 - 800778a: 2200 movs r2, #0 - 800778c: 613b str r3, [r7, #16] - 800778e: 617a str r2, [r7, #20] - 8007790: 6cfb ldr r3, [r7, #76] ; 0x4c - 8007792: 2200 movs r2, #0 - 8007794: 61bb str r3, [r7, #24] - 8007796: 61fa str r2, [r7, #28] - 8007798: e9d7 3404 ldrd r3, r4, [r7, #16] - 800779c: 4622 mov r2, r4 - 800779e: e9d7 0106 ldrd r0, r1, [r7, #24] - 80077a2: 4684 mov ip, r0 - 80077a4: fb0c f202 mul.w r2, ip, r2 - 80077a8: e9c7 0106 strd r0, r1, [r7, #24] - 80077ac: 468c mov ip, r1 - 80077ae: 4618 mov r0, r3 - 80077b0: 4621 mov r1, r4 - 80077b2: 4603 mov r3, r0 - 80077b4: fb03 f30c mul.w r3, r3, ip - 80077b8: 4413 add r3, r2 - 80077ba: 4602 mov r2, r0 - 80077bc: 69b9 ldr r1, [r7, #24] - 80077be: fba2 8901 umull r8, r9, r2, r1 - 80077c2: 444b add r3, r9 - 80077c4: 4699 mov r9, r3 - 80077c6: 4b2e ldr r3, [pc, #184] ; (8007880 ) - 80077c8: fb03 f209 mul.w r2, r3, r9 - 80077cc: 2300 movs r3, #0 - 80077ce: fb03 f308 mul.w r3, r3, r8 - 80077d2: 4413 add r3, r2 - 80077d4: 4a2a ldr r2, [pc, #168] ; (8007880 ) - 80077d6: fba8 ab02 umull sl, fp, r8, r2 - 80077da: 445b add r3, fp - 80077dc: 469b mov fp, r3 - 80077de: 6cbb ldr r3, [r7, #72] ; 0x48 - 80077e0: 2200 movs r2, #0 - 80077e2: 60bb str r3, [r7, #8] - 80077e4: 60fa str r2, [r7, #12] - 80077e6: 6d3b ldr r3, [r7, #80] ; 0x50 - 80077e8: 2200 movs r2, #0 - 80077ea: 603b str r3, [r7, #0] - 80077ec: 607a str r2, [r7, #4] - 80077ee: e9d7 3402 ldrd r3, r4, [r7, #8] - 80077f2: 4622 mov r2, r4 - 80077f4: e9d7 8900 ldrd r8, r9, [r7] - 80077f8: 4641 mov r1, r8 - 80077fa: fb01 f202 mul.w r2, r1, r2 - 80077fe: 46cc mov ip, r9 - 8007800: 4618 mov r0, r3 - 8007802: 4621 mov r1, r4 - 8007804: 4603 mov r3, r0 - 8007806: fb03 f30c mul.w r3, r3, ip - 800780a: 4413 add r3, r2 - 800780c: 4602 mov r2, r0 - 800780e: 4641 mov r1, r8 - 8007810: fba2 5601 umull r5, r6, r2, r1 - 8007814: 4433 add r3, r6 - 8007816: 461e mov r6, r3 - 8007818: 462a mov r2, r5 - 800781a: 4633 mov r3, r6 - 800781c: 4650 mov r0, sl - 800781e: 4659 mov r1, fp - 8007820: f7f9 fccc bl 80011bc <__aeabi_uldivmod> - 8007824: 4602 mov r2, r0 - 8007826: 460b mov r3, r1 - 8007828: 4613 mov r3, r2 - 800782a: 65fb str r3, [r7, #92] ; 0x5c - 800782c: e007 b.n 800783e + 80079f4: 6c7b ldr r3, [r7, #68] ; 0x44 + 80079f6: 2200 movs r2, #0 + 80079f8: 613b str r3, [r7, #16] + 80079fa: 617a str r2, [r7, #20] + 80079fc: 6cfb ldr r3, [r7, #76] ; 0x4c + 80079fe: 2200 movs r2, #0 + 8007a00: 61bb str r3, [r7, #24] + 8007a02: 61fa str r2, [r7, #28] + 8007a04: e9d7 3404 ldrd r3, r4, [r7, #16] + 8007a08: 4622 mov r2, r4 + 8007a0a: e9d7 0106 ldrd r0, r1, [r7, #24] + 8007a0e: 4684 mov ip, r0 + 8007a10: fb0c f202 mul.w r2, ip, r2 + 8007a14: e9c7 0106 strd r0, r1, [r7, #24] + 8007a18: 468c mov ip, r1 + 8007a1a: 4618 mov r0, r3 + 8007a1c: 4621 mov r1, r4 + 8007a1e: 4603 mov r3, r0 + 8007a20: fb03 f30c mul.w r3, r3, ip + 8007a24: 4413 add r3, r2 + 8007a26: 4602 mov r2, r0 + 8007a28: 69b9 ldr r1, [r7, #24] + 8007a2a: fba2 8901 umull r8, r9, r2, r1 + 8007a2e: 444b add r3, r9 + 8007a30: 4699 mov r9, r3 + 8007a32: 4b2e ldr r3, [pc, #184] ; (8007aec ) + 8007a34: fb03 f209 mul.w r2, r3, r9 + 8007a38: 2300 movs r3, #0 + 8007a3a: fb03 f308 mul.w r3, r3, r8 + 8007a3e: 4413 add r3, r2 + 8007a40: 4a2a ldr r2, [pc, #168] ; (8007aec ) + 8007a42: fba8 ab02 umull sl, fp, r8, r2 + 8007a46: 445b add r3, fp + 8007a48: 469b mov fp, r3 + 8007a4a: 6cbb ldr r3, [r7, #72] ; 0x48 + 8007a4c: 2200 movs r2, #0 + 8007a4e: 60bb str r3, [r7, #8] + 8007a50: 60fa str r2, [r7, #12] + 8007a52: 6d3b ldr r3, [r7, #80] ; 0x50 + 8007a54: 2200 movs r2, #0 + 8007a56: 603b str r3, [r7, #0] + 8007a58: 607a str r2, [r7, #4] + 8007a5a: e9d7 3402 ldrd r3, r4, [r7, #8] + 8007a5e: 4622 mov r2, r4 + 8007a60: e9d7 8900 ldrd r8, r9, [r7] + 8007a64: 4641 mov r1, r8 + 8007a66: fb01 f202 mul.w r2, r1, r2 + 8007a6a: 46cc mov ip, r9 + 8007a6c: 4618 mov r0, r3 + 8007a6e: 4621 mov r1, r4 + 8007a70: 4603 mov r3, r0 + 8007a72: fb03 f30c mul.w r3, r3, ip + 8007a76: 4413 add r3, r2 + 8007a78: 4602 mov r2, r0 + 8007a7a: 4641 mov r1, r8 + 8007a7c: fba2 5601 umull r5, r6, r2, r1 + 8007a80: 4433 add r3, r6 + 8007a82: 461e mov r6, r3 + 8007a84: 462a mov r2, r5 + 8007a86: 4633 mov r3, r6 + 8007a88: 4650 mov r0, sl + 8007a8a: 4659 mov r1, fp + 8007a8c: f7f9 fc0c bl 80012a8 <__aeabi_uldivmod> + 8007a90: 4602 mov r2, r0 + 8007a92: 460b mov r3, r1 + 8007a94: 4613 mov r3, r2 + 8007a96: 65fb str r3, [r7, #92] ; 0x5c + 8007a98: e007 b.n 8007aaa } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); - 800782e: 6cfb ldr r3, [r7, #76] ; 0x4c - 8007830: 4a13 ldr r2, [pc, #76] ; (8007880 ) - 8007832: fb03 f202 mul.w r2, r3, r2 - 8007836: 6d3b ldr r3, [r7, #80] ; 0x50 - 8007838: fbb2 f3f3 udiv r3, r2, r3 - 800783c: 65fb str r3, [r7, #92] ; 0x5c + 8007a9a: 6cfb ldr r3, [r7, #76] ; 0x4c + 8007a9c: 4a13 ldr r2, [pc, #76] ; (8007aec ) + 8007a9e: fb03 f202 mul.w r2, r3, r2 + 8007aa2: 6d3b ldr r3, [r7, #80] ; 0x50 + 8007aa4: fbb2 f3f3 udiv r3, r2, r3 + 8007aa8: 65fb str r3, [r7, #92] ; 0x5c } /* If PLLMUL was set to 13 means that it was to cover the case PLLMUL 6.5 (avoid using float) */ /* In this case need to divide pllclk by 2 */ if (pllmul == aPLLMULFactorTable[(uint32_t)(RCC_CFGR_PLLMULL6_5) >> RCC_CFGR_PLLMULL_Pos]) - 800783e: f897 3041 ldrb.w r3, [r7, #65] ; 0x41 - 8007842: 461a mov r2, r3 - 8007844: 6cfb ldr r3, [r7, #76] ; 0x4c - 8007846: 4293 cmp r3, r2 - 8007848: d108 bne.n 800785c + 8007aaa: f897 3041 ldrb.w r3, [r7, #65] ; 0x41 + 8007aae: 461a mov r2, r3 + 8007ab0: 6cfb ldr r3, [r7, #76] ; 0x4c + 8007ab2: 4293 cmp r3, r2 + 8007ab4: d108 bne.n 8007ac8 { pllclk = pllclk / 2; - 800784a: 6dfb ldr r3, [r7, #92] ; 0x5c - 800784c: 085b lsrs r3, r3, #1 - 800784e: 65fb str r3, [r7, #92] ; 0x5c - 8007850: e004 b.n 800785c + 8007ab6: 6dfb ldr r3, [r7, #92] ; 0x5c + 8007ab8: 085b lsrs r3, r3, #1 + 8007aba: 65fb str r3, [r7, #92] ; 0x5c + 8007abc: e004 b.n 8007ac8 #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); - 8007852: 6cfb ldr r3, [r7, #76] ; 0x4c - 8007854: 4a0b ldr r2, [pc, #44] ; (8007884 ) - 8007856: fb02 f303 mul.w r3, r2, r3 - 800785a: 65fb str r3, [r7, #92] ; 0x5c + 8007abe: 6cfb ldr r3, [r7, #76] ; 0x4c + 8007ac0: 4a0b ldr r2, [pc, #44] ; (8007af0 ) + 8007ac2: fb02 f303 mul.w r3, r2, r3 + 8007ac6: 65fb str r3, [r7, #92] ; 0x5c } sysclockfreq = pllclk; - 800785c: 6dfb ldr r3, [r7, #92] ; 0x5c - 800785e: 65bb str r3, [r7, #88] ; 0x58 + 8007ac8: 6dfb ldr r3, [r7, #92] ; 0x5c + 8007aca: 65bb str r3, [r7, #88] ; 0x58 break; - 8007860: e002 b.n 8007868 + 8007acc: e002 b.n 8007ad4 } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 8007862: 4b09 ldr r3, [pc, #36] ; (8007888 ) - 8007864: 65bb str r3, [r7, #88] ; 0x58 + 8007ace: 4b09 ldr r3, [pc, #36] ; (8007af4 ) + 8007ad0: 65bb str r3, [r7, #88] ; 0x58 break; - 8007866: bf00 nop + 8007ad2: bf00 nop } } return sysclockfreq; - 8007868: 6dbb ldr r3, [r7, #88] ; 0x58 + 8007ad4: 6dbb ldr r3, [r7, #88] ; 0x58 } - 800786a: 4618 mov r0, r3 - 800786c: 3764 adds r7, #100 ; 0x64 - 800786e: 46bd mov sp, r7 - 8007870: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8007874: 0800cf88 .word 0x0800cf88 - 8007878: 0800cf98 .word 0x0800cf98 - 800787c: 40021000 .word 0x40021000 - 8007880: 017d7840 .word 0x017d7840 - 8007884: 003d0900 .word 0x003d0900 - 8007888: 007a1200 .word 0x007a1200 + 8007ad6: 4618 mov r0, r3 + 8007ad8: 3764 adds r7, #100 ; 0x64 + 8007ada: 46bd mov sp, r7 + 8007adc: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007ae0: 0800d218 .word 0x0800d218 + 8007ae4: 0800d228 .word 0x0800d228 + 8007ae8: 40021000 .word 0x40021000 + 8007aec: 017d7840 .word 0x017d7840 + 8007af0: 003d0900 .word 0x003d0900 + 8007af4: 007a1200 .word 0x007a1200 -0800788c : +08007af8 : * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 800788c: b480 push {r7} - 800788e: af00 add r7, sp, #0 + 8007af8: b480 push {r7} + 8007afa: af00 add r7, sp, #0 return SystemCoreClock; - 8007890: 4b02 ldr r3, [pc, #8] ; (800789c ) - 8007892: 681b ldr r3, [r3, #0] + 8007afc: 4b02 ldr r3, [pc, #8] ; (8007b08 ) + 8007afe: 681b ldr r3, [r3, #0] } - 8007894: 4618 mov r0, r3 - 8007896: 46bd mov sp, r7 - 8007898: bc80 pop {r7} - 800789a: 4770 bx lr - 800789c: 20000008 .word 0x20000008 + 8007b00: 4618 mov r0, r3 + 8007b02: 46bd mov sp, r7 + 8007b04: bc80 pop {r7} + 8007b06: 4770 bx lr + 8007b08: 20000008 .word 0x20000008 -080078a0 : +08007b0c : * @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) { - 80078a0: b580 push {r7, lr} - 80078a2: af00 add r7, sp, #0 + 8007b0c: b580 push {r7, lr} + 8007b0e: 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]); - 80078a4: f7ff fff2 bl 800788c - 80078a8: 4602 mov r2, r0 - 80078aa: 4b05 ldr r3, [pc, #20] ; (80078c0 ) - 80078ac: 685b ldr r3, [r3, #4] - 80078ae: 0a1b lsrs r3, r3, #8 - 80078b0: f003 0307 and.w r3, r3, #7 - 80078b4: 4903 ldr r1, [pc, #12] ; (80078c4 ) - 80078b6: 5ccb ldrb r3, [r1, r3] - 80078b8: fa22 f303 lsr.w r3, r2, r3 + 8007b10: f7ff fff2 bl 8007af8 + 8007b14: 4602 mov r2, r0 + 8007b16: 4b05 ldr r3, [pc, #20] ; (8007b2c ) + 8007b18: 685b ldr r3, [r3, #4] + 8007b1a: 0a1b lsrs r3, r3, #8 + 8007b1c: f003 0307 and.w r3, r3, #7 + 8007b20: 4903 ldr r1, [pc, #12] ; (8007b30 ) + 8007b22: 5ccb ldrb r3, [r1, r3] + 8007b24: fa22 f303 lsr.w r3, r2, r3 } - 80078bc: 4618 mov r0, r3 - 80078be: bd80 pop {r7, pc} - 80078c0: 40021000 .word 0x40021000 - 80078c4: 0800cfe4 .word 0x0800cfe4 + 8007b28: 4618 mov r0, r3 + 8007b2a: bd80 pop {r7, pc} + 8007b2c: 40021000 .word 0x40021000 + 8007b30: 0800d274 .word 0x0800d274 -080078c8 : +08007b34 : * @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) { - 80078c8: b580 push {r7, lr} - 80078ca: af00 add r7, sp, #0 + 8007b34: b580 push {r7, lr} + 8007b36: 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]); - 80078cc: f7ff ffde bl 800788c - 80078d0: 4602 mov r2, r0 - 80078d2: 4b05 ldr r3, [pc, #20] ; (80078e8 ) - 80078d4: 685b ldr r3, [r3, #4] - 80078d6: 0adb lsrs r3, r3, #11 - 80078d8: f003 0307 and.w r3, r3, #7 - 80078dc: 4903 ldr r1, [pc, #12] ; (80078ec ) - 80078de: 5ccb ldrb r3, [r1, r3] - 80078e0: fa22 f303 lsr.w r3, r2, r3 + 8007b38: f7ff ffde bl 8007af8 + 8007b3c: 4602 mov r2, r0 + 8007b3e: 4b05 ldr r3, [pc, #20] ; (8007b54 ) + 8007b40: 685b ldr r3, [r3, #4] + 8007b42: 0adb lsrs r3, r3, #11 + 8007b44: f003 0307 and.w r3, r3, #7 + 8007b48: 4903 ldr r1, [pc, #12] ; (8007b58 ) + 8007b4a: 5ccb ldrb r3, [r1, r3] + 8007b4c: fa22 f303 lsr.w r3, r2, r3 } - 80078e4: 4618 mov r0, r3 - 80078e6: bd80 pop {r7, pc} - 80078e8: 40021000 .word 0x40021000 - 80078ec: 0800cfe4 .word 0x0800cfe4 + 8007b50: 4618 mov r0, r3 + 8007b52: bd80 pop {r7, pc} + 8007b54: 40021000 .word 0x40021000 + 8007b58: 0800d274 .word 0x0800d274 -080078f0 : +08007b5c : * @brief This function provides delay (in milliseconds) based on CPU cycles method. * @param mdelay: specifies the delay time length, in milliseconds. * @retval None */ static void RCC_Delay(uint32_t mdelay) { - 80078f0: b480 push {r7} - 80078f2: b085 sub sp, #20 - 80078f4: af00 add r7, sp, #0 - 80078f6: 6078 str r0, [r7, #4] + 8007b5c: b480 push {r7} + 8007b5e: b085 sub sp, #20 + 8007b60: af00 add r7, sp, #0 + 8007b62: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); - 80078f8: 4b0a ldr r3, [pc, #40] ; (8007924 ) - 80078fa: 681b ldr r3, [r3, #0] - 80078fc: 4a0a ldr r2, [pc, #40] ; (8007928 ) - 80078fe: fba2 2303 umull r2, r3, r2, r3 - 8007902: 0a5b lsrs r3, r3, #9 - 8007904: 687a ldr r2, [r7, #4] - 8007906: fb02 f303 mul.w r3, r2, r3 - 800790a: 60fb str r3, [r7, #12] + 8007b64: 4b0a ldr r3, [pc, #40] ; (8007b90 ) + 8007b66: 681b ldr r3, [r3, #0] + 8007b68: 4a0a ldr r2, [pc, #40] ; (8007b94 ) + 8007b6a: fba2 2303 umull r2, r3, r2, r3 + 8007b6e: 0a5b lsrs r3, r3, #9 + 8007b70: 687a ldr r2, [r7, #4] + 8007b72: fb02 f303 mul.w r3, r2, r3 + 8007b76: 60fb str r3, [r7, #12] do { __NOP(); - 800790c: bf00 nop + 8007b78: bf00 nop } while (Delay --); - 800790e: 68fb ldr r3, [r7, #12] - 8007910: 1e5a subs r2, r3, #1 - 8007912: 60fa str r2, [r7, #12] - 8007914: 2b00 cmp r3, #0 - 8007916: d1f9 bne.n 800790c + 8007b7a: 68fb ldr r3, [r7, #12] + 8007b7c: 1e5a subs r2, r3, #1 + 8007b7e: 60fa str r2, [r7, #12] + 8007b80: 2b00 cmp r3, #0 + 8007b82: d1f9 bne.n 8007b78 } - 8007918: bf00 nop - 800791a: bf00 nop - 800791c: 3714 adds r7, #20 - 800791e: 46bd mov sp, r7 - 8007920: bc80 pop {r7} - 8007922: 4770 bx lr - 8007924: 20000008 .word 0x20000008 - 8007928: 10624dd3 .word 0x10624dd3 + 8007b84: bf00 nop + 8007b86: bf00 nop + 8007b88: 3714 adds r7, #20 + 8007b8a: 46bd mov sp, r7 + 8007b8c: bc80 pop {r7} + 8007b8e: 4770 bx lr + 8007b90: 20000008 .word 0x20000008 + 8007b94: 10624dd3 .word 0x10624dd3 -0800792c : +08007b98 : * manually disable it. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 800792c: b580 push {r7, lr} - 800792e: b088 sub sp, #32 - 8007930: af00 add r7, sp, #0 - 8007932: 6078 str r0, [r7, #4] + 8007b98: b580 push {r7, lr} + 8007b9a: b088 sub sp, #32 + 8007b9c: af00 add r7, sp, #0 + 8007b9e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U, temp_reg = 0U; - 8007934: 2300 movs r3, #0 - 8007936: 617b str r3, [r7, #20] - 8007938: 2300 movs r3, #0 - 800793a: 613b str r3, [r7, #16] + 8007ba0: 2300 movs r3, #0 + 8007ba2: 617b str r3, [r7, #20] + 8007ba4: 2300 movs r3, #0 + 8007ba6: 613b str r3, [r7, #16] #if defined(STM32F105xC) || defined(STM32F107xC) uint32_t pllactive = 0U; - 800793c: 2300 movs r3, #0 - 800793e: 61fb str r3, [r7, #28] + 8007ba8: 2300 movs r3, #0 + 8007baa: 61fb str r3, [r7, #28] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*------------------------------- RTC/LCD Configuration ------------------------*/ if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)) - 8007940: 687b ldr r3, [r7, #4] - 8007942: 681b ldr r3, [r3, #0] - 8007944: f003 0301 and.w r3, r3, #1 - 8007948: 2b00 cmp r3, #0 - 800794a: d07d beq.n 8007a48 + 8007bac: 687b ldr r3, [r7, #4] + 8007bae: 681b ldr r3, [r3, #0] + 8007bb0: f003 0301 and.w r3, r3, #1 + 8007bb4: 2b00 cmp r3, #0 + 8007bb6: d07d beq.n 8007cb4 { FlagStatus pwrclkchanged = RESET; - 800794c: 2300 movs r3, #0 - 800794e: 76fb strb r3, [r7, #27] + 8007bb8: 2300 movs r3, #0 + 8007bba: 76fb strb r3, [r7, #27] assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* As soon as function is called to change RTC clock source, activation of the power domain is done. */ /* Requires to enable write access to Backup Domain of necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED()) - 8007950: 4b8b ldr r3, [pc, #556] ; (8007b80 ) - 8007952: 69db ldr r3, [r3, #28] - 8007954: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007958: 2b00 cmp r3, #0 - 800795a: d10d bne.n 8007978 + 8007bbc: 4b8b ldr r3, [pc, #556] ; (8007dec ) + 8007bbe: 69db ldr r3, [r3, #28] + 8007bc0: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007bc4: 2b00 cmp r3, #0 + 8007bc6: d10d bne.n 8007be4 { __HAL_RCC_PWR_CLK_ENABLE(); - 800795c: 4b88 ldr r3, [pc, #544] ; (8007b80 ) - 800795e: 69db ldr r3, [r3, #28] - 8007960: 4a87 ldr r2, [pc, #540] ; (8007b80 ) - 8007962: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8007966: 61d3 str r3, [r2, #28] - 8007968: 4b85 ldr r3, [pc, #532] ; (8007b80 ) - 800796a: 69db ldr r3, [r3, #28] - 800796c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007970: 60fb str r3, [r7, #12] - 8007972: 68fb ldr r3, [r7, #12] + 8007bc8: 4b88 ldr r3, [pc, #544] ; (8007dec ) + 8007bca: 69db ldr r3, [r3, #28] + 8007bcc: 4a87 ldr r2, [pc, #540] ; (8007dec ) + 8007bce: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8007bd2: 61d3 str r3, [r2, #28] + 8007bd4: 4b85 ldr r3, [pc, #532] ; (8007dec ) + 8007bd6: 69db ldr r3, [r3, #28] + 8007bd8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007bdc: 60fb str r3, [r7, #12] + 8007bde: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; - 8007974: 2301 movs r3, #1 - 8007976: 76fb strb r3, [r7, #27] + 8007be0: 2301 movs r3, #1 + 8007be2: 76fb strb r3, [r7, #27] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8007978: 4b82 ldr r3, [pc, #520] ; (8007b84 ) - 800797a: 681b ldr r3, [r3, #0] - 800797c: f403 7380 and.w r3, r3, #256 ; 0x100 - 8007980: 2b00 cmp r3, #0 - 8007982: d118 bne.n 80079b6 + 8007be4: 4b82 ldr r3, [pc, #520] ; (8007df0 ) + 8007be6: 681b ldr r3, [r3, #0] + 8007be8: f403 7380 and.w r3, r3, #256 ; 0x100 + 8007bec: 2b00 cmp r3, #0 + 8007bee: d118 bne.n 8007c22 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8007984: 4b7f ldr r3, [pc, #508] ; (8007b84 ) - 8007986: 681b ldr r3, [r3, #0] - 8007988: 4a7e ldr r2, [pc, #504] ; (8007b84 ) - 800798a: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800798e: 6013 str r3, [r2, #0] + 8007bf0: 4b7f ldr r3, [pc, #508] ; (8007df0 ) + 8007bf2: 681b ldr r3, [r3, #0] + 8007bf4: 4a7e ldr r2, [pc, #504] ; (8007df0 ) + 8007bf6: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8007bfa: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8007990: f7fd fab0 bl 8004ef4 - 8007994: 6178 str r0, [r7, #20] + 8007bfc: f7fd fab0 bl 8005160 + 8007c00: 6178 str r0, [r7, #20] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8007996: e008 b.n 80079aa + 8007c02: e008 b.n 8007c16 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8007998: f7fd faac bl 8004ef4 - 800799c: 4602 mov r2, r0 - 800799e: 697b ldr r3, [r7, #20] - 80079a0: 1ad3 subs r3, r2, r3 - 80079a2: 2b64 cmp r3, #100 ; 0x64 - 80079a4: d901 bls.n 80079aa + 8007c04: f7fd faac bl 8005160 + 8007c08: 4602 mov r2, r0 + 8007c0a: 697b ldr r3, [r7, #20] + 8007c0c: 1ad3 subs r3, r2, r3 + 8007c0e: 2b64 cmp r3, #100 ; 0x64 + 8007c10: d901 bls.n 8007c16 { return HAL_TIMEOUT; - 80079a6: 2303 movs r3, #3 - 80079a8: e0e5 b.n 8007b76 + 8007c12: 2303 movs r3, #3 + 8007c14: e0e5 b.n 8007de2 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80079aa: 4b76 ldr r3, [pc, #472] ; (8007b84 ) - 80079ac: 681b ldr r3, [r3, #0] - 80079ae: f403 7380 and.w r3, r3, #256 ; 0x100 - 80079b2: 2b00 cmp r3, #0 - 80079b4: d0f0 beq.n 8007998 + 8007c16: 4b76 ldr r3, [pc, #472] ; (8007df0 ) + 8007c18: 681b ldr r3, [r3, #0] + 8007c1a: f403 7380 and.w r3, r3, #256 ; 0x100 + 8007c1e: 2b00 cmp r3, #0 + 8007c20: d0f0 beq.n 8007c04 } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); - 80079b6: 4b72 ldr r3, [pc, #456] ; (8007b80 ) - 80079b8: 6a1b ldr r3, [r3, #32] - 80079ba: f403 7340 and.w r3, r3, #768 ; 0x300 - 80079be: 613b str r3, [r7, #16] + 8007c22: 4b72 ldr r3, [pc, #456] ; (8007dec ) + 8007c24: 6a1b ldr r3, [r3, #32] + 8007c26: f403 7340 and.w r3, r3, #768 ; 0x300 + 8007c2a: 613b str r3, [r7, #16] if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 80079c0: 693b ldr r3, [r7, #16] - 80079c2: 2b00 cmp r3, #0 - 80079c4: d02e beq.n 8007a24 - 80079c6: 687b ldr r3, [r7, #4] - 80079c8: 685b ldr r3, [r3, #4] - 80079ca: f403 7340 and.w r3, r3, #768 ; 0x300 - 80079ce: 693a ldr r2, [r7, #16] - 80079d0: 429a cmp r2, r3 - 80079d2: d027 beq.n 8007a24 + 8007c2c: 693b ldr r3, [r7, #16] + 8007c2e: 2b00 cmp r3, #0 + 8007c30: d02e beq.n 8007c90 + 8007c32: 687b ldr r3, [r7, #4] + 8007c34: 685b ldr r3, [r3, #4] + 8007c36: f403 7340 and.w r3, r3, #768 ; 0x300 + 8007c3a: 693a ldr r2, [r7, #16] + 8007c3c: 429a cmp r2, r3 + 8007c3e: d027 beq.n 8007c90 { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 80079d4: 4b6a ldr r3, [pc, #424] ; (8007b80 ) - 80079d6: 6a1b ldr r3, [r3, #32] - 80079d8: f423 7340 bic.w r3, r3, #768 ; 0x300 - 80079dc: 613b str r3, [r7, #16] + 8007c40: 4b6a ldr r3, [pc, #424] ; (8007dec ) + 8007c42: 6a1b ldr r3, [r3, #32] + 8007c44: f423 7340 bic.w r3, r3, #768 ; 0x300 + 8007c48: 613b str r3, [r7, #16] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 80079de: 4b6a ldr r3, [pc, #424] ; (8007b88 ) - 80079e0: 2201 movs r2, #1 - 80079e2: 601a str r2, [r3, #0] + 8007c4a: 4b6a ldr r3, [pc, #424] ; (8007df4 ) + 8007c4c: 2201 movs r2, #1 + 8007c4e: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); - 80079e4: 4b68 ldr r3, [pc, #416] ; (8007b88 ) - 80079e6: 2200 movs r2, #0 - 80079e8: 601a str r2, [r3, #0] + 8007c50: 4b68 ldr r3, [pc, #416] ; (8007df4 ) + 8007c52: 2200 movs r2, #0 + 8007c54: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; - 80079ea: 4a65 ldr r2, [pc, #404] ; (8007b80 ) - 80079ec: 693b ldr r3, [r7, #16] - 80079ee: 6213 str r3, [r2, #32] + 8007c56: 4a65 ldr r2, [pc, #404] ; (8007dec ) + 8007c58: 693b ldr r3, [r7, #16] + 8007c5a: 6213 str r3, [r2, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) - 80079f0: 693b ldr r3, [r7, #16] - 80079f2: f003 0301 and.w r3, r3, #1 - 80079f6: 2b00 cmp r3, #0 - 80079f8: d014 beq.n 8007a24 + 8007c5c: 693b ldr r3, [r7, #16] + 8007c5e: f003 0301 and.w r3, r3, #1 + 8007c62: 2b00 cmp r3, #0 + 8007c64: d014 beq.n 8007c90 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80079fa: f7fd fa7b bl 8004ef4 - 80079fe: 6178 str r0, [r7, #20] + 8007c66: f7fd fa7b bl 8005160 + 8007c6a: 6178 str r0, [r7, #20] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8007a00: e00a b.n 8007a18 + 8007c6c: e00a b.n 8007c84 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8007a02: f7fd fa77 bl 8004ef4 - 8007a06: 4602 mov r2, r0 - 8007a08: 697b ldr r3, [r7, #20] - 8007a0a: 1ad3 subs r3, r2, r3 - 8007a0c: f241 3288 movw r2, #5000 ; 0x1388 - 8007a10: 4293 cmp r3, r2 - 8007a12: d901 bls.n 8007a18 + 8007c6e: f7fd fa77 bl 8005160 + 8007c72: 4602 mov r2, r0 + 8007c74: 697b ldr r3, [r7, #20] + 8007c76: 1ad3 subs r3, r2, r3 + 8007c78: f241 3288 movw r2, #5000 ; 0x1388 + 8007c7c: 4293 cmp r3, r2 + 8007c7e: d901 bls.n 8007c84 { return HAL_TIMEOUT; - 8007a14: 2303 movs r3, #3 - 8007a16: e0ae b.n 8007b76 + 8007c80: 2303 movs r3, #3 + 8007c82: e0ae b.n 8007de2 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8007a18: 4b59 ldr r3, [pc, #356] ; (8007b80 ) - 8007a1a: 6a1b ldr r3, [r3, #32] - 8007a1c: f003 0302 and.w r3, r3, #2 - 8007a20: 2b00 cmp r3, #0 - 8007a22: d0ee beq.n 8007a02 + 8007c84: 4b59 ldr r3, [pc, #356] ; (8007dec ) + 8007c86: 6a1b ldr r3, [r3, #32] + 8007c88: f003 0302 and.w r3, r3, #2 + 8007c8c: 2b00 cmp r3, #0 + 8007c8e: d0ee beq.n 8007c6e } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 8007a24: 4b56 ldr r3, [pc, #344] ; (8007b80 ) - 8007a26: 6a1b ldr r3, [r3, #32] - 8007a28: f423 7240 bic.w r2, r3, #768 ; 0x300 - 8007a2c: 687b ldr r3, [r7, #4] - 8007a2e: 685b ldr r3, [r3, #4] - 8007a30: 4953 ldr r1, [pc, #332] ; (8007b80 ) - 8007a32: 4313 orrs r3, r2 - 8007a34: 620b str r3, [r1, #32] + 8007c90: 4b56 ldr r3, [pc, #344] ; (8007dec ) + 8007c92: 6a1b ldr r3, [r3, #32] + 8007c94: f423 7240 bic.w r2, r3, #768 ; 0x300 + 8007c98: 687b ldr r3, [r7, #4] + 8007c9a: 685b ldr r3, [r3, #4] + 8007c9c: 4953 ldr r1, [pc, #332] ; (8007dec ) + 8007c9e: 4313 orrs r3, r2 + 8007ca0: 620b str r3, [r1, #32] /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 8007a36: 7efb ldrb r3, [r7, #27] - 8007a38: 2b01 cmp r3, #1 - 8007a3a: d105 bne.n 8007a48 + 8007ca2: 7efb ldrb r3, [r7, #27] + 8007ca4: 2b01 cmp r3, #1 + 8007ca6: d105 bne.n 8007cb4 { __HAL_RCC_PWR_CLK_DISABLE(); - 8007a3c: 4b50 ldr r3, [pc, #320] ; (8007b80 ) - 8007a3e: 69db ldr r3, [r3, #28] - 8007a40: 4a4f ldr r2, [pc, #316] ; (8007b80 ) - 8007a42: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 8007a46: 61d3 str r3, [r2, #28] + 8007ca8: 4b50 ldr r3, [pc, #320] ; (8007dec ) + 8007caa: 69db ldr r3, [r3, #28] + 8007cac: 4a4f ldr r2, [pc, #316] ; (8007dec ) + 8007cae: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8007cb2: 61d3 str r3, [r2, #28] } } /*------------------------------ ADC clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) - 8007a48: 687b ldr r3, [r7, #4] - 8007a4a: 681b ldr r3, [r3, #0] - 8007a4c: f003 0302 and.w r3, r3, #2 - 8007a50: 2b00 cmp r3, #0 - 8007a52: d008 beq.n 8007a66 + 8007cb4: 687b ldr r3, [r7, #4] + 8007cb6: 681b ldr r3, [r3, #0] + 8007cb8: f003 0302 and.w r3, r3, #2 + 8007cbc: 2b00 cmp r3, #0 + 8007cbe: d008 beq.n 8007cd2 { /* Check the parameters */ assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection)); /* Configure the ADC clock source */ __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); - 8007a54: 4b4a ldr r3, [pc, #296] ; (8007b80 ) - 8007a56: 685b ldr r3, [r3, #4] - 8007a58: f423 4240 bic.w r2, r3, #49152 ; 0xc000 - 8007a5c: 687b ldr r3, [r7, #4] - 8007a5e: 689b ldr r3, [r3, #8] - 8007a60: 4947 ldr r1, [pc, #284] ; (8007b80 ) - 8007a62: 4313 orrs r3, r2 - 8007a64: 604b str r3, [r1, #4] + 8007cc0: 4b4a ldr r3, [pc, #296] ; (8007dec ) + 8007cc2: 685b ldr r3, [r3, #4] + 8007cc4: f423 4240 bic.w r2, r3, #49152 ; 0xc000 + 8007cc8: 687b ldr r3, [r7, #4] + 8007cca: 689b ldr r3, [r3, #8] + 8007ccc: 4947 ldr r1, [pc, #284] ; (8007dec ) + 8007cce: 4313 orrs r3, r2 + 8007cd0: 604b str r3, [r1, #4] } #if defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ I2S2 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S2) == RCC_PERIPHCLK_I2S2) - 8007a66: 687b ldr r3, [r7, #4] - 8007a68: 681b ldr r3, [r3, #0] - 8007a6a: f003 0304 and.w r3, r3, #4 - 8007a6e: 2b00 cmp r3, #0 - 8007a70: d008 beq.n 8007a84 + 8007cd2: 687b ldr r3, [r7, #4] + 8007cd4: 681b ldr r3, [r3, #0] + 8007cd6: f003 0304 and.w r3, r3, #4 + 8007cda: 2b00 cmp r3, #0 + 8007cdc: d008 beq.n 8007cf0 { /* Check the parameters */ assert_param(IS_RCC_I2S2CLKSOURCE(PeriphClkInit->I2s2ClockSelection)); /* Configure the I2S2 clock source */ __HAL_RCC_I2S2_CONFIG(PeriphClkInit->I2s2ClockSelection); - 8007a72: 4b43 ldr r3, [pc, #268] ; (8007b80 ) - 8007a74: 6adb ldr r3, [r3, #44] ; 0x2c - 8007a76: f423 3200 bic.w r2, r3, #131072 ; 0x20000 - 8007a7a: 687b ldr r3, [r7, #4] - 8007a7c: 68db ldr r3, [r3, #12] - 8007a7e: 4940 ldr r1, [pc, #256] ; (8007b80 ) - 8007a80: 4313 orrs r3, r2 - 8007a82: 62cb str r3, [r1, #44] ; 0x2c + 8007cde: 4b43 ldr r3, [pc, #268] ; (8007dec ) + 8007ce0: 6adb ldr r3, [r3, #44] ; 0x2c + 8007ce2: f423 3200 bic.w r2, r3, #131072 ; 0x20000 + 8007ce6: 687b ldr r3, [r7, #4] + 8007ce8: 68db ldr r3, [r3, #12] + 8007cea: 4940 ldr r1, [pc, #256] ; (8007dec ) + 8007cec: 4313 orrs r3, r2 + 8007cee: 62cb str r3, [r1, #44] ; 0x2c } /*------------------------------ I2S3 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S3) == RCC_PERIPHCLK_I2S3) - 8007a84: 687b ldr r3, [r7, #4] - 8007a86: 681b ldr r3, [r3, #0] - 8007a88: f003 0308 and.w r3, r3, #8 - 8007a8c: 2b00 cmp r3, #0 - 8007a8e: d008 beq.n 8007aa2 + 8007cf0: 687b ldr r3, [r7, #4] + 8007cf2: 681b ldr r3, [r3, #0] + 8007cf4: f003 0308 and.w r3, r3, #8 + 8007cf8: 2b00 cmp r3, #0 + 8007cfa: d008 beq.n 8007d0e { /* Check the parameters */ assert_param(IS_RCC_I2S3CLKSOURCE(PeriphClkInit->I2s3ClockSelection)); /* Configure the I2S3 clock source */ __HAL_RCC_I2S3_CONFIG(PeriphClkInit->I2s3ClockSelection); - 8007a90: 4b3b ldr r3, [pc, #236] ; (8007b80 ) - 8007a92: 6adb ldr r3, [r3, #44] ; 0x2c - 8007a94: f423 2280 bic.w r2, r3, #262144 ; 0x40000 - 8007a98: 687b ldr r3, [r7, #4] - 8007a9a: 691b ldr r3, [r3, #16] - 8007a9c: 4938 ldr r1, [pc, #224] ; (8007b80 ) - 8007a9e: 4313 orrs r3, r2 - 8007aa0: 62cb str r3, [r1, #44] ; 0x2c + 8007cfc: 4b3b ldr r3, [pc, #236] ; (8007dec ) + 8007cfe: 6adb ldr r3, [r3, #44] ; 0x2c + 8007d00: f423 2280 bic.w r2, r3, #262144 ; 0x40000 + 8007d04: 687b ldr r3, [r7, #4] + 8007d06: 691b ldr r3, [r3, #16] + 8007d08: 4938 ldr r1, [pc, #224] ; (8007dec ) + 8007d0a: 4313 orrs r3, r2 + 8007d0c: 62cb str r3, [r1, #44] ; 0x2c } /*------------------------------ PLL I2S Configuration ----------------------*/ /* Check that PLLI2S need to be enabled */ if (HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_I2S2SRC) || HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_I2S3SRC)) - 8007aa2: 4b37 ldr r3, [pc, #220] ; (8007b80 ) - 8007aa4: 6adb ldr r3, [r3, #44] ; 0x2c - 8007aa6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8007aaa: 2b00 cmp r3, #0 - 8007aac: d105 bne.n 8007aba - 8007aae: 4b34 ldr r3, [pc, #208] ; (8007b80 ) - 8007ab0: 6adb ldr r3, [r3, #44] ; 0x2c - 8007ab2: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 8007ab6: 2b00 cmp r3, #0 - 8007ab8: d001 beq.n 8007abe + 8007d0e: 4b37 ldr r3, [pc, #220] ; (8007dec ) + 8007d10: 6adb ldr r3, [r3, #44] ; 0x2c + 8007d12: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8007d16: 2b00 cmp r3, #0 + 8007d18: d105 bne.n 8007d26 + 8007d1a: 4b34 ldr r3, [pc, #208] ; (8007dec ) + 8007d1c: 6adb ldr r3, [r3, #44] ; 0x2c + 8007d1e: f403 2380 and.w r3, r3, #262144 ; 0x40000 + 8007d22: 2b00 cmp r3, #0 + 8007d24: d001 beq.n 8007d2a { /* Update flag to indicate that PLL I2S should be active */ pllactive = 1; - 8007aba: 2301 movs r3, #1 - 8007abc: 61fb str r3, [r7, #28] + 8007d26: 2301 movs r3, #1 + 8007d28: 61fb str r3, [r7, #28] } /* Check if PLL I2S need to be enabled */ if (pllactive == 1) - 8007abe: 69fb ldr r3, [r7, #28] - 8007ac0: 2b01 cmp r3, #1 - 8007ac2: d148 bne.n 8007b56 + 8007d2a: 69fb ldr r3, [r7, #28] + 8007d2c: 2b01 cmp r3, #1 + 8007d2e: d148 bne.n 8007dc2 { /* Enable PLL I2S only if not active */ if (HAL_IS_BIT_CLR(RCC->CR, RCC_CR_PLL3ON)) - 8007ac4: 4b2e ldr r3, [pc, #184] ; (8007b80 ) - 8007ac6: 681b ldr r3, [r3, #0] - 8007ac8: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007acc: 2b00 cmp r3, #0 - 8007ace: d138 bne.n 8007b42 + 8007d30: 4b2e ldr r3, [pc, #184] ; (8007dec ) + 8007d32: 681b ldr r3, [r3, #0] + 8007d34: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007d38: 2b00 cmp r3, #0 + 8007d3a: d138 bne.n 8007dae assert_param(IS_RCC_PLLI2S_MUL(PeriphClkInit->PLLI2S.PLLI2SMUL)); assert_param(IS_RCC_HSE_PREDIV2(PeriphClkInit->PLLI2S.HSEPrediv2Value)); /* Prediv2 can be written only when the PLL2 is disabled. */ /* Return an error only if new value is different from the programmed value */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2ON) && \ - 8007ad0: 4b2b ldr r3, [pc, #172] ; (8007b80 ) - 8007ad2: 681b ldr r3, [r3, #0] - 8007ad4: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 8007ad8: 2b00 cmp r3, #0 - 8007ada: d009 beq.n 8007af0 + 8007d3c: 4b2b ldr r3, [pc, #172] ; (8007dec ) + 8007d3e: 681b ldr r3, [r3, #0] + 8007d40: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 8007d44: 2b00 cmp r3, #0 + 8007d46: d009 beq.n 8007d5c (__HAL_RCC_HSE_GET_PREDIV2() != PeriphClkInit->PLLI2S.HSEPrediv2Value)) - 8007adc: 4b28 ldr r3, [pc, #160] ; (8007b80 ) - 8007ade: 6adb ldr r3, [r3, #44] ; 0x2c - 8007ae0: f003 02f0 and.w r2, r3, #240 ; 0xf0 - 8007ae4: 687b ldr r3, [r7, #4] - 8007ae6: 699b ldr r3, [r3, #24] + 8007d48: 4b28 ldr r3, [pc, #160] ; (8007dec ) + 8007d4a: 6adb ldr r3, [r3, #44] ; 0x2c + 8007d4c: f003 02f0 and.w r2, r3, #240 ; 0xf0 + 8007d50: 687b ldr r3, [r7, #4] + 8007d52: 699b ldr r3, [r3, #24] if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2ON) && \ - 8007ae8: 429a cmp r2, r3 - 8007aea: d001 beq.n 8007af0 + 8007d54: 429a cmp r2, r3 + 8007d56: d001 beq.n 8007d5c { return HAL_ERROR; - 8007aec: 2301 movs r3, #1 - 8007aee: e042 b.n 8007b76 + 8007d58: 2301 movs r3, #1 + 8007d5a: e042 b.n 8007de2 } /* Configure the HSE prediv2 factor --------------------------------*/ __HAL_RCC_HSE_PREDIV2_CONFIG(PeriphClkInit->PLLI2S.HSEPrediv2Value); - 8007af0: 4b23 ldr r3, [pc, #140] ; (8007b80 ) - 8007af2: 6adb ldr r3, [r3, #44] ; 0x2c - 8007af4: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 8007af8: 687b ldr r3, [r7, #4] - 8007afa: 699b ldr r3, [r3, #24] - 8007afc: 4920 ldr r1, [pc, #128] ; (8007b80 ) - 8007afe: 4313 orrs r3, r2 - 8007b00: 62cb str r3, [r1, #44] ; 0x2c + 8007d5c: 4b23 ldr r3, [pc, #140] ; (8007dec ) + 8007d5e: 6adb ldr r3, [r3, #44] ; 0x2c + 8007d60: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 8007d64: 687b ldr r3, [r7, #4] + 8007d66: 699b ldr r3, [r3, #24] + 8007d68: 4920 ldr r1, [pc, #128] ; (8007dec ) + 8007d6a: 4313 orrs r3, r2 + 8007d6c: 62cb str r3, [r1, #44] ; 0x2c /* Configure the main PLLI2S multiplication factors. */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SMUL); - 8007b02: 4b1f ldr r3, [pc, #124] ; (8007b80 ) - 8007b04: 6adb ldr r3, [r3, #44] ; 0x2c - 8007b06: f423 4270 bic.w r2, r3, #61440 ; 0xf000 - 8007b0a: 687b ldr r3, [r7, #4] - 8007b0c: 695b ldr r3, [r3, #20] - 8007b0e: 491c ldr r1, [pc, #112] ; (8007b80 ) - 8007b10: 4313 orrs r3, r2 - 8007b12: 62cb str r3, [r1, #44] ; 0x2c + 8007d6e: 4b1f ldr r3, [pc, #124] ; (8007dec ) + 8007d70: 6adb ldr r3, [r3, #44] ; 0x2c + 8007d72: f423 4270 bic.w r2, r3, #61440 ; 0xf000 + 8007d76: 687b ldr r3, [r7, #4] + 8007d78: 695b ldr r3, [r3, #20] + 8007d7a: 491c ldr r1, [pc, #112] ; (8007dec ) + 8007d7c: 4313 orrs r3, r2 + 8007d7e: 62cb str r3, [r1, #44] ; 0x2c /* Enable the main PLLI2S. */ __HAL_RCC_PLLI2S_ENABLE(); - 8007b14: 4b1d ldr r3, [pc, #116] ; (8007b8c ) - 8007b16: 2201 movs r2, #1 - 8007b18: 601a str r2, [r3, #0] + 8007d80: 4b1d ldr r3, [pc, #116] ; (8007df8 ) + 8007d82: 2201 movs r2, #1 + 8007d84: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8007b1a: f7fd f9eb bl 8004ef4 - 8007b1e: 6178 str r0, [r7, #20] + 8007d86: f7fd f9eb bl 8005160 + 8007d8a: 6178 str r0, [r7, #20] /* Wait till PLLI2S is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8007b20: e008 b.n 8007b34 + 8007d8c: e008 b.n 8007da0 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8007b22: f7fd f9e7 bl 8004ef4 - 8007b26: 4602 mov r2, r0 - 8007b28: 697b ldr r3, [r7, #20] - 8007b2a: 1ad3 subs r3, r2, r3 - 8007b2c: 2b64 cmp r3, #100 ; 0x64 - 8007b2e: d901 bls.n 8007b34 + 8007d8e: f7fd f9e7 bl 8005160 + 8007d92: 4602 mov r2, r0 + 8007d94: 697b ldr r3, [r7, #20] + 8007d96: 1ad3 subs r3, r2, r3 + 8007d98: 2b64 cmp r3, #100 ; 0x64 + 8007d9a: d901 bls.n 8007da0 { return HAL_TIMEOUT; - 8007b30: 2303 movs r3, #3 - 8007b32: e020 b.n 8007b76 + 8007d9c: 2303 movs r3, #3 + 8007d9e: e020 b.n 8007de2 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8007b34: 4b12 ldr r3, [pc, #72] ; (8007b80 ) - 8007b36: 681b ldr r3, [r3, #0] - 8007b38: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8007b3c: 2b00 cmp r3, #0 - 8007b3e: d0f0 beq.n 8007b22 - 8007b40: e009 b.n 8007b56 + 8007da0: 4b12 ldr r3, [pc, #72] ; (8007dec ) + 8007da2: 681b ldr r3, [r3, #0] + 8007da4: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 + 8007da8: 2b00 cmp r3, #0 + 8007daa: d0f0 beq.n 8007d8e + 8007dac: e009 b.n 8007dc2 } } else { /* Return an error only if user wants to change the PLLI2SMUL whereas PLLI2S is active */ if (READ_BIT(RCC->CFGR2, RCC_CFGR2_PLL3MUL) != PeriphClkInit->PLLI2S.PLLI2SMUL) - 8007b42: 4b0f ldr r3, [pc, #60] ; (8007b80 ) - 8007b44: 6adb ldr r3, [r3, #44] ; 0x2c - 8007b46: f403 4270 and.w r2, r3, #61440 ; 0xf000 - 8007b4a: 687b ldr r3, [r7, #4] - 8007b4c: 695b ldr r3, [r3, #20] - 8007b4e: 429a cmp r2, r3 - 8007b50: d001 beq.n 8007b56 + 8007dae: 4b0f ldr r3, [pc, #60] ; (8007dec ) + 8007db0: 6adb ldr r3, [r3, #44] ; 0x2c + 8007db2: f403 4270 and.w r2, r3, #61440 ; 0xf000 + 8007db6: 687b ldr r3, [r7, #4] + 8007db8: 695b ldr r3, [r3, #20] + 8007dba: 429a cmp r2, r3 + 8007dbc: d001 beq.n 8007dc2 { return HAL_ERROR; - 8007b52: 2301 movs r3, #1 - 8007b54: e00f b.n 8007b76 + 8007dbe: 2301 movs r3, #1 + 8007dc0: e00f b.n 8007de2 #if defined(STM32F102x6) || defined(STM32F102xB) || defined(STM32F103x6)\ || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ USB clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) - 8007b56: 687b ldr r3, [r7, #4] - 8007b58: 681b ldr r3, [r3, #0] - 8007b5a: f003 0310 and.w r3, r3, #16 - 8007b5e: 2b00 cmp r3, #0 - 8007b60: d008 beq.n 8007b74 + 8007dc2: 687b ldr r3, [r7, #4] + 8007dc4: 681b ldr r3, [r3, #0] + 8007dc6: f003 0310 and.w r3, r3, #16 + 8007dca: 2b00 cmp r3, #0 + 8007dcc: d008 beq.n 8007de0 { /* Check the parameters */ assert_param(IS_RCC_USBPLLCLK_DIV(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - 8007b62: 4b07 ldr r3, [pc, #28] ; (8007b80 ) - 8007b64: 685b ldr r3, [r3, #4] - 8007b66: f423 0280 bic.w r2, r3, #4194304 ; 0x400000 - 8007b6a: 687b ldr r3, [r7, #4] - 8007b6c: 69db ldr r3, [r3, #28] - 8007b6e: 4904 ldr r1, [pc, #16] ; (8007b80 ) - 8007b70: 4313 orrs r3, r2 - 8007b72: 604b str r3, [r1, #4] + 8007dce: 4b07 ldr r3, [pc, #28] ; (8007dec ) + 8007dd0: 685b ldr r3, [r3, #4] + 8007dd2: f423 0280 bic.w r2, r3, #4194304 ; 0x400000 + 8007dd6: 687b ldr r3, [r7, #4] + 8007dd8: 69db ldr r3, [r3, #28] + 8007dda: 4904 ldr r1, [pc, #16] ; (8007dec ) + 8007ddc: 4313 orrs r3, r2 + 8007dde: 604b str r3, [r1, #4] } #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ return HAL_OK; - 8007b74: 2300 movs r3, #0 + 8007de0: 2300 movs r3, #0 } - 8007b76: 4618 mov r0, r3 - 8007b78: 3720 adds r7, #32 - 8007b7a: 46bd mov sp, r7 - 8007b7c: bd80 pop {r7, pc} - 8007b7e: bf00 nop - 8007b80: 40021000 .word 0x40021000 - 8007b84: 40007000 .word 0x40007000 - 8007b88: 42420440 .word 0x42420440 - 8007b8c: 42420070 .word 0x42420070 + 8007de2: 4618 mov r0, r3 + 8007de4: 3720 adds r7, #32 + 8007de6: 46bd mov sp, r7 + 8007de8: bd80 pop {r7, pc} + 8007dea: bf00 nop + 8007dec: 40021000 .word 0x40021000 + 8007df0: 40007000 .word 0x40007000 + 8007df4: 42420440 .word 0x42420440 + 8007df8: 42420070 .word 0x42420070 -08007b90 : +08007dfc : * @arg @ref RCC_PERIPHCLK_USB USB peripheral clock @endif * @retval Frequency in Hz (0: means that no available frequency for the peripheral) */ uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) { - 8007b90: b590 push {r4, r7, lr} - 8007b92: b093 sub sp, #76 ; 0x4c - 8007b94: af00 add r7, sp, #0 - 8007b96: 6078 str r0, [r7, #4] + 8007dfc: b590 push {r4, r7, lr} + 8007dfe: b093 sub sp, #76 ; 0x4c + 8007e00: af00 add r7, sp, #0 + 8007e02: 6078 str r0, [r7, #4] #if defined(STM32F105xC) || defined(STM32F107xC) const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13}; - 8007b98: 4ba7 ldr r3, [pc, #668] ; (8007e38 ) - 8007b9a: f107 0418 add.w r4, r7, #24 - 8007b9e: cb0f ldmia r3, {r0, r1, r2, r3} - 8007ba0: c407 stmia r4!, {r0, r1, r2} - 8007ba2: 8023 strh r3, [r4, #0] + 8007e04: 4ba7 ldr r3, [pc, #668] ; (80080a4 ) + 8007e06: f107 0418 add.w r4, r7, #24 + 8007e0a: cb0f ldmia r3, {r0, r1, r2, r3} + 8007e0c: c407 stmia r4!, {r0, r1, r2} + 8007e0e: 8023 strh r3, [r4, #0] const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; - 8007ba4: 4ba5 ldr r3, [pc, #660] ; (8007e3c ) - 8007ba6: f107 0408 add.w r4, r7, #8 - 8007baa: cb0f ldmia r3, {r0, r1, r2, r3} - 8007bac: e884 000f stmia.w r4, {r0, r1, r2, r3} + 8007e10: 4ba5 ldr r3, [pc, #660] ; (80080a8 ) + 8007e12: f107 0408 add.w r4, r7, #8 + 8007e16: cb0f ldmia r3, {r0, r1, r2, r3} + 8007e18: e884 000f stmia.w r4, {r0, r1, r2, r3} uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U; - 8007bb0: 2300 movs r3, #0 - 8007bb2: 63fb str r3, [r7, #60] ; 0x3c - 8007bb4: 2300 movs r3, #0 - 8007bb6: 647b str r3, [r7, #68] ; 0x44 - 8007bb8: 2300 movs r3, #0 - 8007bba: 63bb str r3, [r7, #56] ; 0x38 + 8007e1c: 2300 movs r3, #0 + 8007e1e: 63fb str r3, [r7, #60] ; 0x3c + 8007e20: 2300 movs r3, #0 + 8007e22: 647b str r3, [r7, #68] ; 0x44 + 8007e24: 2300 movs r3, #0 + 8007e26: 63bb str r3, [r7, #56] ; 0x38 uint32_t pll2mul = 0U, pll3mul = 0U, prediv2 = 0U; - 8007bbc: 2300 movs r3, #0 - 8007bbe: 637b str r3, [r7, #52] ; 0x34 - 8007bc0: 2300 movs r3, #0 - 8007bc2: 633b str r3, [r7, #48] ; 0x30 - 8007bc4: 2300 movs r3, #0 - 8007bc6: 62fb str r3, [r7, #44] ; 0x2c + 8007e28: 2300 movs r3, #0 + 8007e2a: 637b str r3, [r7, #52] ; 0x34 + 8007e2c: 2300 movs r3, #0 + 8007e2e: 633b str r3, [r7, #48] ; 0x30 + 8007e30: 2300 movs r3, #0 + 8007e32: 62fb str r3, [r7, #44] ; 0x2c const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16}; const uint8_t aPredivFactorTable[2] = {1, 2}; uint32_t prediv1 = 0U, pllclk = 0U, pllmul = 0U; #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG */ uint32_t temp_reg = 0U, frequency = 0U; - 8007bc8: 2300 movs r3, #0 - 8007bca: 62bb str r3, [r7, #40] ; 0x28 - 8007bcc: 2300 movs r3, #0 - 8007bce: 643b str r3, [r7, #64] ; 0x40 + 8007e34: 2300 movs r3, #0 + 8007e36: 62bb str r3, [r7, #40] ; 0x28 + 8007e38: 2300 movs r3, #0 + 8007e3a: 643b str r3, [r7, #64] ; 0x40 /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClk)); switch (PeriphClk) - 8007bd0: 687b ldr r3, [r7, #4] - 8007bd2: 3b01 subs r3, #1 - 8007bd4: 2b0f cmp r3, #15 - 8007bd6: f200 8121 bhi.w 8007e1c - 8007bda: a201 add r2, pc, #4 ; (adr r2, 8007be0 ) - 8007bdc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8007be0: 08007d9d .word 0x08007d9d - 8007be4: 08007e01 .word 0x08007e01 - 8007be8: 08007e1d .word 0x08007e1d - 8007bec: 08007cfb .word 0x08007cfb - 8007bf0: 08007e1d .word 0x08007e1d - 8007bf4: 08007e1d .word 0x08007e1d - 8007bf8: 08007e1d .word 0x08007e1d - 8007bfc: 08007d4d .word 0x08007d4d - 8007c00: 08007e1d .word 0x08007e1d - 8007c04: 08007e1d .word 0x08007e1d - 8007c08: 08007e1d .word 0x08007e1d - 8007c0c: 08007e1d .word 0x08007e1d - 8007c10: 08007e1d .word 0x08007e1d - 8007c14: 08007e1d .word 0x08007e1d - 8007c18: 08007e1d .word 0x08007e1d - 8007c1c: 08007c21 .word 0x08007c21 + 8007e3c: 687b ldr r3, [r7, #4] + 8007e3e: 3b01 subs r3, #1 + 8007e40: 2b0f cmp r3, #15 + 8007e42: f200 8121 bhi.w 8008088 + 8007e46: a201 add r2, pc, #4 ; (adr r2, 8007e4c ) + 8007e48: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8007e4c: 08008009 .word 0x08008009 + 8007e50: 0800806d .word 0x0800806d + 8007e54: 08008089 .word 0x08008089 + 8007e58: 08007f67 .word 0x08007f67 + 8007e5c: 08008089 .word 0x08008089 + 8007e60: 08008089 .word 0x08008089 + 8007e64: 08008089 .word 0x08008089 + 8007e68: 08007fb9 .word 0x08007fb9 + 8007e6c: 08008089 .word 0x08008089 + 8007e70: 08008089 .word 0x08008089 + 8007e74: 08008089 .word 0x08008089 + 8007e78: 08008089 .word 0x08008089 + 8007e7c: 08008089 .word 0x08008089 + 8007e80: 08008089 .word 0x08008089 + 8007e84: 08008089 .word 0x08008089 + 8007e88: 08007e8d .word 0x08007e8d || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) case RCC_PERIPHCLK_USB: { /* Get RCC configuration ------------------------------------------------------*/ temp_reg = RCC->CFGR; - 8007c20: 4b87 ldr r3, [pc, #540] ; (8007e40 ) - 8007c22: 685b ldr r3, [r3, #4] - 8007c24: 62bb str r3, [r7, #40] ; 0x28 + 8007e8c: 4b87 ldr r3, [pc, #540] ; (80080ac ) + 8007e8e: 685b ldr r3, [r3, #4] + 8007e90: 62bb str r3, [r7, #40] ; 0x28 /* Check if PLL is enabled */ if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLLON)) - 8007c26: 4b86 ldr r3, [pc, #536] ; (8007e40 ) - 8007c28: 681b ldr r3, [r3, #0] - 8007c2a: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8007c2e: 2b00 cmp r3, #0 - 8007c30: f000 80f6 beq.w 8007e20 + 8007e92: 4b86 ldr r3, [pc, #536] ; (80080ac ) + 8007e94: 681b ldr r3, [r3, #0] + 8007e96: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 + 8007e9a: 2b00 cmp r3, #0 + 8007e9c: f000 80f6 beq.w 800808c { pllmul = aPLLMULFactorTable[(uint32_t)(temp_reg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; - 8007c34: 6abb ldr r3, [r7, #40] ; 0x28 - 8007c36: 0c9b lsrs r3, r3, #18 - 8007c38: f003 030f and.w r3, r3, #15 - 8007c3c: 3348 adds r3, #72 ; 0x48 - 8007c3e: 443b add r3, r7 - 8007c40: f813 3c30 ldrb.w r3, [r3, #-48] - 8007c44: 63bb str r3, [r7, #56] ; 0x38 + 8007ea0: 6abb ldr r3, [r7, #40] ; 0x28 + 8007ea2: 0c9b lsrs r3, r3, #18 + 8007ea4: f003 030f and.w r3, r3, #15 + 8007ea8: 3348 adds r3, #72 ; 0x48 + 8007eaa: 443b add r3, r7 + 8007eac: f813 3c30 ldrb.w r3, [r3, #-48] + 8007eb0: 63bb str r3, [r7, #56] ; 0x38 if ((temp_reg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) - 8007c46: 6abb ldr r3, [r7, #40] ; 0x28 - 8007c48: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8007c4c: 2b00 cmp r3, #0 - 8007c4e: d03d beq.n 8007ccc + 8007eb2: 6abb ldr r3, [r7, #40] ; 0x28 + 8007eb4: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8007eb8: 2b00 cmp r3, #0 + 8007eba: d03d beq.n 8007f38 { #if defined(STM32F105xC) || defined(STM32F107xC) || defined(STM32F100xB)\ || defined(STM32F100xE) prediv1 = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; - 8007c50: 4b7b ldr r3, [pc, #492] ; (8007e40 ) - 8007c52: 6adb ldr r3, [r3, #44] ; 0x2c - 8007c54: f003 030f and.w r3, r3, #15 - 8007c58: 3348 adds r3, #72 ; 0x48 - 8007c5a: 443b add r3, r7 - 8007c5c: f813 3c40 ldrb.w r3, [r3, #-64] - 8007c60: 63fb str r3, [r7, #60] ; 0x3c + 8007ebc: 4b7b ldr r3, [pc, #492] ; (80080ac ) + 8007ebe: 6adb ldr r3, [r3, #44] ; 0x2c + 8007ec0: f003 030f and.w r3, r3, #15 + 8007ec4: 3348 adds r3, #72 ; 0x48 + 8007ec6: 443b add r3, r7 + 8007ec8: f813 3c40 ldrb.w r3, [r3, #-64] + 8007ecc: 63fb str r3, [r7, #60] ; 0x3c #else prediv1 = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; #endif /* STM32F105xC || STM32F107xC || STM32F100xB || STM32F100xE */ #if defined(STM32F105xC) || defined(STM32F107xC) if (HAL_IS_BIT_SET(RCC->CFGR2, RCC_CFGR2_PREDIV1SRC)) - 8007c62: 4b77 ldr r3, [pc, #476] ; (8007e40 ) - 8007c64: 6adb ldr r3, [r3, #44] ; 0x2c - 8007c66: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8007c6a: 2b00 cmp r3, #0 - 8007c6c: d01c beq.n 8007ca8 + 8007ece: 4b77 ldr r3, [pc, #476] ; (80080ac ) + 8007ed0: 6adb ldr r3, [r3, #44] ; 0x2c + 8007ed2: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8007ed6: 2b00 cmp r3, #0 + 8007ed8: d01c beq.n 8007f14 { /* PLL2 selected as Prediv1 source */ /* PLLCLK = PLL2CLK / PREDIV1 * PLLMUL with PLL2CLK = HSE/PREDIV2 * PLL2MUL */ prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; - 8007c6e: 4b74 ldr r3, [pc, #464] ; (8007e40 ) - 8007c70: 6adb ldr r3, [r3, #44] ; 0x2c - 8007c72: 091b lsrs r3, r3, #4 - 8007c74: f003 030f and.w r3, r3, #15 - 8007c78: 3301 adds r3, #1 - 8007c7a: 62fb str r3, [r7, #44] ; 0x2c + 8007eda: 4b74 ldr r3, [pc, #464] ; (80080ac ) + 8007edc: 6adb ldr r3, [r3, #44] ; 0x2c + 8007ede: 091b lsrs r3, r3, #4 + 8007ee0: f003 030f and.w r3, r3, #15 + 8007ee4: 3301 adds r3, #1 + 8007ee6: 62fb str r3, [r7, #44] ; 0x2c pll2mul = ((RCC->CFGR2 & RCC_CFGR2_PLL2MUL) >> RCC_CFGR2_PLL2MUL_Pos) + 2; - 8007c7c: 4b70 ldr r3, [pc, #448] ; (8007e40 ) - 8007c7e: 6adb ldr r3, [r3, #44] ; 0x2c - 8007c80: 0a1b lsrs r3, r3, #8 - 8007c82: f003 030f and.w r3, r3, #15 - 8007c86: 3302 adds r3, #2 - 8007c88: 637b str r3, [r7, #52] ; 0x34 + 8007ee8: 4b70 ldr r3, [pc, #448] ; (80080ac ) + 8007eea: 6adb ldr r3, [r3, #44] ; 0x2c + 8007eec: 0a1b lsrs r3, r3, #8 + 8007eee: f003 030f and.w r3, r3, #15 + 8007ef2: 3302 adds r3, #2 + 8007ef4: 637b str r3, [r7, #52] ; 0x34 pllclk = (uint32_t)((((HSE_VALUE / prediv2) * pll2mul) / prediv1) * pllmul); - 8007c8a: 4a6e ldr r2, [pc, #440] ; (8007e44 ) - 8007c8c: 6afb ldr r3, [r7, #44] ; 0x2c - 8007c8e: fbb2 f3f3 udiv r3, r2, r3 - 8007c92: 6b7a ldr r2, [r7, #52] ; 0x34 - 8007c94: fb03 f202 mul.w r2, r3, r2 - 8007c98: 6bfb ldr r3, [r7, #60] ; 0x3c - 8007c9a: fbb2 f2f3 udiv r2, r2, r3 - 8007c9e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8007ca0: fb02 f303 mul.w r3, r2, r3 - 8007ca4: 647b str r3, [r7, #68] ; 0x44 - 8007ca6: e007 b.n 8007cb8 + 8007ef6: 4a6e ldr r2, [pc, #440] ; (80080b0 ) + 8007ef8: 6afb ldr r3, [r7, #44] ; 0x2c + 8007efa: fbb2 f3f3 udiv r3, r2, r3 + 8007efe: 6b7a ldr r2, [r7, #52] ; 0x34 + 8007f00: fb03 f202 mul.w r2, r3, r2 + 8007f04: 6bfb ldr r3, [r7, #60] ; 0x3c + 8007f06: fbb2 f2f3 udiv r2, r2, r3 + 8007f0a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8007f0c: fb02 f303 mul.w r3, r2, r3 + 8007f10: 647b str r3, [r7, #68] ; 0x44 + 8007f12: e007 b.n 8007f24 } else { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE / prediv1) * pllmul); - 8007ca8: 4a66 ldr r2, [pc, #408] ; (8007e44 ) - 8007caa: 6bfb ldr r3, [r7, #60] ; 0x3c - 8007cac: fbb2 f2f3 udiv r2, r2, r3 - 8007cb0: 6bbb ldr r3, [r7, #56] ; 0x38 - 8007cb2: fb02 f303 mul.w r3, r2, r3 - 8007cb6: 647b str r3, [r7, #68] ; 0x44 + 8007f14: 4a66 ldr r2, [pc, #408] ; (80080b0 ) + 8007f16: 6bfb ldr r3, [r7, #60] ; 0x3c + 8007f18: fbb2 f2f3 udiv r2, r2, r3 + 8007f1c: 6bbb ldr r3, [r7, #56] ; 0x38 + 8007f1e: fb02 f303 mul.w r3, r2, r3 + 8007f22: 647b str r3, [r7, #68] ; 0x44 } /* If PLLMUL was set to 13 means that it was to cover the case PLLMUL 6.5 (avoid using float) */ /* In this case need to divide pllclk by 2 */ if (pllmul == aPLLMULFactorTable[(uint32_t)(RCC_CFGR_PLLMULL6_5) >> RCC_CFGR_PLLMULL_Pos]) - 8007cb8: f897 3025 ldrb.w r3, [r7, #37] ; 0x25 - 8007cbc: 461a mov r2, r3 - 8007cbe: 6bbb ldr r3, [r7, #56] ; 0x38 - 8007cc0: 4293 cmp r3, r2 - 8007cc2: d108 bne.n 8007cd6 + 8007f24: f897 3025 ldrb.w r3, [r7, #37] ; 0x25 + 8007f28: 461a mov r2, r3 + 8007f2a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8007f2c: 4293 cmp r3, r2 + 8007f2e: d108 bne.n 8007f42 { pllclk = pllclk / 2; - 8007cc4: 6c7b ldr r3, [r7, #68] ; 0x44 - 8007cc6: 085b lsrs r3, r3, #1 - 8007cc8: 647b str r3, [r7, #68] ; 0x44 - 8007cca: e004 b.n 8007cd6 + 8007f30: 6c7b ldr r3, [r7, #68] ; 0x44 + 8007f32: 085b lsrs r3, r3, #1 + 8007f34: 647b str r3, [r7, #68] ; 0x44 + 8007f36: e004 b.n 8007f42 #endif /* STM32F105xC || STM32F107xC */ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); - 8007ccc: 6bbb ldr r3, [r7, #56] ; 0x38 - 8007cce: 4a5e ldr r2, [pc, #376] ; (8007e48 ) - 8007cd0: fb02 f303 mul.w r3, r2, r3 - 8007cd4: 647b str r3, [r7, #68] ; 0x44 + 8007f38: 6bbb ldr r3, [r7, #56] ; 0x38 + 8007f3a: 4a5e ldr r2, [pc, #376] ; (80080b4 ) + 8007f3c: fb02 f303 mul.w r3, r2, r3 + 8007f40: 647b str r3, [r7, #68] ; 0x44 } /* Calcul of the USB frequency*/ #if defined(STM32F105xC) || defined(STM32F107xC) /* USBCLK = PLLVCO = (2 x PLLCLK) / USB prescaler */ if (__HAL_RCC_GET_USB_SOURCE() == RCC_USBCLKSOURCE_PLL_DIV2) - 8007cd6: 4b5a ldr r3, [pc, #360] ; (8007e40 ) - 8007cd8: 685b ldr r3, [r3, #4] - 8007cda: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8007cde: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 8007ce2: d102 bne.n 8007cea + 8007f42: 4b5a ldr r3, [pc, #360] ; (80080ac ) + 8007f44: 685b ldr r3, [r3, #4] + 8007f46: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8007f4a: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 + 8007f4e: d102 bne.n 8007f56 { /* Prescaler of 2 selected for USB */ frequency = pllclk; - 8007ce4: 6c7b ldr r3, [r7, #68] ; 0x44 - 8007ce6: 643b str r3, [r7, #64] ; 0x40 + 8007f50: 6c7b ldr r3, [r7, #68] ; 0x44 + 8007f52: 643b str r3, [r7, #64] ; 0x40 /* Prescaler of 1.5 selected for USB */ frequency = (pllclk * 2) / 3; } #endif } break; - 8007ce8: e09a b.n 8007e20 + 8007f54: e09a b.n 800808c frequency = (2 * pllclk) / 3; - 8007cea: 6c7b ldr r3, [r7, #68] ; 0x44 - 8007cec: 005b lsls r3, r3, #1 - 8007cee: 4a57 ldr r2, [pc, #348] ; (8007e4c ) - 8007cf0: fba2 2303 umull r2, r3, r2, r3 - 8007cf4: 085b lsrs r3, r3, #1 - 8007cf6: 643b str r3, [r7, #64] ; 0x40 + 8007f56: 6c7b ldr r3, [r7, #68] ; 0x44 + 8007f58: 005b lsls r3, r3, #1 + 8007f5a: 4a57 ldr r2, [pc, #348] ; (80080b8 ) + 8007f5c: fba2 2303 umull r2, r3, r2, r3 + 8007f60: 085b lsrs r3, r3, #1 + 8007f62: 643b str r3, [r7, #64] ; 0x40 break; - 8007cf8: e092 b.n 8007e20 + 8007f64: e092 b.n 800808c { #if defined(STM32F103xE) || defined(STM32F103xG) /* SYSCLK used as source clock for I2S2 */ frequency = HAL_RCC_GetSysClockFreq(); #else if (__HAL_RCC_GET_I2S2_SOURCE() == RCC_I2S2CLKSOURCE_SYSCLK) - 8007cfa: 4b51 ldr r3, [pc, #324] ; (8007e40 ) - 8007cfc: 6adb ldr r3, [r3, #44] ; 0x2c - 8007cfe: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8007d02: 2b00 cmp r3, #0 - 8007d04: d103 bne.n 8007d0e + 8007f66: 4b51 ldr r3, [pc, #324] ; (80080ac ) + 8007f68: 6adb ldr r3, [r3, #44] ; 0x2c + 8007f6a: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8007f6e: 2b00 cmp r3, #0 + 8007f70: d103 bne.n 8007f7a { /* SYSCLK used as source clock for I2S2 */ frequency = HAL_RCC_GetSysClockFreq(); - 8007d06: f7ff fce3 bl 80076d0 - 8007d0a: 6438 str r0, [r7, #64] ; 0x40 + 8007f72: f7ff fce3 bl 800793c + 8007f76: 6438 str r0, [r7, #64] ; 0x40 pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); } } #endif /* STM32F103xE || STM32F103xG */ break; - 8007d0c: e08a b.n 8007e24 + 8007f78: e08a b.n 8008090 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) - 8007d0e: 4b4c ldr r3, [pc, #304] ; (8007e40 ) - 8007d10: 681b ldr r3, [r3, #0] - 8007d12: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007d16: 2b00 cmp r3, #0 - 8007d18: f000 8084 beq.w 8007e24 + 8007f7a: 4b4c ldr r3, [pc, #304] ; (80080ac ) + 8007f7c: 681b ldr r3, [r3, #0] + 8007f7e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007f82: 2b00 cmp r3, #0 + 8007f84: f000 8084 beq.w 8008090 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; - 8007d1c: 4b48 ldr r3, [pc, #288] ; (8007e40 ) - 8007d1e: 6adb ldr r3, [r3, #44] ; 0x2c - 8007d20: 091b lsrs r3, r3, #4 - 8007d22: f003 030f and.w r3, r3, #15 - 8007d26: 3301 adds r3, #1 - 8007d28: 62fb str r3, [r7, #44] ; 0x2c + 8007f88: 4b48 ldr r3, [pc, #288] ; (80080ac ) + 8007f8a: 6adb ldr r3, [r3, #44] ; 0x2c + 8007f8c: 091b lsrs r3, r3, #4 + 8007f8e: f003 030f and.w r3, r3, #15 + 8007f92: 3301 adds r3, #1 + 8007f94: 62fb str r3, [r7, #44] ; 0x2c pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; - 8007d2a: 4b45 ldr r3, [pc, #276] ; (8007e40 ) - 8007d2c: 6adb ldr r3, [r3, #44] ; 0x2c - 8007d2e: 0b1b lsrs r3, r3, #12 - 8007d30: f003 030f and.w r3, r3, #15 - 8007d34: 3302 adds r3, #2 - 8007d36: 633b str r3, [r7, #48] ; 0x30 + 8007f96: 4b45 ldr r3, [pc, #276] ; (80080ac ) + 8007f98: 6adb ldr r3, [r3, #44] ; 0x2c + 8007f9a: 0b1b lsrs r3, r3, #12 + 8007f9c: f003 030f and.w r3, r3, #15 + 8007fa0: 3302 adds r3, #2 + 8007fa2: 633b str r3, [r7, #48] ; 0x30 frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); - 8007d38: 4a42 ldr r2, [pc, #264] ; (8007e44 ) - 8007d3a: 6afb ldr r3, [r7, #44] ; 0x2c - 8007d3c: fbb2 f3f3 udiv r3, r2, r3 - 8007d40: 6b3a ldr r2, [r7, #48] ; 0x30 - 8007d42: fb02 f303 mul.w r3, r2, r3 - 8007d46: 005b lsls r3, r3, #1 - 8007d48: 643b str r3, [r7, #64] ; 0x40 + 8007fa4: 4a42 ldr r2, [pc, #264] ; (80080b0 ) + 8007fa6: 6afb ldr r3, [r7, #44] ; 0x2c + 8007fa8: fbb2 f3f3 udiv r3, r2, r3 + 8007fac: 6b3a ldr r2, [r7, #48] ; 0x30 + 8007fae: fb02 f303 mul.w r3, r2, r3 + 8007fb2: 005b lsls r3, r3, #1 + 8007fb4: 643b str r3, [r7, #64] ; 0x40 break; - 8007d4a: e06b b.n 8007e24 + 8007fb6: e06b b.n 8008090 { #if defined(STM32F103xE) || defined(STM32F103xG) /* SYSCLK used as source clock for I2S3 */ frequency = HAL_RCC_GetSysClockFreq(); #else if (__HAL_RCC_GET_I2S3_SOURCE() == RCC_I2S3CLKSOURCE_SYSCLK) - 8007d4c: 4b3c ldr r3, [pc, #240] ; (8007e40 ) - 8007d4e: 6adb ldr r3, [r3, #44] ; 0x2c - 8007d50: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 8007d54: 2b00 cmp r3, #0 - 8007d56: d103 bne.n 8007d60 + 8007fb8: 4b3c ldr r3, [pc, #240] ; (80080ac ) + 8007fba: 6adb ldr r3, [r3, #44] ; 0x2c + 8007fbc: f403 2380 and.w r3, r3, #262144 ; 0x40000 + 8007fc0: 2b00 cmp r3, #0 + 8007fc2: d103 bne.n 8007fcc { /* SYSCLK used as source clock for I2S3 */ frequency = HAL_RCC_GetSysClockFreq(); - 8007d58: f7ff fcba bl 80076d0 - 8007d5c: 6438 str r0, [r7, #64] ; 0x40 + 8007fc4: f7ff fcba bl 800793c + 8007fc8: 6438 str r0, [r7, #64] ; 0x40 pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); } } #endif /* STM32F103xE || STM32F103xG */ break; - 8007d5e: e063 b.n 8007e28 + 8007fca: e063 b.n 8008094 if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3ON)) - 8007d60: 4b37 ldr r3, [pc, #220] ; (8007e40 ) - 8007d62: 681b ldr r3, [r3, #0] - 8007d64: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007d68: 2b00 cmp r3, #0 - 8007d6a: d05d beq.n 8007e28 + 8007fcc: 4b37 ldr r3, [pc, #220] ; (80080ac ) + 8007fce: 681b ldr r3, [r3, #0] + 8007fd0: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007fd4: 2b00 cmp r3, #0 + 8007fd6: d05d beq.n 8008094 prediv2 = ((RCC->CFGR2 & RCC_CFGR2_PREDIV2) >> RCC_CFGR2_PREDIV2_Pos) + 1; - 8007d6c: 4b34 ldr r3, [pc, #208] ; (8007e40 ) - 8007d6e: 6adb ldr r3, [r3, #44] ; 0x2c - 8007d70: 091b lsrs r3, r3, #4 - 8007d72: f003 030f and.w r3, r3, #15 - 8007d76: 3301 adds r3, #1 - 8007d78: 62fb str r3, [r7, #44] ; 0x2c + 8007fd8: 4b34 ldr r3, [pc, #208] ; (80080ac ) + 8007fda: 6adb ldr r3, [r3, #44] ; 0x2c + 8007fdc: 091b lsrs r3, r3, #4 + 8007fde: f003 030f and.w r3, r3, #15 + 8007fe2: 3301 adds r3, #1 + 8007fe4: 62fb str r3, [r7, #44] ; 0x2c pll3mul = ((RCC->CFGR2 & RCC_CFGR2_PLL3MUL) >> RCC_CFGR2_PLL3MUL_Pos) + 2; - 8007d7a: 4b31 ldr r3, [pc, #196] ; (8007e40 ) - 8007d7c: 6adb ldr r3, [r3, #44] ; 0x2c - 8007d7e: 0b1b lsrs r3, r3, #12 - 8007d80: f003 030f and.w r3, r3, #15 - 8007d84: 3302 adds r3, #2 - 8007d86: 633b str r3, [r7, #48] ; 0x30 + 8007fe6: 4b31 ldr r3, [pc, #196] ; (80080ac ) + 8007fe8: 6adb ldr r3, [r3, #44] ; 0x2c + 8007fea: 0b1b lsrs r3, r3, #12 + 8007fec: f003 030f and.w r3, r3, #15 + 8007ff0: 3302 adds r3, #2 + 8007ff2: 633b str r3, [r7, #48] ; 0x30 frequency = (uint32_t)(2 * ((HSE_VALUE / prediv2) * pll3mul)); - 8007d88: 4a2e ldr r2, [pc, #184] ; (8007e44 ) - 8007d8a: 6afb ldr r3, [r7, #44] ; 0x2c - 8007d8c: fbb2 f3f3 udiv r3, r2, r3 - 8007d90: 6b3a ldr r2, [r7, #48] ; 0x30 - 8007d92: fb02 f303 mul.w r3, r2, r3 - 8007d96: 005b lsls r3, r3, #1 - 8007d98: 643b str r3, [r7, #64] ; 0x40 + 8007ff4: 4a2e ldr r2, [pc, #184] ; (80080b0 ) + 8007ff6: 6afb ldr r3, [r7, #44] ; 0x2c + 8007ff8: fbb2 f3f3 udiv r3, r2, r3 + 8007ffc: 6b3a ldr r2, [r7, #48] ; 0x30 + 8007ffe: fb02 f303 mul.w r3, r2, r3 + 8008002: 005b lsls r3, r3, #1 + 8008004: 643b str r3, [r7, #64] ; 0x40 break; - 8007d9a: e045 b.n 8007e28 + 8008006: e045 b.n 8008094 } #endif /* STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ case RCC_PERIPHCLK_RTC: { /* Get RCC BDCR configuration ------------------------------------------------------*/ temp_reg = RCC->BDCR; - 8007d9c: 4b28 ldr r3, [pc, #160] ; (8007e40 ) - 8007d9e: 6a1b ldr r3, [r3, #32] - 8007da0: 62bb str r3, [r7, #40] ; 0x28 + 8008008: 4b28 ldr r3, [pc, #160] ; (80080ac ) + 800800a: 6a1b ldr r3, [r3, #32] + 800800c: 62bb str r3, [r7, #40] ; 0x28 /* Check if LSE is ready if RTC clock selection is LSE */ if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSE) && (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSERDY))) - 8007da2: 6abb ldr r3, [r7, #40] ; 0x28 - 8007da4: f403 7340 and.w r3, r3, #768 ; 0x300 - 8007da8: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8007dac: d108 bne.n 8007dc0 - 8007dae: 6abb ldr r3, [r7, #40] ; 0x28 - 8007db0: f003 0302 and.w r3, r3, #2 - 8007db4: 2b00 cmp r3, #0 - 8007db6: d003 beq.n 8007dc0 + 800800e: 6abb ldr r3, [r7, #40] ; 0x28 + 8008010: f403 7340 and.w r3, r3, #768 ; 0x300 + 8008014: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8008018: d108 bne.n 800802c + 800801a: 6abb ldr r3, [r7, #40] ; 0x28 + 800801c: f003 0302 and.w r3, r3, #2 + 8008020: 2b00 cmp r3, #0 + 8008022: d003 beq.n 800802c { frequency = LSE_VALUE; - 8007db8: f44f 4300 mov.w r3, #32768 ; 0x8000 - 8007dbc: 643b str r3, [r7, #64] ; 0x40 - 8007dbe: e01e b.n 8007dfe + 8008024: f44f 4300 mov.w r3, #32768 ; 0x8000 + 8008028: 643b str r3, [r7, #64] ; 0x40 + 800802a: e01e b.n 800806a } /* Check if LSI is ready if RTC clock selection is LSI */ else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_LSI) && (HAL_IS_BIT_SET(RCC->CSR, RCC_CSR_LSIRDY))) - 8007dc0: 6abb ldr r3, [r7, #40] ; 0x28 - 8007dc2: f403 7340 and.w r3, r3, #768 ; 0x300 - 8007dc6: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8007dca: d109 bne.n 8007de0 - 8007dcc: 4b1c ldr r3, [pc, #112] ; (8007e40 ) - 8007dce: 6a5b ldr r3, [r3, #36] ; 0x24 - 8007dd0: f003 0302 and.w r3, r3, #2 - 8007dd4: 2b00 cmp r3, #0 - 8007dd6: d003 beq.n 8007de0 + 800802c: 6abb ldr r3, [r7, #40] ; 0x28 + 800802e: f403 7340 and.w r3, r3, #768 ; 0x300 + 8008032: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8008036: d109 bne.n 800804c + 8008038: 4b1c ldr r3, [pc, #112] ; (80080ac ) + 800803a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800803c: f003 0302 and.w r3, r3, #2 + 8008040: 2b00 cmp r3, #0 + 8008042: d003 beq.n 800804c { frequency = LSI_VALUE; - 8007dd8: f649 4340 movw r3, #40000 ; 0x9c40 - 8007ddc: 643b str r3, [r7, #64] ; 0x40 - 8007dde: e00e b.n 8007dfe + 8008044: f649 4340 movw r3, #40000 ; 0x9c40 + 8008048: 643b str r3, [r7, #64] ; 0x40 + 800804a: e00e b.n 800806a } else if (((temp_reg & RCC_BDCR_RTCSEL) == RCC_RTCCLKSOURCE_HSE_DIV128) && (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))) - 8007de0: 6abb ldr r3, [r7, #40] ; 0x28 - 8007de2: f403 7340 and.w r3, r3, #768 ; 0x300 - 8007de6: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 8007dea: d11f bne.n 8007e2c - 8007dec: 4b14 ldr r3, [pc, #80] ; (8007e40 ) - 8007dee: 681b ldr r3, [r3, #0] - 8007df0: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8007df4: 2b00 cmp r3, #0 - 8007df6: d019 beq.n 8007e2c + 800804c: 6abb ldr r3, [r7, #40] ; 0x28 + 800804e: f403 7340 and.w r3, r3, #768 ; 0x300 + 8008052: f5b3 7f40 cmp.w r3, #768 ; 0x300 + 8008056: d11f bne.n 8008098 + 8008058: 4b14 ldr r3, [pc, #80] ; (80080ac ) + 800805a: 681b ldr r3, [r3, #0] + 800805c: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8008060: 2b00 cmp r3, #0 + 8008062: d019 beq.n 8008098 { frequency = HSE_VALUE / 128U; - 8007df8: 4b15 ldr r3, [pc, #84] ; (8007e50 ) - 8007dfa: 643b str r3, [r7, #64] ; 0x40 + 8008064: 4b15 ldr r3, [pc, #84] ; (80080bc ) + 8008066: 643b str r3, [r7, #64] ; 0x40 /* Clock not enabled for RTC*/ else { /* nothing to do: frequency already initialized to 0U */ } break; - 8007dfc: e016 b.n 8007e2c - 8007dfe: e015 b.n 8007e2c + 8008068: e016 b.n 8008098 + 800806a: e015 b.n 8008098 } case RCC_PERIPHCLK_ADC: { frequency = HAL_RCC_GetPCLK2Freq() / (((__HAL_RCC_GET_ADC_SOURCE() >> RCC_CFGR_ADCPRE_Pos) + 1) * 2); - 8007e00: f7ff fd62 bl 80078c8 - 8007e04: 4602 mov r2, r0 - 8007e06: 4b0e ldr r3, [pc, #56] ; (8007e40 ) - 8007e08: 685b ldr r3, [r3, #4] - 8007e0a: 0b9b lsrs r3, r3, #14 - 8007e0c: f003 0303 and.w r3, r3, #3 - 8007e10: 3301 adds r3, #1 - 8007e12: 005b lsls r3, r3, #1 - 8007e14: fbb2 f3f3 udiv r3, r2, r3 - 8007e18: 643b str r3, [r7, #64] ; 0x40 + 800806c: f7ff fd62 bl 8007b34 + 8008070: 4602 mov r2, r0 + 8008072: 4b0e ldr r3, [pc, #56] ; (80080ac ) + 8008074: 685b ldr r3, [r3, #4] + 8008076: 0b9b lsrs r3, r3, #14 + 8008078: f003 0303 and.w r3, r3, #3 + 800807c: 3301 adds r3, #1 + 800807e: 005b lsls r3, r3, #1 + 8008080: fbb2 f3f3 udiv r3, r2, r3 + 8008084: 643b str r3, [r7, #64] ; 0x40 break; - 8007e1a: e008 b.n 8007e2e + 8008086: e008 b.n 800809a } default: { break; - 8007e1c: bf00 nop - 8007e1e: e006 b.n 8007e2e + 8008088: bf00 nop + 800808a: e006 b.n 800809a break; - 8007e20: bf00 nop - 8007e22: e004 b.n 8007e2e + 800808c: bf00 nop + 800808e: e004 b.n 800809a break; - 8007e24: bf00 nop - 8007e26: e002 b.n 8007e2e + 8008090: bf00 nop + 8008092: e002 b.n 800809a break; - 8007e28: bf00 nop - 8007e2a: e000 b.n 8007e2e + 8008094: bf00 nop + 8008096: e000 b.n 800809a break; - 8007e2c: bf00 nop + 8008098: bf00 nop } } return (frequency); - 8007e2e: 6c3b ldr r3, [r7, #64] ; 0x40 + 800809a: 6c3b ldr r3, [r7, #64] ; 0x40 } - 8007e30: 4618 mov r0, r3 - 8007e32: 374c adds r7, #76 ; 0x4c - 8007e34: 46bd mov sp, r7 - 8007e36: bd90 pop {r4, r7, pc} - 8007e38: 0800cfa8 .word 0x0800cfa8 - 8007e3c: 0800cfb8 .word 0x0800cfb8 - 8007e40: 40021000 .word 0x40021000 - 8007e44: 017d7840 .word 0x017d7840 - 8007e48: 003d0900 .word 0x003d0900 - 8007e4c: aaaaaaab .word 0xaaaaaaab - 8007e50: 0002faf0 .word 0x0002faf0 + 800809c: 4618 mov r0, r3 + 800809e: 374c adds r7, #76 ; 0x4c + 80080a0: 46bd mov sp, r7 + 80080a2: bd90 pop {r4, r7, pc} + 80080a4: 0800d238 .word 0x0800d238 + 80080a8: 0800d248 .word 0x0800d248 + 80080ac: 40021000 .word 0x40021000 + 80080b0: 017d7840 .word 0x017d7840 + 80080b4: 003d0900 .word 0x003d0900 + 80080b8: aaaaaaab .word 0xaaaaaaab + 80080bc: 0002faf0 .word 0x0002faf0 -08007e54 : +080080c0 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc) { - 8007e54: b580 push {r7, lr} - 8007e56: b084 sub sp, #16 - 8007e58: af00 add r7, sp, #0 - 8007e5a: 6078 str r0, [r7, #4] + 80080c0: b580 push {r7, lr} + 80080c2: b084 sub sp, #16 + 80080c4: af00 add r7, sp, #0 + 80080c6: 6078 str r0, [r7, #4] uint32_t prescaler = 0U; - 8007e5c: 2300 movs r3, #0 - 8007e5e: 60fb str r3, [r7, #12] + 80080c8: 2300 movs r3, #0 + 80080ca: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) - 8007e60: 687b ldr r3, [r7, #4] - 8007e62: 2b00 cmp r3, #0 - 8007e64: d101 bne.n 8007e6a + 80080cc: 687b ldr r3, [r7, #4] + 80080ce: 2b00 cmp r3, #0 + 80080d0: d101 bne.n 80080d6 { return HAL_ERROR; - 8007e66: 2301 movs r3, #1 - 8007e68: e084 b.n 8007f74 + 80080d2: 2301 movs r3, #1 + 80080d4: e084 b.n 80081e0 { hrtc->MspDeInitCallback = HAL_RTC_MspDeInit; } } #else if (hrtc->State == HAL_RTC_STATE_RESET) - 8007e6a: 687b ldr r3, [r7, #4] - 8007e6c: 7c5b ldrb r3, [r3, #17] - 8007e6e: b2db uxtb r3, r3 - 8007e70: 2b00 cmp r3, #0 - 8007e72: d105 bne.n 8007e80 + 80080d6: 687b ldr r3, [r7, #4] + 80080d8: 7c5b ldrb r3, [r3, #17] + 80080da: b2db uxtb r3, r3 + 80080dc: 2b00 cmp r3, #0 + 80080de: d105 bne.n 80080ec { /* Allocate lock resource and initialize it */ hrtc->Lock = HAL_UNLOCKED; - 8007e74: 687b ldr r3, [r7, #4] - 8007e76: 2200 movs r2, #0 - 8007e78: 741a strb r2, [r3, #16] + 80080e0: 687b ldr r3, [r7, #4] + 80080e2: 2200 movs r2, #0 + 80080e4: 741a strb r2, [r3, #16] /* Initialize RTC MSP */ HAL_RTC_MspInit(hrtc); - 8007e7a: 6878 ldr r0, [r7, #4] - 8007e7c: f7fc fc38 bl 80046f0 + 80080e6: 6878 ldr r0, [r7, #4] + 80080e8: f7fc fc38 bl 800495c } #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */ /* Set RTC state */ hrtc->State = HAL_RTC_STATE_BUSY; - 8007e80: 687b ldr r3, [r7, #4] - 8007e82: 2202 movs r2, #2 - 8007e84: 745a strb r2, [r3, #17] + 80080ec: 687b ldr r3, [r7, #4] + 80080ee: 2202 movs r2, #2 + 80080f0: 745a strb r2, [r3, #17] /* Waiting for synchro */ if (HAL_RTC_WaitForSynchro(hrtc) != HAL_OK) - 8007e86: 6878 ldr r0, [r7, #4] - 8007e88: f000 f87a bl 8007f80 - 8007e8c: 4603 mov r3, r0 - 8007e8e: 2b00 cmp r3, #0 - 8007e90: d004 beq.n 8007e9c + 80080f2: 6878 ldr r0, [r7, #4] + 80080f4: f000 f87a bl 80081ec + 80080f8: 4603 mov r3, r0 + 80080fa: 2b00 cmp r3, #0 + 80080fc: d004 beq.n 8008108 { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; - 8007e92: 687b ldr r3, [r7, #4] - 8007e94: 2204 movs r2, #4 - 8007e96: 745a strb r2, [r3, #17] + 80080fe: 687b ldr r3, [r7, #4] + 8008100: 2204 movs r2, #4 + 8008102: 745a strb r2, [r3, #17] return HAL_ERROR; - 8007e98: 2301 movs r3, #1 - 8007e9a: e06b b.n 8007f74 + 8008104: 2301 movs r3, #1 + 8008106: e06b b.n 80081e0 } /* Set Initialization mode */ if (RTC_EnterInitMode(hrtc) != HAL_OK) - 8007e9c: 6878 ldr r0, [r7, #4] - 8007e9e: f000 f89c bl 8007fda - 8007ea2: 4603 mov r3, r0 - 8007ea4: 2b00 cmp r3, #0 - 8007ea6: d004 beq.n 8007eb2 + 8008108: 6878 ldr r0, [r7, #4] + 800810a: f000 f89c bl 8008246 + 800810e: 4603 mov r3, r0 + 8008110: 2b00 cmp r3, #0 + 8008112: d004 beq.n 800811e { /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; - 8007ea8: 687b ldr r3, [r7, #4] - 8007eaa: 2204 movs r2, #4 - 8007eac: 745a strb r2, [r3, #17] + 8008114: 687b ldr r3, [r7, #4] + 8008116: 2204 movs r2, #4 + 8008118: 745a strb r2, [r3, #17] return HAL_ERROR; - 8007eae: 2301 movs r3, #1 - 8007eb0: e060 b.n 8007f74 + 800811a: 2301 movs r3, #1 + 800811c: e060 b.n 80081e0 } else { /* Clear Flags Bits */ CLEAR_BIT(hrtc->Instance->CRL, (RTC_FLAG_OW | RTC_FLAG_ALRAF | RTC_FLAG_SEC)); - 8007eb2: 687b ldr r3, [r7, #4] - 8007eb4: 681b ldr r3, [r3, #0] - 8007eb6: 685a ldr r2, [r3, #4] - 8007eb8: 687b ldr r3, [r7, #4] - 8007eba: 681b ldr r3, [r3, #0] - 8007ebc: f022 0207 bic.w r2, r2, #7 - 8007ec0: 605a str r2, [r3, #4] + 800811e: 687b ldr r3, [r7, #4] + 8008120: 681b ldr r3, [r3, #0] + 8008122: 685a ldr r2, [r3, #4] + 8008124: 687b ldr r3, [r7, #4] + 8008126: 681b ldr r3, [r3, #0] + 8008128: f022 0207 bic.w r2, r2, #7 + 800812c: 605a str r2, [r3, #4] if (hrtc->Init.OutPut != RTC_OUTPUTSOURCE_NONE) - 8007ec2: 687b ldr r3, [r7, #4] - 8007ec4: 689b ldr r3, [r3, #8] - 8007ec6: 2b00 cmp r3, #0 - 8007ec8: d005 beq.n 8007ed6 + 800812e: 687b ldr r3, [r7, #4] + 8008130: 689b ldr r3, [r3, #8] + 8008132: 2b00 cmp r3, #0 + 8008134: d005 beq.n 8008142 { /* Disable the selected Tamper pin */ CLEAR_BIT(BKP->CR, BKP_CR_TPE); - 8007eca: 4b2c ldr r3, [pc, #176] ; (8007f7c ) - 8007ecc: 6b1b ldr r3, [r3, #48] ; 0x30 - 8007ece: 4a2b ldr r2, [pc, #172] ; (8007f7c ) - 8007ed0: f023 0301 bic.w r3, r3, #1 - 8007ed4: 6313 str r3, [r2, #48] ; 0x30 + 8008136: 4b2c ldr r3, [pc, #176] ; (80081e8 ) + 8008138: 6b1b ldr r3, [r3, #48] ; 0x30 + 800813a: 4a2b ldr r2, [pc, #172] ; (80081e8 ) + 800813c: f023 0301 bic.w r3, r3, #1 + 8008140: 6313 str r3, [r2, #48] ; 0x30 } /* Set the signal which will be routed to RTC Tamper pin*/ MODIFY_REG(BKP->RTCCR, (BKP_RTCCR_CCO | BKP_RTCCR_ASOE | BKP_RTCCR_ASOS), hrtc->Init.OutPut); - 8007ed6: 4b29 ldr r3, [pc, #164] ; (8007f7c ) - 8007ed8: 6adb ldr r3, [r3, #44] ; 0x2c - 8007eda: f423 7260 bic.w r2, r3, #896 ; 0x380 - 8007ede: 687b ldr r3, [r7, #4] - 8007ee0: 689b ldr r3, [r3, #8] - 8007ee2: 4926 ldr r1, [pc, #152] ; (8007f7c ) - 8007ee4: 4313 orrs r3, r2 - 8007ee6: 62cb str r3, [r1, #44] ; 0x2c + 8008142: 4b29 ldr r3, [pc, #164] ; (80081e8 ) + 8008144: 6adb ldr r3, [r3, #44] ; 0x2c + 8008146: f423 7260 bic.w r2, r3, #896 ; 0x380 + 800814a: 687b ldr r3, [r7, #4] + 800814c: 689b ldr r3, [r3, #8] + 800814e: 4926 ldr r1, [pc, #152] ; (80081e8 ) + 8008150: 4313 orrs r3, r2 + 8008152: 62cb str r3, [r1, #44] ; 0x2c if (hrtc->Init.AsynchPrediv != RTC_AUTO_1_SECOND) - 8007ee8: 687b ldr r3, [r7, #4] - 8007eea: 685b ldr r3, [r3, #4] - 8007eec: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8007ef0: d003 beq.n 8007efa + 8008154: 687b ldr r3, [r7, #4] + 8008156: 685b ldr r3, [r3, #4] + 8008158: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 800815c: d003 beq.n 8008166 { /* RTC Prescaler provided directly by end-user*/ prescaler = hrtc->Init.AsynchPrediv; - 8007ef2: 687b ldr r3, [r7, #4] - 8007ef4: 685b ldr r3, [r3, #4] - 8007ef6: 60fb str r3, [r7, #12] - 8007ef8: e00e b.n 8007f18 + 800815e: 687b ldr r3, [r7, #4] + 8008160: 685b ldr r3, [r3, #4] + 8008162: 60fb str r3, [r7, #12] + 8008164: e00e b.n 8008184 } else { /* RTC Prescaler will be automatically calculated to get 1 second timebase */ /* Get the RTCCLK frequency */ prescaler = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_RTC); - 8007efa: 2001 movs r0, #1 - 8007efc: f7ff fe48 bl 8007b90 - 8007f00: 60f8 str r0, [r7, #12] + 8008166: 2001 movs r0, #1 + 8008168: f7ff fe48 bl 8007dfc + 800816c: 60f8 str r0, [r7, #12] /* Check that RTC clock is enabled*/ if (prescaler == 0U) - 8007f02: 68fb ldr r3, [r7, #12] - 8007f04: 2b00 cmp r3, #0 - 8007f06: d104 bne.n 8007f12 + 800816e: 68fb ldr r3, [r7, #12] + 8008170: 2b00 cmp r3, #0 + 8008172: d104 bne.n 800817e { /* Should not happen. Frequency is not available*/ hrtc->State = HAL_RTC_STATE_ERROR; - 8007f08: 687b ldr r3, [r7, #4] - 8007f0a: 2204 movs r2, #4 - 8007f0c: 745a strb r2, [r3, #17] + 8008174: 687b ldr r3, [r7, #4] + 8008176: 2204 movs r2, #4 + 8008178: 745a strb r2, [r3, #17] return HAL_ERROR; - 8007f0e: 2301 movs r3, #1 - 8007f10: e030 b.n 8007f74 + 800817a: 2301 movs r3, #1 + 800817c: e030 b.n 80081e0 } else { /* RTC period = RTCCLK/(RTC_PR + 1) */ prescaler = prescaler - 1U; - 8007f12: 68fb ldr r3, [r7, #12] - 8007f14: 3b01 subs r3, #1 - 8007f16: 60fb str r3, [r7, #12] + 800817e: 68fb ldr r3, [r7, #12] + 8008180: 3b01 subs r3, #1 + 8008182: 60fb str r3, [r7, #12] } } /* Configure the RTC_PRLH / RTC_PRLL */ MODIFY_REG(hrtc->Instance->PRLH, RTC_PRLH_PRL, (prescaler >> 16U)); - 8007f18: 687b ldr r3, [r7, #4] - 8007f1a: 681b ldr r3, [r3, #0] - 8007f1c: 689b ldr r3, [r3, #8] - 8007f1e: f023 010f bic.w r1, r3, #15 - 8007f22: 68fb ldr r3, [r7, #12] - 8007f24: 0c1a lsrs r2, r3, #16 - 8007f26: 687b ldr r3, [r7, #4] - 8007f28: 681b ldr r3, [r3, #0] - 8007f2a: 430a orrs r2, r1 - 8007f2c: 609a str r2, [r3, #8] + 8008184: 687b ldr r3, [r7, #4] + 8008186: 681b ldr r3, [r3, #0] + 8008188: 689b ldr r3, [r3, #8] + 800818a: f023 010f bic.w r1, r3, #15 + 800818e: 68fb ldr r3, [r7, #12] + 8008190: 0c1a lsrs r2, r3, #16 + 8008192: 687b ldr r3, [r7, #4] + 8008194: 681b ldr r3, [r3, #0] + 8008196: 430a orrs r2, r1 + 8008198: 609a str r2, [r3, #8] MODIFY_REG(hrtc->Instance->PRLL, RTC_PRLL_PRL, (prescaler & RTC_PRLL_PRL)); - 8007f2e: 687b ldr r3, [r7, #4] - 8007f30: 681b ldr r3, [r3, #0] - 8007f32: 68db ldr r3, [r3, #12] - 8007f34: 0c1b lsrs r3, r3, #16 - 8007f36: 041b lsls r3, r3, #16 - 8007f38: 68fa ldr r2, [r7, #12] - 8007f3a: b291 uxth r1, r2 - 8007f3c: 687a ldr r2, [r7, #4] - 8007f3e: 6812 ldr r2, [r2, #0] - 8007f40: 430b orrs r3, r1 - 8007f42: 60d3 str r3, [r2, #12] + 800819a: 687b ldr r3, [r7, #4] + 800819c: 681b ldr r3, [r3, #0] + 800819e: 68db ldr r3, [r3, #12] + 80081a0: 0c1b lsrs r3, r3, #16 + 80081a2: 041b lsls r3, r3, #16 + 80081a4: 68fa ldr r2, [r7, #12] + 80081a6: b291 uxth r1, r2 + 80081a8: 687a ldr r2, [r7, #4] + 80081aa: 6812 ldr r2, [r2, #0] + 80081ac: 430b orrs r3, r1 + 80081ae: 60d3 str r3, [r2, #12] /* Wait for synchro */ if (RTC_ExitInitMode(hrtc) != HAL_OK) - 8007f44: 6878 ldr r0, [r7, #4] - 8007f46: f000 f870 bl 800802a - 8007f4a: 4603 mov r3, r0 - 8007f4c: 2b00 cmp r3, #0 - 8007f4e: d004 beq.n 8007f5a + 80081b0: 6878 ldr r0, [r7, #4] + 80081b2: f000 f870 bl 8008296 + 80081b6: 4603 mov r3, r0 + 80081b8: 2b00 cmp r3, #0 + 80081ba: d004 beq.n 80081c6 { hrtc->State = HAL_RTC_STATE_ERROR; - 8007f50: 687b ldr r3, [r7, #4] - 8007f52: 2204 movs r2, #4 - 8007f54: 745a strb r2, [r3, #17] + 80081bc: 687b ldr r3, [r7, #4] + 80081be: 2204 movs r2, #4 + 80081c0: 745a strb r2, [r3, #17] return HAL_ERROR; - 8007f56: 2301 movs r3, #1 - 8007f58: e00c b.n 8007f74 + 80081c2: 2301 movs r3, #1 + 80081c4: e00c b.n 80081e0 } /* Initialize date to 1st of January 2000 */ hrtc->DateToUpdate.Year = 0x00U; - 8007f5a: 687b ldr r3, [r7, #4] - 8007f5c: 2200 movs r2, #0 - 8007f5e: 73da strb r2, [r3, #15] + 80081c6: 687b ldr r3, [r7, #4] + 80081c8: 2200 movs r2, #0 + 80081ca: 73da strb r2, [r3, #15] hrtc->DateToUpdate.Month = RTC_MONTH_JANUARY; - 8007f60: 687b ldr r3, [r7, #4] - 8007f62: 2201 movs r2, #1 - 8007f64: 735a strb r2, [r3, #13] + 80081cc: 687b ldr r3, [r7, #4] + 80081ce: 2201 movs r2, #1 + 80081d0: 735a strb r2, [r3, #13] hrtc->DateToUpdate.Date = 0x01U; - 8007f66: 687b ldr r3, [r7, #4] - 8007f68: 2201 movs r2, #1 - 8007f6a: 739a strb r2, [r3, #14] + 80081d2: 687b ldr r3, [r7, #4] + 80081d4: 2201 movs r2, #1 + 80081d6: 739a strb r2, [r3, #14] /* Set RTC state */ hrtc->State = HAL_RTC_STATE_READY; - 8007f6c: 687b ldr r3, [r7, #4] - 8007f6e: 2201 movs r2, #1 - 8007f70: 745a strb r2, [r3, #17] + 80081d8: 687b ldr r3, [r7, #4] + 80081da: 2201 movs r2, #1 + 80081dc: 745a strb r2, [r3, #17] return HAL_OK; - 8007f72: 2300 movs r3, #0 + 80081de: 2300 movs r3, #0 } } - 8007f74: 4618 mov r0, r3 - 8007f76: 3710 adds r7, #16 - 8007f78: 46bd mov sp, r7 - 8007f7a: bd80 pop {r7, pc} - 8007f7c: 40006c00 .word 0x40006c00 + 80081e0: 4618 mov r0, r3 + 80081e2: 3710 adds r7, #16 + 80081e4: 46bd mov sp, r7 + 80081e6: bd80 pop {r7, pc} + 80081e8: 40006c00 .word 0x40006c00 -08007f80 : +080081ec : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef *hrtc) { - 8007f80: b580 push {r7, lr} - 8007f82: b084 sub sp, #16 - 8007f84: af00 add r7, sp, #0 - 8007f86: 6078 str r0, [r7, #4] + 80081ec: b580 push {r7, lr} + 80081ee: b084 sub sp, #16 + 80081f0: af00 add r7, sp, #0 + 80081f2: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8007f88: 2300 movs r3, #0 - 8007f8a: 60fb str r3, [r7, #12] + 80081f4: 2300 movs r3, #0 + 80081f6: 60fb str r3, [r7, #12] /* Check input parameters */ if (hrtc == NULL) - 8007f8c: 687b ldr r3, [r7, #4] - 8007f8e: 2b00 cmp r3, #0 - 8007f90: d101 bne.n 8007f96 + 80081f8: 687b ldr r3, [r7, #4] + 80081fa: 2b00 cmp r3, #0 + 80081fc: d101 bne.n 8008202 { return HAL_ERROR; - 8007f92: 2301 movs r3, #1 - 8007f94: e01d b.n 8007fd2 + 80081fe: 2301 movs r3, #1 + 8008200: e01d b.n 800823e } /* Clear RSF flag */ CLEAR_BIT(hrtc->Instance->CRL, RTC_FLAG_RSF); - 8007f96: 687b ldr r3, [r7, #4] - 8007f98: 681b ldr r3, [r3, #0] - 8007f9a: 685a ldr r2, [r3, #4] - 8007f9c: 687b ldr r3, [r7, #4] - 8007f9e: 681b ldr r3, [r3, #0] - 8007fa0: f022 0208 bic.w r2, r2, #8 - 8007fa4: 605a str r2, [r3, #4] + 8008202: 687b ldr r3, [r7, #4] + 8008204: 681b ldr r3, [r3, #0] + 8008206: 685a ldr r2, [r3, #4] + 8008208: 687b ldr r3, [r7, #4] + 800820a: 681b ldr r3, [r3, #0] + 800820c: f022 0208 bic.w r2, r2, #8 + 8008210: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); - 8007fa6: f7fc ffa5 bl 8004ef4 - 8007faa: 60f8 str r0, [r7, #12] + 8008212: f7fc ffa5 bl 8005160 + 8008216: 60f8 str r0, [r7, #12] /* Wait the registers to be synchronised */ while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) - 8007fac: e009 b.n 8007fc2 + 8008218: e009 b.n 800822e { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) - 8007fae: f7fc ffa1 bl 8004ef4 - 8007fb2: 4602 mov r2, r0 - 8007fb4: 68fb ldr r3, [r7, #12] - 8007fb6: 1ad3 subs r3, r2, r3 - 8007fb8: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8007fbc: d901 bls.n 8007fc2 + 800821a: f7fc ffa1 bl 8005160 + 800821e: 4602 mov r2, r0 + 8008220: 68fb ldr r3, [r7, #12] + 8008222: 1ad3 subs r3, r2, r3 + 8008224: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 8008228: d901 bls.n 800822e { return HAL_TIMEOUT; - 8007fbe: 2303 movs r3, #3 - 8007fc0: e007 b.n 8007fd2 + 800822a: 2303 movs r3, #3 + 800822c: e007 b.n 800823e while ((hrtc->Instance->CRL & RTC_FLAG_RSF) == (uint32_t)RESET) - 8007fc2: 687b ldr r3, [r7, #4] - 8007fc4: 681b ldr r3, [r3, #0] - 8007fc6: 685b ldr r3, [r3, #4] - 8007fc8: f003 0308 and.w r3, r3, #8 - 8007fcc: 2b00 cmp r3, #0 - 8007fce: d0ee beq.n 8007fae + 800822e: 687b ldr r3, [r7, #4] + 8008230: 681b ldr r3, [r3, #0] + 8008232: 685b ldr r3, [r3, #4] + 8008234: f003 0308 and.w r3, r3, #8 + 8008238: 2b00 cmp r3, #0 + 800823a: d0ee beq.n 800821a } } return HAL_OK; - 8007fd0: 2300 movs r3, #0 + 800823c: 2300 movs r3, #0 } - 8007fd2: 4618 mov r0, r3 - 8007fd4: 3710 adds r7, #16 - 8007fd6: 46bd mov sp, r7 - 8007fd8: bd80 pop {r7, pc} + 800823e: 4618 mov r0, r3 + 8008240: 3710 adds r7, #16 + 8008242: 46bd mov sp, r7 + 8008244: bd80 pop {r7, pc} -08007fda : +08008246 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ static HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef *hrtc) { - 8007fda: b580 push {r7, lr} - 8007fdc: b084 sub sp, #16 - 8007fde: af00 add r7, sp, #0 - 8007fe0: 6078 str r0, [r7, #4] + 8008246: b580 push {r7, lr} + 8008248: b084 sub sp, #16 + 800824a: af00 add r7, sp, #0 + 800824c: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8007fe2: 2300 movs r3, #0 - 8007fe4: 60fb str r3, [r7, #12] + 800824e: 2300 movs r3, #0 + 8008250: 60fb str r3, [r7, #12] tickstart = HAL_GetTick(); - 8007fe6: f7fc ff85 bl 8004ef4 - 8007fea: 60f8 str r0, [r7, #12] + 8008252: f7fc ff85 bl 8005160 + 8008256: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 8007fec: e009 b.n 8008002 + 8008258: e009 b.n 800826e { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) - 8007fee: f7fc ff81 bl 8004ef4 - 8007ff2: 4602 mov r2, r0 - 8007ff4: 68fb ldr r3, [r7, #12] - 8007ff6: 1ad3 subs r3, r2, r3 - 8007ff8: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8007ffc: d901 bls.n 8008002 + 800825a: f7fc ff81 bl 8005160 + 800825e: 4602 mov r2, r0 + 8008260: 68fb ldr r3, [r7, #12] + 8008262: 1ad3 subs r3, r2, r3 + 8008264: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 8008268: d901 bls.n 800826e { return HAL_TIMEOUT; - 8007ffe: 2303 movs r3, #3 - 8008000: e00f b.n 8008022 + 800826a: 2303 movs r3, #3 + 800826c: e00f b.n 800828e while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 8008002: 687b ldr r3, [r7, #4] - 8008004: 681b ldr r3, [r3, #0] - 8008006: 685b ldr r3, [r3, #4] - 8008008: f003 0320 and.w r3, r3, #32 - 800800c: 2b00 cmp r3, #0 - 800800e: d0ee beq.n 8007fee + 800826e: 687b ldr r3, [r7, #4] + 8008270: 681b ldr r3, [r3, #0] + 8008272: 685b ldr r3, [r3, #4] + 8008274: f003 0320 and.w r3, r3, #32 + 8008278: 2b00 cmp r3, #0 + 800827a: d0ee beq.n 800825a } } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 8008010: 687b ldr r3, [r7, #4] - 8008012: 681b ldr r3, [r3, #0] - 8008014: 685a ldr r2, [r3, #4] - 8008016: 687b ldr r3, [r7, #4] - 8008018: 681b ldr r3, [r3, #0] - 800801a: f042 0210 orr.w r2, r2, #16 - 800801e: 605a str r2, [r3, #4] + 800827c: 687b ldr r3, [r7, #4] + 800827e: 681b ldr r3, [r3, #0] + 8008280: 685a ldr r2, [r3, #4] + 8008282: 687b ldr r3, [r7, #4] + 8008284: 681b ldr r3, [r3, #0] + 8008286: f042 0210 orr.w r2, r2, #16 + 800828a: 605a str r2, [r3, #4] return HAL_OK; - 8008020: 2300 movs r3, #0 + 800828c: 2300 movs r3, #0 } - 8008022: 4618 mov r0, r3 - 8008024: 3710 adds r7, #16 - 8008026: 46bd mov sp, r7 - 8008028: bd80 pop {r7, pc} + 800828e: 4618 mov r0, r3 + 8008290: 3710 adds r7, #16 + 8008292: 46bd mov sp, r7 + 8008294: bd80 pop {r7, pc} -0800802a : +08008296 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ static HAL_StatusTypeDef RTC_ExitInitMode(RTC_HandleTypeDef *hrtc) { - 800802a: b580 push {r7, lr} - 800802c: b084 sub sp, #16 - 800802e: af00 add r7, sp, #0 - 8008030: 6078 str r0, [r7, #4] + 8008296: b580 push {r7, lr} + 8008298: b084 sub sp, #16 + 800829a: af00 add r7, sp, #0 + 800829c: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8008032: 2300 movs r3, #0 - 8008034: 60fb str r3, [r7, #12] + 800829e: 2300 movs r3, #0 + 80082a0: 60fb str r3, [r7, #12] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 8008036: 687b ldr r3, [r7, #4] - 8008038: 681b ldr r3, [r3, #0] - 800803a: 685a ldr r2, [r3, #4] - 800803c: 687b ldr r3, [r7, #4] - 800803e: 681b ldr r3, [r3, #0] - 8008040: f022 0210 bic.w r2, r2, #16 - 8008044: 605a str r2, [r3, #4] + 80082a2: 687b ldr r3, [r7, #4] + 80082a4: 681b ldr r3, [r3, #0] + 80082a6: 685a ldr r2, [r3, #4] + 80082a8: 687b ldr r3, [r7, #4] + 80082aa: 681b ldr r3, [r3, #0] + 80082ac: f022 0210 bic.w r2, r2, #16 + 80082b0: 605a str r2, [r3, #4] tickstart = HAL_GetTick(); - 8008046: f7fc ff55 bl 8004ef4 - 800804a: 60f8 str r0, [r7, #12] + 80082b2: f7fc ff55 bl 8005160 + 80082b6: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 800804c: e009 b.n 8008062 + 80082b8: e009 b.n 80082ce { if ((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE) - 800804e: f7fc ff51 bl 8004ef4 - 8008052: 4602 mov r2, r0 - 8008054: 68fb ldr r3, [r7, #12] - 8008056: 1ad3 subs r3, r2, r3 - 8008058: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 800805c: d901 bls.n 8008062 + 80082ba: f7fc ff51 bl 8005160 + 80082be: 4602 mov r2, r0 + 80082c0: 68fb ldr r3, [r7, #12] + 80082c2: 1ad3 subs r3, r2, r3 + 80082c4: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 80082c8: d901 bls.n 80082ce { return HAL_TIMEOUT; - 800805e: 2303 movs r3, #3 - 8008060: e007 b.n 8008072 + 80082ca: 2303 movs r3, #3 + 80082cc: e007 b.n 80082de while ((hrtc->Instance->CRL & RTC_CRL_RTOFF) == (uint32_t)RESET) - 8008062: 687b ldr r3, [r7, #4] - 8008064: 681b ldr r3, [r3, #0] - 8008066: 685b ldr r3, [r3, #4] - 8008068: f003 0320 and.w r3, r3, #32 - 800806c: 2b00 cmp r3, #0 - 800806e: d0ee beq.n 800804e + 80082ce: 687b ldr r3, [r7, #4] + 80082d0: 681b ldr r3, [r3, #0] + 80082d2: 685b ldr r3, [r3, #4] + 80082d4: f003 0320 and.w r3, r3, #32 + 80082d8: 2b00 cmp r3, #0 + 80082da: d0ee beq.n 80082ba } } return HAL_OK; - 8008070: 2300 movs r3, #0 + 80082dc: 2300 movs r3, #0 } - 8008072: 4618 mov r0, r3 - 8008074: 3710 adds r7, #16 - 8008076: 46bd mov sp, r7 - 8008078: bd80 pop {r7, pc} + 80082de: 4618 mov r0, r3 + 80082e0: 3710 adds r7, #16 + 80082e2: 46bd mov sp, r7 + 80082e4: bd80 pop {r7, pc} -0800807a : +080082e6 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { - 800807a: b580 push {r7, lr} - 800807c: b082 sub sp, #8 - 800807e: af00 add r7, sp, #0 - 8008080: 6078 str r0, [r7, #4] + 80082e6: b580 push {r7, lr} + 80082e8: b082 sub sp, #8 + 80082ea: af00 add r7, sp, #0 + 80082ec: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 8008082: 687b ldr r3, [r7, #4] - 8008084: 2b00 cmp r3, #0 - 8008086: d101 bne.n 800808c + 80082ee: 687b ldr r3, [r7, #4] + 80082f0: 2b00 cmp r3, #0 + 80082f2: d101 bne.n 80082f8 { return HAL_ERROR; - 8008088: 2301 movs r3, #1 - 800808a: e03f b.n 800810c + 80082f4: 2301 movs r3, #1 + 80082f6: e03f b.n 8008378 assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); #if defined(USART_CR1_OVER8) assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); #endif /* USART_CR1_OVER8 */ if (huart->gState == HAL_UART_STATE_RESET) - 800808c: 687b ldr r3, [r7, #4] - 800808e: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 8008092: b2db uxtb r3, r3 - 8008094: 2b00 cmp r3, #0 - 8008096: d106 bne.n 80080a6 + 80082f8: 687b ldr r3, [r7, #4] + 80082fa: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 80082fe: b2db uxtb r3, r3 + 8008300: 2b00 cmp r3, #0 + 8008302: d106 bne.n 8008312 { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 8008098: 687b ldr r3, [r7, #4] - 800809a: 2200 movs r2, #0 - 800809c: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8008304: 687b ldr r3, [r7, #4] + 8008306: 2200 movs r2, #0 + 8008308: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); - 80080a0: 6878 ldr r0, [r7, #4] - 80080a2: f7fc fe47 bl 8004d34 + 800830c: 6878 ldr r0, [r7, #4] + 800830e: f7fc fe47 bl 8004fa0 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 80080a6: 687b ldr r3, [r7, #4] - 80080a8: 2224 movs r2, #36 ; 0x24 - 80080aa: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8008312: 687b ldr r3, [r7, #4] + 8008314: 2224 movs r2, #36 ; 0x24 + 8008316: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Disable the peripheral */ __HAL_UART_DISABLE(huart); - 80080ae: 687b ldr r3, [r7, #4] - 80080b0: 681b ldr r3, [r3, #0] - 80080b2: 68da ldr r2, [r3, #12] - 80080b4: 687b ldr r3, [r7, #4] - 80080b6: 681b ldr r3, [r3, #0] - 80080b8: f422 5200 bic.w r2, r2, #8192 ; 0x2000 - 80080bc: 60da str r2, [r3, #12] + 800831a: 687b ldr r3, [r7, #4] + 800831c: 681b ldr r3, [r3, #0] + 800831e: 68da ldr r2, [r3, #12] + 8008320: 687b ldr r3, [r7, #4] + 8008322: 681b ldr r3, [r3, #0] + 8008324: f422 5200 bic.w r2, r2, #8192 ; 0x2000 + 8008328: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); - 80080be: 6878 ldr r0, [r7, #4] - 80080c0: f000 fca2 bl 8008a08 + 800832a: 6878 ldr r0, [r7, #4] + 800832c: f000 fca2 bl 8008c74 /* 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)); - 80080c4: 687b ldr r3, [r7, #4] - 80080c6: 681b ldr r3, [r3, #0] - 80080c8: 691a ldr r2, [r3, #16] - 80080ca: 687b ldr r3, [r7, #4] - 80080cc: 681b ldr r3, [r3, #0] - 80080ce: f422 4290 bic.w r2, r2, #18432 ; 0x4800 - 80080d2: 611a str r2, [r3, #16] + 8008330: 687b ldr r3, [r7, #4] + 8008332: 681b ldr r3, [r3, #0] + 8008334: 691a ldr r2, [r3, #16] + 8008336: 687b ldr r3, [r7, #4] + 8008338: 681b ldr r3, [r3, #0] + 800833a: f422 4290 bic.w r2, r2, #18432 ; 0x4800 + 800833e: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 80080d4: 687b ldr r3, [r7, #4] - 80080d6: 681b ldr r3, [r3, #0] - 80080d8: 695a ldr r2, [r3, #20] - 80080da: 687b ldr r3, [r7, #4] - 80080dc: 681b ldr r3, [r3, #0] - 80080de: f022 022a bic.w r2, r2, #42 ; 0x2a - 80080e2: 615a str r2, [r3, #20] + 8008340: 687b ldr r3, [r7, #4] + 8008342: 681b ldr r3, [r3, #0] + 8008344: 695a ldr r2, [r3, #20] + 8008346: 687b ldr r3, [r7, #4] + 8008348: 681b ldr r3, [r3, #0] + 800834a: f022 022a bic.w r2, r2, #42 ; 0x2a + 800834e: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); - 80080e4: 687b ldr r3, [r7, #4] - 80080e6: 681b ldr r3, [r3, #0] - 80080e8: 68da ldr r2, [r3, #12] - 80080ea: 687b ldr r3, [r7, #4] - 80080ec: 681b ldr r3, [r3, #0] - 80080ee: f442 5200 orr.w r2, r2, #8192 ; 0x2000 - 80080f2: 60da str r2, [r3, #12] + 8008350: 687b ldr r3, [r7, #4] + 8008352: 681b ldr r3, [r3, #0] + 8008354: 68da ldr r2, [r3, #12] + 8008356: 687b ldr r3, [r7, #4] + 8008358: 681b ldr r3, [r3, #0] + 800835a: f442 5200 orr.w r2, r2, #8192 ; 0x2000 + 800835e: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 80080f4: 687b ldr r3, [r7, #4] - 80080f6: 2200 movs r2, #0 - 80080f8: 641a str r2, [r3, #64] ; 0x40 + 8008360: 687b ldr r3, [r7, #4] + 8008362: 2200 movs r2, #0 + 8008364: 641a str r2, [r3, #64] ; 0x40 huart->gState = HAL_UART_STATE_READY; - 80080fa: 687b ldr r3, [r7, #4] - 80080fc: 2220 movs r2, #32 - 80080fe: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8008366: 687b ldr r3, [r7, #4] + 8008368: 2220 movs r2, #32 + 800836a: f883 203d strb.w r2, [r3, #61] ; 0x3d huart->RxState = HAL_UART_STATE_READY; - 8008102: 687b ldr r3, [r7, #4] - 8008104: 2220 movs r2, #32 - 8008106: f883 203e strb.w r2, [r3, #62] ; 0x3e + 800836e: 687b ldr r3, [r7, #4] + 8008370: 2220 movs r2, #32 + 8008372: f883 203e strb.w r2, [r3, #62] ; 0x3e return HAL_OK; - 800810a: 2300 movs r3, #0 + 8008376: 2300 movs r3, #0 } - 800810c: 4618 mov r0, r3 - 800810e: 3708 adds r7, #8 - 8008110: 46bd mov sp, r7 - 8008112: bd80 pop {r7, pc} + 8008378: 4618 mov r0, r3 + 800837a: 3708 adds r7, #8 + 800837c: 46bd mov sp, r7 + 800837e: bd80 pop {r7, pc} -08008114 : +08008380 : * @param Size Amount of data elements (u8 or u16) to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8008114: b580 push {r7, lr} - 8008116: b08a sub sp, #40 ; 0x28 - 8008118: af02 add r7, sp, #8 - 800811a: 60f8 str r0, [r7, #12] - 800811c: 60b9 str r1, [r7, #8] - 800811e: 603b str r3, [r7, #0] - 8008120: 4613 mov r3, r2 - 8008122: 80fb strh r3, [r7, #6] + 8008380: b580 push {r7, lr} + 8008382: b08a sub sp, #40 ; 0x28 + 8008384: af02 add r7, sp, #8 + 8008386: 60f8 str r0, [r7, #12] + 8008388: 60b9 str r1, [r7, #8] + 800838a: 603b str r3, [r7, #0] + 800838c: 4613 mov r3, r2 + 800838e: 80fb strh r3, [r7, #6] uint8_t *pdata8bits; uint16_t *pdata16bits; uint32_t tickstart = 0U; - 8008124: 2300 movs r3, #0 - 8008126: 617b str r3, [r7, #20] + 8008390: 2300 movs r3, #0 + 8008392: 617b str r3, [r7, #20] /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) - 8008128: 68fb ldr r3, [r7, #12] - 800812a: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 800812e: b2db uxtb r3, r3 - 8008130: 2b20 cmp r3, #32 - 8008132: d17c bne.n 800822e + 8008394: 68fb ldr r3, [r7, #12] + 8008396: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 800839a: b2db uxtb r3, r3 + 800839c: 2b20 cmp r3, #32 + 800839e: d17c bne.n 800849a { if ((pData == NULL) || (Size == 0U)) - 8008134: 68bb ldr r3, [r7, #8] - 8008136: 2b00 cmp r3, #0 - 8008138: d002 beq.n 8008140 - 800813a: 88fb ldrh r3, [r7, #6] - 800813c: 2b00 cmp r3, #0 - 800813e: d101 bne.n 8008144 + 80083a0: 68bb ldr r3, [r7, #8] + 80083a2: 2b00 cmp r3, #0 + 80083a4: d002 beq.n 80083ac + 80083a6: 88fb ldrh r3, [r7, #6] + 80083a8: 2b00 cmp r3, #0 + 80083aa: d101 bne.n 80083b0 { return HAL_ERROR; - 8008140: 2301 movs r3, #1 - 8008142: e075 b.n 8008230 + 80083ac: 2301 movs r3, #1 + 80083ae: e075 b.n 800849c } /* Process Locked */ __HAL_LOCK(huart); - 8008144: 68fb ldr r3, [r7, #12] - 8008146: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800814a: 2b01 cmp r3, #1 - 800814c: d101 bne.n 8008152 - 800814e: 2302 movs r3, #2 - 8008150: e06e b.n 8008230 - 8008152: 68fb ldr r3, [r7, #12] - 8008154: 2201 movs r2, #1 - 8008156: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80083b0: 68fb ldr r3, [r7, #12] + 80083b2: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 80083b6: 2b01 cmp r3, #1 + 80083b8: d101 bne.n 80083be + 80083ba: 2302 movs r3, #2 + 80083bc: e06e b.n 800849c + 80083be: 68fb ldr r3, [r7, #12] + 80083c0: 2201 movs r2, #1 + 80083c2: f883 203c strb.w r2, [r3, #60] ; 0x3c huart->ErrorCode = HAL_UART_ERROR_NONE; - 800815a: 68fb ldr r3, [r7, #12] - 800815c: 2200 movs r2, #0 - 800815e: 641a str r2, [r3, #64] ; 0x40 + 80083c6: 68fb ldr r3, [r7, #12] + 80083c8: 2200 movs r2, #0 + 80083ca: 641a str r2, [r3, #64] ; 0x40 huart->gState = HAL_UART_STATE_BUSY_TX; - 8008160: 68fb ldr r3, [r7, #12] - 8008162: 2221 movs r2, #33 ; 0x21 - 8008164: f883 203d strb.w r2, [r3, #61] ; 0x3d + 80083cc: 68fb ldr r3, [r7, #12] + 80083ce: 2221 movs r2, #33 ; 0x21 + 80083d0: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); - 8008168: f7fc fec4 bl 8004ef4 - 800816c: 6178 str r0, [r7, #20] + 80083d4: f7fc fec4 bl 8005160 + 80083d8: 6178 str r0, [r7, #20] huart->TxXferSize = Size; - 800816e: 68fb ldr r3, [r7, #12] - 8008170: 88fa ldrh r2, [r7, #6] - 8008172: 849a strh r2, [r3, #36] ; 0x24 + 80083da: 68fb ldr r3, [r7, #12] + 80083dc: 88fa ldrh r2, [r7, #6] + 80083de: 849a strh r2, [r3, #36] ; 0x24 huart->TxXferCount = Size; - 8008174: 68fb ldr r3, [r7, #12] - 8008176: 88fa ldrh r2, [r7, #6] - 8008178: 84da strh r2, [r3, #38] ; 0x26 + 80083e0: 68fb ldr r3, [r7, #12] + 80083e2: 88fa ldrh r2, [r7, #6] + 80083e4: 84da strh r2, [r3, #38] ; 0x26 /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 800817a: 68fb ldr r3, [r7, #12] - 800817c: 689b ldr r3, [r3, #8] - 800817e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008182: d108 bne.n 8008196 - 8008184: 68fb ldr r3, [r7, #12] - 8008186: 691b ldr r3, [r3, #16] - 8008188: 2b00 cmp r3, #0 - 800818a: d104 bne.n 8008196 + 80083e6: 68fb ldr r3, [r7, #12] + 80083e8: 689b ldr r3, [r3, #8] + 80083ea: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 80083ee: d108 bne.n 8008402 + 80083f0: 68fb ldr r3, [r7, #12] + 80083f2: 691b ldr r3, [r3, #16] + 80083f4: 2b00 cmp r3, #0 + 80083f6: d104 bne.n 8008402 { pdata8bits = NULL; - 800818c: 2300 movs r3, #0 - 800818e: 61fb str r3, [r7, #28] + 80083f8: 2300 movs r3, #0 + 80083fa: 61fb str r3, [r7, #28] pdata16bits = (uint16_t *) pData; - 8008190: 68bb ldr r3, [r7, #8] - 8008192: 61bb str r3, [r7, #24] - 8008194: e003 b.n 800819e + 80083fc: 68bb ldr r3, [r7, #8] + 80083fe: 61bb str r3, [r7, #24] + 8008400: e003 b.n 800840a } else { pdata8bits = pData; - 8008196: 68bb ldr r3, [r7, #8] - 8008198: 61fb str r3, [r7, #28] + 8008402: 68bb ldr r3, [r7, #8] + 8008404: 61fb str r3, [r7, #28] pdata16bits = NULL; - 800819a: 2300 movs r3, #0 - 800819c: 61bb str r3, [r7, #24] + 8008406: 2300 movs r3, #0 + 8008408: 61bb str r3, [r7, #24] } /* Process Unlocked */ __HAL_UNLOCK(huart); - 800819e: 68fb ldr r3, [r7, #12] - 80081a0: 2200 movs r2, #0 - 80081a2: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800840a: 68fb ldr r3, [r7, #12] + 800840c: 2200 movs r2, #0 + 800840e: f883 203c strb.w r2, [r3, #60] ; 0x3c while (huart->TxXferCount > 0U) - 80081a6: e02a b.n 80081fe + 8008412: e02a b.n 800846a { if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK) - 80081a8: 683b ldr r3, [r7, #0] - 80081aa: 9300 str r3, [sp, #0] - 80081ac: 697b ldr r3, [r7, #20] - 80081ae: 2200 movs r2, #0 - 80081b0: 2180 movs r1, #128 ; 0x80 - 80081b2: 68f8 ldr r0, [r7, #12] - 80081b4: f000 fa55 bl 8008662 - 80081b8: 4603 mov r3, r0 - 80081ba: 2b00 cmp r3, #0 - 80081bc: d001 beq.n 80081c2 + 8008414: 683b ldr r3, [r7, #0] + 8008416: 9300 str r3, [sp, #0] + 8008418: 697b ldr r3, [r7, #20] + 800841a: 2200 movs r2, #0 + 800841c: 2180 movs r1, #128 ; 0x80 + 800841e: 68f8 ldr r0, [r7, #12] + 8008420: f000 fa55 bl 80088ce + 8008424: 4603 mov r3, r0 + 8008426: 2b00 cmp r3, #0 + 8008428: d001 beq.n 800842e { return HAL_TIMEOUT; - 80081be: 2303 movs r3, #3 - 80081c0: e036 b.n 8008230 + 800842a: 2303 movs r3, #3 + 800842c: e036 b.n 800849c } if (pdata8bits == NULL) - 80081c2: 69fb ldr r3, [r7, #28] - 80081c4: 2b00 cmp r3, #0 - 80081c6: d10b bne.n 80081e0 + 800842e: 69fb ldr r3, [r7, #28] + 8008430: 2b00 cmp r3, #0 + 8008432: d10b bne.n 800844c { huart->Instance->DR = (uint16_t)(*pdata16bits & 0x01FFU); - 80081c8: 69bb ldr r3, [r7, #24] - 80081ca: 881b ldrh r3, [r3, #0] - 80081cc: 461a mov r2, r3 - 80081ce: 68fb ldr r3, [r7, #12] - 80081d0: 681b ldr r3, [r3, #0] - 80081d2: f3c2 0208 ubfx r2, r2, #0, #9 - 80081d6: 605a str r2, [r3, #4] + 8008434: 69bb ldr r3, [r7, #24] + 8008436: 881b ldrh r3, [r3, #0] + 8008438: 461a mov r2, r3 + 800843a: 68fb ldr r3, [r7, #12] + 800843c: 681b ldr r3, [r3, #0] + 800843e: f3c2 0208 ubfx r2, r2, #0, #9 + 8008442: 605a str r2, [r3, #4] pdata16bits++; - 80081d8: 69bb ldr r3, [r7, #24] - 80081da: 3302 adds r3, #2 - 80081dc: 61bb str r3, [r7, #24] - 80081de: e007 b.n 80081f0 + 8008444: 69bb ldr r3, [r7, #24] + 8008446: 3302 adds r3, #2 + 8008448: 61bb str r3, [r7, #24] + 800844a: e007 b.n 800845c } else { huart->Instance->DR = (uint8_t)(*pdata8bits & 0xFFU); - 80081e0: 69fb ldr r3, [r7, #28] - 80081e2: 781a ldrb r2, [r3, #0] - 80081e4: 68fb ldr r3, [r7, #12] - 80081e6: 681b ldr r3, [r3, #0] - 80081e8: 605a str r2, [r3, #4] + 800844c: 69fb ldr r3, [r7, #28] + 800844e: 781a ldrb r2, [r3, #0] + 8008450: 68fb ldr r3, [r7, #12] + 8008452: 681b ldr r3, [r3, #0] + 8008454: 605a str r2, [r3, #4] pdata8bits++; - 80081ea: 69fb ldr r3, [r7, #28] - 80081ec: 3301 adds r3, #1 - 80081ee: 61fb str r3, [r7, #28] + 8008456: 69fb ldr r3, [r7, #28] + 8008458: 3301 adds r3, #1 + 800845a: 61fb str r3, [r7, #28] } huart->TxXferCount--; - 80081f0: 68fb ldr r3, [r7, #12] - 80081f2: 8cdb ldrh r3, [r3, #38] ; 0x26 - 80081f4: b29b uxth r3, r3 - 80081f6: 3b01 subs r3, #1 - 80081f8: b29a uxth r2, r3 - 80081fa: 68fb ldr r3, [r7, #12] - 80081fc: 84da strh r2, [r3, #38] ; 0x26 + 800845c: 68fb ldr r3, [r7, #12] + 800845e: 8cdb ldrh r3, [r3, #38] ; 0x26 + 8008460: b29b uxth r3, r3 + 8008462: 3b01 subs r3, #1 + 8008464: b29a uxth r2, r3 + 8008466: 68fb ldr r3, [r7, #12] + 8008468: 84da strh r2, [r3, #38] ; 0x26 while (huart->TxXferCount > 0U) - 80081fe: 68fb ldr r3, [r7, #12] - 8008200: 8cdb ldrh r3, [r3, #38] ; 0x26 - 8008202: b29b uxth r3, r3 - 8008204: 2b00 cmp r3, #0 - 8008206: d1cf bne.n 80081a8 + 800846a: 68fb ldr r3, [r7, #12] + 800846c: 8cdb ldrh r3, [r3, #38] ; 0x26 + 800846e: b29b uxth r3, r3 + 8008470: 2b00 cmp r3, #0 + 8008472: d1cf bne.n 8008414 } if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK) - 8008208: 683b ldr r3, [r7, #0] - 800820a: 9300 str r3, [sp, #0] - 800820c: 697b ldr r3, [r7, #20] - 800820e: 2200 movs r2, #0 - 8008210: 2140 movs r1, #64 ; 0x40 - 8008212: 68f8 ldr r0, [r7, #12] - 8008214: f000 fa25 bl 8008662 - 8008218: 4603 mov r3, r0 - 800821a: 2b00 cmp r3, #0 - 800821c: d001 beq.n 8008222 + 8008474: 683b ldr r3, [r7, #0] + 8008476: 9300 str r3, [sp, #0] + 8008478: 697b ldr r3, [r7, #20] + 800847a: 2200 movs r2, #0 + 800847c: 2140 movs r1, #64 ; 0x40 + 800847e: 68f8 ldr r0, [r7, #12] + 8008480: f000 fa25 bl 80088ce + 8008484: 4603 mov r3, r0 + 8008486: 2b00 cmp r3, #0 + 8008488: d001 beq.n 800848e { return HAL_TIMEOUT; - 800821e: 2303 movs r3, #3 - 8008220: e006 b.n 8008230 + 800848a: 2303 movs r3, #3 + 800848c: e006 b.n 800849c } /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 8008222: 68fb ldr r3, [r7, #12] - 8008224: 2220 movs r2, #32 - 8008226: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800848e: 68fb ldr r3, [r7, #12] + 8008490: 2220 movs r2, #32 + 8008492: f883 203d strb.w r2, [r3, #61] ; 0x3d return HAL_OK; - 800822a: 2300 movs r3, #0 - 800822c: e000 b.n 8008230 + 8008496: 2300 movs r3, #0 + 8008498: e000 b.n 800849c } else { return HAL_BUSY; - 800822e: 2302 movs r3, #2 + 800849a: 2302 movs r3, #2 } } - 8008230: 4618 mov r0, r3 - 8008232: 3720 adds r7, #32 - 8008234: 46bd mov sp, r7 - 8008236: bd80 pop {r7, pc} + 800849c: 4618 mov r0, r3 + 800849e: 3720 adds r7, #32 + 80084a0: 46bd mov sp, r7 + 80084a2: bd80 pop {r7, pc} -08008238 : +080084a4 : * @param pData Pointer to data buffer (uint8_t or uint16_t data elements). * @param Size Amount of data elements (uint8_t or uint16_t) to be received. * @retval HAL status */ HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { - 8008238: b580 push {r7, lr} - 800823a: b086 sub sp, #24 - 800823c: af00 add r7, sp, #0 - 800823e: 60f8 str r0, [r7, #12] - 8008240: 60b9 str r1, [r7, #8] - 8008242: 4613 mov r3, r2 - 8008244: 80fb strh r3, [r7, #6] + 80084a4: b580 push {r7, lr} + 80084a6: b086 sub sp, #24 + 80084a8: af00 add r7, sp, #0 + 80084aa: 60f8 str r0, [r7, #12] + 80084ac: 60b9 str r1, [r7, #8] + 80084ae: 4613 mov r3, r2 + 80084b0: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status; /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) - 8008246: 68fb ldr r3, [r7, #12] - 8008248: f893 303e ldrb.w r3, [r3, #62] ; 0x3e - 800824c: b2db uxtb r3, r3 - 800824e: 2b20 cmp r3, #32 - 8008250: d13c bne.n 80082cc + 80084b2: 68fb ldr r3, [r7, #12] + 80084b4: f893 303e ldrb.w r3, [r3, #62] ; 0x3e + 80084b8: b2db uxtb r3, r3 + 80084ba: 2b20 cmp r3, #32 + 80084bc: d13c bne.n 8008538 { if ((pData == NULL) || (Size == 0U)) - 8008252: 68bb ldr r3, [r7, #8] - 8008254: 2b00 cmp r3, #0 - 8008256: d002 beq.n 800825e - 8008258: 88fb ldrh r3, [r7, #6] - 800825a: 2b00 cmp r3, #0 - 800825c: d101 bne.n 8008262 + 80084be: 68bb ldr r3, [r7, #8] + 80084c0: 2b00 cmp r3, #0 + 80084c2: d002 beq.n 80084ca + 80084c4: 88fb ldrh r3, [r7, #6] + 80084c6: 2b00 cmp r3, #0 + 80084c8: d101 bne.n 80084ce { return HAL_ERROR; - 800825e: 2301 movs r3, #1 - 8008260: e035 b.n 80082ce + 80084ca: 2301 movs r3, #1 + 80084cc: e035 b.n 800853a } __HAL_LOCK(huart); - 8008262: 68fb ldr r3, [r7, #12] - 8008264: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 8008268: 2b01 cmp r3, #1 - 800826a: d101 bne.n 8008270 - 800826c: 2302 movs r3, #2 - 800826e: e02e b.n 80082ce - 8008270: 68fb ldr r3, [r7, #12] - 8008272: 2201 movs r2, #1 - 8008274: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80084ce: 68fb ldr r3, [r7, #12] + 80084d0: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 80084d4: 2b01 cmp r3, #1 + 80084d6: d101 bne.n 80084dc + 80084d8: 2302 movs r3, #2 + 80084da: e02e b.n 800853a + 80084dc: 68fb ldr r3, [r7, #12] + 80084de: 2201 movs r2, #1 + 80084e0: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Set Reception type to reception till IDLE Event*/ huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE; - 8008278: 68fb ldr r3, [r7, #12] - 800827a: 2201 movs r2, #1 - 800827c: 631a str r2, [r3, #48] ; 0x30 + 80084e4: 68fb ldr r3, [r7, #12] + 80084e6: 2201 movs r2, #1 + 80084e8: 631a str r2, [r3, #48] ; 0x30 status = UART_Start_Receive_IT(huart, pData, Size); - 800827e: 88fb ldrh r3, [r7, #6] - 8008280: 461a mov r2, r3 - 8008282: 68b9 ldr r1, [r7, #8] - 8008284: 68f8 ldr r0, [r7, #12] - 8008286: f000 fa36 bl 80086f6 - 800828a: 4603 mov r3, r0 - 800828c: 75fb strb r3, [r7, #23] + 80084ea: 88fb ldrh r3, [r7, #6] + 80084ec: 461a mov r2, r3 + 80084ee: 68b9 ldr r1, [r7, #8] + 80084f0: 68f8 ldr r0, [r7, #12] + 80084f2: f000 fa36 bl 8008962 + 80084f6: 4603 mov r3, r0 + 80084f8: 75fb strb r3, [r7, #23] /* Check Rx process has been successfully started */ if (status == HAL_OK) - 800828e: 7dfb ldrb r3, [r7, #23] - 8008290: 2b00 cmp r3, #0 - 8008292: d119 bne.n 80082c8 + 80084fa: 7dfb ldrb r3, [r7, #23] + 80084fc: 2b00 cmp r3, #0 + 80084fe: d119 bne.n 8008534 { if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8008294: 68fb ldr r3, [r7, #12] - 8008296: 6b1b ldr r3, [r3, #48] ; 0x30 - 8008298: 2b01 cmp r3, #1 - 800829a: d113 bne.n 80082c4 + 8008500: 68fb ldr r3, [r7, #12] + 8008502: 6b1b ldr r3, [r3, #48] ; 0x30 + 8008504: 2b01 cmp r3, #1 + 8008506: d113 bne.n 8008530 { __HAL_UART_CLEAR_IDLEFLAG(huart); - 800829c: 2300 movs r3, #0 - 800829e: 613b str r3, [r7, #16] - 80082a0: 68fb ldr r3, [r7, #12] - 80082a2: 681b ldr r3, [r3, #0] - 80082a4: 681b ldr r3, [r3, #0] - 80082a6: 613b str r3, [r7, #16] - 80082a8: 68fb ldr r3, [r7, #12] - 80082aa: 681b ldr r3, [r3, #0] - 80082ac: 685b ldr r3, [r3, #4] - 80082ae: 613b str r3, [r7, #16] - 80082b0: 693b ldr r3, [r7, #16] + 8008508: 2300 movs r3, #0 + 800850a: 613b str r3, [r7, #16] + 800850c: 68fb ldr r3, [r7, #12] + 800850e: 681b ldr r3, [r3, #0] + 8008510: 681b ldr r3, [r3, #0] + 8008512: 613b str r3, [r7, #16] + 8008514: 68fb ldr r3, [r7, #12] + 8008516: 681b ldr r3, [r3, #0] + 8008518: 685b ldr r3, [r3, #4] + 800851a: 613b str r3, [r7, #16] + 800851c: 693b ldr r3, [r7, #16] SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80082b2: 68fb ldr r3, [r7, #12] - 80082b4: 681b ldr r3, [r3, #0] - 80082b6: 68da ldr r2, [r3, #12] - 80082b8: 68fb ldr r3, [r7, #12] - 80082ba: 681b ldr r3, [r3, #0] - 80082bc: f042 0210 orr.w r2, r2, #16 - 80082c0: 60da str r2, [r3, #12] - 80082c2: e001 b.n 80082c8 + 800851e: 68fb ldr r3, [r7, #12] + 8008520: 681b ldr r3, [r3, #0] + 8008522: 68da ldr r2, [r3, #12] + 8008524: 68fb ldr r3, [r7, #12] + 8008526: 681b ldr r3, [r3, #0] + 8008528: f042 0210 orr.w r2, r2, #16 + 800852c: 60da str r2, [r3, #12] + 800852e: e001 b.n 8008534 { /* In case of errors already pending when reception is started, Interrupts may have already been raised and lead to reception abortion. (Overrun error for instance). In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */ status = HAL_ERROR; - 80082c4: 2301 movs r3, #1 - 80082c6: 75fb strb r3, [r7, #23] + 8008530: 2301 movs r3, #1 + 8008532: 75fb strb r3, [r7, #23] } } return status; - 80082c8: 7dfb ldrb r3, [r7, #23] - 80082ca: e000 b.n 80082ce + 8008534: 7dfb ldrb r3, [r7, #23] + 8008536: e000 b.n 800853a } else { return HAL_BUSY; - 80082cc: 2302 movs r3, #2 + 8008538: 2302 movs r3, #2 } } - 80082ce: 4618 mov r0, r3 - 80082d0: 3718 adds r7, #24 - 80082d2: 46bd mov sp, r7 - 80082d4: bd80 pop {r7, pc} + 800853a: 4618 mov r0, r3 + 800853c: 3718 adds r7, #24 + 800853e: 46bd mov sp, r7 + 8008540: bd80 pop {r7, pc} ... -080082d8 : +08008544 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { - 80082d8: b580 push {r7, lr} - 80082da: b08a sub sp, #40 ; 0x28 - 80082dc: af00 add r7, sp, #0 - 80082de: 6078 str r0, [r7, #4] + 8008544: b580 push {r7, lr} + 8008546: b08a sub sp, #40 ; 0x28 + 8008548: af00 add r7, sp, #0 + 800854a: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); - 80082e0: 687b ldr r3, [r7, #4] - 80082e2: 681b ldr r3, [r3, #0] - 80082e4: 681b ldr r3, [r3, #0] - 80082e6: 627b str r3, [r7, #36] ; 0x24 + 800854c: 687b ldr r3, [r7, #4] + 800854e: 681b ldr r3, [r3, #0] + 8008550: 681b ldr r3, [r3, #0] + 8008552: 627b str r3, [r7, #36] ; 0x24 uint32_t cr1its = READ_REG(huart->Instance->CR1); - 80082e8: 687b ldr r3, [r7, #4] - 80082ea: 681b ldr r3, [r3, #0] - 80082ec: 68db ldr r3, [r3, #12] - 80082ee: 623b str r3, [r7, #32] + 8008554: 687b ldr r3, [r7, #4] + 8008556: 681b ldr r3, [r3, #0] + 8008558: 68db ldr r3, [r3, #12] + 800855a: 623b str r3, [r7, #32] uint32_t cr3its = READ_REG(huart->Instance->CR3); - 80082f0: 687b ldr r3, [r7, #4] - 80082f2: 681b ldr r3, [r3, #0] - 80082f4: 695b ldr r3, [r3, #20] - 80082f6: 61fb str r3, [r7, #28] + 800855c: 687b ldr r3, [r7, #4] + 800855e: 681b ldr r3, [r3, #0] + 8008560: 695b ldr r3, [r3, #20] + 8008562: 61fb str r3, [r7, #28] uint32_t errorflags = 0x00U; - 80082f8: 2300 movs r3, #0 - 80082fa: 61bb str r3, [r7, #24] + 8008564: 2300 movs r3, #0 + 8008566: 61bb str r3, [r7, #24] uint32_t dmarequest = 0x00U; - 80082fc: 2300 movs r3, #0 - 80082fe: 617b str r3, [r7, #20] + 8008568: 2300 movs r3, #0 + 800856a: 617b str r3, [r7, #20] /* If no error occurs */ errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE)); - 8008300: 6a7b ldr r3, [r7, #36] ; 0x24 - 8008302: f003 030f and.w r3, r3, #15 - 8008306: 61bb str r3, [r7, #24] + 800856c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800856e: f003 030f and.w r3, r3, #15 + 8008572: 61bb str r3, [r7, #24] if (errorflags == RESET) - 8008308: 69bb ldr r3, [r7, #24] - 800830a: 2b00 cmp r3, #0 - 800830c: d10d bne.n 800832a + 8008574: 69bb ldr r3, [r7, #24] + 8008576: 2b00 cmp r3, #0 + 8008578: d10d bne.n 8008596 { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 800830e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8008310: f003 0320 and.w r3, r3, #32 - 8008314: 2b00 cmp r3, #0 - 8008316: d008 beq.n 800832a - 8008318: 6a3b ldr r3, [r7, #32] - 800831a: f003 0320 and.w r3, r3, #32 - 800831e: 2b00 cmp r3, #0 - 8008320: d003 beq.n 800832a + 800857a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800857c: f003 0320 and.w r3, r3, #32 + 8008580: 2b00 cmp r3, #0 + 8008582: d008 beq.n 8008596 + 8008584: 6a3b ldr r3, [r7, #32] + 8008586: f003 0320 and.w r3, r3, #32 + 800858a: 2b00 cmp r3, #0 + 800858c: d003 beq.n 8008596 { UART_Receive_IT(huart); - 8008322: 6878 ldr r0, [r7, #4] - 8008324: f000 fac7 bl 80088b6 + 800858e: 6878 ldr r0, [r7, #4] + 8008590: f000 fac7 bl 8008b22 return; - 8008328: e17b b.n 8008622 + 8008594: e17b b.n 800888e } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) - 800832a: 69bb ldr r3, [r7, #24] - 800832c: 2b00 cmp r3, #0 - 800832e: f000 80b1 beq.w 8008494 - 8008332: 69fb ldr r3, [r7, #28] - 8008334: f003 0301 and.w r3, r3, #1 - 8008338: 2b00 cmp r3, #0 - 800833a: d105 bne.n 8008348 - 800833c: 6a3b ldr r3, [r7, #32] - 800833e: f403 7390 and.w r3, r3, #288 ; 0x120 - 8008342: 2b00 cmp r3, #0 - 8008344: f000 80a6 beq.w 8008494 + 8008596: 69bb ldr r3, [r7, #24] + 8008598: 2b00 cmp r3, #0 + 800859a: f000 80b1 beq.w 8008700 + 800859e: 69fb ldr r3, [r7, #28] + 80085a0: f003 0301 and.w r3, r3, #1 + 80085a4: 2b00 cmp r3, #0 + 80085a6: d105 bne.n 80085b4 + 80085a8: 6a3b ldr r3, [r7, #32] + 80085aa: f403 7390 and.w r3, r3, #288 ; 0x120 + 80085ae: 2b00 cmp r3, #0 + 80085b0: f000 80a6 beq.w 8008700 { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) - 8008348: 6a7b ldr r3, [r7, #36] ; 0x24 - 800834a: f003 0301 and.w r3, r3, #1 - 800834e: 2b00 cmp r3, #0 - 8008350: d00a beq.n 8008368 - 8008352: 6a3b ldr r3, [r7, #32] - 8008354: f403 7380 and.w r3, r3, #256 ; 0x100 - 8008358: 2b00 cmp r3, #0 - 800835a: d005 beq.n 8008368 + 80085b4: 6a7b ldr r3, [r7, #36] ; 0x24 + 80085b6: f003 0301 and.w r3, r3, #1 + 80085ba: 2b00 cmp r3, #0 + 80085bc: d00a beq.n 80085d4 + 80085be: 6a3b ldr r3, [r7, #32] + 80085c0: f403 7380 and.w r3, r3, #256 ; 0x100 + 80085c4: 2b00 cmp r3, #0 + 80085c6: d005 beq.n 80085d4 { huart->ErrorCode |= HAL_UART_ERROR_PE; - 800835c: 687b ldr r3, [r7, #4] - 800835e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8008360: f043 0201 orr.w r2, r3, #1 - 8008364: 687b ldr r3, [r7, #4] - 8008366: 641a str r2, [r3, #64] ; 0x40 + 80085c8: 687b ldr r3, [r7, #4] + 80085ca: 6c1b ldr r3, [r3, #64] ; 0x40 + 80085cc: f043 0201 orr.w r2, r3, #1 + 80085d0: 687b ldr r3, [r7, #4] + 80085d2: 641a str r2, [r3, #64] ; 0x40 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8008368: 6a7b ldr r3, [r7, #36] ; 0x24 - 800836a: f003 0304 and.w r3, r3, #4 - 800836e: 2b00 cmp r3, #0 - 8008370: d00a beq.n 8008388 - 8008372: 69fb ldr r3, [r7, #28] - 8008374: f003 0301 and.w r3, r3, #1 - 8008378: 2b00 cmp r3, #0 - 800837a: d005 beq.n 8008388 + 80085d4: 6a7b ldr r3, [r7, #36] ; 0x24 + 80085d6: f003 0304 and.w r3, r3, #4 + 80085da: 2b00 cmp r3, #0 + 80085dc: d00a beq.n 80085f4 + 80085de: 69fb ldr r3, [r7, #28] + 80085e0: f003 0301 and.w r3, r3, #1 + 80085e4: 2b00 cmp r3, #0 + 80085e6: d005 beq.n 80085f4 { huart->ErrorCode |= HAL_UART_ERROR_NE; - 800837c: 687b ldr r3, [r7, #4] - 800837e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8008380: f043 0202 orr.w r2, r3, #2 - 8008384: 687b ldr r3, [r7, #4] - 8008386: 641a str r2, [r3, #64] ; 0x40 + 80085e8: 687b ldr r3, [r7, #4] + 80085ea: 6c1b ldr r3, [r3, #64] ; 0x40 + 80085ec: f043 0202 orr.w r2, r3, #2 + 80085f0: 687b ldr r3, [r7, #4] + 80085f2: 641a str r2, [r3, #64] ; 0x40 } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8008388: 6a7b ldr r3, [r7, #36] ; 0x24 - 800838a: f003 0302 and.w r3, r3, #2 - 800838e: 2b00 cmp r3, #0 - 8008390: d00a beq.n 80083a8 - 8008392: 69fb ldr r3, [r7, #28] - 8008394: f003 0301 and.w r3, r3, #1 - 8008398: 2b00 cmp r3, #0 - 800839a: d005 beq.n 80083a8 + 80085f4: 6a7b ldr r3, [r7, #36] ; 0x24 + 80085f6: f003 0302 and.w r3, r3, #2 + 80085fa: 2b00 cmp r3, #0 + 80085fc: d00a beq.n 8008614 + 80085fe: 69fb ldr r3, [r7, #28] + 8008600: f003 0301 and.w r3, r3, #1 + 8008604: 2b00 cmp r3, #0 + 8008606: d005 beq.n 8008614 { huart->ErrorCode |= HAL_UART_ERROR_FE; - 800839c: 687b ldr r3, [r7, #4] - 800839e: 6c1b ldr r3, [r3, #64] ; 0x40 - 80083a0: f043 0204 orr.w r2, r3, #4 - 80083a4: 687b ldr r3, [r7, #4] - 80083a6: 641a str r2, [r3, #64] ; 0x40 + 8008608: 687b ldr r3, [r7, #4] + 800860a: 6c1b ldr r3, [r3, #64] ; 0x40 + 800860c: f043 0204 orr.w r2, r3, #4 + 8008610: 687b ldr r3, [r7, #4] + 8008612: 641a str r2, [r3, #64] ; 0x40 } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) || ((cr3its & USART_CR3_EIE) != RESET))) - 80083a8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80083aa: f003 0308 and.w r3, r3, #8 - 80083ae: 2b00 cmp r3, #0 - 80083b0: d00f beq.n 80083d2 - 80083b2: 6a3b ldr r3, [r7, #32] - 80083b4: f003 0320 and.w r3, r3, #32 - 80083b8: 2b00 cmp r3, #0 - 80083ba: d104 bne.n 80083c6 - 80083bc: 69fb ldr r3, [r7, #28] - 80083be: f003 0301 and.w r3, r3, #1 - 80083c2: 2b00 cmp r3, #0 - 80083c4: d005 beq.n 80083d2 + 8008614: 6a7b ldr r3, [r7, #36] ; 0x24 + 8008616: f003 0308 and.w r3, r3, #8 + 800861a: 2b00 cmp r3, #0 + 800861c: d00f beq.n 800863e + 800861e: 6a3b ldr r3, [r7, #32] + 8008620: f003 0320 and.w r3, r3, #32 + 8008624: 2b00 cmp r3, #0 + 8008626: d104 bne.n 8008632 + 8008628: 69fb ldr r3, [r7, #28] + 800862a: f003 0301 and.w r3, r3, #1 + 800862e: 2b00 cmp r3, #0 + 8008630: d005 beq.n 800863e { huart->ErrorCode |= HAL_UART_ERROR_ORE; - 80083c6: 687b ldr r3, [r7, #4] - 80083c8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80083ca: f043 0208 orr.w r2, r3, #8 - 80083ce: 687b ldr r3, [r7, #4] - 80083d0: 641a str r2, [r3, #64] ; 0x40 + 8008632: 687b ldr r3, [r7, #4] + 8008634: 6c1b ldr r3, [r3, #64] ; 0x40 + 8008636: f043 0208 orr.w r2, r3, #8 + 800863a: 687b ldr r3, [r7, #4] + 800863c: 641a str r2, [r3, #64] ; 0x40 } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 80083d2: 687b ldr r3, [r7, #4] - 80083d4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80083d6: 2b00 cmp r3, #0 - 80083d8: f000 811e beq.w 8008618 + 800863e: 687b ldr r3, [r7, #4] + 8008640: 6c1b ldr r3, [r3, #64] ; 0x40 + 8008642: 2b00 cmp r3, #0 + 8008644: f000 811e beq.w 8008884 { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 80083dc: 6a7b ldr r3, [r7, #36] ; 0x24 - 80083de: f003 0320 and.w r3, r3, #32 - 80083e2: 2b00 cmp r3, #0 - 80083e4: d007 beq.n 80083f6 - 80083e6: 6a3b ldr r3, [r7, #32] - 80083e8: f003 0320 and.w r3, r3, #32 - 80083ec: 2b00 cmp r3, #0 - 80083ee: d002 beq.n 80083f6 + 8008648: 6a7b ldr r3, [r7, #36] ; 0x24 + 800864a: f003 0320 and.w r3, r3, #32 + 800864e: 2b00 cmp r3, #0 + 8008650: d007 beq.n 8008662 + 8008652: 6a3b ldr r3, [r7, #32] + 8008654: f003 0320 and.w r3, r3, #32 + 8008658: 2b00 cmp r3, #0 + 800865a: d002 beq.n 8008662 { UART_Receive_IT(huart); - 80083f0: 6878 ldr r0, [r7, #4] - 80083f2: f000 fa60 bl 80088b6 + 800865c: 6878 ldr r0, [r7, #4] + 800865e: f000 fa60 bl 8008b22 } /* If Overrun error occurs, or if any error occurs in DMA mode reception, consider error as blocking */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); - 80083f6: 687b ldr r3, [r7, #4] - 80083f8: 681b ldr r3, [r3, #0] - 80083fa: 695b ldr r3, [r3, #20] - 80083fc: f003 0340 and.w r3, r3, #64 ; 0x40 - 8008400: 2b00 cmp r3, #0 - 8008402: bf14 ite ne - 8008404: 2301 movne r3, #1 - 8008406: 2300 moveq r3, #0 - 8008408: b2db uxtb r3, r3 - 800840a: 617b str r3, [r7, #20] + 8008662: 687b ldr r3, [r7, #4] + 8008664: 681b ldr r3, [r3, #0] + 8008666: 695b ldr r3, [r3, #20] + 8008668: f003 0340 and.w r3, r3, #64 ; 0x40 + 800866c: 2b00 cmp r3, #0 + 800866e: bf14 ite ne + 8008670: 2301 movne r3, #1 + 8008672: 2300 moveq r3, #0 + 8008674: b2db uxtb r3, r3 + 8008676: 617b str r3, [r7, #20] if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) - 800840c: 687b ldr r3, [r7, #4] - 800840e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8008410: f003 0308 and.w r3, r3, #8 - 8008414: 2b00 cmp r3, #0 - 8008416: d102 bne.n 800841e - 8008418: 697b ldr r3, [r7, #20] - 800841a: 2b00 cmp r3, #0 - 800841c: d031 beq.n 8008482 + 8008678: 687b ldr r3, [r7, #4] + 800867a: 6c1b ldr r3, [r3, #64] ; 0x40 + 800867c: f003 0308 and.w r3, r3, #8 + 8008680: 2b00 cmp r3, #0 + 8008682: d102 bne.n 800868a + 8008684: 697b ldr r3, [r7, #20] + 8008686: 2b00 cmp r3, #0 + 8008688: d031 beq.n 80086ee { /* 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); - 800841e: 6878 ldr r0, [r7, #4] - 8008420: f000 f9a2 bl 8008768 + 800868a: 6878 ldr r0, [r7, #4] + 800868c: f000 f9a2 bl 80089d4 /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8008424: 687b ldr r3, [r7, #4] - 8008426: 681b ldr r3, [r3, #0] - 8008428: 695b ldr r3, [r3, #20] - 800842a: f003 0340 and.w r3, r3, #64 ; 0x40 - 800842e: 2b00 cmp r3, #0 - 8008430: d023 beq.n 800847a + 8008690: 687b ldr r3, [r7, #4] + 8008692: 681b ldr r3, [r3, #0] + 8008694: 695b ldr r3, [r3, #20] + 8008696: f003 0340 and.w r3, r3, #64 ; 0x40 + 800869a: 2b00 cmp r3, #0 + 800869c: d023 beq.n 80086e6 { CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8008432: 687b ldr r3, [r7, #4] - 8008434: 681b ldr r3, [r3, #0] - 8008436: 695a ldr r2, [r3, #20] - 8008438: 687b ldr r3, [r7, #4] - 800843a: 681b ldr r3, [r3, #0] - 800843c: f022 0240 bic.w r2, r2, #64 ; 0x40 - 8008440: 615a str r2, [r3, #20] + 800869e: 687b ldr r3, [r7, #4] + 80086a0: 681b ldr r3, [r3, #0] + 80086a2: 695a ldr r2, [r3, #20] + 80086a4: 687b ldr r3, [r7, #4] + 80086a6: 681b ldr r3, [r3, #0] + 80086a8: f022 0240 bic.w r2, r2, #64 ; 0x40 + 80086ac: 615a str r2, [r3, #20] /* Abort the UART DMA Rx channel */ if (huart->hdmarx != NULL) - 8008442: 687b ldr r3, [r7, #4] - 8008444: 6b9b ldr r3, [r3, #56] ; 0x38 - 8008446: 2b00 cmp r3, #0 - 8008448: d013 beq.n 8008472 + 80086ae: 687b ldr r3, [r7, #4] + 80086b0: 6b9b ldr r3, [r3, #56] ; 0x38 + 80086b2: 2b00 cmp r3, #0 + 80086b4: d013 beq.n 80086de { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - 800844a: 687b ldr r3, [r7, #4] - 800844c: 6b9b ldr r3, [r3, #56] ; 0x38 - 800844e: 4a76 ldr r2, [pc, #472] ; (8008628 ) - 8008450: 635a str r2, [r3, #52] ; 0x34 + 80086b6: 687b ldr r3, [r7, #4] + 80086b8: 6b9b ldr r3, [r3, #56] ; 0x38 + 80086ba: 4a76 ldr r2, [pc, #472] ; (8008894 ) + 80086bc: 635a str r2, [r3, #52] ; 0x34 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - 8008452: 687b ldr r3, [r7, #4] - 8008454: 6b9b ldr r3, [r3, #56] ; 0x38 - 8008456: 4618 mov r0, r3 - 8008458: f7fe fa72 bl 8006940 - 800845c: 4603 mov r3, r0 - 800845e: 2b00 cmp r3, #0 - 8008460: d016 beq.n 8008490 + 80086be: 687b ldr r3, [r7, #4] + 80086c0: 6b9b ldr r3, [r3, #56] ; 0x38 + 80086c2: 4618 mov r0, r3 + 80086c4: f7fe fa72 bl 8006bac + 80086c8: 4603 mov r3, r0 + 80086ca: 2b00 cmp r3, #0 + 80086cc: d016 beq.n 80086fc { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); - 8008462: 687b ldr r3, [r7, #4] - 8008464: 6b9b ldr r3, [r3, #56] ; 0x38 - 8008466: 6b5b ldr r3, [r3, #52] ; 0x34 - 8008468: 687a ldr r2, [r7, #4] - 800846a: 6b92 ldr r2, [r2, #56] ; 0x38 - 800846c: 4610 mov r0, r2 - 800846e: 4798 blx r3 + 80086ce: 687b ldr r3, [r7, #4] + 80086d0: 6b9b ldr r3, [r3, #56] ; 0x38 + 80086d2: 6b5b ldr r3, [r3, #52] ; 0x34 + 80086d4: 687a ldr r2, [r7, #4] + 80086d6: 6b92 ldr r2, [r2, #56] ; 0x38 + 80086d8: 4610 mov r0, r2 + 80086da: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8008470: e00e b.n 8008490 + 80086dc: e00e b.n 80086fc #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8008472: 6878 ldr r0, [r7, #4] - 8008474: f000 f8ec bl 8008650 + 80086de: 6878 ldr r0, [r7, #4] + 80086e0: f000 f8ec bl 80088bc if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8008478: e00a b.n 8008490 + 80086e4: e00a b.n 80086fc #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 800847a: 6878 ldr r0, [r7, #4] - 800847c: f000 f8e8 bl 8008650 + 80086e6: 6878 ldr r0, [r7, #4] + 80086e8: f000 f8e8 bl 80088bc if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8008480: e006 b.n 8008490 + 80086ec: e006 b.n 80086fc #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8008482: 6878 ldr r0, [r7, #4] - 8008484: f000 f8e4 bl 8008650 + 80086ee: 6878 ldr r0, [r7, #4] + 80086f0: f000 f8e4 bl 80088bc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8008488: 687b ldr r3, [r7, #4] - 800848a: 2200 movs r2, #0 - 800848c: 641a str r2, [r3, #64] ; 0x40 + 80086f4: 687b ldr r3, [r7, #4] + 80086f6: 2200 movs r2, #0 + 80086f8: 641a str r2, [r3, #64] ; 0x40 } } return; - 800848e: e0c3 b.n 8008618 + 80086fa: e0c3 b.n 8008884 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8008490: bf00 nop + 80086fc: bf00 nop return; - 8008492: e0c1 b.n 8008618 + 80086fe: e0c1 b.n 8008884 } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ( (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8008494: 687b ldr r3, [r7, #4] - 8008496: 6b1b ldr r3, [r3, #48] ; 0x30 - 8008498: 2b01 cmp r3, #1 - 800849a: f040 80a1 bne.w 80085e0 + 8008700: 687b ldr r3, [r7, #4] + 8008702: 6b1b ldr r3, [r3, #48] ; 0x30 + 8008704: 2b01 cmp r3, #1 + 8008706: f040 80a1 bne.w 800884c &&((isrflags & USART_SR_IDLE) != 0U) - 800849e: 6a7b ldr r3, [r7, #36] ; 0x24 - 80084a0: f003 0310 and.w r3, r3, #16 - 80084a4: 2b00 cmp r3, #0 - 80084a6: f000 809b beq.w 80085e0 + 800870a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800870c: f003 0310 and.w r3, r3, #16 + 8008710: 2b00 cmp r3, #0 + 8008712: f000 809b beq.w 800884c &&((cr1its & USART_SR_IDLE) != 0U)) - 80084aa: 6a3b ldr r3, [r7, #32] - 80084ac: f003 0310 and.w r3, r3, #16 - 80084b0: 2b00 cmp r3, #0 - 80084b2: f000 8095 beq.w 80085e0 + 8008716: 6a3b ldr r3, [r7, #32] + 8008718: f003 0310 and.w r3, r3, #16 + 800871c: 2b00 cmp r3, #0 + 800871e: f000 8095 beq.w 800884c { __HAL_UART_CLEAR_IDLEFLAG(huart); - 80084b6: 2300 movs r3, #0 - 80084b8: 60fb str r3, [r7, #12] - 80084ba: 687b ldr r3, [r7, #4] - 80084bc: 681b ldr r3, [r3, #0] - 80084be: 681b ldr r3, [r3, #0] - 80084c0: 60fb str r3, [r7, #12] - 80084c2: 687b ldr r3, [r7, #4] - 80084c4: 681b ldr r3, [r3, #0] - 80084c6: 685b ldr r3, [r3, #4] - 80084c8: 60fb str r3, [r7, #12] - 80084ca: 68fb ldr r3, [r7, #12] + 8008722: 2300 movs r3, #0 + 8008724: 60fb str r3, [r7, #12] + 8008726: 687b ldr r3, [r7, #4] + 8008728: 681b ldr r3, [r3, #0] + 800872a: 681b ldr r3, [r3, #0] + 800872c: 60fb str r3, [r7, #12] + 800872e: 687b ldr r3, [r7, #4] + 8008730: 681b ldr r3, [r3, #0] + 8008732: 685b ldr r3, [r3, #4] + 8008734: 60fb str r3, [r7, #12] + 8008736: 68fb ldr r3, [r7, #12] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80084cc: 687b ldr r3, [r7, #4] - 80084ce: 681b ldr r3, [r3, #0] - 80084d0: 695b ldr r3, [r3, #20] - 80084d2: f003 0340 and.w r3, r3, #64 ; 0x40 - 80084d6: 2b00 cmp r3, #0 - 80084d8: d04e beq.n 8008578 + 8008738: 687b ldr r3, [r7, #4] + 800873a: 681b ldr r3, [r3, #0] + 800873c: 695b ldr r3, [r3, #20] + 800873e: f003 0340 and.w r3, r3, #64 ; 0x40 + 8008742: 2b00 cmp r3, #0 + 8008744: d04e beq.n 80087e4 { /* DMA mode enabled */ /* Check received length : If all expected data are received, do nothing, (DMA cplt callback will be called). Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); - 80084da: 687b ldr r3, [r7, #4] - 80084dc: 6b9b ldr r3, [r3, #56] ; 0x38 - 80084de: 681b ldr r3, [r3, #0] - 80084e0: 685b ldr r3, [r3, #4] - 80084e2: 823b strh r3, [r7, #16] + 8008746: 687b ldr r3, [r7, #4] + 8008748: 6b9b ldr r3, [r3, #56] ; 0x38 + 800874a: 681b ldr r3, [r3, #0] + 800874c: 685b ldr r3, [r3, #4] + 800874e: 823b strh r3, [r7, #16] if ( (nb_remaining_rx_data > 0U) - 80084e4: 8a3b ldrh r3, [r7, #16] - 80084e6: 2b00 cmp r3, #0 - 80084e8: f000 8098 beq.w 800861c + 8008750: 8a3b ldrh r3, [r7, #16] + 8008752: 2b00 cmp r3, #0 + 8008754: f000 8098 beq.w 8008888 &&(nb_remaining_rx_data < huart->RxXferSize)) - 80084ec: 687b ldr r3, [r7, #4] - 80084ee: 8d9b ldrh r3, [r3, #44] ; 0x2c - 80084f0: 8a3a ldrh r2, [r7, #16] - 80084f2: 429a cmp r2, r3 - 80084f4: f080 8092 bcs.w 800861c + 8008758: 687b ldr r3, [r7, #4] + 800875a: 8d9b ldrh r3, [r3, #44] ; 0x2c + 800875c: 8a3a ldrh r2, [r7, #16] + 800875e: 429a cmp r2, r3 + 8008760: f080 8092 bcs.w 8008888 { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; - 80084f8: 687b ldr r3, [r7, #4] - 80084fa: 8a3a ldrh r2, [r7, #16] - 80084fc: 85da strh r2, [r3, #46] ; 0x2e + 8008764: 687b ldr r3, [r7, #4] + 8008766: 8a3a ldrh r2, [r7, #16] + 8008768: 85da strh r2, [r3, #46] ; 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) - 80084fe: 687b ldr r3, [r7, #4] - 8008500: 6b9b ldr r3, [r3, #56] ; 0x38 - 8008502: 699b ldr r3, [r3, #24] - 8008504: 2b20 cmp r3, #32 - 8008506: d02b beq.n 8008560 + 800876a: 687b ldr r3, [r7, #4] + 800876c: 6b9b ldr r3, [r3, #56] ; 0x38 + 800876e: 699b ldr r3, [r3, #24] + 8008770: 2b20 cmp r3, #32 + 8008772: d02b beq.n 80087cc { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8008508: 687b ldr r3, [r7, #4] - 800850a: 681b ldr r3, [r3, #0] - 800850c: 68da ldr r2, [r3, #12] - 800850e: 687b ldr r3, [r7, #4] - 8008510: 681b ldr r3, [r3, #0] - 8008512: f422 7280 bic.w r2, r2, #256 ; 0x100 - 8008516: 60da str r2, [r3, #12] + 8008774: 687b ldr r3, [r7, #4] + 8008776: 681b ldr r3, [r3, #0] + 8008778: 68da ldr r2, [r3, #12] + 800877a: 687b ldr r3, [r7, #4] + 800877c: 681b ldr r3, [r3, #0] + 800877e: f422 7280 bic.w r2, r2, #256 ; 0x100 + 8008782: 60da str r2, [r3, #12] CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8008518: 687b ldr r3, [r7, #4] - 800851a: 681b ldr r3, [r3, #0] - 800851c: 695a ldr r2, [r3, #20] - 800851e: 687b ldr r3, [r7, #4] - 8008520: 681b ldr r3, [r3, #0] - 8008522: f022 0201 bic.w r2, r2, #1 - 8008526: 615a str r2, [r3, #20] + 8008784: 687b ldr r3, [r7, #4] + 8008786: 681b ldr r3, [r3, #0] + 8008788: 695a ldr r2, [r3, #20] + 800878a: 687b ldr r3, [r7, #4] + 800878c: 681b ldr r3, [r3, #0] + 800878e: f022 0201 bic.w r2, r2, #1 + 8008792: 615a str r2, [r3, #20] /* Disable the DMA transfer for the receiver request by resetting the DMAR bit in the UART CR3 register */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8008528: 687b ldr r3, [r7, #4] - 800852a: 681b ldr r3, [r3, #0] - 800852c: 695a ldr r2, [r3, #20] - 800852e: 687b ldr r3, [r7, #4] - 8008530: 681b ldr r3, [r3, #0] - 8008532: f022 0240 bic.w r2, r2, #64 ; 0x40 - 8008536: 615a str r2, [r3, #20] + 8008794: 687b ldr r3, [r7, #4] + 8008796: 681b ldr r3, [r3, #0] + 8008798: 695a ldr r2, [r3, #20] + 800879a: 687b ldr r3, [r7, #4] + 800879c: 681b ldr r3, [r3, #0] + 800879e: f022 0240 bic.w r2, r2, #64 ; 0x40 + 80087a2: 615a str r2, [r3, #20] /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8008538: 687b ldr r3, [r7, #4] - 800853a: 2220 movs r2, #32 - 800853c: f883 203e strb.w r2, [r3, #62] ; 0x3e + 80087a4: 687b ldr r3, [r7, #4] + 80087a6: 2220 movs r2, #32 + 80087a8: f883 203e strb.w r2, [r3, #62] ; 0x3e huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8008540: 687b ldr r3, [r7, #4] - 8008542: 2200 movs r2, #0 - 8008544: 631a str r2, [r3, #48] ; 0x30 + 80087ac: 687b ldr r3, [r7, #4] + 80087ae: 2200 movs r2, #0 + 80087b0: 631a str r2, [r3, #48] ; 0x30 CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8008546: 687b ldr r3, [r7, #4] - 8008548: 681b ldr r3, [r3, #0] - 800854a: 68da ldr r2, [r3, #12] - 800854c: 687b ldr r3, [r7, #4] - 800854e: 681b ldr r3, [r3, #0] - 8008550: f022 0210 bic.w r2, r2, #16 - 8008554: 60da str r2, [r3, #12] + 80087b2: 687b ldr r3, [r7, #4] + 80087b4: 681b ldr r3, [r3, #0] + 80087b6: 68da ldr r2, [r3, #12] + 80087b8: 687b ldr r3, [r7, #4] + 80087ba: 681b ldr r3, [r3, #0] + 80087bc: f022 0210 bic.w r2, r2, #16 + 80087c0: 60da str r2, [r3, #12] /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); - 8008556: 687b ldr r3, [r7, #4] - 8008558: 6b9b ldr r3, [r3, #56] ; 0x38 - 800855a: 4618 mov r0, r3 - 800855c: f7fe f9b5 bl 80068ca + 80087c2: 687b ldr r3, [r7, #4] + 80087c4: 6b9b ldr r3, [r3, #56] ; 0x38 + 80087c6: 4618 mov r0, r3 + 80087c8: f7fe f9b5 bl 8006b36 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); - 8008560: 687b ldr r3, [r7, #4] - 8008562: 8d9a ldrh r2, [r3, #44] ; 0x2c - 8008564: 687b ldr r3, [r7, #4] - 8008566: 8ddb ldrh r3, [r3, #46] ; 0x2e - 8008568: b29b uxth r3, r3 - 800856a: 1ad3 subs r3, r2, r3 - 800856c: b29b uxth r3, r3 - 800856e: 4619 mov r1, r3 - 8008570: 6878 ldr r0, [r7, #4] - 8008572: f7fa f855 bl 8002620 + 80087cc: 687b ldr r3, [r7, #4] + 80087ce: 8d9a ldrh r2, [r3, #44] ; 0x2c + 80087d0: 687b ldr r3, [r7, #4] + 80087d2: 8ddb ldrh r3, [r3, #46] ; 0x2e + 80087d4: b29b uxth r3, r3 + 80087d6: 1ad3 subs r3, r2, r3 + 80087d8: b29b uxth r3, r3 + 80087da: 4619 mov r1, r3 + 80087dc: 6878 ldr r0, [r7, #4] + 80087de: f7fa f83b bl 8002858 #endif } return; - 8008576: e051 b.n 800861c + 80087e2: e051 b.n 8008888 else { /* DMA mode not enabled */ /* Check received length : If all expected data are received, do nothing. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; - 8008578: 687b ldr r3, [r7, #4] - 800857a: 8d9a ldrh r2, [r3, #44] ; 0x2c - 800857c: 687b ldr r3, [r7, #4] - 800857e: 8ddb ldrh r3, [r3, #46] ; 0x2e - 8008580: b29b uxth r3, r3 - 8008582: 1ad3 subs r3, r2, r3 - 8008584: 827b strh r3, [r7, #18] + 80087e4: 687b ldr r3, [r7, #4] + 80087e6: 8d9a ldrh r2, [r3, #44] ; 0x2c + 80087e8: 687b ldr r3, [r7, #4] + 80087ea: 8ddb ldrh r3, [r3, #46] ; 0x2e + 80087ec: b29b uxth r3, r3 + 80087ee: 1ad3 subs r3, r2, r3 + 80087f0: 827b strh r3, [r7, #18] if ( (huart->RxXferCount > 0U) - 8008586: 687b ldr r3, [r7, #4] - 8008588: 8ddb ldrh r3, [r3, #46] ; 0x2e - 800858a: b29b uxth r3, r3 - 800858c: 2b00 cmp r3, #0 - 800858e: d047 beq.n 8008620 + 80087f2: 687b ldr r3, [r7, #4] + 80087f4: 8ddb ldrh r3, [r3, #46] ; 0x2e + 80087f6: b29b uxth r3, r3 + 80087f8: 2b00 cmp r3, #0 + 80087fa: d047 beq.n 800888c &&(nb_rx_data > 0U) ) - 8008590: 8a7b ldrh r3, [r7, #18] - 8008592: 2b00 cmp r3, #0 - 8008594: d044 beq.n 8008620 + 80087fc: 8a7b ldrh r3, [r7, #18] + 80087fe: 2b00 cmp r3, #0 + 8008800: d044 beq.n 800888c { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 8008596: 687b ldr r3, [r7, #4] - 8008598: 681b ldr r3, [r3, #0] - 800859a: 68da ldr r2, [r3, #12] - 800859c: 687b ldr r3, [r7, #4] - 800859e: 681b ldr r3, [r3, #0] - 80085a0: f422 7290 bic.w r2, r2, #288 ; 0x120 - 80085a4: 60da str r2, [r3, #12] + 8008802: 687b ldr r3, [r7, #4] + 8008804: 681b ldr r3, [r3, #0] + 8008806: 68da ldr r2, [r3, #12] + 8008808: 687b ldr r3, [r7, #4] + 800880a: 681b ldr r3, [r3, #0] + 800880c: f422 7290 bic.w r2, r2, #288 ; 0x120 + 8008810: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 80085a6: 687b ldr r3, [r7, #4] - 80085a8: 681b ldr r3, [r3, #0] - 80085aa: 695a ldr r2, [r3, #20] - 80085ac: 687b ldr r3, [r7, #4] - 80085ae: 681b ldr r3, [r3, #0] - 80085b0: f022 0201 bic.w r2, r2, #1 - 80085b4: 615a str r2, [r3, #20] + 8008812: 687b ldr r3, [r7, #4] + 8008814: 681b ldr r3, [r3, #0] + 8008816: 695a ldr r2, [r3, #20] + 8008818: 687b ldr r3, [r7, #4] + 800881a: 681b ldr r3, [r3, #0] + 800881c: f022 0201 bic.w r2, r2, #1 + 8008820: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80085b6: 687b ldr r3, [r7, #4] - 80085b8: 2220 movs r2, #32 - 80085ba: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8008822: 687b ldr r3, [r7, #4] + 8008824: 2220 movs r2, #32 + 8008826: f883 203e strb.w r2, [r3, #62] ; 0x3e huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80085be: 687b ldr r3, [r7, #4] - 80085c0: 2200 movs r2, #0 - 80085c2: 631a str r2, [r3, #48] ; 0x30 + 800882a: 687b ldr r3, [r7, #4] + 800882c: 2200 movs r2, #0 + 800882e: 631a str r2, [r3, #48] ; 0x30 CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80085c4: 687b ldr r3, [r7, #4] - 80085c6: 681b ldr r3, [r3, #0] - 80085c8: 68da ldr r2, [r3, #12] - 80085ca: 687b ldr r3, [r7, #4] - 80085cc: 681b ldr r3, [r3, #0] - 80085ce: f022 0210 bic.w r2, r2, #16 - 80085d2: 60da str r2, [r3, #12] + 8008830: 687b ldr r3, [r7, #4] + 8008832: 681b ldr r3, [r3, #0] + 8008834: 68da ldr r2, [r3, #12] + 8008836: 687b ldr r3, [r7, #4] + 8008838: 681b ldr r3, [r3, #0] + 800883a: f022 0210 bic.w r2, r2, #16 + 800883e: 60da str r2, [r3, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxEventCallback(huart, nb_rx_data); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, nb_rx_data); - 80085d4: 8a7b ldrh r3, [r7, #18] - 80085d6: 4619 mov r1, r3 - 80085d8: 6878 ldr r0, [r7, #4] - 80085da: f7fa f821 bl 8002620 + 8008840: 8a7b ldrh r3, [r7, #18] + 8008842: 4619 mov r1, r3 + 8008844: 6878 ldr r0, [r7, #4] + 8008846: f7fa f807 bl 8002858 #endif } return; - 80085de: e01f b.n 8008620 + 800884a: e01f b.n 800888c } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) - 80085e0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80085e2: f003 0380 and.w r3, r3, #128 ; 0x80 - 80085e6: 2b00 cmp r3, #0 - 80085e8: d008 beq.n 80085fc - 80085ea: 6a3b ldr r3, [r7, #32] - 80085ec: f003 0380 and.w r3, r3, #128 ; 0x80 - 80085f0: 2b00 cmp r3, #0 - 80085f2: d003 beq.n 80085fc + 800884c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800884e: f003 0380 and.w r3, r3, #128 ; 0x80 + 8008852: 2b00 cmp r3, #0 + 8008854: d008 beq.n 8008868 + 8008856: 6a3b ldr r3, [r7, #32] + 8008858: f003 0380 and.w r3, r3, #128 ; 0x80 + 800885c: 2b00 cmp r3, #0 + 800885e: d003 beq.n 8008868 { UART_Transmit_IT(huart); - 80085f4: 6878 ldr r0, [r7, #4] - 80085f6: f000 f8f7 bl 80087e8 + 8008860: 6878 ldr r0, [r7, #4] + 8008862: f000 f8f7 bl 8008a54 return; - 80085fa: e012 b.n 8008622 + 8008866: e012 b.n 800888e } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) - 80085fc: 6a7b ldr r3, [r7, #36] ; 0x24 - 80085fe: f003 0340 and.w r3, r3, #64 ; 0x40 - 8008602: 2b00 cmp r3, #0 - 8008604: d00d beq.n 8008622 - 8008606: 6a3b ldr r3, [r7, #32] - 8008608: f003 0340 and.w r3, r3, #64 ; 0x40 - 800860c: 2b00 cmp r3, #0 - 800860e: d008 beq.n 8008622 + 8008868: 6a7b ldr r3, [r7, #36] ; 0x24 + 800886a: f003 0340 and.w r3, r3, #64 ; 0x40 + 800886e: 2b00 cmp r3, #0 + 8008870: d00d beq.n 800888e + 8008872: 6a3b ldr r3, [r7, #32] + 8008874: f003 0340 and.w r3, r3, #64 ; 0x40 + 8008878: 2b00 cmp r3, #0 + 800887a: d008 beq.n 800888e { UART_EndTransmit_IT(huart); - 8008610: 6878 ldr r0, [r7, #4] - 8008612: f000 f938 bl 8008886 + 800887c: 6878 ldr r0, [r7, #4] + 800887e: f000 f938 bl 8008af2 return; - 8008616: e004 b.n 8008622 + 8008882: e004 b.n 800888e return; - 8008618: bf00 nop - 800861a: e002 b.n 8008622 + 8008884: bf00 nop + 8008886: e002 b.n 800888e return; - 800861c: bf00 nop - 800861e: e000 b.n 8008622 + 8008888: bf00 nop + 800888a: e000 b.n 800888e return; - 8008620: bf00 nop + 800888c: bf00 nop } } - 8008622: 3728 adds r7, #40 ; 0x28 - 8008624: 46bd mov sp, r7 - 8008626: bd80 pop {r7, pc} - 8008628: 080087c1 .word 0x080087c1 + 800888e: 3728 adds r7, #40 ; 0x28 + 8008890: 46bd mov sp, r7 + 8008892: bd80 pop {r7, pc} + 8008894: 08008a2d .word 0x08008a2d -0800862c : +08008898 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { - 800862c: b480 push {r7} - 800862e: b083 sub sp, #12 - 8008630: af00 add r7, sp, #0 - 8008632: 6078 str r0, [r7, #4] + 8008898: b480 push {r7} + 800889a: b083 sub sp, #12 + 800889c: af00 add r7, sp, #0 + 800889e: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_TxCpltCallback could be implemented in the user file */ } - 8008634: bf00 nop - 8008636: 370c adds r7, #12 - 8008638: 46bd mov sp, r7 - 800863a: bc80 pop {r7} - 800863c: 4770 bx lr + 80088a0: bf00 nop + 80088a2: 370c adds r7, #12 + 80088a4: 46bd mov sp, r7 + 80088a6: bc80 pop {r7} + 80088a8: 4770 bx lr -0800863e : +080088aa : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { - 800863e: b480 push {r7} - 8008640: b083 sub sp, #12 - 8008642: af00 add r7, sp, #0 - 8008644: 6078 str r0, [r7, #4] + 80088aa: b480 push {r7} + 80088ac: b083 sub sp, #12 + 80088ae: af00 add r7, sp, #0 + 80088b0: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_RxCpltCallback could be implemented in the user file */ } - 8008646: bf00 nop - 8008648: 370c adds r7, #12 - 800864a: 46bd mov sp, r7 - 800864c: bc80 pop {r7} - 800864e: 4770 bx lr + 80088b2: bf00 nop + 80088b4: 370c adds r7, #12 + 80088b6: 46bd mov sp, r7 + 80088b8: bc80 pop {r7} + 80088ba: 4770 bx lr -08008650 : +080088bc : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { - 8008650: b480 push {r7} - 8008652: b083 sub sp, #12 - 8008654: af00 add r7, sp, #0 - 8008656: 6078 str r0, [r7, #4] + 80088bc: b480 push {r7} + 80088be: b083 sub sp, #12 + 80088c0: af00 add r7, sp, #0 + 80088c2: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_ErrorCallback could be implemented in the user file */ } - 8008658: bf00 nop - 800865a: 370c adds r7, #12 - 800865c: 46bd mov sp, r7 - 800865e: bc80 pop {r7} - 8008660: 4770 bx lr + 80088c4: bf00 nop + 80088c6: 370c adds r7, #12 + 80088c8: 46bd mov sp, r7 + 80088ca: bc80 pop {r7} + 80088cc: 4770 bx lr -08008662 : +080088ce : * @param Tickstart Tick start value * @param Timeout Timeout duration * @retval HAL status */ static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) { - 8008662: b580 push {r7, lr} - 8008664: b084 sub sp, #16 - 8008666: af00 add r7, sp, #0 - 8008668: 60f8 str r0, [r7, #12] - 800866a: 60b9 str r1, [r7, #8] - 800866c: 603b str r3, [r7, #0] - 800866e: 4613 mov r3, r2 - 8008670: 71fb strb r3, [r7, #7] + 80088ce: b580 push {r7, lr} + 80088d0: b084 sub sp, #16 + 80088d2: af00 add r7, sp, #0 + 80088d4: 60f8 str r0, [r7, #12] + 80088d6: 60b9 str r1, [r7, #8] + 80088d8: 603b str r3, [r7, #0] + 80088da: 4613 mov r3, r2 + 80088dc: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 8008672: e02c b.n 80086ce + 80088de: e02c b.n 800893a { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8008674: 69bb ldr r3, [r7, #24] - 8008676: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 800867a: d028 beq.n 80086ce + 80088e0: 69bb ldr r3, [r7, #24] + 80088e2: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 80088e6: d028 beq.n 800893a { if ((Timeout == 0U) || ((HAL_GetTick() - Tickstart) > Timeout)) - 800867c: 69bb ldr r3, [r7, #24] - 800867e: 2b00 cmp r3, #0 - 8008680: d007 beq.n 8008692 - 8008682: f7fc fc37 bl 8004ef4 - 8008686: 4602 mov r2, r0 - 8008688: 683b ldr r3, [r7, #0] - 800868a: 1ad3 subs r3, r2, r3 - 800868c: 69ba ldr r2, [r7, #24] - 800868e: 429a cmp r2, r3 - 8008690: d21d bcs.n 80086ce + 80088e8: 69bb ldr r3, [r7, #24] + 80088ea: 2b00 cmp r3, #0 + 80088ec: d007 beq.n 80088fe + 80088ee: f7fc fc37 bl 8005160 + 80088f2: 4602 mov r2, r0 + 80088f4: 683b ldr r3, [r7, #0] + 80088f6: 1ad3 subs r3, r2, r3 + 80088f8: 69ba ldr r2, [r7, #24] + 80088fa: 429a cmp r2, r3 + 80088fc: d21d bcs.n 800893a { /* 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)); - 8008692: 68fb ldr r3, [r7, #12] - 8008694: 681b ldr r3, [r3, #0] - 8008696: 68da ldr r2, [r3, #12] - 8008698: 68fb ldr r3, [r7, #12] - 800869a: 681b ldr r3, [r3, #0] - 800869c: f422 72d0 bic.w r2, r2, #416 ; 0x1a0 - 80086a0: 60da str r2, [r3, #12] + 80088fe: 68fb ldr r3, [r7, #12] + 8008900: 681b ldr r3, [r3, #0] + 8008902: 68da ldr r2, [r3, #12] + 8008904: 68fb ldr r3, [r7, #12] + 8008906: 681b ldr r3, [r3, #0] + 8008908: f422 72d0 bic.w r2, r2, #416 ; 0x1a0 + 800890c: 60da str r2, [r3, #12] CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 80086a2: 68fb ldr r3, [r7, #12] - 80086a4: 681b ldr r3, [r3, #0] - 80086a6: 695a ldr r2, [r3, #20] - 80086a8: 68fb ldr r3, [r7, #12] - 80086aa: 681b ldr r3, [r3, #0] - 80086ac: f022 0201 bic.w r2, r2, #1 - 80086b0: 615a str r2, [r3, #20] + 800890e: 68fb ldr r3, [r7, #12] + 8008910: 681b ldr r3, [r3, #0] + 8008912: 695a ldr r2, [r3, #20] + 8008914: 68fb ldr r3, [r7, #12] + 8008916: 681b ldr r3, [r3, #0] + 8008918: f022 0201 bic.w r2, r2, #1 + 800891c: 615a str r2, [r3, #20] huart->gState = HAL_UART_STATE_READY; - 80086b2: 68fb ldr r3, [r7, #12] - 80086b4: 2220 movs r2, #32 - 80086b6: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800891e: 68fb ldr r3, [r7, #12] + 8008920: 2220 movs r2, #32 + 8008922: f883 203d strb.w r2, [r3, #61] ; 0x3d huart->RxState = HAL_UART_STATE_READY; - 80086ba: 68fb ldr r3, [r7, #12] - 80086bc: 2220 movs r2, #32 - 80086be: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8008926: 68fb ldr r3, [r7, #12] + 8008928: 2220 movs r2, #32 + 800892a: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Process Unlocked */ __HAL_UNLOCK(huart); - 80086c2: 68fb ldr r3, [r7, #12] - 80086c4: 2200 movs r2, #0 - 80086c6: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800892e: 68fb ldr r3, [r7, #12] + 8008930: 2200 movs r2, #0 + 8008932: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_TIMEOUT; - 80086ca: 2303 movs r3, #3 - 80086cc: e00f b.n 80086ee + 8008936: 2303 movs r3, #3 + 8008938: e00f b.n 800895a while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 80086ce: 68fb ldr r3, [r7, #12] - 80086d0: 681b ldr r3, [r3, #0] - 80086d2: 681a ldr r2, [r3, #0] - 80086d4: 68bb ldr r3, [r7, #8] - 80086d6: 4013 ands r3, r2 - 80086d8: 68ba ldr r2, [r7, #8] - 80086da: 429a cmp r2, r3 - 80086dc: bf0c ite eq - 80086de: 2301 moveq r3, #1 - 80086e0: 2300 movne r3, #0 - 80086e2: b2db uxtb r3, r3 - 80086e4: 461a mov r2, r3 - 80086e6: 79fb ldrb r3, [r7, #7] - 80086e8: 429a cmp r2, r3 - 80086ea: d0c3 beq.n 8008674 + 800893a: 68fb ldr r3, [r7, #12] + 800893c: 681b ldr r3, [r3, #0] + 800893e: 681a ldr r2, [r3, #0] + 8008940: 68bb ldr r3, [r7, #8] + 8008942: 4013 ands r3, r2 + 8008944: 68ba ldr r2, [r7, #8] + 8008946: 429a cmp r2, r3 + 8008948: bf0c ite eq + 800894a: 2301 moveq r3, #1 + 800894c: 2300 movne r3, #0 + 800894e: b2db uxtb r3, r3 + 8008950: 461a mov r2, r3 + 8008952: 79fb ldrb r3, [r7, #7] + 8008954: 429a cmp r2, r3 + 8008956: d0c3 beq.n 80088e0 } } } return HAL_OK; - 80086ec: 2300 movs r3, #0 + 8008958: 2300 movs r3, #0 } - 80086ee: 4618 mov r0, r3 - 80086f0: 3710 adds r7, #16 - 80086f2: 46bd mov sp, r7 - 80086f4: bd80 pop {r7, pc} + 800895a: 4618 mov r0, r3 + 800895c: 3710 adds r7, #16 + 800895e: 46bd mov sp, r7 + 8008960: bd80 pop {r7, pc} -080086f6 : +08008962 : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { - 80086f6: b480 push {r7} - 80086f8: b085 sub sp, #20 - 80086fa: af00 add r7, sp, #0 - 80086fc: 60f8 str r0, [r7, #12] - 80086fe: 60b9 str r1, [r7, #8] - 8008700: 4613 mov r3, r2 - 8008702: 80fb strh r3, [r7, #6] + 8008962: b480 push {r7} + 8008964: b085 sub sp, #20 + 8008966: af00 add r7, sp, #0 + 8008968: 60f8 str r0, [r7, #12] + 800896a: 60b9 str r1, [r7, #8] + 800896c: 4613 mov r3, r2 + 800896e: 80fb strh r3, [r7, #6] huart->pRxBuffPtr = pData; - 8008704: 68fb ldr r3, [r7, #12] - 8008706: 68ba ldr r2, [r7, #8] - 8008708: 629a str r2, [r3, #40] ; 0x28 + 8008970: 68fb ldr r3, [r7, #12] + 8008972: 68ba ldr r2, [r7, #8] + 8008974: 629a str r2, [r3, #40] ; 0x28 huart->RxXferSize = Size; - 800870a: 68fb ldr r3, [r7, #12] - 800870c: 88fa ldrh r2, [r7, #6] - 800870e: 859a strh r2, [r3, #44] ; 0x2c + 8008976: 68fb ldr r3, [r7, #12] + 8008978: 88fa ldrh r2, [r7, #6] + 800897a: 859a strh r2, [r3, #44] ; 0x2c huart->RxXferCount = Size; - 8008710: 68fb ldr r3, [r7, #12] - 8008712: 88fa ldrh r2, [r7, #6] - 8008714: 85da strh r2, [r3, #46] ; 0x2e + 800897c: 68fb ldr r3, [r7, #12] + 800897e: 88fa ldrh r2, [r7, #6] + 8008980: 85da strh r2, [r3, #46] ; 0x2e huart->ErrorCode = HAL_UART_ERROR_NONE; - 8008716: 68fb ldr r3, [r7, #12] - 8008718: 2200 movs r2, #0 - 800871a: 641a str r2, [r3, #64] ; 0x40 + 8008982: 68fb ldr r3, [r7, #12] + 8008984: 2200 movs r2, #0 + 8008986: 641a str r2, [r3, #64] ; 0x40 huart->RxState = HAL_UART_STATE_BUSY_RX; - 800871c: 68fb ldr r3, [r7, #12] - 800871e: 2222 movs r2, #34 ; 0x22 - 8008720: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8008988: 68fb ldr r3, [r7, #12] + 800898a: 2222 movs r2, #34 ; 0x22 + 800898c: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Process Unlocked */ __HAL_UNLOCK(huart); - 8008724: 68fb ldr r3, [r7, #12] - 8008726: 2200 movs r2, #0 - 8008728: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8008990: 68fb ldr r3, [r7, #12] + 8008992: 2200 movs r2, #0 + 8008994: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Enable the UART Parity Error Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_PE); - 800872c: 68fb ldr r3, [r7, #12] - 800872e: 681b ldr r3, [r3, #0] - 8008730: 68da ldr r2, [r3, #12] - 8008732: 68fb ldr r3, [r7, #12] - 8008734: 681b ldr r3, [r3, #0] - 8008736: f442 7280 orr.w r2, r2, #256 ; 0x100 - 800873a: 60da str r2, [r3, #12] + 8008998: 68fb ldr r3, [r7, #12] + 800899a: 681b ldr r3, [r3, #0] + 800899c: 68da ldr r2, [r3, #12] + 800899e: 68fb ldr r3, [r7, #12] + 80089a0: 681b ldr r3, [r3, #0] + 80089a2: f442 7280 orr.w r2, r2, #256 ; 0x100 + 80089a6: 60da str r2, [r3, #12] /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_ENABLE_IT(huart, UART_IT_ERR); - 800873c: 68fb ldr r3, [r7, #12] - 800873e: 681b ldr r3, [r3, #0] - 8008740: 695a ldr r2, [r3, #20] - 8008742: 68fb ldr r3, [r7, #12] - 8008744: 681b ldr r3, [r3, #0] - 8008746: f042 0201 orr.w r2, r2, #1 - 800874a: 615a str r2, [r3, #20] + 80089a8: 68fb ldr r3, [r7, #12] + 80089aa: 681b ldr r3, [r3, #0] + 80089ac: 695a ldr r2, [r3, #20] + 80089ae: 68fb ldr r3, [r7, #12] + 80089b0: 681b ldr r3, [r3, #0] + 80089b2: f042 0201 orr.w r2, r2, #1 + 80089b6: 615a str r2, [r3, #20] /* Enable the UART Data Register not empty Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_RXNE); - 800874c: 68fb ldr r3, [r7, #12] - 800874e: 681b ldr r3, [r3, #0] - 8008750: 68da ldr r2, [r3, #12] - 8008752: 68fb ldr r3, [r7, #12] - 8008754: 681b ldr r3, [r3, #0] - 8008756: f042 0220 orr.w r2, r2, #32 - 800875a: 60da str r2, [r3, #12] + 80089b8: 68fb ldr r3, [r7, #12] + 80089ba: 681b ldr r3, [r3, #0] + 80089bc: 68da ldr r2, [r3, #12] + 80089be: 68fb ldr r3, [r7, #12] + 80089c0: 681b ldr r3, [r3, #0] + 80089c2: f042 0220 orr.w r2, r2, #32 + 80089c6: 60da str r2, [r3, #12] return HAL_OK; - 800875c: 2300 movs r3, #0 + 80089c8: 2300 movs r3, #0 } - 800875e: 4618 mov r0, r3 - 8008760: 3714 adds r7, #20 - 8008762: 46bd mov sp, r7 - 8008764: bc80 pop {r7} - 8008766: 4770 bx lr + 80089ca: 4618 mov r0, r3 + 80089cc: 3714 adds r7, #20 + 80089ce: 46bd mov sp, r7 + 80089d0: bc80 pop {r7} + 80089d2: 4770 bx lr -08008768 : +080089d4 : * @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) { - 8008768: b480 push {r7} - 800876a: b083 sub sp, #12 - 800876c: af00 add r7, sp, #0 - 800876e: 6078 str r0, [r7, #4] + 80089d4: b480 push {r7} + 80089d6: b083 sub sp, #12 + 80089d8: af00 add r7, sp, #0 + 80089da: 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)); - 8008770: 687b ldr r3, [r7, #4] - 8008772: 681b ldr r3, [r3, #0] - 8008774: 68da ldr r2, [r3, #12] - 8008776: 687b ldr r3, [r7, #4] - 8008778: 681b ldr r3, [r3, #0] - 800877a: f422 7290 bic.w r2, r2, #288 ; 0x120 - 800877e: 60da str r2, [r3, #12] + 80089dc: 687b ldr r3, [r7, #4] + 80089de: 681b ldr r3, [r3, #0] + 80089e0: 68da ldr r2, [r3, #12] + 80089e2: 687b ldr r3, [r7, #4] + 80089e4: 681b ldr r3, [r3, #0] + 80089e6: f422 7290 bic.w r2, r2, #288 ; 0x120 + 80089ea: 60da str r2, [r3, #12] CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8008780: 687b ldr r3, [r7, #4] - 8008782: 681b ldr r3, [r3, #0] - 8008784: 695a ldr r2, [r3, #20] - 8008786: 687b ldr r3, [r7, #4] - 8008788: 681b ldr r3, [r3, #0] - 800878a: f022 0201 bic.w r2, r2, #1 - 800878e: 615a str r2, [r3, #20] + 80089ec: 687b ldr r3, [r7, #4] + 80089ee: 681b ldr r3, [r3, #0] + 80089f0: 695a ldr r2, [r3, #20] + 80089f2: 687b ldr r3, [r7, #4] + 80089f4: 681b ldr r3, [r3, #0] + 80089f6: f022 0201 bic.w r2, r2, #1 + 80089fa: 615a str r2, [r3, #20] /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8008790: 687b ldr r3, [r7, #4] - 8008792: 6b1b ldr r3, [r3, #48] ; 0x30 - 8008794: 2b01 cmp r3, #1 - 8008796: d107 bne.n 80087a8 + 80089fc: 687b ldr r3, [r7, #4] + 80089fe: 6b1b ldr r3, [r3, #48] ; 0x30 + 8008a00: 2b01 cmp r3, #1 + 8008a02: d107 bne.n 8008a14 { CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8008798: 687b ldr r3, [r7, #4] - 800879a: 681b ldr r3, [r3, #0] - 800879c: 68da ldr r2, [r3, #12] - 800879e: 687b ldr r3, [r7, #4] - 80087a0: 681b ldr r3, [r3, #0] - 80087a2: f022 0210 bic.w r2, r2, #16 - 80087a6: 60da str r2, [r3, #12] + 8008a04: 687b ldr r3, [r7, #4] + 8008a06: 681b ldr r3, [r3, #0] + 8008a08: 68da ldr r2, [r3, #12] + 8008a0a: 687b ldr r3, [r7, #4] + 8008a0c: 681b ldr r3, [r3, #0] + 8008a0e: f022 0210 bic.w r2, r2, #16 + 8008a12: 60da str r2, [r3, #12] } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80087a8: 687b ldr r3, [r7, #4] - 80087aa: 2220 movs r2, #32 - 80087ac: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8008a14: 687b ldr r3, [r7, #4] + 8008a16: 2220 movs r2, #32 + 8008a18: f883 203e strb.w r2, [r3, #62] ; 0x3e huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80087b0: 687b ldr r3, [r7, #4] - 80087b2: 2200 movs r2, #0 - 80087b4: 631a str r2, [r3, #48] ; 0x30 + 8008a1c: 687b ldr r3, [r7, #4] + 8008a1e: 2200 movs r2, #0 + 8008a20: 631a str r2, [r3, #48] ; 0x30 } - 80087b6: bf00 nop - 80087b8: 370c adds r7, #12 - 80087ba: 46bd mov sp, r7 - 80087bc: bc80 pop {r7} - 80087be: 4770 bx lr + 8008a22: bf00 nop + 8008a24: 370c adds r7, #12 + 8008a26: 46bd mov sp, r7 + 8008a28: bc80 pop {r7} + 8008a2a: 4770 bx lr -080087c0 : +08008a2c : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) { - 80087c0: b580 push {r7, lr} - 80087c2: b084 sub sp, #16 - 80087c4: af00 add r7, sp, #0 - 80087c6: 6078 str r0, [r7, #4] + 8008a2c: b580 push {r7, lr} + 8008a2e: b084 sub sp, #16 + 8008a30: af00 add r7, sp, #0 + 8008a32: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80087c8: 687b ldr r3, [r7, #4] - 80087ca: 6a5b ldr r3, [r3, #36] ; 0x24 - 80087cc: 60fb str r3, [r7, #12] + 8008a34: 687b ldr r3, [r7, #4] + 8008a36: 6a5b ldr r3, [r3, #36] ; 0x24 + 8008a38: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; - 80087ce: 68fb ldr r3, [r7, #12] - 80087d0: 2200 movs r2, #0 - 80087d2: 85da strh r2, [r3, #46] ; 0x2e + 8008a3a: 68fb ldr r3, [r7, #12] + 8008a3c: 2200 movs r2, #0 + 8008a3e: 85da strh r2, [r3, #46] ; 0x2e huart->TxXferCount = 0x00U; - 80087d4: 68fb ldr r3, [r7, #12] - 80087d6: 2200 movs r2, #0 - 80087d8: 84da strh r2, [r3, #38] ; 0x26 + 8008a40: 68fb ldr r3, [r7, #12] + 8008a42: 2200 movs r2, #0 + 8008a44: 84da strh r2, [r3, #38] ; 0x26 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 80087da: 68f8 ldr r0, [r7, #12] - 80087dc: f7ff ff38 bl 8008650 + 8008a46: 68f8 ldr r0, [r7, #12] + 8008a48: f7ff ff38 bl 80088bc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 80087e0: bf00 nop - 80087e2: 3710 adds r7, #16 - 80087e4: 46bd mov sp, r7 - 80087e6: bd80 pop {r7, pc} + 8008a4c: bf00 nop + 8008a4e: 3710 adds r7, #16 + 8008a50: 46bd mov sp, r7 + 8008a52: bd80 pop {r7, pc} -080087e8 : +08008a54 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart) { - 80087e8: b480 push {r7} - 80087ea: b085 sub sp, #20 - 80087ec: af00 add r7, sp, #0 - 80087ee: 6078 str r0, [r7, #4] + 8008a54: b480 push {r7} + 8008a56: b085 sub sp, #20 + 8008a58: af00 add r7, sp, #0 + 8008a5a: 6078 str r0, [r7, #4] uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) - 80087f0: 687b ldr r3, [r7, #4] - 80087f2: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 80087f6: b2db uxtb r3, r3 - 80087f8: 2b21 cmp r3, #33 ; 0x21 - 80087fa: d13e bne.n 800887a + 8008a5c: 687b ldr r3, [r7, #4] + 8008a5e: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 8008a62: b2db uxtb r3, r3 + 8008a64: 2b21 cmp r3, #33 ; 0x21 + 8008a66: d13e bne.n 8008ae6 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 80087fc: 687b ldr r3, [r7, #4] - 80087fe: 689b ldr r3, [r3, #8] - 8008800: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008804: d114 bne.n 8008830 - 8008806: 687b ldr r3, [r7, #4] - 8008808: 691b ldr r3, [r3, #16] - 800880a: 2b00 cmp r3, #0 - 800880c: d110 bne.n 8008830 + 8008a68: 687b ldr r3, [r7, #4] + 8008a6a: 689b ldr r3, [r3, #8] + 8008a6c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 8008a70: d114 bne.n 8008a9c + 8008a72: 687b ldr r3, [r7, #4] + 8008a74: 691b ldr r3, [r3, #16] + 8008a76: 2b00 cmp r3, #0 + 8008a78: d110 bne.n 8008a9c { tmp = (uint16_t *) huart->pTxBuffPtr; - 800880e: 687b ldr r3, [r7, #4] - 8008810: 6a1b ldr r3, [r3, #32] - 8008812: 60fb str r3, [r7, #12] + 8008a7a: 687b ldr r3, [r7, #4] + 8008a7c: 6a1b ldr r3, [r3, #32] + 8008a7e: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); - 8008814: 68fb ldr r3, [r7, #12] - 8008816: 881b ldrh r3, [r3, #0] - 8008818: 461a mov r2, r3 - 800881a: 687b ldr r3, [r7, #4] - 800881c: 681b ldr r3, [r3, #0] - 800881e: f3c2 0208 ubfx r2, r2, #0, #9 - 8008822: 605a str r2, [r3, #4] + 8008a80: 68fb ldr r3, [r7, #12] + 8008a82: 881b ldrh r3, [r3, #0] + 8008a84: 461a mov r2, r3 + 8008a86: 687b ldr r3, [r7, #4] + 8008a88: 681b ldr r3, [r3, #0] + 8008a8a: f3c2 0208 ubfx r2, r2, #0, #9 + 8008a8e: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; - 8008824: 687b ldr r3, [r7, #4] - 8008826: 6a1b ldr r3, [r3, #32] - 8008828: 1c9a adds r2, r3, #2 - 800882a: 687b ldr r3, [r7, #4] - 800882c: 621a str r2, [r3, #32] - 800882e: e008 b.n 8008842 + 8008a90: 687b ldr r3, [r7, #4] + 8008a92: 6a1b ldr r3, [r3, #32] + 8008a94: 1c9a adds r2, r3, #2 + 8008a96: 687b ldr r3, [r7, #4] + 8008a98: 621a str r2, [r3, #32] + 8008a9a: e008 b.n 8008aae } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); - 8008830: 687b ldr r3, [r7, #4] - 8008832: 6a1b ldr r3, [r3, #32] - 8008834: 1c59 adds r1, r3, #1 - 8008836: 687a ldr r2, [r7, #4] - 8008838: 6211 str r1, [r2, #32] - 800883a: 781a ldrb r2, [r3, #0] - 800883c: 687b ldr r3, [r7, #4] - 800883e: 681b ldr r3, [r3, #0] - 8008840: 605a str r2, [r3, #4] + 8008a9c: 687b ldr r3, [r7, #4] + 8008a9e: 6a1b ldr r3, [r3, #32] + 8008aa0: 1c59 adds r1, r3, #1 + 8008aa2: 687a ldr r2, [r7, #4] + 8008aa4: 6211 str r1, [r2, #32] + 8008aa6: 781a ldrb r2, [r3, #0] + 8008aa8: 687b ldr r3, [r7, #4] + 8008aaa: 681b ldr r3, [r3, #0] + 8008aac: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) - 8008842: 687b ldr r3, [r7, #4] - 8008844: 8cdb ldrh r3, [r3, #38] ; 0x26 - 8008846: b29b uxth r3, r3 - 8008848: 3b01 subs r3, #1 - 800884a: b29b uxth r3, r3 - 800884c: 687a ldr r2, [r7, #4] - 800884e: 4619 mov r1, r3 - 8008850: 84d1 strh r1, [r2, #38] ; 0x26 - 8008852: 2b00 cmp r3, #0 - 8008854: d10f bne.n 8008876 + 8008aae: 687b ldr r3, [r7, #4] + 8008ab0: 8cdb ldrh r3, [r3, #38] ; 0x26 + 8008ab2: b29b uxth r3, r3 + 8008ab4: 3b01 subs r3, #1 + 8008ab6: b29b uxth r3, r3 + 8008ab8: 687a ldr r2, [r7, #4] + 8008aba: 4619 mov r1, r3 + 8008abc: 84d1 strh r1, [r2, #38] ; 0x26 + 8008abe: 2b00 cmp r3, #0 + 8008ac0: d10f bne.n 8008ae2 { /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); - 8008856: 687b ldr r3, [r7, #4] - 8008858: 681b ldr r3, [r3, #0] - 800885a: 68da ldr r2, [r3, #12] - 800885c: 687b ldr r3, [r7, #4] - 800885e: 681b ldr r3, [r3, #0] - 8008860: f022 0280 bic.w r2, r2, #128 ; 0x80 - 8008864: 60da str r2, [r3, #12] + 8008ac2: 687b ldr r3, [r7, #4] + 8008ac4: 681b ldr r3, [r3, #0] + 8008ac6: 68da ldr r2, [r3, #12] + 8008ac8: 687b ldr r3, [r7, #4] + 8008aca: 681b ldr r3, [r3, #0] + 8008acc: f022 0280 bic.w r2, r2, #128 ; 0x80 + 8008ad0: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); - 8008866: 687b ldr r3, [r7, #4] - 8008868: 681b ldr r3, [r3, #0] - 800886a: 68da ldr r2, [r3, #12] - 800886c: 687b ldr r3, [r7, #4] - 800886e: 681b ldr r3, [r3, #0] - 8008870: f042 0240 orr.w r2, r2, #64 ; 0x40 - 8008874: 60da str r2, [r3, #12] + 8008ad2: 687b ldr r3, [r7, #4] + 8008ad4: 681b ldr r3, [r3, #0] + 8008ad6: 68da ldr r2, [r3, #12] + 8008ad8: 687b ldr r3, [r7, #4] + 8008ada: 681b ldr r3, [r3, #0] + 8008adc: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8008ae0: 60da str r2, [r3, #12] } return HAL_OK; - 8008876: 2300 movs r3, #0 - 8008878: e000 b.n 800887c + 8008ae2: 2300 movs r3, #0 + 8008ae4: e000 b.n 8008ae8 } else { return HAL_BUSY; - 800887a: 2302 movs r3, #2 + 8008ae6: 2302 movs r3, #2 } } - 800887c: 4618 mov r0, r3 - 800887e: 3714 adds r7, #20 - 8008880: 46bd mov sp, r7 - 8008882: bc80 pop {r7} - 8008884: 4770 bx lr + 8008ae8: 4618 mov r0, r3 + 8008aea: 3714 adds r7, #20 + 8008aec: 46bd mov sp, r7 + 8008aee: bc80 pop {r7} + 8008af0: 4770 bx lr -08008886 : +08008af2 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart) { - 8008886: b580 push {r7, lr} - 8008888: b082 sub sp, #8 - 800888a: af00 add r7, sp, #0 - 800888c: 6078 str r0, [r7, #4] + 8008af2: b580 push {r7, lr} + 8008af4: b082 sub sp, #8 + 8008af6: af00 add r7, sp, #0 + 8008af8: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); - 800888e: 687b ldr r3, [r7, #4] - 8008890: 681b ldr r3, [r3, #0] - 8008892: 68da ldr r2, [r3, #12] - 8008894: 687b ldr r3, [r7, #4] - 8008896: 681b ldr r3, [r3, #0] - 8008898: f022 0240 bic.w r2, r2, #64 ; 0x40 - 800889c: 60da str r2, [r3, #12] + 8008afa: 687b ldr r3, [r7, #4] + 8008afc: 681b ldr r3, [r3, #0] + 8008afe: 68da ldr r2, [r3, #12] + 8008b00: 687b ldr r3, [r7, #4] + 8008b02: 681b ldr r3, [r3, #0] + 8008b04: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8008b08: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 800889e: 687b ldr r3, [r7, #4] - 80088a0: 2220 movs r2, #32 - 80088a2: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8008b0a: 687b ldr r3, [r7, #4] + 8008b0c: 2220 movs r2, #32 + 8008b0e: f883 203d strb.w r2, [r3, #61] ; 0x3d #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); - 80088a6: 6878 ldr r0, [r7, #4] - 80088a8: f7ff fec0 bl 800862c + 8008b12: 6878 ldr r0, [r7, #4] + 8008b14: f7ff fec0 bl 8008898 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; - 80088ac: 2300 movs r3, #0 + 8008b18: 2300 movs r3, #0 } - 80088ae: 4618 mov r0, r3 - 80088b0: 3708 adds r7, #8 - 80088b2: 46bd mov sp, r7 - 80088b4: bd80 pop {r7, pc} + 8008b1a: 4618 mov r0, r3 + 8008b1c: 3708 adds r7, #8 + 8008b1e: 46bd mov sp, r7 + 8008b20: bd80 pop {r7, pc} -080088b6 : +08008b22 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart) { - 80088b6: b580 push {r7, lr} - 80088b8: b086 sub sp, #24 - 80088ba: af00 add r7, sp, #0 - 80088bc: 6078 str r0, [r7, #4] + 8008b22: b580 push {r7, lr} + 8008b24: b086 sub sp, #24 + 8008b26: af00 add r7, sp, #0 + 8008b28: 6078 str r0, [r7, #4] uint8_t *pdata8bits; uint16_t *pdata16bits; /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 80088be: 687b ldr r3, [r7, #4] - 80088c0: f893 303e ldrb.w r3, [r3, #62] ; 0x3e - 80088c4: b2db uxtb r3, r3 - 80088c6: 2b22 cmp r3, #34 ; 0x22 - 80088c8: f040 8099 bne.w 80089fe + 8008b2a: 687b ldr r3, [r7, #4] + 8008b2c: f893 303e ldrb.w r3, [r3, #62] ; 0x3e + 8008b30: b2db uxtb r3, r3 + 8008b32: 2b22 cmp r3, #34 ; 0x22 + 8008b34: f040 8099 bne.w 8008c6a { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 80088cc: 687b ldr r3, [r7, #4] - 80088ce: 689b ldr r3, [r3, #8] - 80088d0: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 80088d4: d117 bne.n 8008906 - 80088d6: 687b ldr r3, [r7, #4] - 80088d8: 691b ldr r3, [r3, #16] - 80088da: 2b00 cmp r3, #0 - 80088dc: d113 bne.n 8008906 + 8008b38: 687b ldr r3, [r7, #4] + 8008b3a: 689b ldr r3, [r3, #8] + 8008b3c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 8008b40: d117 bne.n 8008b72 + 8008b42: 687b ldr r3, [r7, #4] + 8008b44: 691b ldr r3, [r3, #16] + 8008b46: 2b00 cmp r3, #0 + 8008b48: d113 bne.n 8008b72 { pdata8bits = NULL; - 80088de: 2300 movs r3, #0 - 80088e0: 617b str r3, [r7, #20] + 8008b4a: 2300 movs r3, #0 + 8008b4c: 617b str r3, [r7, #20] pdata16bits = (uint16_t *) huart->pRxBuffPtr; - 80088e2: 687b ldr r3, [r7, #4] - 80088e4: 6a9b ldr r3, [r3, #40] ; 0x28 - 80088e6: 613b str r3, [r7, #16] + 8008b4e: 687b ldr r3, [r7, #4] + 8008b50: 6a9b ldr r3, [r3, #40] ; 0x28 + 8008b52: 613b str r3, [r7, #16] *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); - 80088e8: 687b ldr r3, [r7, #4] - 80088ea: 681b ldr r3, [r3, #0] - 80088ec: 685b ldr r3, [r3, #4] - 80088ee: b29b uxth r3, r3 - 80088f0: f3c3 0308 ubfx r3, r3, #0, #9 - 80088f4: b29a uxth r2, r3 - 80088f6: 693b ldr r3, [r7, #16] - 80088f8: 801a strh r2, [r3, #0] + 8008b54: 687b ldr r3, [r7, #4] + 8008b56: 681b ldr r3, [r3, #0] + 8008b58: 685b ldr r3, [r3, #4] + 8008b5a: b29b uxth r3, r3 + 8008b5c: f3c3 0308 ubfx r3, r3, #0, #9 + 8008b60: b29a uxth r2, r3 + 8008b62: 693b ldr r3, [r7, #16] + 8008b64: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; - 80088fa: 687b ldr r3, [r7, #4] - 80088fc: 6a9b ldr r3, [r3, #40] ; 0x28 - 80088fe: 1c9a adds r2, r3, #2 - 8008900: 687b ldr r3, [r7, #4] - 8008902: 629a str r2, [r3, #40] ; 0x28 - 8008904: e026 b.n 8008954 + 8008b66: 687b ldr r3, [r7, #4] + 8008b68: 6a9b ldr r3, [r3, #40] ; 0x28 + 8008b6a: 1c9a adds r2, r3, #2 + 8008b6c: 687b ldr r3, [r7, #4] + 8008b6e: 629a str r2, [r3, #40] ; 0x28 + 8008b70: e026 b.n 8008bc0 } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; - 8008906: 687b ldr r3, [r7, #4] - 8008908: 6a9b ldr r3, [r3, #40] ; 0x28 - 800890a: 617b str r3, [r7, #20] + 8008b72: 687b ldr r3, [r7, #4] + 8008b74: 6a9b ldr r3, [r3, #40] ; 0x28 + 8008b76: 617b str r3, [r7, #20] pdata16bits = NULL; - 800890c: 2300 movs r3, #0 - 800890e: 613b str r3, [r7, #16] + 8008b78: 2300 movs r3, #0 + 8008b7a: 613b str r3, [r7, #16] if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) - 8008910: 687b ldr r3, [r7, #4] - 8008912: 689b ldr r3, [r3, #8] - 8008914: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 8008918: d007 beq.n 800892a - 800891a: 687b ldr r3, [r7, #4] - 800891c: 689b ldr r3, [r3, #8] - 800891e: 2b00 cmp r3, #0 - 8008920: d10a bne.n 8008938 - 8008922: 687b ldr r3, [r7, #4] - 8008924: 691b ldr r3, [r3, #16] - 8008926: 2b00 cmp r3, #0 - 8008928: d106 bne.n 8008938 + 8008b7c: 687b ldr r3, [r7, #4] + 8008b7e: 689b ldr r3, [r3, #8] + 8008b80: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 8008b84: d007 beq.n 8008b96 + 8008b86: 687b ldr r3, [r7, #4] + 8008b88: 689b ldr r3, [r3, #8] + 8008b8a: 2b00 cmp r3, #0 + 8008b8c: d10a bne.n 8008ba4 + 8008b8e: 687b ldr r3, [r7, #4] + 8008b90: 691b ldr r3, [r3, #16] + 8008b92: 2b00 cmp r3, #0 + 8008b94: d106 bne.n 8008ba4 { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); - 800892a: 687b ldr r3, [r7, #4] - 800892c: 681b ldr r3, [r3, #0] - 800892e: 685b ldr r3, [r3, #4] - 8008930: b2da uxtb r2, r3 - 8008932: 697b ldr r3, [r7, #20] - 8008934: 701a strb r2, [r3, #0] - 8008936: e008 b.n 800894a + 8008b96: 687b ldr r3, [r7, #4] + 8008b98: 681b ldr r3, [r3, #0] + 8008b9a: 685b ldr r3, [r3, #4] + 8008b9c: b2da uxtb r2, r3 + 8008b9e: 697b ldr r3, [r7, #20] + 8008ba0: 701a strb r2, [r3, #0] + 8008ba2: e008 b.n 8008bb6 } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); - 8008938: 687b ldr r3, [r7, #4] - 800893a: 681b ldr r3, [r3, #0] - 800893c: 685b ldr r3, [r3, #4] - 800893e: b2db uxtb r3, r3 - 8008940: f003 037f and.w r3, r3, #127 ; 0x7f - 8008944: b2da uxtb r2, r3 - 8008946: 697b ldr r3, [r7, #20] - 8008948: 701a strb r2, [r3, #0] + 8008ba4: 687b ldr r3, [r7, #4] + 8008ba6: 681b ldr r3, [r3, #0] + 8008ba8: 685b ldr r3, [r3, #4] + 8008baa: b2db uxtb r3, r3 + 8008bac: f003 037f and.w r3, r3, #127 ; 0x7f + 8008bb0: b2da uxtb r2, r3 + 8008bb2: 697b ldr r3, [r7, #20] + 8008bb4: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; - 800894a: 687b ldr r3, [r7, #4] - 800894c: 6a9b ldr r3, [r3, #40] ; 0x28 - 800894e: 1c5a adds r2, r3, #1 - 8008950: 687b ldr r3, [r7, #4] - 8008952: 629a str r2, [r3, #40] ; 0x28 + 8008bb6: 687b ldr r3, [r7, #4] + 8008bb8: 6a9b ldr r3, [r3, #40] ; 0x28 + 8008bba: 1c5a adds r2, r3, #1 + 8008bbc: 687b ldr r3, [r7, #4] + 8008bbe: 629a str r2, [r3, #40] ; 0x28 } if (--huart->RxXferCount == 0U) - 8008954: 687b ldr r3, [r7, #4] - 8008956: 8ddb ldrh r3, [r3, #46] ; 0x2e - 8008958: b29b uxth r3, r3 - 800895a: 3b01 subs r3, #1 - 800895c: b29b uxth r3, r3 - 800895e: 687a ldr r2, [r7, #4] - 8008960: 4619 mov r1, r3 - 8008962: 85d1 strh r1, [r2, #46] ; 0x2e - 8008964: 2b00 cmp r3, #0 - 8008966: d148 bne.n 80089fa + 8008bc0: 687b ldr r3, [r7, #4] + 8008bc2: 8ddb ldrh r3, [r3, #46] ; 0x2e + 8008bc4: b29b uxth r3, r3 + 8008bc6: 3b01 subs r3, #1 + 8008bc8: b29b uxth r3, r3 + 8008bca: 687a ldr r2, [r7, #4] + 8008bcc: 4619 mov r1, r3 + 8008bce: 85d1 strh r1, [r2, #46] ; 0x2e + 8008bd0: 2b00 cmp r3, #0 + 8008bd2: d148 bne.n 8008c66 { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); - 8008968: 687b ldr r3, [r7, #4] - 800896a: 681b ldr r3, [r3, #0] - 800896c: 68da ldr r2, [r3, #12] - 800896e: 687b ldr r3, [r7, #4] - 8008970: 681b ldr r3, [r3, #0] - 8008972: f022 0220 bic.w r2, r2, #32 - 8008976: 60da str r2, [r3, #12] + 8008bd4: 687b ldr r3, [r7, #4] + 8008bd6: 681b ldr r3, [r3, #0] + 8008bd8: 68da ldr r2, [r3, #12] + 8008bda: 687b ldr r3, [r7, #4] + 8008bdc: 681b ldr r3, [r3, #0] + 8008bde: f022 0220 bic.w r2, r2, #32 + 8008be2: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); - 8008978: 687b ldr r3, [r7, #4] - 800897a: 681b ldr r3, [r3, #0] - 800897c: 68da ldr r2, [r3, #12] - 800897e: 687b ldr r3, [r7, #4] - 8008980: 681b ldr r3, [r3, #0] - 8008982: f422 7280 bic.w r2, r2, #256 ; 0x100 - 8008986: 60da str r2, [r3, #12] + 8008be4: 687b ldr r3, [r7, #4] + 8008be6: 681b ldr r3, [r3, #0] + 8008be8: 68da ldr r2, [r3, #12] + 8008bea: 687b ldr r3, [r7, #4] + 8008bec: 681b ldr r3, [r3, #0] + 8008bee: f422 7280 bic.w r2, r2, #256 ; 0x100 + 8008bf2: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); - 8008988: 687b ldr r3, [r7, #4] - 800898a: 681b ldr r3, [r3, #0] - 800898c: 695a ldr r2, [r3, #20] - 800898e: 687b ldr r3, [r7, #4] - 8008990: 681b ldr r3, [r3, #0] - 8008992: f022 0201 bic.w r2, r2, #1 - 8008996: 615a str r2, [r3, #20] + 8008bf4: 687b ldr r3, [r7, #4] + 8008bf6: 681b ldr r3, [r3, #0] + 8008bf8: 695a ldr r2, [r3, #20] + 8008bfa: 687b ldr r3, [r7, #4] + 8008bfc: 681b ldr r3, [r3, #0] + 8008bfe: f022 0201 bic.w r2, r2, #1 + 8008c02: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8008998: 687b ldr r3, [r7, #4] - 800899a: 2220 movs r2, #32 - 800899c: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8008c04: 687b ldr r3, [r7, #4] + 8008c06: 2220 movs r2, #32 + 8008c08: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 80089a0: 687b ldr r3, [r7, #4] - 80089a2: 6b1b ldr r3, [r3, #48] ; 0x30 - 80089a4: 2b01 cmp r3, #1 - 80089a6: d123 bne.n 80089f0 + 8008c0c: 687b ldr r3, [r7, #4] + 8008c0e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8008c10: 2b01 cmp r3, #1 + 8008c12: d123 bne.n 8008c5c { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80089a8: 687b ldr r3, [r7, #4] - 80089aa: 2200 movs r2, #0 - 80089ac: 631a str r2, [r3, #48] ; 0x30 + 8008c14: 687b ldr r3, [r7, #4] + 8008c16: 2200 movs r2, #0 + 8008c18: 631a str r2, [r3, #48] ; 0x30 /* Disable IDLE interrupt */ CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80089ae: 687b ldr r3, [r7, #4] - 80089b0: 681b ldr r3, [r3, #0] - 80089b2: 68da ldr r2, [r3, #12] - 80089b4: 687b ldr r3, [r7, #4] - 80089b6: 681b ldr r3, [r3, #0] - 80089b8: f022 0210 bic.w r2, r2, #16 - 80089bc: 60da str r2, [r3, #12] + 8008c1a: 687b ldr r3, [r7, #4] + 8008c1c: 681b ldr r3, [r3, #0] + 8008c1e: 68da ldr r2, [r3, #12] + 8008c20: 687b ldr r3, [r7, #4] + 8008c22: 681b ldr r3, [r3, #0] + 8008c24: f022 0210 bic.w r2, r2, #16 + 8008c28: 60da str r2, [r3, #12] /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) - 80089be: 687b ldr r3, [r7, #4] - 80089c0: 681b ldr r3, [r3, #0] - 80089c2: 681b ldr r3, [r3, #0] - 80089c4: f003 0310 and.w r3, r3, #16 - 80089c8: 2b10 cmp r3, #16 - 80089ca: d10a bne.n 80089e2 + 8008c2a: 687b ldr r3, [r7, #4] + 8008c2c: 681b ldr r3, [r3, #0] + 8008c2e: 681b ldr r3, [r3, #0] + 8008c30: f003 0310 and.w r3, r3, #16 + 8008c34: 2b10 cmp r3, #16 + 8008c36: d10a bne.n 8008c4e { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); - 80089cc: 2300 movs r3, #0 - 80089ce: 60fb str r3, [r7, #12] - 80089d0: 687b ldr r3, [r7, #4] - 80089d2: 681b ldr r3, [r3, #0] - 80089d4: 681b ldr r3, [r3, #0] - 80089d6: 60fb str r3, [r7, #12] - 80089d8: 687b ldr r3, [r7, #4] - 80089da: 681b ldr r3, [r3, #0] - 80089dc: 685b ldr r3, [r3, #4] - 80089de: 60fb str r3, [r7, #12] - 80089e0: 68fb ldr r3, [r7, #12] + 8008c38: 2300 movs r3, #0 + 8008c3a: 60fb str r3, [r7, #12] + 8008c3c: 687b ldr r3, [r7, #4] + 8008c3e: 681b ldr r3, [r3, #0] + 8008c40: 681b ldr r3, [r3, #0] + 8008c42: 60fb str r3, [r7, #12] + 8008c44: 687b ldr r3, [r7, #4] + 8008c46: 681b ldr r3, [r3, #0] + 8008c48: 685b ldr r3, [r3, #4] + 8008c4a: 60fb str r3, [r7, #12] + 8008c4c: 68fb ldr r3, [r7, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 80089e2: 687b ldr r3, [r7, #4] - 80089e4: 8d9b ldrh r3, [r3, #44] ; 0x2c - 80089e6: 4619 mov r1, r3 - 80089e8: 6878 ldr r0, [r7, #4] - 80089ea: f7f9 fe19 bl 8002620 - 80089ee: e002 b.n 80089f6 + 8008c4e: 687b ldr r3, [r7, #4] + 8008c50: 8d9b ldrh r3, [r3, #44] ; 0x2c + 8008c52: 4619 mov r1, r3 + 8008c54: 6878 ldr r0, [r7, #4] + 8008c56: f7f9 fdff bl 8002858 + 8008c5a: e002 b.n 8008c62 #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); - 80089f0: 6878 ldr r0, [r7, #4] - 80089f2: f7ff fe24 bl 800863e + 8008c5c: 6878 ldr r0, [r7, #4] + 8008c5e: f7ff fe24 bl 80088aa #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; - 80089f6: 2300 movs r3, #0 - 80089f8: e002 b.n 8008a00 + 8008c62: 2300 movs r3, #0 + 8008c64: e002 b.n 8008c6c } return HAL_OK; - 80089fa: 2300 movs r3, #0 - 80089fc: e000 b.n 8008a00 + 8008c66: 2300 movs r3, #0 + 8008c68: e000 b.n 8008c6c } else { return HAL_BUSY; - 80089fe: 2302 movs r3, #2 + 8008c6a: 2302 movs r3, #2 } } - 8008a00: 4618 mov r0, r3 - 8008a02: 3718 adds r7, #24 - 8008a04: 46bd mov sp, r7 - 8008a06: bd80 pop {r7, pc} + 8008c6c: 4618 mov r0, r3 + 8008c6e: 3718 adds r7, #24 + 8008c70: 46bd mov sp, r7 + 8008c72: bd80 pop {r7, pc} -08008a08 : +08008c74 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_SetConfig(UART_HandleTypeDef *huart) { - 8008a08: b580 push {r7, lr} - 8008a0a: b084 sub sp, #16 - 8008a0c: af00 add r7, sp, #0 - 8008a0e: 6078 str r0, [r7, #4] + 8008c74: b580 push {r7, lr} + 8008c76: b084 sub sp, #16 + 8008c78: af00 add r7, sp, #0 + 8008c7a: 6078 str r0, [r7, #4] assert_param(IS_UART_MODE(huart->Init.Mode)); /*-------------------------- 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); - 8008a10: 687b ldr r3, [r7, #4] - 8008a12: 681b ldr r3, [r3, #0] - 8008a14: 691b ldr r3, [r3, #16] - 8008a16: f423 5140 bic.w r1, r3, #12288 ; 0x3000 - 8008a1a: 687b ldr r3, [r7, #4] - 8008a1c: 68da ldr r2, [r3, #12] - 8008a1e: 687b ldr r3, [r7, #4] - 8008a20: 681b ldr r3, [r3, #0] - 8008a22: 430a orrs r2, r1 - 8008a24: 611a str r2, [r3, #16] + 8008c7c: 687b ldr r3, [r7, #4] + 8008c7e: 681b ldr r3, [r3, #0] + 8008c80: 691b ldr r3, [r3, #16] + 8008c82: f423 5140 bic.w r1, r3, #12288 ; 0x3000 + 8008c86: 687b ldr r3, [r7, #4] + 8008c88: 68da ldr r2, [r3, #12] + 8008c8a: 687b ldr r3, [r7, #4] + 8008c8c: 681b ldr r3, [r3, #0] + 8008c8e: 430a orrs r2, r1 + 8008c90: 611a str r2, [r3, #16] tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling; MODIFY_REG(huart->Instance->CR1, (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8), tmpreg); #else tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode; - 8008a26: 687b ldr r3, [r7, #4] - 8008a28: 689a ldr r2, [r3, #8] - 8008a2a: 687b ldr r3, [r7, #4] - 8008a2c: 691b ldr r3, [r3, #16] - 8008a2e: 431a orrs r2, r3 - 8008a30: 687b ldr r3, [r7, #4] - 8008a32: 695b ldr r3, [r3, #20] - 8008a34: 4313 orrs r3, r2 - 8008a36: 60bb str r3, [r7, #8] + 8008c92: 687b ldr r3, [r7, #4] + 8008c94: 689a ldr r2, [r3, #8] + 8008c96: 687b ldr r3, [r7, #4] + 8008c98: 691b ldr r3, [r3, #16] + 8008c9a: 431a orrs r2, r3 + 8008c9c: 687b ldr r3, [r7, #4] + 8008c9e: 695b ldr r3, [r3, #20] + 8008ca0: 4313 orrs r3, r2 + 8008ca2: 60bb str r3, [r7, #8] MODIFY_REG(huart->Instance->CR1, - 8008a38: 687b ldr r3, [r7, #4] - 8008a3a: 681b ldr r3, [r3, #0] - 8008a3c: 68db ldr r3, [r3, #12] - 8008a3e: f423 53b0 bic.w r3, r3, #5632 ; 0x1600 - 8008a42: f023 030c bic.w r3, r3, #12 - 8008a46: 687a ldr r2, [r7, #4] - 8008a48: 6812 ldr r2, [r2, #0] - 8008a4a: 68b9 ldr r1, [r7, #8] - 8008a4c: 430b orrs r3, r1 - 8008a4e: 60d3 str r3, [r2, #12] + 8008ca4: 687b ldr r3, [r7, #4] + 8008ca6: 681b ldr r3, [r3, #0] + 8008ca8: 68db ldr r3, [r3, #12] + 8008caa: f423 53b0 bic.w r3, r3, #5632 ; 0x1600 + 8008cae: f023 030c bic.w r3, r3, #12 + 8008cb2: 687a ldr r2, [r7, #4] + 8008cb4: 6812 ldr r2, [r2, #0] + 8008cb6: 68b9 ldr r1, [r7, #8] + 8008cb8: 430b orrs r3, r1 + 8008cba: 60d3 str r3, [r2, #12] tmpreg); #endif /* USART_CR1_OVER8 */ /*-------------------------- USART CR3 Configuration -----------------------*/ /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */ MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl); - 8008a50: 687b ldr r3, [r7, #4] - 8008a52: 681b ldr r3, [r3, #0] - 8008a54: 695b ldr r3, [r3, #20] - 8008a56: f423 7140 bic.w r1, r3, #768 ; 0x300 - 8008a5a: 687b ldr r3, [r7, #4] - 8008a5c: 699a ldr r2, [r3, #24] - 8008a5e: 687b ldr r3, [r7, #4] - 8008a60: 681b ldr r3, [r3, #0] - 8008a62: 430a orrs r2, r1 - 8008a64: 615a str r2, [r3, #20] + 8008cbc: 687b ldr r3, [r7, #4] + 8008cbe: 681b ldr r3, [r3, #0] + 8008cc0: 695b ldr r3, [r3, #20] + 8008cc2: f423 7140 bic.w r1, r3, #768 ; 0x300 + 8008cc6: 687b ldr r3, [r7, #4] + 8008cc8: 699a ldr r2, [r3, #24] + 8008cca: 687b ldr r3, [r7, #4] + 8008ccc: 681b ldr r3, [r3, #0] + 8008cce: 430a orrs r2, r1 + 8008cd0: 615a str r2, [r3, #20] if(huart->Instance == USART1) - 8008a66: 687b ldr r3, [r7, #4] - 8008a68: 681b ldr r3, [r3, #0] - 8008a6a: 4a2c ldr r2, [pc, #176] ; (8008b1c ) - 8008a6c: 4293 cmp r3, r2 - 8008a6e: d103 bne.n 8008a78 + 8008cd2: 687b ldr r3, [r7, #4] + 8008cd4: 681b ldr r3, [r3, #0] + 8008cd6: 4a2c ldr r2, [pc, #176] ; (8008d88 ) + 8008cd8: 4293 cmp r3, r2 + 8008cda: d103 bne.n 8008ce4 { pclk = HAL_RCC_GetPCLK2Freq(); - 8008a70: f7fe ff2a bl 80078c8 - 8008a74: 60f8 str r0, [r7, #12] - 8008a76: e002 b.n 8008a7e + 8008cdc: f7fe ff2a bl 8007b34 + 8008ce0: 60f8 str r0, [r7, #12] + 8008ce2: e002 b.n 8008cea } else { pclk = HAL_RCC_GetPCLK1Freq(); - 8008a78: f7fe ff12 bl 80078a0 - 8008a7c: 60f8 str r0, [r7, #12] + 8008ce4: f7fe ff12 bl 8007b0c + 8008ce8: 60f8 str r0, [r7, #12] else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } #else huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - 8008a7e: 68fa ldr r2, [r7, #12] - 8008a80: 4613 mov r3, r2 - 8008a82: 009b lsls r3, r3, #2 - 8008a84: 4413 add r3, r2 - 8008a86: 009a lsls r2, r3, #2 - 8008a88: 441a add r2, r3 - 8008a8a: 687b ldr r3, [r7, #4] - 8008a8c: 685b ldr r3, [r3, #4] - 8008a8e: 009b lsls r3, r3, #2 - 8008a90: fbb2 f3f3 udiv r3, r2, r3 - 8008a94: 4a22 ldr r2, [pc, #136] ; (8008b20 ) - 8008a96: fba2 2303 umull r2, r3, r2, r3 - 8008a9a: 095b lsrs r3, r3, #5 - 8008a9c: 0119 lsls r1, r3, #4 - 8008a9e: 68fa ldr r2, [r7, #12] - 8008aa0: 4613 mov r3, r2 - 8008aa2: 009b lsls r3, r3, #2 - 8008aa4: 4413 add r3, r2 - 8008aa6: 009a lsls r2, r3, #2 - 8008aa8: 441a add r2, r3 - 8008aaa: 687b ldr r3, [r7, #4] - 8008aac: 685b ldr r3, [r3, #4] - 8008aae: 009b lsls r3, r3, #2 - 8008ab0: fbb2 f2f3 udiv r2, r2, r3 - 8008ab4: 4b1a ldr r3, [pc, #104] ; (8008b20 ) - 8008ab6: fba3 0302 umull r0, r3, r3, r2 - 8008aba: 095b lsrs r3, r3, #5 - 8008abc: 2064 movs r0, #100 ; 0x64 - 8008abe: fb00 f303 mul.w r3, r0, r3 - 8008ac2: 1ad3 subs r3, r2, r3 - 8008ac4: 011b lsls r3, r3, #4 - 8008ac6: 3332 adds r3, #50 ; 0x32 - 8008ac8: 4a15 ldr r2, [pc, #84] ; (8008b20 ) - 8008aca: fba2 2303 umull r2, r3, r2, r3 - 8008ace: 095b lsrs r3, r3, #5 - 8008ad0: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8008ad4: 4419 add r1, r3 - 8008ad6: 68fa ldr r2, [r7, #12] - 8008ad8: 4613 mov r3, r2 - 8008ada: 009b lsls r3, r3, #2 - 8008adc: 4413 add r3, r2 - 8008ade: 009a lsls r2, r3, #2 - 8008ae0: 441a add r2, r3 - 8008ae2: 687b ldr r3, [r7, #4] - 8008ae4: 685b ldr r3, [r3, #4] - 8008ae6: 009b lsls r3, r3, #2 - 8008ae8: fbb2 f2f3 udiv r2, r2, r3 - 8008aec: 4b0c ldr r3, [pc, #48] ; (8008b20 ) - 8008aee: fba3 0302 umull r0, r3, r3, r2 - 8008af2: 095b lsrs r3, r3, #5 - 8008af4: 2064 movs r0, #100 ; 0x64 - 8008af6: fb00 f303 mul.w r3, r0, r3 - 8008afa: 1ad3 subs r3, r2, r3 - 8008afc: 011b lsls r3, r3, #4 - 8008afe: 3332 adds r3, #50 ; 0x32 - 8008b00: 4a07 ldr r2, [pc, #28] ; (8008b20 ) - 8008b02: fba2 2303 umull r2, r3, r2, r3 - 8008b06: 095b lsrs r3, r3, #5 - 8008b08: f003 020f and.w r2, r3, #15 - 8008b0c: 687b ldr r3, [r7, #4] - 8008b0e: 681b ldr r3, [r3, #0] - 8008b10: 440a add r2, r1 - 8008b12: 609a str r2, [r3, #8] + 8008cea: 68fa ldr r2, [r7, #12] + 8008cec: 4613 mov r3, r2 + 8008cee: 009b lsls r3, r3, #2 + 8008cf0: 4413 add r3, r2 + 8008cf2: 009a lsls r2, r3, #2 + 8008cf4: 441a add r2, r3 + 8008cf6: 687b ldr r3, [r7, #4] + 8008cf8: 685b ldr r3, [r3, #4] + 8008cfa: 009b lsls r3, r3, #2 + 8008cfc: fbb2 f3f3 udiv r3, r2, r3 + 8008d00: 4a22 ldr r2, [pc, #136] ; (8008d8c ) + 8008d02: fba2 2303 umull r2, r3, r2, r3 + 8008d06: 095b lsrs r3, r3, #5 + 8008d08: 0119 lsls r1, r3, #4 + 8008d0a: 68fa ldr r2, [r7, #12] + 8008d0c: 4613 mov r3, r2 + 8008d0e: 009b lsls r3, r3, #2 + 8008d10: 4413 add r3, r2 + 8008d12: 009a lsls r2, r3, #2 + 8008d14: 441a add r2, r3 + 8008d16: 687b ldr r3, [r7, #4] + 8008d18: 685b ldr r3, [r3, #4] + 8008d1a: 009b lsls r3, r3, #2 + 8008d1c: fbb2 f2f3 udiv r2, r2, r3 + 8008d20: 4b1a ldr r3, [pc, #104] ; (8008d8c ) + 8008d22: fba3 0302 umull r0, r3, r3, r2 + 8008d26: 095b lsrs r3, r3, #5 + 8008d28: 2064 movs r0, #100 ; 0x64 + 8008d2a: fb00 f303 mul.w r3, r0, r3 + 8008d2e: 1ad3 subs r3, r2, r3 + 8008d30: 011b lsls r3, r3, #4 + 8008d32: 3332 adds r3, #50 ; 0x32 + 8008d34: 4a15 ldr r2, [pc, #84] ; (8008d8c ) + 8008d36: fba2 2303 umull r2, r3, r2, r3 + 8008d3a: 095b lsrs r3, r3, #5 + 8008d3c: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8008d40: 4419 add r1, r3 + 8008d42: 68fa ldr r2, [r7, #12] + 8008d44: 4613 mov r3, r2 + 8008d46: 009b lsls r3, r3, #2 + 8008d48: 4413 add r3, r2 + 8008d4a: 009a lsls r2, r3, #2 + 8008d4c: 441a add r2, r3 + 8008d4e: 687b ldr r3, [r7, #4] + 8008d50: 685b ldr r3, [r3, #4] + 8008d52: 009b lsls r3, r3, #2 + 8008d54: fbb2 f2f3 udiv r2, r2, r3 + 8008d58: 4b0c ldr r3, [pc, #48] ; (8008d8c ) + 8008d5a: fba3 0302 umull r0, r3, r3, r2 + 8008d5e: 095b lsrs r3, r3, #5 + 8008d60: 2064 movs r0, #100 ; 0x64 + 8008d62: fb00 f303 mul.w r3, r0, r3 + 8008d66: 1ad3 subs r3, r2, r3 + 8008d68: 011b lsls r3, r3, #4 + 8008d6a: 3332 adds r3, #50 ; 0x32 + 8008d6c: 4a07 ldr r2, [pc, #28] ; (8008d8c ) + 8008d6e: fba2 2303 umull r2, r3, r2, r3 + 8008d72: 095b lsrs r3, r3, #5 + 8008d74: f003 020f and.w r2, r3, #15 + 8008d78: 687b ldr r3, [r7, #4] + 8008d7a: 681b ldr r3, [r3, #0] + 8008d7c: 440a add r2, r1 + 8008d7e: 609a str r2, [r3, #8] #endif /* USART_CR1_OVER8 */ } - 8008b14: bf00 nop - 8008b16: 3710 adds r7, #16 - 8008b18: 46bd mov sp, r7 - 8008b1a: bd80 pop {r7, pc} - 8008b1c: 40013800 .word 0x40013800 - 8008b20: 51eb851f .word 0x51eb851f + 8008d80: bf00 nop + 8008d82: 3710 adds r7, #16 + 8008d84: 46bd mov sp, r7 + 8008d86: bd80 pop {r7, pc} + 8008d88: 40013800 .word 0x40013800 + 8008d8c: 51eb851f .word 0x51eb851f -08008b24 <__errno>: - 8008b24: 4b01 ldr r3, [pc, #4] ; (8008b2c <__errno+0x8>) - 8008b26: 6818 ldr r0, [r3, #0] - 8008b28: 4770 bx lr - 8008b2a: bf00 nop - 8008b2c: 20000014 .word 0x20000014 +08008d90 <__errno>: + 8008d90: 4b01 ldr r3, [pc, #4] ; (8008d98 <__errno+0x8>) + 8008d92: 6818 ldr r0, [r3, #0] + 8008d94: 4770 bx lr + 8008d96: bf00 nop + 8008d98: 20000014 .word 0x20000014 -08008b30 : - 8008b30: b538 push {r3, r4, r5, lr} - 8008b32: 4b0b ldr r3, [pc, #44] ; (8008b60 ) - 8008b34: 4604 mov r4, r0 - 8008b36: 681d ldr r5, [r3, #0] - 8008b38: 6beb ldr r3, [r5, #60] ; 0x3c - 8008b3a: b953 cbnz r3, 8008b52 - 8008b3c: 2024 movs r0, #36 ; 0x24 - 8008b3e: f000 f9f7 bl 8008f30 - 8008b42: 4602 mov r2, r0 - 8008b44: 63e8 str r0, [r5, #60] ; 0x3c - 8008b46: b920 cbnz r0, 8008b52 - 8008b48: 2139 movs r1, #57 ; 0x39 - 8008b4a: 4b06 ldr r3, [pc, #24] ; (8008b64 ) - 8008b4c: 4806 ldr r0, [pc, #24] ; (8008b68 ) - 8008b4e: f001 fb01 bl 800a154 <__assert_func> - 8008b52: 4620 mov r0, r4 - 8008b54: 6be9 ldr r1, [r5, #60] ; 0x3c - 8008b56: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 8008b5a: f000 b807 b.w 8008b6c - 8008b5e: bf00 nop - 8008b60: 20000014 .word 0x20000014 - 8008b64: 0800cfec .word 0x0800cfec - 8008b68: 0800d003 .word 0x0800d003 +08008d9c : + 8008d9c: b538 push {r3, r4, r5, lr} + 8008d9e: 4b0b ldr r3, [pc, #44] ; (8008dcc ) + 8008da0: 4604 mov r4, r0 + 8008da2: 681d ldr r5, [r3, #0] + 8008da4: 6beb ldr r3, [r5, #60] ; 0x3c + 8008da6: b953 cbnz r3, 8008dbe + 8008da8: 2024 movs r0, #36 ; 0x24 + 8008daa: f000 f9f7 bl 800919c + 8008dae: 4602 mov r2, r0 + 8008db0: 63e8 str r0, [r5, #60] ; 0x3c + 8008db2: b920 cbnz r0, 8008dbe + 8008db4: 2139 movs r1, #57 ; 0x39 + 8008db6: 4b06 ldr r3, [pc, #24] ; (8008dd0 ) + 8008db8: 4806 ldr r0, [pc, #24] ; (8008dd4 ) + 8008dba: f001 fb01 bl 800a3c0 <__assert_func> + 8008dbe: 4620 mov r0, r4 + 8008dc0: 6be9 ldr r1, [r5, #60] ; 0x3c + 8008dc2: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8008dc6: f000 b807 b.w 8008dd8 + 8008dca: bf00 nop + 8008dcc: 20000014 .word 0x20000014 + 8008dd0: 0800d27c .word 0x0800d27c + 8008dd4: 0800d293 .word 0x0800d293 -08008b6c : - 8008b6c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8008b70: e9d0 6700 ldrd r6, r7, [r0] - 8008b74: 460c mov r4, r1 - 8008b76: 2300 movs r3, #0 - 8008b78: 4630 mov r0, r6 - 8008b7a: 4639 mov r1, r7 - 8008b7c: 4a4e ldr r2, [pc, #312] ; (8008cb8 ) - 8008b7e: f7f8 facd bl 800111c <__aeabi_ldivmod> - 8008b82: 4639 mov r1, r7 - 8008b84: 4605 mov r5, r0 - 8008b86: 2300 movs r3, #0 - 8008b88: 4630 mov r0, r6 - 8008b8a: 4a4b ldr r2, [pc, #300] ; (8008cb8 ) - 8008b8c: f7f8 fac6 bl 800111c <__aeabi_ldivmod> - 8008b90: f44f 6061 mov.w r0, #3600 ; 0xe10 - 8008b94: 2a00 cmp r2, #0 - 8008b96: bfbc itt lt - 8008b98: f502 32a8 addlt.w r2, r2, #86016 ; 0x15000 - 8008b9c: f502 72c0 addlt.w r2, r2, #384 ; 0x180 - 8008ba0: fbb2 f1f0 udiv r1, r2, r0 - 8008ba4: fb00 2211 mls r2, r0, r1, r2 - 8008ba8: f04f 003c mov.w r0, #60 ; 0x3c - 8008bac: 60a1 str r1, [r4, #8] - 8008bae: fbb2 f1f0 udiv r1, r2, r0 - 8008bb2: fb00 2211 mls r2, r0, r1, r2 - 8008bb6: 6061 str r1, [r4, #4] - 8008bb8: f04f 0107 mov.w r1, #7 - 8008bbc: f505 232f add.w r3, r5, #716800 ; 0xaf000 - 8008bc0: bfac ite ge - 8008bc2: f603 236c addwge r3, r3, #2668 ; 0xa6c - 8008bc6: f603 236b addwlt r3, r3, #2667 ; 0xa6b - 8008bca: 6022 str r2, [r4, #0] - 8008bcc: 1cda adds r2, r3, #3 - 8008bce: fb92 f1f1 sdiv r1, r2, r1 - 8008bd2: ebc1 01c1 rsb r1, r1, r1, lsl #3 - 8008bd6: 1a52 subs r2, r2, r1 - 8008bd8: bf48 it mi - 8008bda: 3207 addmi r2, #7 - 8008bdc: 2b00 cmp r3, #0 - 8008bde: 4d37 ldr r5, [pc, #220] ; (8008cbc ) - 8008be0: 61a2 str r2, [r4, #24] - 8008be2: bfbd ittte lt - 8008be4: f5a3 320e sublt.w r2, r3, #145408 ; 0x23800 - 8008be8: f5a2 722c sublt.w r2, r2, #688 ; 0x2b0 - 8008bec: fb92 f5f5 sdivlt r5, r2, r5 - 8008bf0: fb93 f5f5 sdivge r5, r3, r5 - 8008bf4: 4832 ldr r0, [pc, #200] ; (8008cc0 ) - 8008bf6: f648 62ac movw r2, #36524 ; 0x8eac - 8008bfa: fb00 3005 mla r0, r0, r5, r3 - 8008bfe: f240 53b4 movw r3, #1460 ; 0x5b4 - 8008c02: fbb0 f2f2 udiv r2, r0, r2 - 8008c06: fbb0 f1f3 udiv r1, r0, r3 - 8008c0a: 4402 add r2, r0 - 8008c0c: 1a52 subs r2, r2, r1 - 8008c0e: 492d ldr r1, [pc, #180] ; (8008cc4 ) - 8008c10: f240 1c6d movw ip, #365 ; 0x16d - 8008c14: fbb0 f1f1 udiv r1, r0, r1 - 8008c18: 1a52 subs r2, r2, r1 - 8008c1a: fbb2 f1fc udiv r1, r2, ip - 8008c1e: 2764 movs r7, #100 ; 0x64 - 8008c20: fbb2 f3f3 udiv r3, r2, r3 - 8008c24: fbb1 f6f7 udiv r6, r1, r7 - 8008c28: 2299 movs r2, #153 ; 0x99 - 8008c2a: 1af3 subs r3, r6, r3 - 8008c2c: 4403 add r3, r0 - 8008c2e: fb0c 3311 mls r3, ip, r1, r3 - 8008c32: eb03 0e83 add.w lr, r3, r3, lsl #2 - 8008c36: f10e 0e02 add.w lr, lr, #2 - 8008c3a: fbbe f0f2 udiv r0, lr, r2 - 8008c3e: f04f 0805 mov.w r8, #5 - 8008c42: 4342 muls r2, r0 - 8008c44: 3202 adds r2, #2 - 8008c46: fbb2 f2f8 udiv r2, r2, r8 - 8008c4a: f103 0c01 add.w ip, r3, #1 - 8008c4e: ebac 0c02 sub.w ip, ip, r2 - 8008c52: f240 52f9 movw r2, #1529 ; 0x5f9 - 8008c56: 4596 cmp lr, r2 - 8008c58: bf94 ite ls - 8008c5a: 2202 movls r2, #2 - 8008c5c: f06f 0209 mvnhi.w r2, #9 - 8008c60: 4410 add r0, r2 - 8008c62: f44f 72c8 mov.w r2, #400 ; 0x190 - 8008c66: fb02 1505 mla r5, r2, r5, r1 - 8008c6a: 2801 cmp r0, #1 - 8008c6c: bf98 it ls - 8008c6e: 3501 addls r5, #1 - 8008c70: f5b3 7f99 cmp.w r3, #306 ; 0x132 - 8008c74: d30d bcc.n 8008c92 - 8008c76: f5a3 7399 sub.w r3, r3, #306 ; 0x132 - 8008c7a: 61e3 str r3, [r4, #28] - 8008c7c: 2300 movs r3, #0 - 8008c7e: f2a5 756c subw r5, r5, #1900 ; 0x76c - 8008c82: e9c4 0504 strd r0, r5, [r4, #16] - 8008c86: f8c4 c00c str.w ip, [r4, #12] - 8008c8a: 4620 mov r0, r4 - 8008c8c: 6223 str r3, [r4, #32] - 8008c8e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8008c92: 078a lsls r2, r1, #30 - 8008c94: d102 bne.n 8008c9c - 8008c96: fb07 1616 mls r6, r7, r6, r1 - 8008c9a: b95e cbnz r6, 8008cb4 - 8008c9c: f44f 72c8 mov.w r2, #400 ; 0x190 - 8008ca0: fbb1 f6f2 udiv r6, r1, r2 - 8008ca4: fb02 1216 mls r2, r2, r6, r1 - 8008ca8: fab2 f282 clz r2, r2 - 8008cac: 0952 lsrs r2, r2, #5 - 8008cae: 333b adds r3, #59 ; 0x3b - 8008cb0: 4413 add r3, r2 - 8008cb2: e7e2 b.n 8008c7a - 8008cb4: 2201 movs r2, #1 - 8008cb6: e7fa b.n 8008cae - 8008cb8: 00015180 .word 0x00015180 - 8008cbc: 00023ab1 .word 0x00023ab1 - 8008cc0: fffdc54f .word 0xfffdc54f - 8008cc4: 00023ab0 .word 0x00023ab0 +08008dd8 : + 8008dd8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8008ddc: e9d0 6700 ldrd r6, r7, [r0] + 8008de0: 460c mov r4, r1 + 8008de2: 2300 movs r3, #0 + 8008de4: 4630 mov r0, r6 + 8008de6: 4639 mov r1, r7 + 8008de8: 4a4e ldr r2, [pc, #312] ; (8008f24 ) + 8008dea: f7f8 fa0d bl 8001208 <__aeabi_ldivmod> + 8008dee: 4639 mov r1, r7 + 8008df0: 4605 mov r5, r0 + 8008df2: 2300 movs r3, #0 + 8008df4: 4630 mov r0, r6 + 8008df6: 4a4b ldr r2, [pc, #300] ; (8008f24 ) + 8008df8: f7f8 fa06 bl 8001208 <__aeabi_ldivmod> + 8008dfc: f44f 6061 mov.w r0, #3600 ; 0xe10 + 8008e00: 2a00 cmp r2, #0 + 8008e02: bfbc itt lt + 8008e04: f502 32a8 addlt.w r2, r2, #86016 ; 0x15000 + 8008e08: f502 72c0 addlt.w r2, r2, #384 ; 0x180 + 8008e0c: fbb2 f1f0 udiv r1, r2, r0 + 8008e10: fb00 2211 mls r2, r0, r1, r2 + 8008e14: f04f 003c mov.w r0, #60 ; 0x3c + 8008e18: 60a1 str r1, [r4, #8] + 8008e1a: fbb2 f1f0 udiv r1, r2, r0 + 8008e1e: fb00 2211 mls r2, r0, r1, r2 + 8008e22: 6061 str r1, [r4, #4] + 8008e24: f04f 0107 mov.w r1, #7 + 8008e28: f505 232f add.w r3, r5, #716800 ; 0xaf000 + 8008e2c: bfac ite ge + 8008e2e: f603 236c addwge r3, r3, #2668 ; 0xa6c + 8008e32: f603 236b addwlt r3, r3, #2667 ; 0xa6b + 8008e36: 6022 str r2, [r4, #0] + 8008e38: 1cda adds r2, r3, #3 + 8008e3a: fb92 f1f1 sdiv r1, r2, r1 + 8008e3e: ebc1 01c1 rsb r1, r1, r1, lsl #3 + 8008e42: 1a52 subs r2, r2, r1 + 8008e44: bf48 it mi + 8008e46: 3207 addmi r2, #7 + 8008e48: 2b00 cmp r3, #0 + 8008e4a: 4d37 ldr r5, [pc, #220] ; (8008f28 ) + 8008e4c: 61a2 str r2, [r4, #24] + 8008e4e: bfbd ittte lt + 8008e50: f5a3 320e sublt.w r2, r3, #145408 ; 0x23800 + 8008e54: f5a2 722c sublt.w r2, r2, #688 ; 0x2b0 + 8008e58: fb92 f5f5 sdivlt r5, r2, r5 + 8008e5c: fb93 f5f5 sdivge r5, r3, r5 + 8008e60: 4832 ldr r0, [pc, #200] ; (8008f2c ) + 8008e62: f648 62ac movw r2, #36524 ; 0x8eac + 8008e66: fb00 3005 mla r0, r0, r5, r3 + 8008e6a: f240 53b4 movw r3, #1460 ; 0x5b4 + 8008e6e: fbb0 f2f2 udiv r2, r0, r2 + 8008e72: fbb0 f1f3 udiv r1, r0, r3 + 8008e76: 4402 add r2, r0 + 8008e78: 1a52 subs r2, r2, r1 + 8008e7a: 492d ldr r1, [pc, #180] ; (8008f30 ) + 8008e7c: f240 1c6d movw ip, #365 ; 0x16d + 8008e80: fbb0 f1f1 udiv r1, r0, r1 + 8008e84: 1a52 subs r2, r2, r1 + 8008e86: fbb2 f1fc udiv r1, r2, ip + 8008e8a: 2764 movs r7, #100 ; 0x64 + 8008e8c: fbb2 f3f3 udiv r3, r2, r3 + 8008e90: fbb1 f6f7 udiv r6, r1, r7 + 8008e94: 2299 movs r2, #153 ; 0x99 + 8008e96: 1af3 subs r3, r6, r3 + 8008e98: 4403 add r3, r0 + 8008e9a: fb0c 3311 mls r3, ip, r1, r3 + 8008e9e: eb03 0e83 add.w lr, r3, r3, lsl #2 + 8008ea2: f10e 0e02 add.w lr, lr, #2 + 8008ea6: fbbe f0f2 udiv r0, lr, r2 + 8008eaa: f04f 0805 mov.w r8, #5 + 8008eae: 4342 muls r2, r0 + 8008eb0: 3202 adds r2, #2 + 8008eb2: fbb2 f2f8 udiv r2, r2, r8 + 8008eb6: f103 0c01 add.w ip, r3, #1 + 8008eba: ebac 0c02 sub.w ip, ip, r2 + 8008ebe: f240 52f9 movw r2, #1529 ; 0x5f9 + 8008ec2: 4596 cmp lr, r2 + 8008ec4: bf94 ite ls + 8008ec6: 2202 movls r2, #2 + 8008ec8: f06f 0209 mvnhi.w r2, #9 + 8008ecc: 4410 add r0, r2 + 8008ece: f44f 72c8 mov.w r2, #400 ; 0x190 + 8008ed2: fb02 1505 mla r5, r2, r5, r1 + 8008ed6: 2801 cmp r0, #1 + 8008ed8: bf98 it ls + 8008eda: 3501 addls r5, #1 + 8008edc: f5b3 7f99 cmp.w r3, #306 ; 0x132 + 8008ee0: d30d bcc.n 8008efe + 8008ee2: f5a3 7399 sub.w r3, r3, #306 ; 0x132 + 8008ee6: 61e3 str r3, [r4, #28] + 8008ee8: 2300 movs r3, #0 + 8008eea: f2a5 756c subw r5, r5, #1900 ; 0x76c + 8008eee: e9c4 0504 strd r0, r5, [r4, #16] + 8008ef2: f8c4 c00c str.w ip, [r4, #12] + 8008ef6: 4620 mov r0, r4 + 8008ef8: 6223 str r3, [r4, #32] + 8008efa: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8008efe: 078a lsls r2, r1, #30 + 8008f00: d102 bne.n 8008f08 + 8008f02: fb07 1616 mls r6, r7, r6, r1 + 8008f06: b95e cbnz r6, 8008f20 + 8008f08: f44f 72c8 mov.w r2, #400 ; 0x190 + 8008f0c: fbb1 f6f2 udiv r6, r1, r2 + 8008f10: fb02 1216 mls r2, r2, r6, r1 + 8008f14: fab2 f282 clz r2, r2 + 8008f18: 0952 lsrs r2, r2, #5 + 8008f1a: 333b adds r3, #59 ; 0x3b + 8008f1c: 4413 add r3, r2 + 8008f1e: e7e2 b.n 8008ee6 + 8008f20: 2201 movs r2, #1 + 8008f22: e7fa b.n 8008f1a + 8008f24: 00015180 .word 0x00015180 + 8008f28: 00023ab1 .word 0x00023ab1 + 8008f2c: fffdc54f .word 0xfffdc54f + 8008f30: 00023ab0 .word 0x00023ab0 -08008cc8 <__libc_init_array>: - 8008cc8: b570 push {r4, r5, r6, lr} - 8008cca: 2600 movs r6, #0 - 8008ccc: 4d0c ldr r5, [pc, #48] ; (8008d00 <__libc_init_array+0x38>) - 8008cce: 4c0d ldr r4, [pc, #52] ; (8008d04 <__libc_init_array+0x3c>) - 8008cd0: 1b64 subs r4, r4, r5 - 8008cd2: 10a4 asrs r4, r4, #2 - 8008cd4: 42a6 cmp r6, r4 - 8008cd6: d109 bne.n 8008cec <__libc_init_array+0x24> - 8008cd8: f003 fe7a bl 800c9d0 <_init> - 8008cdc: 2600 movs r6, #0 - 8008cde: 4d0a ldr r5, [pc, #40] ; (8008d08 <__libc_init_array+0x40>) - 8008ce0: 4c0a ldr r4, [pc, #40] ; (8008d0c <__libc_init_array+0x44>) - 8008ce2: 1b64 subs r4, r4, r5 - 8008ce4: 10a4 asrs r4, r4, #2 - 8008ce6: 42a6 cmp r6, r4 - 8008ce8: d105 bne.n 8008cf6 <__libc_init_array+0x2e> - 8008cea: bd70 pop {r4, r5, r6, pc} - 8008cec: f855 3b04 ldr.w r3, [r5], #4 - 8008cf0: 4798 blx r3 - 8008cf2: 3601 adds r6, #1 - 8008cf4: e7ee b.n 8008cd4 <__libc_init_array+0xc> - 8008cf6: f855 3b04 ldr.w r3, [r5], #4 - 8008cfa: 4798 blx r3 - 8008cfc: 3601 adds r6, #1 - 8008cfe: e7f2 b.n 8008ce6 <__libc_init_array+0x1e> - 8008d00: 0800d53c .word 0x0800d53c - 8008d04: 0800d53c .word 0x0800d53c - 8008d08: 0800d53c .word 0x0800d53c - 8008d0c: 0800d540 .word 0x0800d540 +08008f34 <__libc_init_array>: + 8008f34: b570 push {r4, r5, r6, lr} + 8008f36: 2600 movs r6, #0 + 8008f38: 4d0c ldr r5, [pc, #48] ; (8008f6c <__libc_init_array+0x38>) + 8008f3a: 4c0d ldr r4, [pc, #52] ; (8008f70 <__libc_init_array+0x3c>) + 8008f3c: 1b64 subs r4, r4, r5 + 8008f3e: 10a4 asrs r4, r4, #2 + 8008f40: 42a6 cmp r6, r4 + 8008f42: d109 bne.n 8008f58 <__libc_init_array+0x24> + 8008f44: f003 fe7c bl 800cc40 <_init> + 8008f48: 2600 movs r6, #0 + 8008f4a: 4d0a ldr r5, [pc, #40] ; (8008f74 <__libc_init_array+0x40>) + 8008f4c: 4c0a ldr r4, [pc, #40] ; (8008f78 <__libc_init_array+0x44>) + 8008f4e: 1b64 subs r4, r4, r5 + 8008f50: 10a4 asrs r4, r4, #2 + 8008f52: 42a6 cmp r6, r4 + 8008f54: d105 bne.n 8008f62 <__libc_init_array+0x2e> + 8008f56: bd70 pop {r4, r5, r6, pc} + 8008f58: f855 3b04 ldr.w r3, [r5], #4 + 8008f5c: 4798 blx r3 + 8008f5e: 3601 adds r6, #1 + 8008f60: e7ee b.n 8008f40 <__libc_init_array+0xc> + 8008f62: f855 3b04 ldr.w r3, [r5], #4 + 8008f66: 4798 blx r3 + 8008f68: 3601 adds r6, #1 + 8008f6a: e7f2 b.n 8008f52 <__libc_init_array+0x1e> + 8008f6c: 0800d7cc .word 0x0800d7cc + 8008f70: 0800d7cc .word 0x0800d7cc + 8008f74: 0800d7cc .word 0x0800d7cc + 8008f78: 0800d7d0 .word 0x0800d7d0 -08008d10 : - 8008d10: b538 push {r3, r4, r5, lr} - 8008d12: 4b0b ldr r3, [pc, #44] ; (8008d40 ) - 8008d14: 4604 mov r4, r0 - 8008d16: 681d ldr r5, [r3, #0] - 8008d18: 6beb ldr r3, [r5, #60] ; 0x3c - 8008d1a: b953 cbnz r3, 8008d32 - 8008d1c: 2024 movs r0, #36 ; 0x24 - 8008d1e: f000 f907 bl 8008f30 - 8008d22: 4602 mov r2, r0 - 8008d24: 63e8 str r0, [r5, #60] ; 0x3c - 8008d26: b920 cbnz r0, 8008d32 - 8008d28: 2132 movs r1, #50 ; 0x32 - 8008d2a: 4b06 ldr r3, [pc, #24] ; (8008d44 ) - 8008d2c: 4806 ldr r0, [pc, #24] ; (8008d48 ) - 8008d2e: f001 fa11 bl 800a154 <__assert_func> - 8008d32: 4620 mov r0, r4 - 8008d34: 6be9 ldr r1, [r5, #60] ; 0x3c - 8008d36: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 8008d3a: f000 b807 b.w 8008d4c - 8008d3e: bf00 nop - 8008d40: 20000014 .word 0x20000014 - 8008d44: 0800cfec .word 0x0800cfec - 8008d48: 0800d064 .word 0x0800d064 - -08008d4c : - 8008d4c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8008d50: 460c mov r4, r1 - 8008d52: 4680 mov r8, r0 - 8008d54: f002 faa0 bl 800b298 <__gettzinfo> - 8008d58: 4621 mov r1, r4 - 8008d5a: 4605 mov r5, r0 - 8008d5c: 4640 mov r0, r8 - 8008d5e: f7ff ff05 bl 8008b6c - 8008d62: 6943 ldr r3, [r0, #20] - 8008d64: 4604 mov r4, r0 - 8008d66: 0799 lsls r1, r3, #30 - 8008d68: f203 776c addw r7, r3, #1900 ; 0x76c - 8008d6c: d105 bne.n 8008d7a - 8008d6e: 2264 movs r2, #100 ; 0x64 - 8008d70: fb97 f3f2 sdiv r3, r7, r2 - 8008d74: fb02 7313 mls r3, r2, r3, r7 - 8008d78: bb73 cbnz r3, 8008dd8 - 8008d7a: f44f 73c8 mov.w r3, #400 ; 0x190 - 8008d7e: fb97 f6f3 sdiv r6, r7, r3 - 8008d82: fb03 7616 mls r6, r3, r6, r7 - 8008d86: fab6 f386 clz r3, r6 - 8008d8a: 095b lsrs r3, r3, #5 - 8008d8c: 2230 movs r2, #48 ; 0x30 - 8008d8e: 4e66 ldr r6, [pc, #408] ; (8008f28 ) - 8008d90: fb02 6603 mla r6, r2, r3, r6 - 8008d94: f000 ff8a bl 8009cac <__tz_lock> - 8008d98: f000 ff94 bl 8009cc4 <_tzset_unlocked> - 8008d9c: 4b63 ldr r3, [pc, #396] ; (8008f2c ) - 8008d9e: 681b ldr r3, [r3, #0] - 8008da0: b34b cbz r3, 8008df6 - 8008da2: 686b ldr r3, [r5, #4] - 8008da4: 42bb cmp r3, r7 - 8008da6: d119 bne.n 8008ddc - 8008da8: e9d8 2300 ldrd r2, r3, [r8] - 8008dac: e9d5 0108 ldrd r0, r1, [r5, #32] - 8008db0: 682f ldr r7, [r5, #0] - 8008db2: b9df cbnz r7, 8008dec - 8008db4: 4282 cmp r2, r0 - 8008db6: eb73 0101 sbcs.w r1, r3, r1 - 8008dba: da23 bge.n 8008e04 - 8008dbc: e9d5 0112 ldrd r0, r1, [r5, #72] ; 0x48 - 8008dc0: 4282 cmp r2, r0 - 8008dc2: eb73 0701 sbcs.w r7, r3, r1 - 8008dc6: bfb4 ite lt - 8008dc8: 2701 movlt r7, #1 - 8008dca: 2700 movge r7, #0 - 8008dcc: 4282 cmp r2, r0 - 8008dce: 418b sbcs r3, r1 - 8008dd0: 6227 str r7, [r4, #32] - 8008dd2: db19 blt.n 8008e08 - 8008dd4: 6aab ldr r3, [r5, #40] ; 0x28 - 8008dd6: e018 b.n 8008e0a - 8008dd8: 2301 movs r3, #1 - 8008dda: e7d7 b.n 8008d8c - 8008ddc: 4638 mov r0, r7 - 8008dde: f000 febb bl 8009b58 <__tzcalc_limits> - 8008de2: 2800 cmp r0, #0 - 8008de4: d1e0 bne.n 8008da8 - 8008de6: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 8008dea: e004 b.n 8008df6 - 8008dec: 4282 cmp r2, r0 - 8008dee: eb73 0101 sbcs.w r1, r3, r1 - 8008df2: da02 bge.n 8008dfa - 8008df4: 2300 movs r3, #0 - 8008df6: 6223 str r3, [r4, #32] - 8008df8: e7ec b.n 8008dd4 - 8008dfa: e9d5 0112 ldrd r0, r1, [r5, #72] ; 0x48 - 8008dfe: 4282 cmp r2, r0 - 8008e00: 418b sbcs r3, r1 - 8008e02: daf7 bge.n 8008df4 - 8008e04: 2301 movs r3, #1 - 8008e06: 6223 str r3, [r4, #32] - 8008e08: 6d2b ldr r3, [r5, #80] ; 0x50 - 8008e0a: f44f 6261 mov.w r2, #3600 ; 0xe10 - 8008e0e: fb93 f5f2 sdiv r5, r3, r2 - 8008e12: 203c movs r0, #60 ; 0x3c - 8008e14: fb02 3315 mls r3, r2, r5, r3 - 8008e18: fb93 f2f0 sdiv r2, r3, r0 - 8008e1c: fb00 3012 mls r0, r0, r2, r3 - 8008e20: 6861 ldr r1, [r4, #4] - 8008e22: 6823 ldr r3, [r4, #0] - 8008e24: 1a89 subs r1, r1, r2 - 8008e26: 68a2 ldr r2, [r4, #8] - 8008e28: 1a1b subs r3, r3, r0 - 8008e2a: 1b52 subs r2, r2, r5 - 8008e2c: 2b3b cmp r3, #59 ; 0x3b - 8008e2e: 6023 str r3, [r4, #0] - 8008e30: 6061 str r1, [r4, #4] - 8008e32: 60a2 str r2, [r4, #8] - 8008e34: dd34 ble.n 8008ea0 - 8008e36: 3101 adds r1, #1 - 8008e38: 6061 str r1, [r4, #4] - 8008e3a: 3b3c subs r3, #60 ; 0x3c - 8008e3c: 6023 str r3, [r4, #0] - 8008e3e: 6863 ldr r3, [r4, #4] - 8008e40: 2b3b cmp r3, #59 ; 0x3b - 8008e42: dd33 ble.n 8008eac - 8008e44: 3201 adds r2, #1 - 8008e46: 60a2 str r2, [r4, #8] - 8008e48: 3b3c subs r3, #60 ; 0x3c - 8008e4a: 6063 str r3, [r4, #4] - 8008e4c: 68a3 ldr r3, [r4, #8] - 8008e4e: 2b17 cmp r3, #23 - 8008e50: dd32 ble.n 8008eb8 - 8008e52: 69e2 ldr r2, [r4, #28] - 8008e54: 3b18 subs r3, #24 - 8008e56: 3201 adds r2, #1 - 8008e58: 61e2 str r2, [r4, #28] - 8008e5a: 69a2 ldr r2, [r4, #24] - 8008e5c: 60a3 str r3, [r4, #8] - 8008e5e: 3201 adds r2, #1 - 8008e60: 2a06 cmp r2, #6 - 8008e62: bfc8 it gt - 8008e64: 2200 movgt r2, #0 - 8008e66: 61a2 str r2, [r4, #24] - 8008e68: 68e2 ldr r2, [r4, #12] - 8008e6a: 6923 ldr r3, [r4, #16] - 8008e6c: 3201 adds r2, #1 - 8008e6e: 60e2 str r2, [r4, #12] - 8008e70: f856 1023 ldr.w r1, [r6, r3, lsl #2] - 8008e74: 428a cmp r2, r1 - 8008e76: dd0e ble.n 8008e96 - 8008e78: 2b0b cmp r3, #11 - 8008e7a: eba2 0201 sub.w r2, r2, r1 - 8008e7e: 60e2 str r2, [r4, #12] - 8008e80: f103 0201 add.w r2, r3, #1 - 8008e84: bf05 ittet eq - 8008e86: 2200 moveq r2, #0 - 8008e88: 6963 ldreq r3, [r4, #20] - 8008e8a: 6122 strne r2, [r4, #16] - 8008e8c: 3301 addeq r3, #1 - 8008e8e: bf02 ittt eq - 8008e90: 6122 streq r2, [r4, #16] - 8008e92: 6163 streq r3, [r4, #20] - 8008e94: 61e2 streq r2, [r4, #28] - 8008e96: f000 ff0f bl 8009cb8 <__tz_unlock> - 8008e9a: 4620 mov r0, r4 - 8008e9c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8008ea0: 2b00 cmp r3, #0 - 8008ea2: dacc bge.n 8008e3e - 8008ea4: 3901 subs r1, #1 - 8008ea6: 6061 str r1, [r4, #4] - 8008ea8: 333c adds r3, #60 ; 0x3c - 8008eaa: e7c7 b.n 8008e3c - 8008eac: 2b00 cmp r3, #0 - 8008eae: dacd bge.n 8008e4c - 8008eb0: 3a01 subs r2, #1 - 8008eb2: 60a2 str r2, [r4, #8] - 8008eb4: 333c adds r3, #60 ; 0x3c - 8008eb6: e7c8 b.n 8008e4a - 8008eb8: 2b00 cmp r3, #0 - 8008eba: daec bge.n 8008e96 - 8008ebc: 69e2 ldr r2, [r4, #28] - 8008ebe: 3318 adds r3, #24 - 8008ec0: 3a01 subs r2, #1 - 8008ec2: 61e2 str r2, [r4, #28] - 8008ec4: 69a2 ldr r2, [r4, #24] - 8008ec6: 60a3 str r3, [r4, #8] - 8008ec8: 3a01 subs r2, #1 - 8008eca: bf48 it mi - 8008ecc: 2206 movmi r2, #6 - 8008ece: 61a2 str r2, [r4, #24] - 8008ed0: 68e2 ldr r2, [r4, #12] - 8008ed2: 3a01 subs r2, #1 - 8008ed4: 60e2 str r2, [r4, #12] - 8008ed6: 2a00 cmp r2, #0 - 8008ed8: d1dd bne.n 8008e96 - 8008eda: 6923 ldr r3, [r4, #16] - 8008edc: 3b01 subs r3, #1 - 8008ede: d405 bmi.n 8008eec - 8008ee0: 6123 str r3, [r4, #16] - 8008ee2: 6923 ldr r3, [r4, #16] - 8008ee4: f856 3023 ldr.w r3, [r6, r3, lsl #2] - 8008ee8: 60e3 str r3, [r4, #12] - 8008eea: e7d4 b.n 8008e96 - 8008eec: 230b movs r3, #11 - 8008eee: 6123 str r3, [r4, #16] - 8008ef0: 6963 ldr r3, [r4, #20] - 8008ef2: 1e5a subs r2, r3, #1 - 8008ef4: f203 736b addw r3, r3, #1899 ; 0x76b - 8008ef8: 6162 str r2, [r4, #20] - 8008efa: 079a lsls r2, r3, #30 - 8008efc: d105 bne.n 8008f0a - 8008efe: 2164 movs r1, #100 ; 0x64 - 8008f00: fb93 f2f1 sdiv r2, r3, r1 - 8008f04: fb01 3212 mls r2, r1, r2, r3 - 8008f08: b962 cbnz r2, 8008f24 - 8008f0a: f44f 72c8 mov.w r2, #400 ; 0x190 - 8008f0e: fb93 f1f2 sdiv r1, r3, r2 - 8008f12: fb02 3311 mls r3, r2, r1, r3 - 8008f16: fab3 f383 clz r3, r3 - 8008f1a: 095b lsrs r3, r3, #5 - 8008f1c: f503 73b6 add.w r3, r3, #364 ; 0x16c - 8008f20: 61e3 str r3, [r4, #28] - 8008f22: e7de b.n 8008ee2 - 8008f24: 2301 movs r3, #1 - 8008f26: e7f9 b.n 8008f1c - 8008f28: 0800d0c0 .word 0x0800d0c0 - 8008f2c: 20001d3c .word 0x20001d3c - -08008f30 : - 8008f30: 4b02 ldr r3, [pc, #8] ; (8008f3c ) - 8008f32: 4601 mov r1, r0 - 8008f34: 6818 ldr r0, [r3, #0] - 8008f36: f000 b889 b.w 800904c <_malloc_r> - 8008f3a: bf00 nop - 8008f3c: 20000014 .word 0x20000014 - -08008f40 : - 8008f40: 4b02 ldr r3, [pc, #8] ; (8008f4c ) - 8008f42: 4601 mov r1, r0 - 8008f44: 6818 ldr r0, [r3, #0] - 8008f46: f000 b819 b.w 8008f7c <_free_r> - 8008f4a: bf00 nop - 8008f4c: 20000014 .word 0x20000014 - -08008f50 : - 8008f50: 440a add r2, r1 - 8008f52: 4291 cmp r1, r2 - 8008f54: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff - 8008f58: d100 bne.n 8008f5c - 8008f5a: 4770 bx lr - 8008f5c: b510 push {r4, lr} - 8008f5e: f811 4b01 ldrb.w r4, [r1], #1 - 8008f62: 4291 cmp r1, r2 - 8008f64: f803 4f01 strb.w r4, [r3, #1]! - 8008f68: d1f9 bne.n 8008f5e - 8008f6a: bd10 pop {r4, pc} - -08008f6c : - 8008f6c: 4603 mov r3, r0 - 8008f6e: 4402 add r2, r0 - 8008f70: 4293 cmp r3, r2 - 8008f72: d100 bne.n 8008f76 - 8008f74: 4770 bx lr - 8008f76: f803 1b01 strb.w r1, [r3], #1 - 8008f7a: e7f9 b.n 8008f70 - -08008f7c <_free_r>: +08008f7c : 8008f7c: b538 push {r3, r4, r5, lr} - 8008f7e: 4605 mov r5, r0 - 8008f80: 2900 cmp r1, #0 - 8008f82: d040 beq.n 8009006 <_free_r+0x8a> - 8008f84: f851 3c04 ldr.w r3, [r1, #-4] - 8008f88: 1f0c subs r4, r1, #4 - 8008f8a: 2b00 cmp r3, #0 - 8008f8c: bfb8 it lt - 8008f8e: 18e4 addlt r4, r4, r3 - 8008f90: f002 fa02 bl 800b398 <__malloc_lock> - 8008f94: 4a1c ldr r2, [pc, #112] ; (8009008 <_free_r+0x8c>) - 8008f96: 6813 ldr r3, [r2, #0] - 8008f98: b933 cbnz r3, 8008fa8 <_free_r+0x2c> - 8008f9a: 6063 str r3, [r4, #4] - 8008f9c: 6014 str r4, [r2, #0] - 8008f9e: 4628 mov r0, r5 - 8008fa0: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 8008fa4: f002 b9fe b.w 800b3a4 <__malloc_unlock> - 8008fa8: 42a3 cmp r3, r4 - 8008faa: d908 bls.n 8008fbe <_free_r+0x42> - 8008fac: 6820 ldr r0, [r4, #0] - 8008fae: 1821 adds r1, r4, r0 - 8008fb0: 428b cmp r3, r1 - 8008fb2: bf01 itttt eq - 8008fb4: 6819 ldreq r1, [r3, #0] - 8008fb6: 685b ldreq r3, [r3, #4] - 8008fb8: 1809 addeq r1, r1, r0 - 8008fba: 6021 streq r1, [r4, #0] - 8008fbc: e7ed b.n 8008f9a <_free_r+0x1e> - 8008fbe: 461a mov r2, r3 - 8008fc0: 685b ldr r3, [r3, #4] - 8008fc2: b10b cbz r3, 8008fc8 <_free_r+0x4c> - 8008fc4: 42a3 cmp r3, r4 - 8008fc6: d9fa bls.n 8008fbe <_free_r+0x42> - 8008fc8: 6811 ldr r1, [r2, #0] - 8008fca: 1850 adds r0, r2, r1 - 8008fcc: 42a0 cmp r0, r4 - 8008fce: d10b bne.n 8008fe8 <_free_r+0x6c> - 8008fd0: 6820 ldr r0, [r4, #0] - 8008fd2: 4401 add r1, r0 - 8008fd4: 1850 adds r0, r2, r1 - 8008fd6: 4283 cmp r3, r0 - 8008fd8: 6011 str r1, [r2, #0] - 8008fda: d1e0 bne.n 8008f9e <_free_r+0x22> - 8008fdc: 6818 ldr r0, [r3, #0] - 8008fde: 685b ldr r3, [r3, #4] - 8008fe0: 4401 add r1, r0 - 8008fe2: 6011 str r1, [r2, #0] - 8008fe4: 6053 str r3, [r2, #4] - 8008fe6: e7da b.n 8008f9e <_free_r+0x22> - 8008fe8: d902 bls.n 8008ff0 <_free_r+0x74> - 8008fea: 230c movs r3, #12 - 8008fec: 602b str r3, [r5, #0] - 8008fee: e7d6 b.n 8008f9e <_free_r+0x22> - 8008ff0: 6820 ldr r0, [r4, #0] - 8008ff2: 1821 adds r1, r4, r0 - 8008ff4: 428b cmp r3, r1 - 8008ff6: bf01 itttt eq - 8008ff8: 6819 ldreq r1, [r3, #0] - 8008ffa: 685b ldreq r3, [r3, #4] - 8008ffc: 1809 addeq r1, r1, r0 - 8008ffe: 6021 streq r1, [r4, #0] - 8009000: 6063 str r3, [r4, #4] - 8009002: 6054 str r4, [r2, #4] - 8009004: e7cb b.n 8008f9e <_free_r+0x22> - 8009006: bd38 pop {r3, r4, r5, pc} - 8009008: 20001d18 .word 0x20001d18 + 8008f7e: 4b0b ldr r3, [pc, #44] ; (8008fac ) + 8008f80: 4604 mov r4, r0 + 8008f82: 681d ldr r5, [r3, #0] + 8008f84: 6beb ldr r3, [r5, #60] ; 0x3c + 8008f86: b953 cbnz r3, 8008f9e + 8008f88: 2024 movs r0, #36 ; 0x24 + 8008f8a: f000 f907 bl 800919c + 8008f8e: 4602 mov r2, r0 + 8008f90: 63e8 str r0, [r5, #60] ; 0x3c + 8008f92: b920 cbnz r0, 8008f9e + 8008f94: 2132 movs r1, #50 ; 0x32 + 8008f96: 4b06 ldr r3, [pc, #24] ; (8008fb0 ) + 8008f98: 4806 ldr r0, [pc, #24] ; (8008fb4 ) + 8008f9a: f001 fa11 bl 800a3c0 <__assert_func> + 8008f9e: 4620 mov r0, r4 + 8008fa0: 6be9 ldr r1, [r5, #60] ; 0x3c + 8008fa2: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8008fa6: f000 b807 b.w 8008fb8 + 8008faa: bf00 nop + 8008fac: 20000014 .word 0x20000014 + 8008fb0: 0800d27c .word 0x0800d27c + 8008fb4: 0800d2f4 .word 0x0800d2f4 -0800900c : - 800900c: b570 push {r4, r5, r6, lr} - 800900e: 4e0e ldr r6, [pc, #56] ; (8009048 ) - 8009010: 460c mov r4, r1 - 8009012: 6831 ldr r1, [r6, #0] - 8009014: 4605 mov r5, r0 - 8009016: b911 cbnz r1, 800901e - 8009018: f000 fd7a bl 8009b10 <_sbrk_r> - 800901c: 6030 str r0, [r6, #0] - 800901e: 4621 mov r1, r4 - 8009020: 4628 mov r0, r5 - 8009022: f000 fd75 bl 8009b10 <_sbrk_r> - 8009026: 1c43 adds r3, r0, #1 - 8009028: d00a beq.n 8009040 - 800902a: 1cc4 adds r4, r0, #3 - 800902c: f024 0403 bic.w r4, r4, #3 - 8009030: 42a0 cmp r0, r4 - 8009032: d007 beq.n 8009044 - 8009034: 1a21 subs r1, r4, r0 - 8009036: 4628 mov r0, r5 - 8009038: f000 fd6a bl 8009b10 <_sbrk_r> - 800903c: 3001 adds r0, #1 - 800903e: d101 bne.n 8009044 - 8009040: f04f 34ff mov.w r4, #4294967295 ; 0xffffffff - 8009044: 4620 mov r0, r4 - 8009046: bd70 pop {r4, r5, r6, pc} - 8009048: 20001d1c .word 0x20001d1c +08008fb8 : + 8008fb8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8008fbc: 460c mov r4, r1 + 8008fbe: 4680 mov r8, r0 + 8008fc0: f002 faa2 bl 800b508 <__gettzinfo> + 8008fc4: 4621 mov r1, r4 + 8008fc6: 4605 mov r5, r0 + 8008fc8: 4640 mov r0, r8 + 8008fca: f7ff ff05 bl 8008dd8 + 8008fce: 6943 ldr r3, [r0, #20] + 8008fd0: 4604 mov r4, r0 + 8008fd2: 0799 lsls r1, r3, #30 + 8008fd4: f203 776c addw r7, r3, #1900 ; 0x76c + 8008fd8: d105 bne.n 8008fe6 + 8008fda: 2264 movs r2, #100 ; 0x64 + 8008fdc: fb97 f3f2 sdiv r3, r7, r2 + 8008fe0: fb02 7313 mls r3, r2, r3, r7 + 8008fe4: bb73 cbnz r3, 8009044 + 8008fe6: f44f 73c8 mov.w r3, #400 ; 0x190 + 8008fea: fb97 f6f3 sdiv r6, r7, r3 + 8008fee: fb03 7616 mls r6, r3, r6, r7 + 8008ff2: fab6 f386 clz r3, r6 + 8008ff6: 095b lsrs r3, r3, #5 + 8008ff8: 2230 movs r2, #48 ; 0x30 + 8008ffa: 4e66 ldr r6, [pc, #408] ; (8009194 ) + 8008ffc: fb02 6603 mla r6, r2, r3, r6 + 8009000: f000 ff8a bl 8009f18 <__tz_lock> + 8009004: f000 ff94 bl 8009f30 <_tzset_unlocked> + 8009008: 4b63 ldr r3, [pc, #396] ; (8009198 ) + 800900a: 681b ldr r3, [r3, #0] + 800900c: b34b cbz r3, 8009062 + 800900e: 686b ldr r3, [r5, #4] + 8009010: 42bb cmp r3, r7 + 8009012: d119 bne.n 8009048 + 8009014: e9d8 2300 ldrd r2, r3, [r8] + 8009018: e9d5 0108 ldrd r0, r1, [r5, #32] + 800901c: 682f ldr r7, [r5, #0] + 800901e: b9df cbnz r7, 8009058 + 8009020: 4282 cmp r2, r0 + 8009022: eb73 0101 sbcs.w r1, r3, r1 + 8009026: da23 bge.n 8009070 + 8009028: e9d5 0112 ldrd r0, r1, [r5, #72] ; 0x48 + 800902c: 4282 cmp r2, r0 + 800902e: eb73 0701 sbcs.w r7, r3, r1 + 8009032: bfb4 ite lt + 8009034: 2701 movlt r7, #1 + 8009036: 2700 movge r7, #0 + 8009038: 4282 cmp r2, r0 + 800903a: 418b sbcs r3, r1 + 800903c: 6227 str r7, [r4, #32] + 800903e: db19 blt.n 8009074 + 8009040: 6aab ldr r3, [r5, #40] ; 0x28 + 8009042: e018 b.n 8009076 + 8009044: 2301 movs r3, #1 + 8009046: e7d7 b.n 8008ff8 + 8009048: 4638 mov r0, r7 + 800904a: f000 febb bl 8009dc4 <__tzcalc_limits> + 800904e: 2800 cmp r0, #0 + 8009050: d1e0 bne.n 8009014 + 8009052: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8009056: e004 b.n 8009062 + 8009058: 4282 cmp r2, r0 + 800905a: eb73 0101 sbcs.w r1, r3, r1 + 800905e: da02 bge.n 8009066 + 8009060: 2300 movs r3, #0 + 8009062: 6223 str r3, [r4, #32] + 8009064: e7ec b.n 8009040 + 8009066: e9d5 0112 ldrd r0, r1, [r5, #72] ; 0x48 + 800906a: 4282 cmp r2, r0 + 800906c: 418b sbcs r3, r1 + 800906e: daf7 bge.n 8009060 + 8009070: 2301 movs r3, #1 + 8009072: 6223 str r3, [r4, #32] + 8009074: 6d2b ldr r3, [r5, #80] ; 0x50 + 8009076: f44f 6261 mov.w r2, #3600 ; 0xe10 + 800907a: fb93 f5f2 sdiv r5, r3, r2 + 800907e: 203c movs r0, #60 ; 0x3c + 8009080: fb02 3315 mls r3, r2, r5, r3 + 8009084: fb93 f2f0 sdiv r2, r3, r0 + 8009088: fb00 3012 mls r0, r0, r2, r3 + 800908c: 6861 ldr r1, [r4, #4] + 800908e: 6823 ldr r3, [r4, #0] + 8009090: 1a89 subs r1, r1, r2 + 8009092: 68a2 ldr r2, [r4, #8] + 8009094: 1a1b subs r3, r3, r0 + 8009096: 1b52 subs r2, r2, r5 + 8009098: 2b3b cmp r3, #59 ; 0x3b + 800909a: 6023 str r3, [r4, #0] + 800909c: 6061 str r1, [r4, #4] + 800909e: 60a2 str r2, [r4, #8] + 80090a0: dd34 ble.n 800910c + 80090a2: 3101 adds r1, #1 + 80090a4: 6061 str r1, [r4, #4] + 80090a6: 3b3c subs r3, #60 ; 0x3c + 80090a8: 6023 str r3, [r4, #0] + 80090aa: 6863 ldr r3, [r4, #4] + 80090ac: 2b3b cmp r3, #59 ; 0x3b + 80090ae: dd33 ble.n 8009118 + 80090b0: 3201 adds r2, #1 + 80090b2: 60a2 str r2, [r4, #8] + 80090b4: 3b3c subs r3, #60 ; 0x3c + 80090b6: 6063 str r3, [r4, #4] + 80090b8: 68a3 ldr r3, [r4, #8] + 80090ba: 2b17 cmp r3, #23 + 80090bc: dd32 ble.n 8009124 + 80090be: 69e2 ldr r2, [r4, #28] + 80090c0: 3b18 subs r3, #24 + 80090c2: 3201 adds r2, #1 + 80090c4: 61e2 str r2, [r4, #28] + 80090c6: 69a2 ldr r2, [r4, #24] + 80090c8: 60a3 str r3, [r4, #8] + 80090ca: 3201 adds r2, #1 + 80090cc: 2a06 cmp r2, #6 + 80090ce: bfc8 it gt + 80090d0: 2200 movgt r2, #0 + 80090d2: 61a2 str r2, [r4, #24] + 80090d4: 68e2 ldr r2, [r4, #12] + 80090d6: 6923 ldr r3, [r4, #16] + 80090d8: 3201 adds r2, #1 + 80090da: 60e2 str r2, [r4, #12] + 80090dc: f856 1023 ldr.w r1, [r6, r3, lsl #2] + 80090e0: 428a cmp r2, r1 + 80090e2: dd0e ble.n 8009102 + 80090e4: 2b0b cmp r3, #11 + 80090e6: eba2 0201 sub.w r2, r2, r1 + 80090ea: 60e2 str r2, [r4, #12] + 80090ec: f103 0201 add.w r2, r3, #1 + 80090f0: bf05 ittet eq + 80090f2: 2200 moveq r2, #0 + 80090f4: 6963 ldreq r3, [r4, #20] + 80090f6: 6122 strne r2, [r4, #16] + 80090f8: 3301 addeq r3, #1 + 80090fa: bf02 ittt eq + 80090fc: 6122 streq r2, [r4, #16] + 80090fe: 6163 streq r3, [r4, #20] + 8009100: 61e2 streq r2, [r4, #28] + 8009102: f000 ff0f bl 8009f24 <__tz_unlock> + 8009106: 4620 mov r0, r4 + 8009108: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800910c: 2b00 cmp r3, #0 + 800910e: dacc bge.n 80090aa + 8009110: 3901 subs r1, #1 + 8009112: 6061 str r1, [r4, #4] + 8009114: 333c adds r3, #60 ; 0x3c + 8009116: e7c7 b.n 80090a8 + 8009118: 2b00 cmp r3, #0 + 800911a: dacd bge.n 80090b8 + 800911c: 3a01 subs r2, #1 + 800911e: 60a2 str r2, [r4, #8] + 8009120: 333c adds r3, #60 ; 0x3c + 8009122: e7c8 b.n 80090b6 + 8009124: 2b00 cmp r3, #0 + 8009126: daec bge.n 8009102 + 8009128: 69e2 ldr r2, [r4, #28] + 800912a: 3318 adds r3, #24 + 800912c: 3a01 subs r2, #1 + 800912e: 61e2 str r2, [r4, #28] + 8009130: 69a2 ldr r2, [r4, #24] + 8009132: 60a3 str r3, [r4, #8] + 8009134: 3a01 subs r2, #1 + 8009136: bf48 it mi + 8009138: 2206 movmi r2, #6 + 800913a: 61a2 str r2, [r4, #24] + 800913c: 68e2 ldr r2, [r4, #12] + 800913e: 3a01 subs r2, #1 + 8009140: 60e2 str r2, [r4, #12] + 8009142: 2a00 cmp r2, #0 + 8009144: d1dd bne.n 8009102 + 8009146: 6923 ldr r3, [r4, #16] + 8009148: 3b01 subs r3, #1 + 800914a: d405 bmi.n 8009158 + 800914c: 6123 str r3, [r4, #16] + 800914e: 6923 ldr r3, [r4, #16] + 8009150: f856 3023 ldr.w r3, [r6, r3, lsl #2] + 8009154: 60e3 str r3, [r4, #12] + 8009156: e7d4 b.n 8009102 + 8009158: 230b movs r3, #11 + 800915a: 6123 str r3, [r4, #16] + 800915c: 6963 ldr r3, [r4, #20] + 800915e: 1e5a subs r2, r3, #1 + 8009160: f203 736b addw r3, r3, #1899 ; 0x76b + 8009164: 6162 str r2, [r4, #20] + 8009166: 079a lsls r2, r3, #30 + 8009168: d105 bne.n 8009176 + 800916a: 2164 movs r1, #100 ; 0x64 + 800916c: fb93 f2f1 sdiv r2, r3, r1 + 8009170: fb01 3212 mls r2, r1, r2, r3 + 8009174: b962 cbnz r2, 8009190 + 8009176: f44f 72c8 mov.w r2, #400 ; 0x190 + 800917a: fb93 f1f2 sdiv r1, r3, r2 + 800917e: fb02 3311 mls r3, r2, r1, r3 + 8009182: fab3 f383 clz r3, r3 + 8009186: 095b lsrs r3, r3, #5 + 8009188: f503 73b6 add.w r3, r3, #364 ; 0x16c + 800918c: 61e3 str r3, [r4, #28] + 800918e: e7de b.n 800914e + 8009190: 2301 movs r3, #1 + 8009192: e7f9 b.n 8009188 + 8009194: 0800d350 .word 0x0800d350 + 8009198: 200033bc .word 0x200033bc -0800904c <_malloc_r>: - 800904c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8009050: 1ccd adds r5, r1, #3 - 8009052: f025 0503 bic.w r5, r5, #3 - 8009056: 3508 adds r5, #8 - 8009058: 2d0c cmp r5, #12 - 800905a: bf38 it cc - 800905c: 250c movcc r5, #12 - 800905e: 2d00 cmp r5, #0 - 8009060: 4607 mov r7, r0 - 8009062: db01 blt.n 8009068 <_malloc_r+0x1c> - 8009064: 42a9 cmp r1, r5 - 8009066: d905 bls.n 8009074 <_malloc_r+0x28> - 8009068: 230c movs r3, #12 - 800906a: 2600 movs r6, #0 - 800906c: 603b str r3, [r7, #0] - 800906e: 4630 mov r0, r6 - 8009070: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8009074: 4e2e ldr r6, [pc, #184] ; (8009130 <_malloc_r+0xe4>) - 8009076: f002 f98f bl 800b398 <__malloc_lock> - 800907a: 6833 ldr r3, [r6, #0] - 800907c: 461c mov r4, r3 - 800907e: bb34 cbnz r4, 80090ce <_malloc_r+0x82> - 8009080: 4629 mov r1, r5 - 8009082: 4638 mov r0, r7 - 8009084: f7ff ffc2 bl 800900c - 8009088: 1c43 adds r3, r0, #1 - 800908a: 4604 mov r4, r0 - 800908c: d14d bne.n 800912a <_malloc_r+0xde> - 800908e: 6834 ldr r4, [r6, #0] - 8009090: 4626 mov r6, r4 - 8009092: 2e00 cmp r6, #0 - 8009094: d140 bne.n 8009118 <_malloc_r+0xcc> - 8009096: 6823 ldr r3, [r4, #0] - 8009098: 4631 mov r1, r6 - 800909a: 4638 mov r0, r7 - 800909c: eb04 0803 add.w r8, r4, r3 - 80090a0: f000 fd36 bl 8009b10 <_sbrk_r> - 80090a4: 4580 cmp r8, r0 - 80090a6: d13a bne.n 800911e <_malloc_r+0xd2> - 80090a8: 6821 ldr r1, [r4, #0] - 80090aa: 3503 adds r5, #3 - 80090ac: 1a6d subs r5, r5, r1 - 80090ae: f025 0503 bic.w r5, r5, #3 - 80090b2: 3508 adds r5, #8 - 80090b4: 2d0c cmp r5, #12 - 80090b6: bf38 it cc - 80090b8: 250c movcc r5, #12 - 80090ba: 4638 mov r0, r7 - 80090bc: 4629 mov r1, r5 - 80090be: f7ff ffa5 bl 800900c - 80090c2: 3001 adds r0, #1 - 80090c4: d02b beq.n 800911e <_malloc_r+0xd2> - 80090c6: 6823 ldr r3, [r4, #0] - 80090c8: 442b add r3, r5 - 80090ca: 6023 str r3, [r4, #0] - 80090cc: e00e b.n 80090ec <_malloc_r+0xa0> - 80090ce: 6822 ldr r2, [r4, #0] - 80090d0: 1b52 subs r2, r2, r5 - 80090d2: d41e bmi.n 8009112 <_malloc_r+0xc6> - 80090d4: 2a0b cmp r2, #11 - 80090d6: d916 bls.n 8009106 <_malloc_r+0xba> - 80090d8: 1961 adds r1, r4, r5 - 80090da: 42a3 cmp r3, r4 - 80090dc: 6025 str r5, [r4, #0] - 80090de: bf18 it ne - 80090e0: 6059 strne r1, [r3, #4] - 80090e2: 6863 ldr r3, [r4, #4] - 80090e4: bf08 it eq - 80090e6: 6031 streq r1, [r6, #0] - 80090e8: 5162 str r2, [r4, r5] - 80090ea: 604b str r3, [r1, #4] - 80090ec: 4638 mov r0, r7 - 80090ee: f104 060b add.w r6, r4, #11 - 80090f2: f002 f957 bl 800b3a4 <__malloc_unlock> - 80090f6: f026 0607 bic.w r6, r6, #7 - 80090fa: 1d23 adds r3, r4, #4 - 80090fc: 1af2 subs r2, r6, r3 - 80090fe: d0b6 beq.n 800906e <_malloc_r+0x22> - 8009100: 1b9b subs r3, r3, r6 - 8009102: 50a3 str r3, [r4, r2] - 8009104: e7b3 b.n 800906e <_malloc_r+0x22> - 8009106: 6862 ldr r2, [r4, #4] - 8009108: 42a3 cmp r3, r4 - 800910a: bf0c ite eq - 800910c: 6032 streq r2, [r6, #0] - 800910e: 605a strne r2, [r3, #4] - 8009110: e7ec b.n 80090ec <_malloc_r+0xa0> - 8009112: 4623 mov r3, r4 - 8009114: 6864 ldr r4, [r4, #4] - 8009116: e7b2 b.n 800907e <_malloc_r+0x32> - 8009118: 4634 mov r4, r6 - 800911a: 6876 ldr r6, [r6, #4] - 800911c: e7b9 b.n 8009092 <_malloc_r+0x46> - 800911e: 230c movs r3, #12 - 8009120: 4638 mov r0, r7 - 8009122: 603b str r3, [r7, #0] - 8009124: f002 f93e bl 800b3a4 <__malloc_unlock> - 8009128: e7a1 b.n 800906e <_malloc_r+0x22> - 800912a: 6025 str r5, [r4, #0] - 800912c: e7de b.n 80090ec <_malloc_r+0xa0> - 800912e: bf00 nop - 8009130: 20001d18 .word 0x20001d18 +0800919c : + 800919c: 4b02 ldr r3, [pc, #8] ; (80091a8 ) + 800919e: 4601 mov r1, r0 + 80091a0: 6818 ldr r0, [r3, #0] + 80091a2: f000 b889 b.w 80092b8 <_malloc_r> + 80091a6: bf00 nop + 80091a8: 20000014 .word 0x20000014 -08009134 <__cvt>: - 8009134: 2b00 cmp r3, #0 - 8009136: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 800913a: 461f mov r7, r3 - 800913c: bfbb ittet lt - 800913e: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 - 8009142: 461f movlt r7, r3 - 8009144: 2300 movge r3, #0 - 8009146: 232d movlt r3, #45 ; 0x2d - 8009148: b088 sub sp, #32 - 800914a: 4614 mov r4, r2 - 800914c: 9a12 ldr r2, [sp, #72] ; 0x48 - 800914e: 9d10 ldr r5, [sp, #64] ; 0x40 - 8009150: 7013 strb r3, [r2, #0] - 8009152: 9b14 ldr r3, [sp, #80] ; 0x50 - 8009154: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c - 8009158: f023 0820 bic.w r8, r3, #32 - 800915c: f1b8 0f46 cmp.w r8, #70 ; 0x46 - 8009160: d005 beq.n 800916e <__cvt+0x3a> - 8009162: f1b8 0f45 cmp.w r8, #69 ; 0x45 - 8009166: d100 bne.n 800916a <__cvt+0x36> - 8009168: 3501 adds r5, #1 - 800916a: 2302 movs r3, #2 - 800916c: e000 b.n 8009170 <__cvt+0x3c> - 800916e: 2303 movs r3, #3 - 8009170: aa07 add r2, sp, #28 - 8009172: 9204 str r2, [sp, #16] - 8009174: aa06 add r2, sp, #24 - 8009176: e9cd a202 strd sl, r2, [sp, #8] - 800917a: e9cd 3500 strd r3, r5, [sp] - 800917e: 4622 mov r2, r4 - 8009180: 463b mov r3, r7 - 8009182: f001 f891 bl 800a2a8 <_dtoa_r> - 8009186: f1b8 0f47 cmp.w r8, #71 ; 0x47 - 800918a: 4606 mov r6, r0 - 800918c: d102 bne.n 8009194 <__cvt+0x60> - 800918e: 9b11 ldr r3, [sp, #68] ; 0x44 - 8009190: 07db lsls r3, r3, #31 - 8009192: d522 bpl.n 80091da <__cvt+0xa6> - 8009194: f1b8 0f46 cmp.w r8, #70 ; 0x46 - 8009198: eb06 0905 add.w r9, r6, r5 - 800919c: d110 bne.n 80091c0 <__cvt+0x8c> - 800919e: 7833 ldrb r3, [r6, #0] - 80091a0: 2b30 cmp r3, #48 ; 0x30 - 80091a2: d10a bne.n 80091ba <__cvt+0x86> - 80091a4: 2200 movs r2, #0 - 80091a6: 2300 movs r3, #0 - 80091a8: 4620 mov r0, r4 - 80091aa: 4639 mov r1, r7 - 80091ac: f7f7 fc72 bl 8000a94 <__aeabi_dcmpeq> - 80091b0: b918 cbnz r0, 80091ba <__cvt+0x86> - 80091b2: f1c5 0501 rsb r5, r5, #1 - 80091b6: f8ca 5000 str.w r5, [sl] - 80091ba: f8da 3000 ldr.w r3, [sl] - 80091be: 4499 add r9, r3 - 80091c0: 2200 movs r2, #0 - 80091c2: 2300 movs r3, #0 - 80091c4: 4620 mov r0, r4 - 80091c6: 4639 mov r1, r7 - 80091c8: f7f7 fc64 bl 8000a94 <__aeabi_dcmpeq> - 80091cc: b108 cbz r0, 80091d2 <__cvt+0x9e> - 80091ce: f8cd 901c str.w r9, [sp, #28] - 80091d2: 2230 movs r2, #48 ; 0x30 - 80091d4: 9b07 ldr r3, [sp, #28] - 80091d6: 454b cmp r3, r9 - 80091d8: d307 bcc.n 80091ea <__cvt+0xb6> - 80091da: 4630 mov r0, r6 - 80091dc: 9b07 ldr r3, [sp, #28] - 80091de: 9a15 ldr r2, [sp, #84] ; 0x54 - 80091e0: 1b9b subs r3, r3, r6 - 80091e2: 6013 str r3, [r2, #0] - 80091e4: b008 add sp, #32 - 80091e6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80091ea: 1c59 adds r1, r3, #1 - 80091ec: 9107 str r1, [sp, #28] - 80091ee: 701a strb r2, [r3, #0] - 80091f0: e7f0 b.n 80091d4 <__cvt+0xa0> +080091ac : + 80091ac: 4b02 ldr r3, [pc, #8] ; (80091b8 ) + 80091ae: 4601 mov r1, r0 + 80091b0: 6818 ldr r0, [r3, #0] + 80091b2: f000 b819 b.w 80091e8 <_free_r> + 80091b6: bf00 nop + 80091b8: 20000014 .word 0x20000014 -080091f2 <__exponent>: - 80091f2: 4603 mov r3, r0 - 80091f4: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} - 80091f6: 2900 cmp r1, #0 - 80091f8: f803 2b02 strb.w r2, [r3], #2 - 80091fc: bfb6 itet lt - 80091fe: 222d movlt r2, #45 ; 0x2d - 8009200: 222b movge r2, #43 ; 0x2b - 8009202: 4249 neglt r1, r1 - 8009204: 2909 cmp r1, #9 - 8009206: 7042 strb r2, [r0, #1] - 8009208: dd2b ble.n 8009262 <__exponent+0x70> - 800920a: f10d 0407 add.w r4, sp, #7 - 800920e: 46a4 mov ip, r4 - 8009210: 270a movs r7, #10 - 8009212: fb91 f6f7 sdiv r6, r1, r7 - 8009216: 460a mov r2, r1 - 8009218: 46a6 mov lr, r4 - 800921a: fb07 1516 mls r5, r7, r6, r1 - 800921e: 2a63 cmp r2, #99 ; 0x63 - 8009220: f105 0530 add.w r5, r5, #48 ; 0x30 - 8009224: 4631 mov r1, r6 - 8009226: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff - 800922a: f80e 5c01 strb.w r5, [lr, #-1] - 800922e: dcf0 bgt.n 8009212 <__exponent+0x20> - 8009230: 3130 adds r1, #48 ; 0x30 - 8009232: f1ae 0502 sub.w r5, lr, #2 - 8009236: f804 1c01 strb.w r1, [r4, #-1] - 800923a: 4629 mov r1, r5 - 800923c: 1c44 adds r4, r0, #1 - 800923e: 4561 cmp r1, ip - 8009240: d30a bcc.n 8009258 <__exponent+0x66> - 8009242: f10d 0209 add.w r2, sp, #9 - 8009246: eba2 020e sub.w r2, r2, lr - 800924a: 4565 cmp r5, ip - 800924c: bf88 it hi - 800924e: 2200 movhi r2, #0 - 8009250: 4413 add r3, r2 - 8009252: 1a18 subs r0, r3, r0 - 8009254: b003 add sp, #12 - 8009256: bdf0 pop {r4, r5, r6, r7, pc} - 8009258: f811 2b01 ldrb.w r2, [r1], #1 - 800925c: f804 2f01 strb.w r2, [r4, #1]! - 8009260: e7ed b.n 800923e <__exponent+0x4c> - 8009262: 2330 movs r3, #48 ; 0x30 - 8009264: 3130 adds r1, #48 ; 0x30 - 8009266: 7083 strb r3, [r0, #2] - 8009268: 70c1 strb r1, [r0, #3] - 800926a: 1d03 adds r3, r0, #4 - 800926c: e7f1 b.n 8009252 <__exponent+0x60> - ... +080091bc : + 80091bc: 440a add r2, r1 + 80091be: 4291 cmp r1, r2 + 80091c0: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff + 80091c4: d100 bne.n 80091c8 + 80091c6: 4770 bx lr + 80091c8: b510 push {r4, lr} + 80091ca: f811 4b01 ldrb.w r4, [r1], #1 + 80091ce: 4291 cmp r1, r2 + 80091d0: f803 4f01 strb.w r4, [r3, #1]! + 80091d4: d1f9 bne.n 80091ca + 80091d6: bd10 pop {r4, pc} -08009270 <_printf_float>: - 8009270: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8009274: b091 sub sp, #68 ; 0x44 - 8009276: 460c mov r4, r1 - 8009278: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 - 800927c: 4616 mov r6, r2 - 800927e: 461f mov r7, r3 +080091d8 : + 80091d8: 4603 mov r3, r0 + 80091da: 4402 add r2, r0 + 80091dc: 4293 cmp r3, r2 + 80091de: d100 bne.n 80091e2 + 80091e0: 4770 bx lr + 80091e2: f803 1b01 strb.w r1, [r3], #1 + 80091e6: e7f9 b.n 80091dc + +080091e8 <_free_r>: + 80091e8: b538 push {r3, r4, r5, lr} + 80091ea: 4605 mov r5, r0 + 80091ec: 2900 cmp r1, #0 + 80091ee: d040 beq.n 8009272 <_free_r+0x8a> + 80091f0: f851 3c04 ldr.w r3, [r1, #-4] + 80091f4: 1f0c subs r4, r1, #4 + 80091f6: 2b00 cmp r3, #0 + 80091f8: bfb8 it lt + 80091fa: 18e4 addlt r4, r4, r3 + 80091fc: f002 fa04 bl 800b608 <__malloc_lock> + 8009200: 4a1c ldr r2, [pc, #112] ; (8009274 <_free_r+0x8c>) + 8009202: 6813 ldr r3, [r2, #0] + 8009204: b933 cbnz r3, 8009214 <_free_r+0x2c> + 8009206: 6063 str r3, [r4, #4] + 8009208: 6014 str r4, [r2, #0] + 800920a: 4628 mov r0, r5 + 800920c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8009210: f002 ba00 b.w 800b614 <__malloc_unlock> + 8009214: 42a3 cmp r3, r4 + 8009216: d908 bls.n 800922a <_free_r+0x42> + 8009218: 6820 ldr r0, [r4, #0] + 800921a: 1821 adds r1, r4, r0 + 800921c: 428b cmp r3, r1 + 800921e: bf01 itttt eq + 8009220: 6819 ldreq r1, [r3, #0] + 8009222: 685b ldreq r3, [r3, #4] + 8009224: 1809 addeq r1, r1, r0 + 8009226: 6021 streq r1, [r4, #0] + 8009228: e7ed b.n 8009206 <_free_r+0x1e> + 800922a: 461a mov r2, r3 + 800922c: 685b ldr r3, [r3, #4] + 800922e: b10b cbz r3, 8009234 <_free_r+0x4c> + 8009230: 42a3 cmp r3, r4 + 8009232: d9fa bls.n 800922a <_free_r+0x42> + 8009234: 6811 ldr r1, [r2, #0] + 8009236: 1850 adds r0, r2, r1 + 8009238: 42a0 cmp r0, r4 + 800923a: d10b bne.n 8009254 <_free_r+0x6c> + 800923c: 6820 ldr r0, [r4, #0] + 800923e: 4401 add r1, r0 + 8009240: 1850 adds r0, r2, r1 + 8009242: 4283 cmp r3, r0 + 8009244: 6011 str r1, [r2, #0] + 8009246: d1e0 bne.n 800920a <_free_r+0x22> + 8009248: 6818 ldr r0, [r3, #0] + 800924a: 685b ldr r3, [r3, #4] + 800924c: 4401 add r1, r0 + 800924e: 6011 str r1, [r2, #0] + 8009250: 6053 str r3, [r2, #4] + 8009252: e7da b.n 800920a <_free_r+0x22> + 8009254: d902 bls.n 800925c <_free_r+0x74> + 8009256: 230c movs r3, #12 + 8009258: 602b str r3, [r5, #0] + 800925a: e7d6 b.n 800920a <_free_r+0x22> + 800925c: 6820 ldr r0, [r4, #0] + 800925e: 1821 adds r1, r4, r0 + 8009260: 428b cmp r3, r1 + 8009262: bf01 itttt eq + 8009264: 6819 ldreq r1, [r3, #0] + 8009266: 685b ldreq r3, [r3, #4] + 8009268: 1809 addeq r1, r1, r0 + 800926a: 6021 streq r1, [r4, #0] + 800926c: 6063 str r3, [r4, #4] + 800926e: 6054 str r4, [r2, #4] + 8009270: e7cb b.n 800920a <_free_r+0x22> + 8009272: bd38 pop {r3, r4, r5, pc} + 8009274: 20003398 .word 0x20003398 + +08009278 : + 8009278: b570 push {r4, r5, r6, lr} + 800927a: 4e0e ldr r6, [pc, #56] ; (80092b4 ) + 800927c: 460c mov r4, r1 + 800927e: 6831 ldr r1, [r6, #0] 8009280: 4605 mov r5, r0 - 8009282: f002 f80d bl 800b2a0 <_localeconv_r> - 8009286: 6803 ldr r3, [r0, #0] - 8009288: 4618 mov r0, r3 - 800928a: 9309 str r3, [sp, #36] ; 0x24 - 800928c: f7f6 ffcc bl 8000228 - 8009290: 2300 movs r3, #0 - 8009292: 930e str r3, [sp, #56] ; 0x38 - 8009294: f8d8 3000 ldr.w r3, [r8] - 8009298: 900a str r0, [sp, #40] ; 0x28 - 800929a: 3307 adds r3, #7 - 800929c: f023 0307 bic.w r3, r3, #7 - 80092a0: f103 0208 add.w r2, r3, #8 - 80092a4: f894 9018 ldrb.w r9, [r4, #24] - 80092a8: f8d4 b000 ldr.w fp, [r4] - 80092ac: f8c8 2000 str.w r2, [r8] - 80092b0: e9d3 2300 ldrd r2, r3, [r3] - 80092b4: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 - 80092b8: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48 - 80092bc: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000 - 80092c0: 930b str r3, [sp, #44] ; 0x2c - 80092c2: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80092c6: 4640 mov r0, r8 - 80092c8: 4b9c ldr r3, [pc, #624] ; (800953c <_printf_float+0x2cc>) - 80092ca: 990b ldr r1, [sp, #44] ; 0x2c - 80092cc: f7f7 fc14 bl 8000af8 <__aeabi_dcmpun> - 80092d0: bb70 cbnz r0, 8009330 <_printf_float+0xc0> - 80092d2: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80092d6: 4640 mov r0, r8 - 80092d8: 4b98 ldr r3, [pc, #608] ; (800953c <_printf_float+0x2cc>) - 80092da: 990b ldr r1, [sp, #44] ; 0x2c - 80092dc: f7f7 fbee bl 8000abc <__aeabi_dcmple> - 80092e0: bb30 cbnz r0, 8009330 <_printf_float+0xc0> - 80092e2: 2200 movs r2, #0 - 80092e4: 2300 movs r3, #0 - 80092e6: 4640 mov r0, r8 - 80092e8: 4651 mov r1, sl - 80092ea: f7f7 fbdd bl 8000aa8 <__aeabi_dcmplt> - 80092ee: b110 cbz r0, 80092f6 <_printf_float+0x86> - 80092f0: 232d movs r3, #45 ; 0x2d - 80092f2: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 80092f6: 4b92 ldr r3, [pc, #584] ; (8009540 <_printf_float+0x2d0>) - 80092f8: 4892 ldr r0, [pc, #584] ; (8009544 <_printf_float+0x2d4>) - 80092fa: f1b9 0f47 cmp.w r9, #71 ; 0x47 - 80092fe: bf94 ite ls - 8009300: 4698 movls r8, r3 - 8009302: 4680 movhi r8, r0 - 8009304: 2303 movs r3, #3 - 8009306: f04f 0a00 mov.w sl, #0 - 800930a: 6123 str r3, [r4, #16] - 800930c: f02b 0304 bic.w r3, fp, #4 - 8009310: 6023 str r3, [r4, #0] - 8009312: 4633 mov r3, r6 - 8009314: 4621 mov r1, r4 - 8009316: 4628 mov r0, r5 - 8009318: 9700 str r7, [sp, #0] - 800931a: aa0f add r2, sp, #60 ; 0x3c - 800931c: f000 f9d4 bl 80096c8 <_printf_common> - 8009320: 3001 adds r0, #1 - 8009322: f040 8090 bne.w 8009446 <_printf_float+0x1d6> - 8009326: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800932a: b011 add sp, #68 ; 0x44 - 800932c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8009330: 4642 mov r2, r8 - 8009332: 4653 mov r3, sl - 8009334: 4640 mov r0, r8 - 8009336: 4651 mov r1, sl - 8009338: f7f7 fbde bl 8000af8 <__aeabi_dcmpun> - 800933c: b148 cbz r0, 8009352 <_printf_float+0xe2> - 800933e: f1ba 0f00 cmp.w sl, #0 - 8009342: bfb8 it lt - 8009344: 232d movlt r3, #45 ; 0x2d - 8009346: 4880 ldr r0, [pc, #512] ; (8009548 <_printf_float+0x2d8>) - 8009348: bfb8 it lt - 800934a: f884 3043 strblt.w r3, [r4, #67] ; 0x43 - 800934e: 4b7f ldr r3, [pc, #508] ; (800954c <_printf_float+0x2dc>) - 8009350: e7d3 b.n 80092fa <_printf_float+0x8a> - 8009352: 6863 ldr r3, [r4, #4] - 8009354: f009 01df and.w r1, r9, #223 ; 0xdf - 8009358: 1c5a adds r2, r3, #1 - 800935a: d142 bne.n 80093e2 <_printf_float+0x172> - 800935c: 2306 movs r3, #6 - 800935e: 6063 str r3, [r4, #4] - 8009360: 2200 movs r2, #0 - 8009362: 9206 str r2, [sp, #24] - 8009364: aa0e add r2, sp, #56 ; 0x38 - 8009366: e9cd 9204 strd r9, r2, [sp, #16] - 800936a: aa0d add r2, sp, #52 ; 0x34 - 800936c: f44b 6380 orr.w r3, fp, #1024 ; 0x400 - 8009370: 9203 str r2, [sp, #12] - 8009372: f10d 0233 add.w r2, sp, #51 ; 0x33 - 8009376: e9cd 3201 strd r3, r2, [sp, #4] - 800937a: 6023 str r3, [r4, #0] - 800937c: 6863 ldr r3, [r4, #4] - 800937e: 4642 mov r2, r8 - 8009380: 9300 str r3, [sp, #0] - 8009382: 4628 mov r0, r5 - 8009384: 4653 mov r3, sl - 8009386: 910b str r1, [sp, #44] ; 0x2c - 8009388: f7ff fed4 bl 8009134 <__cvt> - 800938c: 990b ldr r1, [sp, #44] ; 0x2c - 800938e: 4680 mov r8, r0 - 8009390: 2947 cmp r1, #71 ; 0x47 - 8009392: 990d ldr r1, [sp, #52] ; 0x34 - 8009394: d108 bne.n 80093a8 <_printf_float+0x138> - 8009396: 1cc8 adds r0, r1, #3 - 8009398: db02 blt.n 80093a0 <_printf_float+0x130> - 800939a: 6863 ldr r3, [r4, #4] - 800939c: 4299 cmp r1, r3 - 800939e: dd40 ble.n 8009422 <_printf_float+0x1b2> - 80093a0: f1a9 0902 sub.w r9, r9, #2 - 80093a4: fa5f f989 uxtb.w r9, r9 - 80093a8: f1b9 0f65 cmp.w r9, #101 ; 0x65 - 80093ac: d81f bhi.n 80093ee <_printf_float+0x17e> - 80093ae: 464a mov r2, r9 - 80093b0: 3901 subs r1, #1 - 80093b2: f104 0050 add.w r0, r4, #80 ; 0x50 - 80093b6: 910d str r1, [sp, #52] ; 0x34 - 80093b8: f7ff ff1b bl 80091f2 <__exponent> - 80093bc: 9a0e ldr r2, [sp, #56] ; 0x38 - 80093be: 4682 mov sl, r0 - 80093c0: 1813 adds r3, r2, r0 - 80093c2: 2a01 cmp r2, #1 - 80093c4: 6123 str r3, [r4, #16] - 80093c6: dc02 bgt.n 80093ce <_printf_float+0x15e> - 80093c8: 6822 ldr r2, [r4, #0] - 80093ca: 07d2 lsls r2, r2, #31 - 80093cc: d501 bpl.n 80093d2 <_printf_float+0x162> - 80093ce: 3301 adds r3, #1 - 80093d0: 6123 str r3, [r4, #16] - 80093d2: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 - 80093d6: 2b00 cmp r3, #0 - 80093d8: d09b beq.n 8009312 <_printf_float+0xa2> - 80093da: 232d movs r3, #45 ; 0x2d - 80093dc: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 80093e0: e797 b.n 8009312 <_printf_float+0xa2> - 80093e2: 2947 cmp r1, #71 ; 0x47 - 80093e4: d1bc bne.n 8009360 <_printf_float+0xf0> - 80093e6: 2b00 cmp r3, #0 - 80093e8: d1ba bne.n 8009360 <_printf_float+0xf0> - 80093ea: 2301 movs r3, #1 - 80093ec: e7b7 b.n 800935e <_printf_float+0xee> - 80093ee: f1b9 0f66 cmp.w r9, #102 ; 0x66 - 80093f2: d118 bne.n 8009426 <_printf_float+0x1b6> - 80093f4: 2900 cmp r1, #0 - 80093f6: 6863 ldr r3, [r4, #4] - 80093f8: dd0b ble.n 8009412 <_printf_float+0x1a2> - 80093fa: 6121 str r1, [r4, #16] - 80093fc: b913 cbnz r3, 8009404 <_printf_float+0x194> - 80093fe: 6822 ldr r2, [r4, #0] - 8009400: 07d0 lsls r0, r2, #31 - 8009402: d502 bpl.n 800940a <_printf_float+0x19a> - 8009404: 3301 adds r3, #1 - 8009406: 440b add r3, r1 - 8009408: 6123 str r3, [r4, #16] - 800940a: f04f 0a00 mov.w sl, #0 - 800940e: 65a1 str r1, [r4, #88] ; 0x58 - 8009410: e7df b.n 80093d2 <_printf_float+0x162> - 8009412: b913 cbnz r3, 800941a <_printf_float+0x1aa> - 8009414: 6822 ldr r2, [r4, #0] - 8009416: 07d2 lsls r2, r2, #31 - 8009418: d501 bpl.n 800941e <_printf_float+0x1ae> - 800941a: 3302 adds r3, #2 - 800941c: e7f4 b.n 8009408 <_printf_float+0x198> - 800941e: 2301 movs r3, #1 - 8009420: e7f2 b.n 8009408 <_printf_float+0x198> - 8009422: f04f 0967 mov.w r9, #103 ; 0x67 - 8009426: 9b0e ldr r3, [sp, #56] ; 0x38 - 8009428: 4299 cmp r1, r3 - 800942a: db05 blt.n 8009438 <_printf_float+0x1c8> - 800942c: 6823 ldr r3, [r4, #0] - 800942e: 6121 str r1, [r4, #16] - 8009430: 07d8 lsls r0, r3, #31 - 8009432: d5ea bpl.n 800940a <_printf_float+0x19a> - 8009434: 1c4b adds r3, r1, #1 - 8009436: e7e7 b.n 8009408 <_printf_float+0x198> - 8009438: 2900 cmp r1, #0 - 800943a: bfcc ite gt - 800943c: 2201 movgt r2, #1 - 800943e: f1c1 0202 rsble r2, r1, #2 - 8009442: 4413 add r3, r2 - 8009444: e7e0 b.n 8009408 <_printf_float+0x198> - 8009446: 6823 ldr r3, [r4, #0] - 8009448: 055a lsls r2, r3, #21 - 800944a: d407 bmi.n 800945c <_printf_float+0x1ec> - 800944c: 6923 ldr r3, [r4, #16] - 800944e: 4642 mov r2, r8 - 8009450: 4631 mov r1, r6 - 8009452: 4628 mov r0, r5 - 8009454: 47b8 blx r7 - 8009456: 3001 adds r0, #1 - 8009458: d12b bne.n 80094b2 <_printf_float+0x242> - 800945a: e764 b.n 8009326 <_printf_float+0xb6> - 800945c: f1b9 0f65 cmp.w r9, #101 ; 0x65 - 8009460: f240 80dd bls.w 800961e <_printf_float+0x3ae> - 8009464: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 - 8009468: 2200 movs r2, #0 - 800946a: 2300 movs r3, #0 - 800946c: f7f7 fb12 bl 8000a94 <__aeabi_dcmpeq> - 8009470: 2800 cmp r0, #0 - 8009472: d033 beq.n 80094dc <_printf_float+0x26c> - 8009474: 2301 movs r3, #1 - 8009476: 4631 mov r1, r6 - 8009478: 4628 mov r0, r5 - 800947a: 4a35 ldr r2, [pc, #212] ; (8009550 <_printf_float+0x2e0>) - 800947c: 47b8 blx r7 - 800947e: 3001 adds r0, #1 - 8009480: f43f af51 beq.w 8009326 <_printf_float+0xb6> - 8009484: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 8009488: 429a cmp r2, r3 - 800948a: db02 blt.n 8009492 <_printf_float+0x222> - 800948c: 6823 ldr r3, [r4, #0] - 800948e: 07d8 lsls r0, r3, #31 - 8009490: d50f bpl.n 80094b2 <_printf_float+0x242> - 8009492: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 8009496: 4631 mov r1, r6 - 8009498: 4628 mov r0, r5 - 800949a: 47b8 blx r7 - 800949c: 3001 adds r0, #1 - 800949e: f43f af42 beq.w 8009326 <_printf_float+0xb6> - 80094a2: f04f 0800 mov.w r8, #0 - 80094a6: f104 091a add.w r9, r4, #26 - 80094aa: 9b0e ldr r3, [sp, #56] ; 0x38 - 80094ac: 3b01 subs r3, #1 - 80094ae: 4543 cmp r3, r8 - 80094b0: dc09 bgt.n 80094c6 <_printf_float+0x256> - 80094b2: 6823 ldr r3, [r4, #0] - 80094b4: 079b lsls r3, r3, #30 - 80094b6: f100 8102 bmi.w 80096be <_printf_float+0x44e> - 80094ba: 68e0 ldr r0, [r4, #12] - 80094bc: 9b0f ldr r3, [sp, #60] ; 0x3c - 80094be: 4298 cmp r0, r3 - 80094c0: bfb8 it lt - 80094c2: 4618 movlt r0, r3 - 80094c4: e731 b.n 800932a <_printf_float+0xba> - 80094c6: 2301 movs r3, #1 - 80094c8: 464a mov r2, r9 - 80094ca: 4631 mov r1, r6 - 80094cc: 4628 mov r0, r5 - 80094ce: 47b8 blx r7 - 80094d0: 3001 adds r0, #1 - 80094d2: f43f af28 beq.w 8009326 <_printf_float+0xb6> - 80094d6: f108 0801 add.w r8, r8, #1 - 80094da: e7e6 b.n 80094aa <_printf_float+0x23a> - 80094dc: 9b0d ldr r3, [sp, #52] ; 0x34 - 80094de: 2b00 cmp r3, #0 - 80094e0: dc38 bgt.n 8009554 <_printf_float+0x2e4> - 80094e2: 2301 movs r3, #1 - 80094e4: 4631 mov r1, r6 - 80094e6: 4628 mov r0, r5 - 80094e8: 4a19 ldr r2, [pc, #100] ; (8009550 <_printf_float+0x2e0>) - 80094ea: 47b8 blx r7 - 80094ec: 3001 adds r0, #1 - 80094ee: f43f af1a beq.w 8009326 <_printf_float+0xb6> - 80094f2: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 80094f6: 4313 orrs r3, r2 - 80094f8: d102 bne.n 8009500 <_printf_float+0x290> - 80094fa: 6823 ldr r3, [r4, #0] - 80094fc: 07d9 lsls r1, r3, #31 - 80094fe: d5d8 bpl.n 80094b2 <_printf_float+0x242> - 8009500: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 8009504: 4631 mov r1, r6 - 8009506: 4628 mov r0, r5 - 8009508: 47b8 blx r7 - 800950a: 3001 adds r0, #1 - 800950c: f43f af0b beq.w 8009326 <_printf_float+0xb6> - 8009510: f04f 0900 mov.w r9, #0 - 8009514: f104 0a1a add.w sl, r4, #26 - 8009518: 9b0d ldr r3, [sp, #52] ; 0x34 - 800951a: 425b negs r3, r3 - 800951c: 454b cmp r3, r9 - 800951e: dc01 bgt.n 8009524 <_printf_float+0x2b4> - 8009520: 9b0e ldr r3, [sp, #56] ; 0x38 - 8009522: e794 b.n 800944e <_printf_float+0x1de> - 8009524: 2301 movs r3, #1 - 8009526: 4652 mov r2, sl - 8009528: 4631 mov r1, r6 - 800952a: 4628 mov r0, r5 - 800952c: 47b8 blx r7 - 800952e: 3001 adds r0, #1 - 8009530: f43f aef9 beq.w 8009326 <_printf_float+0xb6> - 8009534: f109 0901 add.w r9, r9, #1 - 8009538: e7ee b.n 8009518 <_printf_float+0x2a8> - 800953a: bf00 nop - 800953c: 7fefffff .word 0x7fefffff - 8009540: 0800d120 .word 0x0800d120 - 8009544: 0800d124 .word 0x0800d124 - 8009548: 0800d12c .word 0x0800d12c - 800954c: 0800d128 .word 0x0800d128 - 8009550: 0800d51c .word 0x0800d51c - 8009554: 9a0e ldr r2, [sp, #56] ; 0x38 - 8009556: 6da3 ldr r3, [r4, #88] ; 0x58 - 8009558: 429a cmp r2, r3 - 800955a: bfa8 it ge - 800955c: 461a movge r2, r3 - 800955e: 2a00 cmp r2, #0 - 8009560: 4691 mov r9, r2 - 8009562: dc37 bgt.n 80095d4 <_printf_float+0x364> - 8009564: f04f 0b00 mov.w fp, #0 - 8009568: ea29 79e9 bic.w r9, r9, r9, asr #31 - 800956c: f104 021a add.w r2, r4, #26 - 8009570: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 - 8009574: ebaa 0309 sub.w r3, sl, r9 - 8009578: 455b cmp r3, fp - 800957a: dc33 bgt.n 80095e4 <_printf_float+0x374> - 800957c: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 8009580: 429a cmp r2, r3 - 8009582: db3b blt.n 80095fc <_printf_float+0x38c> - 8009584: 6823 ldr r3, [r4, #0] - 8009586: 07da lsls r2, r3, #31 - 8009588: d438 bmi.n 80095fc <_printf_float+0x38c> - 800958a: 9b0e ldr r3, [sp, #56] ; 0x38 - 800958c: 990d ldr r1, [sp, #52] ; 0x34 - 800958e: eba3 020a sub.w r2, r3, sl - 8009592: eba3 0901 sub.w r9, r3, r1 - 8009596: 4591 cmp r9, r2 - 8009598: bfa8 it ge - 800959a: 4691 movge r9, r2 - 800959c: f1b9 0f00 cmp.w r9, #0 - 80095a0: dc34 bgt.n 800960c <_printf_float+0x39c> - 80095a2: f04f 0800 mov.w r8, #0 - 80095a6: ea29 79e9 bic.w r9, r9, r9, asr #31 - 80095aa: f104 0a1a add.w sl, r4, #26 - 80095ae: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 80095b2: 1a9b subs r3, r3, r2 - 80095b4: eba3 0309 sub.w r3, r3, r9 - 80095b8: 4543 cmp r3, r8 - 80095ba: f77f af7a ble.w 80094b2 <_printf_float+0x242> - 80095be: 2301 movs r3, #1 - 80095c0: 4652 mov r2, sl - 80095c2: 4631 mov r1, r6 - 80095c4: 4628 mov r0, r5 - 80095c6: 47b8 blx r7 - 80095c8: 3001 adds r0, #1 - 80095ca: f43f aeac beq.w 8009326 <_printf_float+0xb6> - 80095ce: f108 0801 add.w r8, r8, #1 - 80095d2: e7ec b.n 80095ae <_printf_float+0x33e> - 80095d4: 4613 mov r3, r2 - 80095d6: 4631 mov r1, r6 - 80095d8: 4642 mov r2, r8 - 80095da: 4628 mov r0, r5 - 80095dc: 47b8 blx r7 - 80095de: 3001 adds r0, #1 - 80095e0: d1c0 bne.n 8009564 <_printf_float+0x2f4> - 80095e2: e6a0 b.n 8009326 <_printf_float+0xb6> - 80095e4: 2301 movs r3, #1 - 80095e6: 4631 mov r1, r6 - 80095e8: 4628 mov r0, r5 - 80095ea: 920b str r2, [sp, #44] ; 0x2c - 80095ec: 47b8 blx r7 - 80095ee: 3001 adds r0, #1 - 80095f0: f43f ae99 beq.w 8009326 <_printf_float+0xb6> - 80095f4: 9a0b ldr r2, [sp, #44] ; 0x2c - 80095f6: f10b 0b01 add.w fp, fp, #1 - 80095fa: e7b9 b.n 8009570 <_printf_float+0x300> - 80095fc: 4631 mov r1, r6 - 80095fe: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 8009602: 4628 mov r0, r5 - 8009604: 47b8 blx r7 - 8009606: 3001 adds r0, #1 - 8009608: d1bf bne.n 800958a <_printf_float+0x31a> - 800960a: e68c b.n 8009326 <_printf_float+0xb6> - 800960c: 464b mov r3, r9 - 800960e: 4631 mov r1, r6 - 8009610: 4628 mov r0, r5 - 8009612: eb08 020a add.w r2, r8, sl - 8009616: 47b8 blx r7 - 8009618: 3001 adds r0, #1 - 800961a: d1c2 bne.n 80095a2 <_printf_float+0x332> - 800961c: e683 b.n 8009326 <_printf_float+0xb6> - 800961e: 9a0e ldr r2, [sp, #56] ; 0x38 - 8009620: 2a01 cmp r2, #1 - 8009622: dc01 bgt.n 8009628 <_printf_float+0x3b8> - 8009624: 07db lsls r3, r3, #31 - 8009626: d537 bpl.n 8009698 <_printf_float+0x428> - 8009628: 2301 movs r3, #1 - 800962a: 4642 mov r2, r8 - 800962c: 4631 mov r1, r6 - 800962e: 4628 mov r0, r5 - 8009630: 47b8 blx r7 - 8009632: 3001 adds r0, #1 - 8009634: f43f ae77 beq.w 8009326 <_printf_float+0xb6> - 8009638: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 800963c: 4631 mov r1, r6 - 800963e: 4628 mov r0, r5 - 8009640: 47b8 blx r7 - 8009642: 3001 adds r0, #1 - 8009644: f43f ae6f beq.w 8009326 <_printf_float+0xb6> - 8009648: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 - 800964c: 2200 movs r2, #0 - 800964e: 2300 movs r3, #0 - 8009650: f7f7 fa20 bl 8000a94 <__aeabi_dcmpeq> - 8009654: b9d8 cbnz r0, 800968e <_printf_float+0x41e> - 8009656: 9b0e ldr r3, [sp, #56] ; 0x38 - 8009658: f108 0201 add.w r2, r8, #1 - 800965c: 3b01 subs r3, #1 - 800965e: 4631 mov r1, r6 - 8009660: 4628 mov r0, r5 - 8009662: 47b8 blx r7 - 8009664: 3001 adds r0, #1 - 8009666: d10e bne.n 8009686 <_printf_float+0x416> - 8009668: e65d b.n 8009326 <_printf_float+0xb6> - 800966a: 2301 movs r3, #1 - 800966c: 464a mov r2, r9 - 800966e: 4631 mov r1, r6 - 8009670: 4628 mov r0, r5 - 8009672: 47b8 blx r7 - 8009674: 3001 adds r0, #1 - 8009676: f43f ae56 beq.w 8009326 <_printf_float+0xb6> - 800967a: f108 0801 add.w r8, r8, #1 - 800967e: 9b0e ldr r3, [sp, #56] ; 0x38 - 8009680: 3b01 subs r3, #1 - 8009682: 4543 cmp r3, r8 - 8009684: dcf1 bgt.n 800966a <_printf_float+0x3fa> - 8009686: 4653 mov r3, sl - 8009688: f104 0250 add.w r2, r4, #80 ; 0x50 - 800968c: e6e0 b.n 8009450 <_printf_float+0x1e0> - 800968e: f04f 0800 mov.w r8, #0 - 8009692: f104 091a add.w r9, r4, #26 - 8009696: e7f2 b.n 800967e <_printf_float+0x40e> - 8009698: 2301 movs r3, #1 - 800969a: 4642 mov r2, r8 - 800969c: e7df b.n 800965e <_printf_float+0x3ee> - 800969e: 2301 movs r3, #1 - 80096a0: 464a mov r2, r9 - 80096a2: 4631 mov r1, r6 - 80096a4: 4628 mov r0, r5 - 80096a6: 47b8 blx r7 - 80096a8: 3001 adds r0, #1 - 80096aa: f43f ae3c beq.w 8009326 <_printf_float+0xb6> - 80096ae: f108 0801 add.w r8, r8, #1 - 80096b2: 68e3 ldr r3, [r4, #12] - 80096b4: 990f ldr r1, [sp, #60] ; 0x3c - 80096b6: 1a5b subs r3, r3, r1 - 80096b8: 4543 cmp r3, r8 - 80096ba: dcf0 bgt.n 800969e <_printf_float+0x42e> - 80096bc: e6fd b.n 80094ba <_printf_float+0x24a> - 80096be: f04f 0800 mov.w r8, #0 - 80096c2: f104 0919 add.w r9, r4, #25 - 80096c6: e7f4 b.n 80096b2 <_printf_float+0x442> + 8009282: b911 cbnz r1, 800928a + 8009284: f000 fd7a bl 8009d7c <_sbrk_r> + 8009288: 6030 str r0, [r6, #0] + 800928a: 4621 mov r1, r4 + 800928c: 4628 mov r0, r5 + 800928e: f000 fd75 bl 8009d7c <_sbrk_r> + 8009292: 1c43 adds r3, r0, #1 + 8009294: d00a beq.n 80092ac + 8009296: 1cc4 adds r4, r0, #3 + 8009298: f024 0403 bic.w r4, r4, #3 + 800929c: 42a0 cmp r0, r4 + 800929e: d007 beq.n 80092b0 + 80092a0: 1a21 subs r1, r4, r0 + 80092a2: 4628 mov r0, r5 + 80092a4: f000 fd6a bl 8009d7c <_sbrk_r> + 80092a8: 3001 adds r0, #1 + 80092aa: d101 bne.n 80092b0 + 80092ac: f04f 34ff mov.w r4, #4294967295 ; 0xffffffff + 80092b0: 4620 mov r0, r4 + 80092b2: bd70 pop {r4, r5, r6, pc} + 80092b4: 2000339c .word 0x2000339c -080096c8 <_printf_common>: - 80096c8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 80096cc: 4616 mov r6, r2 - 80096ce: 4699 mov r9, r3 - 80096d0: 688a ldr r2, [r1, #8] - 80096d2: 690b ldr r3, [r1, #16] - 80096d4: 4607 mov r7, r0 - 80096d6: 4293 cmp r3, r2 - 80096d8: bfb8 it lt - 80096da: 4613 movlt r3, r2 - 80096dc: 6033 str r3, [r6, #0] - 80096de: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 - 80096e2: 460c mov r4, r1 - 80096e4: f8dd 8020 ldr.w r8, [sp, #32] - 80096e8: b10a cbz r2, 80096ee <_printf_common+0x26> - 80096ea: 3301 adds r3, #1 - 80096ec: 6033 str r3, [r6, #0] - 80096ee: 6823 ldr r3, [r4, #0] - 80096f0: 0699 lsls r1, r3, #26 - 80096f2: bf42 ittt mi - 80096f4: 6833 ldrmi r3, [r6, #0] - 80096f6: 3302 addmi r3, #2 - 80096f8: 6033 strmi r3, [r6, #0] - 80096fa: 6825 ldr r5, [r4, #0] - 80096fc: f015 0506 ands.w r5, r5, #6 - 8009700: d106 bne.n 8009710 <_printf_common+0x48> - 8009702: f104 0a19 add.w sl, r4, #25 - 8009706: 68e3 ldr r3, [r4, #12] - 8009708: 6832 ldr r2, [r6, #0] - 800970a: 1a9b subs r3, r3, r2 - 800970c: 42ab cmp r3, r5 - 800970e: dc28 bgt.n 8009762 <_printf_common+0x9a> - 8009710: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 - 8009714: 1e13 subs r3, r2, #0 - 8009716: 6822 ldr r2, [r4, #0] - 8009718: bf18 it ne - 800971a: 2301 movne r3, #1 - 800971c: 0692 lsls r2, r2, #26 - 800971e: d42d bmi.n 800977c <_printf_common+0xb4> - 8009720: 4649 mov r1, r9 - 8009722: 4638 mov r0, r7 - 8009724: f104 0243 add.w r2, r4, #67 ; 0x43 - 8009728: 47c0 blx r8 - 800972a: 3001 adds r0, #1 - 800972c: d020 beq.n 8009770 <_printf_common+0xa8> - 800972e: 6823 ldr r3, [r4, #0] - 8009730: 68e5 ldr r5, [r4, #12] - 8009732: f003 0306 and.w r3, r3, #6 - 8009736: 2b04 cmp r3, #4 - 8009738: bf18 it ne - 800973a: 2500 movne r5, #0 - 800973c: 6832 ldr r2, [r6, #0] - 800973e: f04f 0600 mov.w r6, #0 - 8009742: 68a3 ldr r3, [r4, #8] - 8009744: bf08 it eq - 8009746: 1aad subeq r5, r5, r2 - 8009748: 6922 ldr r2, [r4, #16] - 800974a: bf08 it eq - 800974c: ea25 75e5 biceq.w r5, r5, r5, asr #31 - 8009750: 4293 cmp r3, r2 - 8009752: bfc4 itt gt - 8009754: 1a9b subgt r3, r3, r2 - 8009756: 18ed addgt r5, r5, r3 - 8009758: 341a adds r4, #26 - 800975a: 42b5 cmp r5, r6 - 800975c: d11a bne.n 8009794 <_printf_common+0xcc> - 800975e: 2000 movs r0, #0 - 8009760: e008 b.n 8009774 <_printf_common+0xac> - 8009762: 2301 movs r3, #1 - 8009764: 4652 mov r2, sl - 8009766: 4649 mov r1, r9 - 8009768: 4638 mov r0, r7 - 800976a: 47c0 blx r8 - 800976c: 3001 adds r0, #1 - 800976e: d103 bne.n 8009778 <_printf_common+0xb0> - 8009770: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8009774: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8009778: 3501 adds r5, #1 - 800977a: e7c4 b.n 8009706 <_printf_common+0x3e> - 800977c: 2030 movs r0, #48 ; 0x30 - 800977e: 18e1 adds r1, r4, r3 - 8009780: f881 0043 strb.w r0, [r1, #67] ; 0x43 - 8009784: 1c5a adds r2, r3, #1 - 8009786: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 - 800978a: 4422 add r2, r4 - 800978c: 3302 adds r3, #2 - 800978e: f882 1043 strb.w r1, [r2, #67] ; 0x43 - 8009792: e7c5 b.n 8009720 <_printf_common+0x58> - 8009794: 2301 movs r3, #1 - 8009796: 4622 mov r2, r4 - 8009798: 4649 mov r1, r9 - 800979a: 4638 mov r0, r7 - 800979c: 47c0 blx r8 - 800979e: 3001 adds r0, #1 - 80097a0: d0e6 beq.n 8009770 <_printf_common+0xa8> - 80097a2: 3601 adds r6, #1 - 80097a4: e7d9 b.n 800975a <_printf_common+0x92> +080092b8 <_malloc_r>: + 80092b8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 80092bc: 1ccd adds r5, r1, #3 + 80092be: f025 0503 bic.w r5, r5, #3 + 80092c2: 3508 adds r5, #8 + 80092c4: 2d0c cmp r5, #12 + 80092c6: bf38 it cc + 80092c8: 250c movcc r5, #12 + 80092ca: 2d00 cmp r5, #0 + 80092cc: 4607 mov r7, r0 + 80092ce: db01 blt.n 80092d4 <_malloc_r+0x1c> + 80092d0: 42a9 cmp r1, r5 + 80092d2: d905 bls.n 80092e0 <_malloc_r+0x28> + 80092d4: 230c movs r3, #12 + 80092d6: 2600 movs r6, #0 + 80092d8: 603b str r3, [r7, #0] + 80092da: 4630 mov r0, r6 + 80092dc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 80092e0: 4e2e ldr r6, [pc, #184] ; (800939c <_malloc_r+0xe4>) + 80092e2: f002 f991 bl 800b608 <__malloc_lock> + 80092e6: 6833 ldr r3, [r6, #0] + 80092e8: 461c mov r4, r3 + 80092ea: bb34 cbnz r4, 800933a <_malloc_r+0x82> + 80092ec: 4629 mov r1, r5 + 80092ee: 4638 mov r0, r7 + 80092f0: f7ff ffc2 bl 8009278 + 80092f4: 1c43 adds r3, r0, #1 + 80092f6: 4604 mov r4, r0 + 80092f8: d14d bne.n 8009396 <_malloc_r+0xde> + 80092fa: 6834 ldr r4, [r6, #0] + 80092fc: 4626 mov r6, r4 + 80092fe: 2e00 cmp r6, #0 + 8009300: d140 bne.n 8009384 <_malloc_r+0xcc> + 8009302: 6823 ldr r3, [r4, #0] + 8009304: 4631 mov r1, r6 + 8009306: 4638 mov r0, r7 + 8009308: eb04 0803 add.w r8, r4, r3 + 800930c: f000 fd36 bl 8009d7c <_sbrk_r> + 8009310: 4580 cmp r8, r0 + 8009312: d13a bne.n 800938a <_malloc_r+0xd2> + 8009314: 6821 ldr r1, [r4, #0] + 8009316: 3503 adds r5, #3 + 8009318: 1a6d subs r5, r5, r1 + 800931a: f025 0503 bic.w r5, r5, #3 + 800931e: 3508 adds r5, #8 + 8009320: 2d0c cmp r5, #12 + 8009322: bf38 it cc + 8009324: 250c movcc r5, #12 + 8009326: 4638 mov r0, r7 + 8009328: 4629 mov r1, r5 + 800932a: f7ff ffa5 bl 8009278 + 800932e: 3001 adds r0, #1 + 8009330: d02b beq.n 800938a <_malloc_r+0xd2> + 8009332: 6823 ldr r3, [r4, #0] + 8009334: 442b add r3, r5 + 8009336: 6023 str r3, [r4, #0] + 8009338: e00e b.n 8009358 <_malloc_r+0xa0> + 800933a: 6822 ldr r2, [r4, #0] + 800933c: 1b52 subs r2, r2, r5 + 800933e: d41e bmi.n 800937e <_malloc_r+0xc6> + 8009340: 2a0b cmp r2, #11 + 8009342: d916 bls.n 8009372 <_malloc_r+0xba> + 8009344: 1961 adds r1, r4, r5 + 8009346: 42a3 cmp r3, r4 + 8009348: 6025 str r5, [r4, #0] + 800934a: bf18 it ne + 800934c: 6059 strne r1, [r3, #4] + 800934e: 6863 ldr r3, [r4, #4] + 8009350: bf08 it eq + 8009352: 6031 streq r1, [r6, #0] + 8009354: 5162 str r2, [r4, r5] + 8009356: 604b str r3, [r1, #4] + 8009358: 4638 mov r0, r7 + 800935a: f104 060b add.w r6, r4, #11 + 800935e: f002 f959 bl 800b614 <__malloc_unlock> + 8009362: f026 0607 bic.w r6, r6, #7 + 8009366: 1d23 adds r3, r4, #4 + 8009368: 1af2 subs r2, r6, r3 + 800936a: d0b6 beq.n 80092da <_malloc_r+0x22> + 800936c: 1b9b subs r3, r3, r6 + 800936e: 50a3 str r3, [r4, r2] + 8009370: e7b3 b.n 80092da <_malloc_r+0x22> + 8009372: 6862 ldr r2, [r4, #4] + 8009374: 42a3 cmp r3, r4 + 8009376: bf0c ite eq + 8009378: 6032 streq r2, [r6, #0] + 800937a: 605a strne r2, [r3, #4] + 800937c: e7ec b.n 8009358 <_malloc_r+0xa0> + 800937e: 4623 mov r3, r4 + 8009380: 6864 ldr r4, [r4, #4] + 8009382: e7b2 b.n 80092ea <_malloc_r+0x32> + 8009384: 4634 mov r4, r6 + 8009386: 6876 ldr r6, [r6, #4] + 8009388: e7b9 b.n 80092fe <_malloc_r+0x46> + 800938a: 230c movs r3, #12 + 800938c: 4638 mov r0, r7 + 800938e: 603b str r3, [r7, #0] + 8009390: f002 f940 bl 800b614 <__malloc_unlock> + 8009394: e7a1 b.n 80092da <_malloc_r+0x22> + 8009396: 6025 str r5, [r4, #0] + 8009398: e7de b.n 8009358 <_malloc_r+0xa0> + 800939a: bf00 nop + 800939c: 20003398 .word 0x20003398 + +080093a0 <__cvt>: + 80093a0: 2b00 cmp r3, #0 + 80093a2: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80093a6: 461f mov r7, r3 + 80093a8: bfbb ittet lt + 80093aa: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 + 80093ae: 461f movlt r7, r3 + 80093b0: 2300 movge r3, #0 + 80093b2: 232d movlt r3, #45 ; 0x2d + 80093b4: b088 sub sp, #32 + 80093b6: 4614 mov r4, r2 + 80093b8: 9a12 ldr r2, [sp, #72] ; 0x48 + 80093ba: 9d10 ldr r5, [sp, #64] ; 0x40 + 80093bc: 7013 strb r3, [r2, #0] + 80093be: 9b14 ldr r3, [sp, #80] ; 0x50 + 80093c0: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c + 80093c4: f023 0820 bic.w r8, r3, #32 + 80093c8: f1b8 0f46 cmp.w r8, #70 ; 0x46 + 80093cc: d005 beq.n 80093da <__cvt+0x3a> + 80093ce: f1b8 0f45 cmp.w r8, #69 ; 0x45 + 80093d2: d100 bne.n 80093d6 <__cvt+0x36> + 80093d4: 3501 adds r5, #1 + 80093d6: 2302 movs r3, #2 + 80093d8: e000 b.n 80093dc <__cvt+0x3c> + 80093da: 2303 movs r3, #3 + 80093dc: aa07 add r2, sp, #28 + 80093de: 9204 str r2, [sp, #16] + 80093e0: aa06 add r2, sp, #24 + 80093e2: e9cd a202 strd sl, r2, [sp, #8] + 80093e6: e9cd 3500 strd r3, r5, [sp] + 80093ea: 4622 mov r2, r4 + 80093ec: 463b mov r3, r7 + 80093ee: f001 f893 bl 800a518 <_dtoa_r> + 80093f2: f1b8 0f47 cmp.w r8, #71 ; 0x47 + 80093f6: 4606 mov r6, r0 + 80093f8: d102 bne.n 8009400 <__cvt+0x60> + 80093fa: 9b11 ldr r3, [sp, #68] ; 0x44 + 80093fc: 07db lsls r3, r3, #31 + 80093fe: d522 bpl.n 8009446 <__cvt+0xa6> + 8009400: f1b8 0f46 cmp.w r8, #70 ; 0x46 + 8009404: eb06 0905 add.w r9, r6, r5 + 8009408: d110 bne.n 800942c <__cvt+0x8c> + 800940a: 7833 ldrb r3, [r6, #0] + 800940c: 2b30 cmp r3, #48 ; 0x30 + 800940e: d10a bne.n 8009426 <__cvt+0x86> + 8009410: 2200 movs r2, #0 + 8009412: 2300 movs r3, #0 + 8009414: 4620 mov r0, r4 + 8009416: 4639 mov r1, r7 + 8009418: f7f7 fb3c bl 8000a94 <__aeabi_dcmpeq> + 800941c: b918 cbnz r0, 8009426 <__cvt+0x86> + 800941e: f1c5 0501 rsb r5, r5, #1 + 8009422: f8ca 5000 str.w r5, [sl] + 8009426: f8da 3000 ldr.w r3, [sl] + 800942a: 4499 add r9, r3 + 800942c: 2200 movs r2, #0 + 800942e: 2300 movs r3, #0 + 8009430: 4620 mov r0, r4 + 8009432: 4639 mov r1, r7 + 8009434: f7f7 fb2e bl 8000a94 <__aeabi_dcmpeq> + 8009438: b108 cbz r0, 800943e <__cvt+0x9e> + 800943a: f8cd 901c str.w r9, [sp, #28] + 800943e: 2230 movs r2, #48 ; 0x30 + 8009440: 9b07 ldr r3, [sp, #28] + 8009442: 454b cmp r3, r9 + 8009444: d307 bcc.n 8009456 <__cvt+0xb6> + 8009446: 4630 mov r0, r6 + 8009448: 9b07 ldr r3, [sp, #28] + 800944a: 9a15 ldr r2, [sp, #84] ; 0x54 + 800944c: 1b9b subs r3, r3, r6 + 800944e: 6013 str r3, [r2, #0] + 8009450: b008 add sp, #32 + 8009452: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8009456: 1c59 adds r1, r3, #1 + 8009458: 9107 str r1, [sp, #28] + 800945a: 701a strb r2, [r3, #0] + 800945c: e7f0 b.n 8009440 <__cvt+0xa0> + +0800945e <__exponent>: + 800945e: 4603 mov r3, r0 + 8009460: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} + 8009462: 2900 cmp r1, #0 + 8009464: f803 2b02 strb.w r2, [r3], #2 + 8009468: bfb6 itet lt + 800946a: 222d movlt r2, #45 ; 0x2d + 800946c: 222b movge r2, #43 ; 0x2b + 800946e: 4249 neglt r1, r1 + 8009470: 2909 cmp r1, #9 + 8009472: 7042 strb r2, [r0, #1] + 8009474: dd2b ble.n 80094ce <__exponent+0x70> + 8009476: f10d 0407 add.w r4, sp, #7 + 800947a: 46a4 mov ip, r4 + 800947c: 270a movs r7, #10 + 800947e: fb91 f6f7 sdiv r6, r1, r7 + 8009482: 460a mov r2, r1 + 8009484: 46a6 mov lr, r4 + 8009486: fb07 1516 mls r5, r7, r6, r1 + 800948a: 2a63 cmp r2, #99 ; 0x63 + 800948c: f105 0530 add.w r5, r5, #48 ; 0x30 + 8009490: 4631 mov r1, r6 + 8009492: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff + 8009496: f80e 5c01 strb.w r5, [lr, #-1] + 800949a: dcf0 bgt.n 800947e <__exponent+0x20> + 800949c: 3130 adds r1, #48 ; 0x30 + 800949e: f1ae 0502 sub.w r5, lr, #2 + 80094a2: f804 1c01 strb.w r1, [r4, #-1] + 80094a6: 4629 mov r1, r5 + 80094a8: 1c44 adds r4, r0, #1 + 80094aa: 4561 cmp r1, ip + 80094ac: d30a bcc.n 80094c4 <__exponent+0x66> + 80094ae: f10d 0209 add.w r2, sp, #9 + 80094b2: eba2 020e sub.w r2, r2, lr + 80094b6: 4565 cmp r5, ip + 80094b8: bf88 it hi + 80094ba: 2200 movhi r2, #0 + 80094bc: 4413 add r3, r2 + 80094be: 1a18 subs r0, r3, r0 + 80094c0: b003 add sp, #12 + 80094c2: bdf0 pop {r4, r5, r6, r7, pc} + 80094c4: f811 2b01 ldrb.w r2, [r1], #1 + 80094c8: f804 2f01 strb.w r2, [r4, #1]! + 80094cc: e7ed b.n 80094aa <__exponent+0x4c> + 80094ce: 2330 movs r3, #48 ; 0x30 + 80094d0: 3130 adds r1, #48 ; 0x30 + 80094d2: 7083 strb r3, [r0, #2] + 80094d4: 70c1 strb r1, [r0, #3] + 80094d6: 1d03 adds r3, r0, #4 + 80094d8: e7f1 b.n 80094be <__exponent+0x60> ... -080097a8 <_printf_i>: - 80097a8: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} - 80097ac: 7e0f ldrb r7, [r1, #24] - 80097ae: 4691 mov r9, r2 - 80097b0: 2f78 cmp r7, #120 ; 0x78 - 80097b2: 4680 mov r8, r0 - 80097b4: 460c mov r4, r1 - 80097b6: 469a mov sl, r3 - 80097b8: 9d0c ldr r5, [sp, #48] ; 0x30 - 80097ba: f101 0243 add.w r2, r1, #67 ; 0x43 - 80097be: d807 bhi.n 80097d0 <_printf_i+0x28> - 80097c0: 2f62 cmp r7, #98 ; 0x62 - 80097c2: d80a bhi.n 80097da <_printf_i+0x32> - 80097c4: 2f00 cmp r7, #0 - 80097c6: f000 80d9 beq.w 800997c <_printf_i+0x1d4> - 80097ca: 2f58 cmp r7, #88 ; 0x58 - 80097cc: f000 80a4 beq.w 8009918 <_printf_i+0x170> - 80097d0: f104 0542 add.w r5, r4, #66 ; 0x42 - 80097d4: f884 7042 strb.w r7, [r4, #66] ; 0x42 - 80097d8: e03a b.n 8009850 <_printf_i+0xa8> - 80097da: f1a7 0363 sub.w r3, r7, #99 ; 0x63 - 80097de: 2b15 cmp r3, #21 - 80097e0: d8f6 bhi.n 80097d0 <_printf_i+0x28> - 80097e2: a101 add r1, pc, #4 ; (adr r1, 80097e8 <_printf_i+0x40>) - 80097e4: f851 f023 ldr.w pc, [r1, r3, lsl #2] - 80097e8: 08009841 .word 0x08009841 - 80097ec: 08009855 .word 0x08009855 - 80097f0: 080097d1 .word 0x080097d1 - 80097f4: 080097d1 .word 0x080097d1 - 80097f8: 080097d1 .word 0x080097d1 - 80097fc: 080097d1 .word 0x080097d1 - 8009800: 08009855 .word 0x08009855 - 8009804: 080097d1 .word 0x080097d1 - 8009808: 080097d1 .word 0x080097d1 - 800980c: 080097d1 .word 0x080097d1 - 8009810: 080097d1 .word 0x080097d1 - 8009814: 08009963 .word 0x08009963 - 8009818: 08009885 .word 0x08009885 - 800981c: 08009945 .word 0x08009945 - 8009820: 080097d1 .word 0x080097d1 - 8009824: 080097d1 .word 0x080097d1 - 8009828: 08009985 .word 0x08009985 - 800982c: 080097d1 .word 0x080097d1 - 8009830: 08009885 .word 0x08009885 - 8009834: 080097d1 .word 0x080097d1 - 8009838: 080097d1 .word 0x080097d1 - 800983c: 0800994d .word 0x0800994d - 8009840: 682b ldr r3, [r5, #0] - 8009842: 1d1a adds r2, r3, #4 - 8009844: 681b ldr r3, [r3, #0] - 8009846: 602a str r2, [r5, #0] - 8009848: f104 0542 add.w r5, r4, #66 ; 0x42 - 800984c: f884 3042 strb.w r3, [r4, #66] ; 0x42 +080094dc <_printf_float>: + 80094dc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80094e0: b091 sub sp, #68 ; 0x44 + 80094e2: 460c mov r4, r1 + 80094e4: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 + 80094e8: 4616 mov r6, r2 + 80094ea: 461f mov r7, r3 + 80094ec: 4605 mov r5, r0 + 80094ee: f002 f80f bl 800b510 <_localeconv_r> + 80094f2: 6803 ldr r3, [r0, #0] + 80094f4: 4618 mov r0, r3 + 80094f6: 9309 str r3, [sp, #36] ; 0x24 + 80094f8: f7f6 fe96 bl 8000228 + 80094fc: 2300 movs r3, #0 + 80094fe: 930e str r3, [sp, #56] ; 0x38 + 8009500: f8d8 3000 ldr.w r3, [r8] + 8009504: 900a str r0, [sp, #40] ; 0x28 + 8009506: 3307 adds r3, #7 + 8009508: f023 0307 bic.w r3, r3, #7 + 800950c: f103 0208 add.w r2, r3, #8 + 8009510: f894 9018 ldrb.w r9, [r4, #24] + 8009514: f8d4 b000 ldr.w fp, [r4] + 8009518: f8c8 2000 str.w r2, [r8] + 800951c: e9d3 2300 ldrd r2, r3, [r3] + 8009520: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 + 8009524: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48 + 8009528: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000 + 800952c: 930b str r3, [sp, #44] ; 0x2c + 800952e: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8009532: 4640 mov r0, r8 + 8009534: 4b9c ldr r3, [pc, #624] ; (80097a8 <_printf_float+0x2cc>) + 8009536: 990b ldr r1, [sp, #44] ; 0x2c + 8009538: f7f7 fade bl 8000af8 <__aeabi_dcmpun> + 800953c: bb70 cbnz r0, 800959c <_printf_float+0xc0> + 800953e: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8009542: 4640 mov r0, r8 + 8009544: 4b98 ldr r3, [pc, #608] ; (80097a8 <_printf_float+0x2cc>) + 8009546: 990b ldr r1, [sp, #44] ; 0x2c + 8009548: f7f7 fab8 bl 8000abc <__aeabi_dcmple> + 800954c: bb30 cbnz r0, 800959c <_printf_float+0xc0> + 800954e: 2200 movs r2, #0 + 8009550: 2300 movs r3, #0 + 8009552: 4640 mov r0, r8 + 8009554: 4651 mov r1, sl + 8009556: f7f7 faa7 bl 8000aa8 <__aeabi_dcmplt> + 800955a: b110 cbz r0, 8009562 <_printf_float+0x86> + 800955c: 232d movs r3, #45 ; 0x2d + 800955e: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8009562: 4b92 ldr r3, [pc, #584] ; (80097ac <_printf_float+0x2d0>) + 8009564: 4892 ldr r0, [pc, #584] ; (80097b0 <_printf_float+0x2d4>) + 8009566: f1b9 0f47 cmp.w r9, #71 ; 0x47 + 800956a: bf94 ite ls + 800956c: 4698 movls r8, r3 + 800956e: 4680 movhi r8, r0 + 8009570: 2303 movs r3, #3 + 8009572: f04f 0a00 mov.w sl, #0 + 8009576: 6123 str r3, [r4, #16] + 8009578: f02b 0304 bic.w r3, fp, #4 + 800957c: 6023 str r3, [r4, #0] + 800957e: 4633 mov r3, r6 + 8009580: 4621 mov r1, r4 + 8009582: 4628 mov r0, r5 + 8009584: 9700 str r7, [sp, #0] + 8009586: aa0f add r2, sp, #60 ; 0x3c + 8009588: f000 f9d4 bl 8009934 <_printf_common> + 800958c: 3001 adds r0, #1 + 800958e: f040 8090 bne.w 80096b2 <_printf_float+0x1d6> + 8009592: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8009596: b011 add sp, #68 ; 0x44 + 8009598: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800959c: 4642 mov r2, r8 + 800959e: 4653 mov r3, sl + 80095a0: 4640 mov r0, r8 + 80095a2: 4651 mov r1, sl + 80095a4: f7f7 faa8 bl 8000af8 <__aeabi_dcmpun> + 80095a8: b148 cbz r0, 80095be <_printf_float+0xe2> + 80095aa: f1ba 0f00 cmp.w sl, #0 + 80095ae: bfb8 it lt + 80095b0: 232d movlt r3, #45 ; 0x2d + 80095b2: 4880 ldr r0, [pc, #512] ; (80097b4 <_printf_float+0x2d8>) + 80095b4: bfb8 it lt + 80095b6: f884 3043 strblt.w r3, [r4, #67] ; 0x43 + 80095ba: 4b7f ldr r3, [pc, #508] ; (80097b8 <_printf_float+0x2dc>) + 80095bc: e7d3 b.n 8009566 <_printf_float+0x8a> + 80095be: 6863 ldr r3, [r4, #4] + 80095c0: f009 01df and.w r1, r9, #223 ; 0xdf + 80095c4: 1c5a adds r2, r3, #1 + 80095c6: d142 bne.n 800964e <_printf_float+0x172> + 80095c8: 2306 movs r3, #6 + 80095ca: 6063 str r3, [r4, #4] + 80095cc: 2200 movs r2, #0 + 80095ce: 9206 str r2, [sp, #24] + 80095d0: aa0e add r2, sp, #56 ; 0x38 + 80095d2: e9cd 9204 strd r9, r2, [sp, #16] + 80095d6: aa0d add r2, sp, #52 ; 0x34 + 80095d8: f44b 6380 orr.w r3, fp, #1024 ; 0x400 + 80095dc: 9203 str r2, [sp, #12] + 80095de: f10d 0233 add.w r2, sp, #51 ; 0x33 + 80095e2: e9cd 3201 strd r3, r2, [sp, #4] + 80095e6: 6023 str r3, [r4, #0] + 80095e8: 6863 ldr r3, [r4, #4] + 80095ea: 4642 mov r2, r8 + 80095ec: 9300 str r3, [sp, #0] + 80095ee: 4628 mov r0, r5 + 80095f0: 4653 mov r3, sl + 80095f2: 910b str r1, [sp, #44] ; 0x2c + 80095f4: f7ff fed4 bl 80093a0 <__cvt> + 80095f8: 990b ldr r1, [sp, #44] ; 0x2c + 80095fa: 4680 mov r8, r0 + 80095fc: 2947 cmp r1, #71 ; 0x47 + 80095fe: 990d ldr r1, [sp, #52] ; 0x34 + 8009600: d108 bne.n 8009614 <_printf_float+0x138> + 8009602: 1cc8 adds r0, r1, #3 + 8009604: db02 blt.n 800960c <_printf_float+0x130> + 8009606: 6863 ldr r3, [r4, #4] + 8009608: 4299 cmp r1, r3 + 800960a: dd40 ble.n 800968e <_printf_float+0x1b2> + 800960c: f1a9 0902 sub.w r9, r9, #2 + 8009610: fa5f f989 uxtb.w r9, r9 + 8009614: f1b9 0f65 cmp.w r9, #101 ; 0x65 + 8009618: d81f bhi.n 800965a <_printf_float+0x17e> + 800961a: 464a mov r2, r9 + 800961c: 3901 subs r1, #1 + 800961e: f104 0050 add.w r0, r4, #80 ; 0x50 + 8009622: 910d str r1, [sp, #52] ; 0x34 + 8009624: f7ff ff1b bl 800945e <__exponent> + 8009628: 9a0e ldr r2, [sp, #56] ; 0x38 + 800962a: 4682 mov sl, r0 + 800962c: 1813 adds r3, r2, r0 + 800962e: 2a01 cmp r2, #1 + 8009630: 6123 str r3, [r4, #16] + 8009632: dc02 bgt.n 800963a <_printf_float+0x15e> + 8009634: 6822 ldr r2, [r4, #0] + 8009636: 07d2 lsls r2, r2, #31 + 8009638: d501 bpl.n 800963e <_printf_float+0x162> + 800963a: 3301 adds r3, #1 + 800963c: 6123 str r3, [r4, #16] + 800963e: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 + 8009642: 2b00 cmp r3, #0 + 8009644: d09b beq.n 800957e <_printf_float+0xa2> + 8009646: 232d movs r3, #45 ; 0x2d + 8009648: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 800964c: e797 b.n 800957e <_printf_float+0xa2> + 800964e: 2947 cmp r1, #71 ; 0x47 + 8009650: d1bc bne.n 80095cc <_printf_float+0xf0> + 8009652: 2b00 cmp r3, #0 + 8009654: d1ba bne.n 80095cc <_printf_float+0xf0> + 8009656: 2301 movs r3, #1 + 8009658: e7b7 b.n 80095ca <_printf_float+0xee> + 800965a: f1b9 0f66 cmp.w r9, #102 ; 0x66 + 800965e: d118 bne.n 8009692 <_printf_float+0x1b6> + 8009660: 2900 cmp r1, #0 + 8009662: 6863 ldr r3, [r4, #4] + 8009664: dd0b ble.n 800967e <_printf_float+0x1a2> + 8009666: 6121 str r1, [r4, #16] + 8009668: b913 cbnz r3, 8009670 <_printf_float+0x194> + 800966a: 6822 ldr r2, [r4, #0] + 800966c: 07d0 lsls r0, r2, #31 + 800966e: d502 bpl.n 8009676 <_printf_float+0x19a> + 8009670: 3301 adds r3, #1 + 8009672: 440b add r3, r1 + 8009674: 6123 str r3, [r4, #16] + 8009676: f04f 0a00 mov.w sl, #0 + 800967a: 65a1 str r1, [r4, #88] ; 0x58 + 800967c: e7df b.n 800963e <_printf_float+0x162> + 800967e: b913 cbnz r3, 8009686 <_printf_float+0x1aa> + 8009680: 6822 ldr r2, [r4, #0] + 8009682: 07d2 lsls r2, r2, #31 + 8009684: d501 bpl.n 800968a <_printf_float+0x1ae> + 8009686: 3302 adds r3, #2 + 8009688: e7f4 b.n 8009674 <_printf_float+0x198> + 800968a: 2301 movs r3, #1 + 800968c: e7f2 b.n 8009674 <_printf_float+0x198> + 800968e: f04f 0967 mov.w r9, #103 ; 0x67 + 8009692: 9b0e ldr r3, [sp, #56] ; 0x38 + 8009694: 4299 cmp r1, r3 + 8009696: db05 blt.n 80096a4 <_printf_float+0x1c8> + 8009698: 6823 ldr r3, [r4, #0] + 800969a: 6121 str r1, [r4, #16] + 800969c: 07d8 lsls r0, r3, #31 + 800969e: d5ea bpl.n 8009676 <_printf_float+0x19a> + 80096a0: 1c4b adds r3, r1, #1 + 80096a2: e7e7 b.n 8009674 <_printf_float+0x198> + 80096a4: 2900 cmp r1, #0 + 80096a6: bfcc ite gt + 80096a8: 2201 movgt r2, #1 + 80096aa: f1c1 0202 rsble r2, r1, #2 + 80096ae: 4413 add r3, r2 + 80096b0: e7e0 b.n 8009674 <_printf_float+0x198> + 80096b2: 6823 ldr r3, [r4, #0] + 80096b4: 055a lsls r2, r3, #21 + 80096b6: d407 bmi.n 80096c8 <_printf_float+0x1ec> + 80096b8: 6923 ldr r3, [r4, #16] + 80096ba: 4642 mov r2, r8 + 80096bc: 4631 mov r1, r6 + 80096be: 4628 mov r0, r5 + 80096c0: 47b8 blx r7 + 80096c2: 3001 adds r0, #1 + 80096c4: d12b bne.n 800971e <_printf_float+0x242> + 80096c6: e764 b.n 8009592 <_printf_float+0xb6> + 80096c8: f1b9 0f65 cmp.w r9, #101 ; 0x65 + 80096cc: f240 80dd bls.w 800988a <_printf_float+0x3ae> + 80096d0: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 + 80096d4: 2200 movs r2, #0 + 80096d6: 2300 movs r3, #0 + 80096d8: f7f7 f9dc bl 8000a94 <__aeabi_dcmpeq> + 80096dc: 2800 cmp r0, #0 + 80096de: d033 beq.n 8009748 <_printf_float+0x26c> + 80096e0: 2301 movs r3, #1 + 80096e2: 4631 mov r1, r6 + 80096e4: 4628 mov r0, r5 + 80096e6: 4a35 ldr r2, [pc, #212] ; (80097bc <_printf_float+0x2e0>) + 80096e8: 47b8 blx r7 + 80096ea: 3001 adds r0, #1 + 80096ec: f43f af51 beq.w 8009592 <_printf_float+0xb6> + 80096f0: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 80096f4: 429a cmp r2, r3 + 80096f6: db02 blt.n 80096fe <_printf_float+0x222> + 80096f8: 6823 ldr r3, [r4, #0] + 80096fa: 07d8 lsls r0, r3, #31 + 80096fc: d50f bpl.n 800971e <_printf_float+0x242> + 80096fe: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8009702: 4631 mov r1, r6 + 8009704: 4628 mov r0, r5 + 8009706: 47b8 blx r7 + 8009708: 3001 adds r0, #1 + 800970a: f43f af42 beq.w 8009592 <_printf_float+0xb6> + 800970e: f04f 0800 mov.w r8, #0 + 8009712: f104 091a add.w r9, r4, #26 + 8009716: 9b0e ldr r3, [sp, #56] ; 0x38 + 8009718: 3b01 subs r3, #1 + 800971a: 4543 cmp r3, r8 + 800971c: dc09 bgt.n 8009732 <_printf_float+0x256> + 800971e: 6823 ldr r3, [r4, #0] + 8009720: 079b lsls r3, r3, #30 + 8009722: f100 8102 bmi.w 800992a <_printf_float+0x44e> + 8009726: 68e0 ldr r0, [r4, #12] + 8009728: 9b0f ldr r3, [sp, #60] ; 0x3c + 800972a: 4298 cmp r0, r3 + 800972c: bfb8 it lt + 800972e: 4618 movlt r0, r3 + 8009730: e731 b.n 8009596 <_printf_float+0xba> + 8009732: 2301 movs r3, #1 + 8009734: 464a mov r2, r9 + 8009736: 4631 mov r1, r6 + 8009738: 4628 mov r0, r5 + 800973a: 47b8 blx r7 + 800973c: 3001 adds r0, #1 + 800973e: f43f af28 beq.w 8009592 <_printf_float+0xb6> + 8009742: f108 0801 add.w r8, r8, #1 + 8009746: e7e6 b.n 8009716 <_printf_float+0x23a> + 8009748: 9b0d ldr r3, [sp, #52] ; 0x34 + 800974a: 2b00 cmp r3, #0 + 800974c: dc38 bgt.n 80097c0 <_printf_float+0x2e4> + 800974e: 2301 movs r3, #1 + 8009750: 4631 mov r1, r6 + 8009752: 4628 mov r0, r5 + 8009754: 4a19 ldr r2, [pc, #100] ; (80097bc <_printf_float+0x2e0>) + 8009756: 47b8 blx r7 + 8009758: 3001 adds r0, #1 + 800975a: f43f af1a beq.w 8009592 <_printf_float+0xb6> + 800975e: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 8009762: 4313 orrs r3, r2 + 8009764: d102 bne.n 800976c <_printf_float+0x290> + 8009766: 6823 ldr r3, [r4, #0] + 8009768: 07d9 lsls r1, r3, #31 + 800976a: d5d8 bpl.n 800971e <_printf_float+0x242> + 800976c: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8009770: 4631 mov r1, r6 + 8009772: 4628 mov r0, r5 + 8009774: 47b8 blx r7 + 8009776: 3001 adds r0, #1 + 8009778: f43f af0b beq.w 8009592 <_printf_float+0xb6> + 800977c: f04f 0900 mov.w r9, #0 + 8009780: f104 0a1a add.w sl, r4, #26 + 8009784: 9b0d ldr r3, [sp, #52] ; 0x34 + 8009786: 425b negs r3, r3 + 8009788: 454b cmp r3, r9 + 800978a: dc01 bgt.n 8009790 <_printf_float+0x2b4> + 800978c: 9b0e ldr r3, [sp, #56] ; 0x38 + 800978e: e794 b.n 80096ba <_printf_float+0x1de> + 8009790: 2301 movs r3, #1 + 8009792: 4652 mov r2, sl + 8009794: 4631 mov r1, r6 + 8009796: 4628 mov r0, r5 + 8009798: 47b8 blx r7 + 800979a: 3001 adds r0, #1 + 800979c: f43f aef9 beq.w 8009592 <_printf_float+0xb6> + 80097a0: f109 0901 add.w r9, r9, #1 + 80097a4: e7ee b.n 8009784 <_printf_float+0x2a8> + 80097a6: bf00 nop + 80097a8: 7fefffff .word 0x7fefffff + 80097ac: 0800d3b0 .word 0x0800d3b0 + 80097b0: 0800d3b4 .word 0x0800d3b4 + 80097b4: 0800d3bc .word 0x0800d3bc + 80097b8: 0800d3b8 .word 0x0800d3b8 + 80097bc: 0800d7ac .word 0x0800d7ac + 80097c0: 9a0e ldr r2, [sp, #56] ; 0x38 + 80097c2: 6da3 ldr r3, [r4, #88] ; 0x58 + 80097c4: 429a cmp r2, r3 + 80097c6: bfa8 it ge + 80097c8: 461a movge r2, r3 + 80097ca: 2a00 cmp r2, #0 + 80097cc: 4691 mov r9, r2 + 80097ce: dc37 bgt.n 8009840 <_printf_float+0x364> + 80097d0: f04f 0b00 mov.w fp, #0 + 80097d4: ea29 79e9 bic.w r9, r9, r9, asr #31 + 80097d8: f104 021a add.w r2, r4, #26 + 80097dc: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 + 80097e0: ebaa 0309 sub.w r3, sl, r9 + 80097e4: 455b cmp r3, fp + 80097e6: dc33 bgt.n 8009850 <_printf_float+0x374> + 80097e8: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 80097ec: 429a cmp r2, r3 + 80097ee: db3b blt.n 8009868 <_printf_float+0x38c> + 80097f0: 6823 ldr r3, [r4, #0] + 80097f2: 07da lsls r2, r3, #31 + 80097f4: d438 bmi.n 8009868 <_printf_float+0x38c> + 80097f6: 9b0e ldr r3, [sp, #56] ; 0x38 + 80097f8: 990d ldr r1, [sp, #52] ; 0x34 + 80097fa: eba3 020a sub.w r2, r3, sl + 80097fe: eba3 0901 sub.w r9, r3, r1 + 8009802: 4591 cmp r9, r2 + 8009804: bfa8 it ge + 8009806: 4691 movge r9, r2 + 8009808: f1b9 0f00 cmp.w r9, #0 + 800980c: dc34 bgt.n 8009878 <_printf_float+0x39c> + 800980e: f04f 0800 mov.w r8, #0 + 8009812: ea29 79e9 bic.w r9, r9, r9, asr #31 + 8009816: f104 0a1a add.w sl, r4, #26 + 800981a: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 800981e: 1a9b subs r3, r3, r2 + 8009820: eba3 0309 sub.w r3, r3, r9 + 8009824: 4543 cmp r3, r8 + 8009826: f77f af7a ble.w 800971e <_printf_float+0x242> + 800982a: 2301 movs r3, #1 + 800982c: 4652 mov r2, sl + 800982e: 4631 mov r1, r6 + 8009830: 4628 mov r0, r5 + 8009832: 47b8 blx r7 + 8009834: 3001 adds r0, #1 + 8009836: f43f aeac beq.w 8009592 <_printf_float+0xb6> + 800983a: f108 0801 add.w r8, r8, #1 + 800983e: e7ec b.n 800981a <_printf_float+0x33e> + 8009840: 4613 mov r3, r2 + 8009842: 4631 mov r1, r6 + 8009844: 4642 mov r2, r8 + 8009846: 4628 mov r0, r5 + 8009848: 47b8 blx r7 + 800984a: 3001 adds r0, #1 + 800984c: d1c0 bne.n 80097d0 <_printf_float+0x2f4> + 800984e: e6a0 b.n 8009592 <_printf_float+0xb6> 8009850: 2301 movs r3, #1 - 8009852: e0a4 b.n 800999e <_printf_i+0x1f6> - 8009854: 6820 ldr r0, [r4, #0] - 8009856: 6829 ldr r1, [r5, #0] - 8009858: 0606 lsls r6, r0, #24 - 800985a: f101 0304 add.w r3, r1, #4 - 800985e: d50a bpl.n 8009876 <_printf_i+0xce> - 8009860: 680e ldr r6, [r1, #0] - 8009862: 602b str r3, [r5, #0] - 8009864: 2e00 cmp r6, #0 - 8009866: da03 bge.n 8009870 <_printf_i+0xc8> - 8009868: 232d movs r3, #45 ; 0x2d - 800986a: 4276 negs r6, r6 - 800986c: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8009870: 230a movs r3, #10 - 8009872: 485e ldr r0, [pc, #376] ; (80099ec <_printf_i+0x244>) - 8009874: e019 b.n 80098aa <_printf_i+0x102> - 8009876: 680e ldr r6, [r1, #0] - 8009878: f010 0f40 tst.w r0, #64 ; 0x40 - 800987c: 602b str r3, [r5, #0] - 800987e: bf18 it ne - 8009880: b236 sxthne r6, r6 - 8009882: e7ef b.n 8009864 <_printf_i+0xbc> - 8009884: 682b ldr r3, [r5, #0] - 8009886: 6820 ldr r0, [r4, #0] - 8009888: 1d19 adds r1, r3, #4 - 800988a: 6029 str r1, [r5, #0] - 800988c: 0601 lsls r1, r0, #24 - 800988e: d501 bpl.n 8009894 <_printf_i+0xec> - 8009890: 681e ldr r6, [r3, #0] - 8009892: e002 b.n 800989a <_printf_i+0xf2> - 8009894: 0646 lsls r6, r0, #25 - 8009896: d5fb bpl.n 8009890 <_printf_i+0xe8> - 8009898: 881e ldrh r6, [r3, #0] - 800989a: 2f6f cmp r7, #111 ; 0x6f - 800989c: bf0c ite eq - 800989e: 2308 moveq r3, #8 - 80098a0: 230a movne r3, #10 - 80098a2: 4852 ldr r0, [pc, #328] ; (80099ec <_printf_i+0x244>) - 80098a4: 2100 movs r1, #0 - 80098a6: f884 1043 strb.w r1, [r4, #67] ; 0x43 - 80098aa: 6865 ldr r5, [r4, #4] - 80098ac: 2d00 cmp r5, #0 - 80098ae: bfa8 it ge - 80098b0: 6821 ldrge r1, [r4, #0] - 80098b2: 60a5 str r5, [r4, #8] - 80098b4: bfa4 itt ge - 80098b6: f021 0104 bicge.w r1, r1, #4 - 80098ba: 6021 strge r1, [r4, #0] - 80098bc: b90e cbnz r6, 80098c2 <_printf_i+0x11a> - 80098be: 2d00 cmp r5, #0 - 80098c0: d04d beq.n 800995e <_printf_i+0x1b6> - 80098c2: 4615 mov r5, r2 - 80098c4: fbb6 f1f3 udiv r1, r6, r3 - 80098c8: fb03 6711 mls r7, r3, r1, r6 - 80098cc: 5dc7 ldrb r7, [r0, r7] - 80098ce: f805 7d01 strb.w r7, [r5, #-1]! - 80098d2: 4637 mov r7, r6 - 80098d4: 42bb cmp r3, r7 - 80098d6: 460e mov r6, r1 - 80098d8: d9f4 bls.n 80098c4 <_printf_i+0x11c> - 80098da: 2b08 cmp r3, #8 - 80098dc: d10b bne.n 80098f6 <_printf_i+0x14e> - 80098de: 6823 ldr r3, [r4, #0] - 80098e0: 07de lsls r6, r3, #31 - 80098e2: d508 bpl.n 80098f6 <_printf_i+0x14e> - 80098e4: 6923 ldr r3, [r4, #16] - 80098e6: 6861 ldr r1, [r4, #4] - 80098e8: 4299 cmp r1, r3 - 80098ea: bfde ittt le - 80098ec: 2330 movle r3, #48 ; 0x30 - 80098ee: f805 3c01 strble.w r3, [r5, #-1] - 80098f2: f105 35ff addle.w r5, r5, #4294967295 ; 0xffffffff - 80098f6: 1b52 subs r2, r2, r5 - 80098f8: 6122 str r2, [r4, #16] - 80098fa: 464b mov r3, r9 - 80098fc: 4621 mov r1, r4 - 80098fe: 4640 mov r0, r8 - 8009900: f8cd a000 str.w sl, [sp] - 8009904: aa03 add r2, sp, #12 - 8009906: f7ff fedf bl 80096c8 <_printf_common> - 800990a: 3001 adds r0, #1 - 800990c: d14c bne.n 80099a8 <_printf_i+0x200> - 800990e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8009912: b004 add sp, #16 - 8009914: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8009918: 4834 ldr r0, [pc, #208] ; (80099ec <_printf_i+0x244>) - 800991a: f881 7045 strb.w r7, [r1, #69] ; 0x45 - 800991e: 6829 ldr r1, [r5, #0] - 8009920: 6823 ldr r3, [r4, #0] - 8009922: f851 6b04 ldr.w r6, [r1], #4 - 8009926: 6029 str r1, [r5, #0] - 8009928: 061d lsls r5, r3, #24 - 800992a: d514 bpl.n 8009956 <_printf_i+0x1ae> - 800992c: 07df lsls r7, r3, #31 - 800992e: bf44 itt mi - 8009930: f043 0320 orrmi.w r3, r3, #32 - 8009934: 6023 strmi r3, [r4, #0] - 8009936: b91e cbnz r6, 8009940 <_printf_i+0x198> - 8009938: 6823 ldr r3, [r4, #0] - 800993a: f023 0320 bic.w r3, r3, #32 - 800993e: 6023 str r3, [r4, #0] - 8009940: 2310 movs r3, #16 - 8009942: e7af b.n 80098a4 <_printf_i+0xfc> - 8009944: 6823 ldr r3, [r4, #0] - 8009946: f043 0320 orr.w r3, r3, #32 - 800994a: 6023 str r3, [r4, #0] - 800994c: 2378 movs r3, #120 ; 0x78 - 800994e: 4828 ldr r0, [pc, #160] ; (80099f0 <_printf_i+0x248>) - 8009950: f884 3045 strb.w r3, [r4, #69] ; 0x45 - 8009954: e7e3 b.n 800991e <_printf_i+0x176> - 8009956: 0659 lsls r1, r3, #25 - 8009958: bf48 it mi - 800995a: b2b6 uxthmi r6, r6 - 800995c: e7e6 b.n 800992c <_printf_i+0x184> - 800995e: 4615 mov r5, r2 - 8009960: e7bb b.n 80098da <_printf_i+0x132> - 8009962: 682b ldr r3, [r5, #0] - 8009964: 6826 ldr r6, [r4, #0] - 8009966: 1d18 adds r0, r3, #4 - 8009968: 6961 ldr r1, [r4, #20] - 800996a: 6028 str r0, [r5, #0] - 800996c: 0635 lsls r5, r6, #24 - 800996e: 681b ldr r3, [r3, #0] - 8009970: d501 bpl.n 8009976 <_printf_i+0x1ce> - 8009972: 6019 str r1, [r3, #0] - 8009974: e002 b.n 800997c <_printf_i+0x1d4> - 8009976: 0670 lsls r0, r6, #25 - 8009978: d5fb bpl.n 8009972 <_printf_i+0x1ca> - 800997a: 8019 strh r1, [r3, #0] - 800997c: 2300 movs r3, #0 - 800997e: 4615 mov r5, r2 - 8009980: 6123 str r3, [r4, #16] - 8009982: e7ba b.n 80098fa <_printf_i+0x152> - 8009984: 682b ldr r3, [r5, #0] - 8009986: 2100 movs r1, #0 - 8009988: 1d1a adds r2, r3, #4 - 800998a: 602a str r2, [r5, #0] - 800998c: 681d ldr r5, [r3, #0] - 800998e: 6862 ldr r2, [r4, #4] - 8009990: 4628 mov r0, r5 - 8009992: f001 fcf3 bl 800b37c - 8009996: b108 cbz r0, 800999c <_printf_i+0x1f4> - 8009998: 1b40 subs r0, r0, r5 - 800999a: 6060 str r0, [r4, #4] - 800999c: 6863 ldr r3, [r4, #4] - 800999e: 6123 str r3, [r4, #16] - 80099a0: 2300 movs r3, #0 - 80099a2: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 80099a6: e7a8 b.n 80098fa <_printf_i+0x152> - 80099a8: 462a mov r2, r5 - 80099aa: 4649 mov r1, r9 - 80099ac: 4640 mov r0, r8 - 80099ae: 6923 ldr r3, [r4, #16] - 80099b0: 47d0 blx sl - 80099b2: 3001 adds r0, #1 - 80099b4: d0ab beq.n 800990e <_printf_i+0x166> - 80099b6: 6823 ldr r3, [r4, #0] - 80099b8: 079b lsls r3, r3, #30 - 80099ba: d413 bmi.n 80099e4 <_printf_i+0x23c> - 80099bc: 68e0 ldr r0, [r4, #12] - 80099be: 9b03 ldr r3, [sp, #12] - 80099c0: 4298 cmp r0, r3 - 80099c2: bfb8 it lt - 80099c4: 4618 movlt r0, r3 - 80099c6: e7a4 b.n 8009912 <_printf_i+0x16a> - 80099c8: 2301 movs r3, #1 - 80099ca: 4632 mov r2, r6 - 80099cc: 4649 mov r1, r9 - 80099ce: 4640 mov r0, r8 - 80099d0: 47d0 blx sl - 80099d2: 3001 adds r0, #1 - 80099d4: d09b beq.n 800990e <_printf_i+0x166> - 80099d6: 3501 adds r5, #1 - 80099d8: 68e3 ldr r3, [r4, #12] - 80099da: 9903 ldr r1, [sp, #12] - 80099dc: 1a5b subs r3, r3, r1 - 80099de: 42ab cmp r3, r5 - 80099e0: dcf2 bgt.n 80099c8 <_printf_i+0x220> - 80099e2: e7eb b.n 80099bc <_printf_i+0x214> - 80099e4: 2500 movs r5, #0 - 80099e6: f104 0619 add.w r6, r4, #25 - 80099ea: e7f5 b.n 80099d8 <_printf_i+0x230> - 80099ec: 0800d130 .word 0x0800d130 - 80099f0: 0800d141 .word 0x0800d141 + 8009852: 4631 mov r1, r6 + 8009854: 4628 mov r0, r5 + 8009856: 920b str r2, [sp, #44] ; 0x2c + 8009858: 47b8 blx r7 + 800985a: 3001 adds r0, #1 + 800985c: f43f ae99 beq.w 8009592 <_printf_float+0xb6> + 8009860: 9a0b ldr r2, [sp, #44] ; 0x2c + 8009862: f10b 0b01 add.w fp, fp, #1 + 8009866: e7b9 b.n 80097dc <_printf_float+0x300> + 8009868: 4631 mov r1, r6 + 800986a: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 800986e: 4628 mov r0, r5 + 8009870: 47b8 blx r7 + 8009872: 3001 adds r0, #1 + 8009874: d1bf bne.n 80097f6 <_printf_float+0x31a> + 8009876: e68c b.n 8009592 <_printf_float+0xb6> + 8009878: 464b mov r3, r9 + 800987a: 4631 mov r1, r6 + 800987c: 4628 mov r0, r5 + 800987e: eb08 020a add.w r2, r8, sl + 8009882: 47b8 blx r7 + 8009884: 3001 adds r0, #1 + 8009886: d1c2 bne.n 800980e <_printf_float+0x332> + 8009888: e683 b.n 8009592 <_printf_float+0xb6> + 800988a: 9a0e ldr r2, [sp, #56] ; 0x38 + 800988c: 2a01 cmp r2, #1 + 800988e: dc01 bgt.n 8009894 <_printf_float+0x3b8> + 8009890: 07db lsls r3, r3, #31 + 8009892: d537 bpl.n 8009904 <_printf_float+0x428> + 8009894: 2301 movs r3, #1 + 8009896: 4642 mov r2, r8 + 8009898: 4631 mov r1, r6 + 800989a: 4628 mov r0, r5 + 800989c: 47b8 blx r7 + 800989e: 3001 adds r0, #1 + 80098a0: f43f ae77 beq.w 8009592 <_printf_float+0xb6> + 80098a4: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 80098a8: 4631 mov r1, r6 + 80098aa: 4628 mov r0, r5 + 80098ac: 47b8 blx r7 + 80098ae: 3001 adds r0, #1 + 80098b0: f43f ae6f beq.w 8009592 <_printf_float+0xb6> + 80098b4: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 + 80098b8: 2200 movs r2, #0 + 80098ba: 2300 movs r3, #0 + 80098bc: f7f7 f8ea bl 8000a94 <__aeabi_dcmpeq> + 80098c0: b9d8 cbnz r0, 80098fa <_printf_float+0x41e> + 80098c2: 9b0e ldr r3, [sp, #56] ; 0x38 + 80098c4: f108 0201 add.w r2, r8, #1 + 80098c8: 3b01 subs r3, #1 + 80098ca: 4631 mov r1, r6 + 80098cc: 4628 mov r0, r5 + 80098ce: 47b8 blx r7 + 80098d0: 3001 adds r0, #1 + 80098d2: d10e bne.n 80098f2 <_printf_float+0x416> + 80098d4: e65d b.n 8009592 <_printf_float+0xb6> + 80098d6: 2301 movs r3, #1 + 80098d8: 464a mov r2, r9 + 80098da: 4631 mov r1, r6 + 80098dc: 4628 mov r0, r5 + 80098de: 47b8 blx r7 + 80098e0: 3001 adds r0, #1 + 80098e2: f43f ae56 beq.w 8009592 <_printf_float+0xb6> + 80098e6: f108 0801 add.w r8, r8, #1 + 80098ea: 9b0e ldr r3, [sp, #56] ; 0x38 + 80098ec: 3b01 subs r3, #1 + 80098ee: 4543 cmp r3, r8 + 80098f0: dcf1 bgt.n 80098d6 <_printf_float+0x3fa> + 80098f2: 4653 mov r3, sl + 80098f4: f104 0250 add.w r2, r4, #80 ; 0x50 + 80098f8: e6e0 b.n 80096bc <_printf_float+0x1e0> + 80098fa: f04f 0800 mov.w r8, #0 + 80098fe: f104 091a add.w r9, r4, #26 + 8009902: e7f2 b.n 80098ea <_printf_float+0x40e> + 8009904: 2301 movs r3, #1 + 8009906: 4642 mov r2, r8 + 8009908: e7df b.n 80098ca <_printf_float+0x3ee> + 800990a: 2301 movs r3, #1 + 800990c: 464a mov r2, r9 + 800990e: 4631 mov r1, r6 + 8009910: 4628 mov r0, r5 + 8009912: 47b8 blx r7 + 8009914: 3001 adds r0, #1 + 8009916: f43f ae3c beq.w 8009592 <_printf_float+0xb6> + 800991a: f108 0801 add.w r8, r8, #1 + 800991e: 68e3 ldr r3, [r4, #12] + 8009920: 990f ldr r1, [sp, #60] ; 0x3c + 8009922: 1a5b subs r3, r3, r1 + 8009924: 4543 cmp r3, r8 + 8009926: dcf0 bgt.n 800990a <_printf_float+0x42e> + 8009928: e6fd b.n 8009726 <_printf_float+0x24a> + 800992a: f04f 0800 mov.w r8, #0 + 800992e: f104 0919 add.w r9, r4, #25 + 8009932: e7f4 b.n 800991e <_printf_float+0x442> -080099f4 : - 80099f4: b40f push {r0, r1, r2, r3} - 80099f6: 4b0a ldr r3, [pc, #40] ; (8009a20 ) - 80099f8: b513 push {r0, r1, r4, lr} - 80099fa: 681c ldr r4, [r3, #0] - 80099fc: b124 cbz r4, 8009a08 - 80099fe: 69a3 ldr r3, [r4, #24] - 8009a00: b913 cbnz r3, 8009a08 - 8009a02: 4620 mov r0, r4 - 8009a04: f001 fb54 bl 800b0b0 <__sinit> - 8009a08: ab05 add r3, sp, #20 - 8009a0a: 4620 mov r0, r4 - 8009a0c: 9a04 ldr r2, [sp, #16] - 8009a0e: 68a1 ldr r1, [r4, #8] - 8009a10: 9301 str r3, [sp, #4] - 8009a12: f002 f88b bl 800bb2c <_vfiprintf_r> - 8009a16: b002 add sp, #8 - 8009a18: e8bd 4010 ldmia.w sp!, {r4, lr} - 8009a1c: b004 add sp, #16 - 8009a1e: 4770 bx lr - 8009a20: 20000014 .word 0x20000014 +08009934 <_printf_common>: + 8009934: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8009938: 4616 mov r6, r2 + 800993a: 4699 mov r9, r3 + 800993c: 688a ldr r2, [r1, #8] + 800993e: 690b ldr r3, [r1, #16] + 8009940: 4607 mov r7, r0 + 8009942: 4293 cmp r3, r2 + 8009944: bfb8 it lt + 8009946: 4613 movlt r3, r2 + 8009948: 6033 str r3, [r6, #0] + 800994a: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 + 800994e: 460c mov r4, r1 + 8009950: f8dd 8020 ldr.w r8, [sp, #32] + 8009954: b10a cbz r2, 800995a <_printf_common+0x26> + 8009956: 3301 adds r3, #1 + 8009958: 6033 str r3, [r6, #0] + 800995a: 6823 ldr r3, [r4, #0] + 800995c: 0699 lsls r1, r3, #26 + 800995e: bf42 ittt mi + 8009960: 6833 ldrmi r3, [r6, #0] + 8009962: 3302 addmi r3, #2 + 8009964: 6033 strmi r3, [r6, #0] + 8009966: 6825 ldr r5, [r4, #0] + 8009968: f015 0506 ands.w r5, r5, #6 + 800996c: d106 bne.n 800997c <_printf_common+0x48> + 800996e: f104 0a19 add.w sl, r4, #25 + 8009972: 68e3 ldr r3, [r4, #12] + 8009974: 6832 ldr r2, [r6, #0] + 8009976: 1a9b subs r3, r3, r2 + 8009978: 42ab cmp r3, r5 + 800997a: dc28 bgt.n 80099ce <_printf_common+0x9a> + 800997c: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 + 8009980: 1e13 subs r3, r2, #0 + 8009982: 6822 ldr r2, [r4, #0] + 8009984: bf18 it ne + 8009986: 2301 movne r3, #1 + 8009988: 0692 lsls r2, r2, #26 + 800998a: d42d bmi.n 80099e8 <_printf_common+0xb4> + 800998c: 4649 mov r1, r9 + 800998e: 4638 mov r0, r7 + 8009990: f104 0243 add.w r2, r4, #67 ; 0x43 + 8009994: 47c0 blx r8 + 8009996: 3001 adds r0, #1 + 8009998: d020 beq.n 80099dc <_printf_common+0xa8> + 800999a: 6823 ldr r3, [r4, #0] + 800999c: 68e5 ldr r5, [r4, #12] + 800999e: f003 0306 and.w r3, r3, #6 + 80099a2: 2b04 cmp r3, #4 + 80099a4: bf18 it ne + 80099a6: 2500 movne r5, #0 + 80099a8: 6832 ldr r2, [r6, #0] + 80099aa: f04f 0600 mov.w r6, #0 + 80099ae: 68a3 ldr r3, [r4, #8] + 80099b0: bf08 it eq + 80099b2: 1aad subeq r5, r5, r2 + 80099b4: 6922 ldr r2, [r4, #16] + 80099b6: bf08 it eq + 80099b8: ea25 75e5 biceq.w r5, r5, r5, asr #31 + 80099bc: 4293 cmp r3, r2 + 80099be: bfc4 itt gt + 80099c0: 1a9b subgt r3, r3, r2 + 80099c2: 18ed addgt r5, r5, r3 + 80099c4: 341a adds r4, #26 + 80099c6: 42b5 cmp r5, r6 + 80099c8: d11a bne.n 8009a00 <_printf_common+0xcc> + 80099ca: 2000 movs r0, #0 + 80099cc: e008 b.n 80099e0 <_printf_common+0xac> + 80099ce: 2301 movs r3, #1 + 80099d0: 4652 mov r2, sl + 80099d2: 4649 mov r1, r9 + 80099d4: 4638 mov r0, r7 + 80099d6: 47c0 blx r8 + 80099d8: 3001 adds r0, #1 + 80099da: d103 bne.n 80099e4 <_printf_common+0xb0> + 80099dc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80099e0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80099e4: 3501 adds r5, #1 + 80099e6: e7c4 b.n 8009972 <_printf_common+0x3e> + 80099e8: 2030 movs r0, #48 ; 0x30 + 80099ea: 18e1 adds r1, r4, r3 + 80099ec: f881 0043 strb.w r0, [r1, #67] ; 0x43 + 80099f0: 1c5a adds r2, r3, #1 + 80099f2: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 + 80099f6: 4422 add r2, r4 + 80099f8: 3302 adds r3, #2 + 80099fa: f882 1043 strb.w r1, [r2, #67] ; 0x43 + 80099fe: e7c5 b.n 800998c <_printf_common+0x58> + 8009a00: 2301 movs r3, #1 + 8009a02: 4622 mov r2, r4 + 8009a04: 4649 mov r1, r9 + 8009a06: 4638 mov r0, r7 + 8009a08: 47c0 blx r8 + 8009a0a: 3001 adds r0, #1 + 8009a0c: d0e6 beq.n 80099dc <_printf_common+0xa8> + 8009a0e: 3601 adds r6, #1 + 8009a10: e7d9 b.n 80099c6 <_printf_common+0x92> + ... -08009a24 <_puts_r>: - 8009a24: b570 push {r4, r5, r6, lr} - 8009a26: 460e mov r6, r1 - 8009a28: 4605 mov r5, r0 - 8009a2a: b118 cbz r0, 8009a34 <_puts_r+0x10> - 8009a2c: 6983 ldr r3, [r0, #24] - 8009a2e: b90b cbnz r3, 8009a34 <_puts_r+0x10> - 8009a30: f001 fb3e bl 800b0b0 <__sinit> - 8009a34: 69ab ldr r3, [r5, #24] - 8009a36: 68ac ldr r4, [r5, #8] - 8009a38: b913 cbnz r3, 8009a40 <_puts_r+0x1c> - 8009a3a: 4628 mov r0, r5 - 8009a3c: f001 fb38 bl 800b0b0 <__sinit> - 8009a40: 4b2c ldr r3, [pc, #176] ; (8009af4 <_puts_r+0xd0>) - 8009a42: 429c cmp r4, r3 - 8009a44: d120 bne.n 8009a88 <_puts_r+0x64> - 8009a46: 686c ldr r4, [r5, #4] - 8009a48: 6e63 ldr r3, [r4, #100] ; 0x64 - 8009a4a: 07db lsls r3, r3, #31 - 8009a4c: d405 bmi.n 8009a5a <_puts_r+0x36> - 8009a4e: 89a3 ldrh r3, [r4, #12] - 8009a50: 0598 lsls r0, r3, #22 - 8009a52: d402 bmi.n 8009a5a <_puts_r+0x36> - 8009a54: 6da0 ldr r0, [r4, #88] ; 0x58 - 8009a56: f001 fc29 bl 800b2ac <__retarget_lock_acquire_recursive> - 8009a5a: 89a3 ldrh r3, [r4, #12] - 8009a5c: 0719 lsls r1, r3, #28 - 8009a5e: d51d bpl.n 8009a9c <_puts_r+0x78> - 8009a60: 6923 ldr r3, [r4, #16] - 8009a62: b1db cbz r3, 8009a9c <_puts_r+0x78> - 8009a64: 3e01 subs r6, #1 - 8009a66: 68a3 ldr r3, [r4, #8] - 8009a68: f816 1f01 ldrb.w r1, [r6, #1]! - 8009a6c: 3b01 subs r3, #1 - 8009a6e: 60a3 str r3, [r4, #8] - 8009a70: bb39 cbnz r1, 8009ac2 <_puts_r+0x9e> - 8009a72: 2b00 cmp r3, #0 - 8009a74: da38 bge.n 8009ae8 <_puts_r+0xc4> - 8009a76: 4622 mov r2, r4 - 8009a78: 210a movs r1, #10 - 8009a7a: 4628 mov r0, r5 - 8009a7c: f000 faaa bl 8009fd4 <__swbuf_r> - 8009a80: 3001 adds r0, #1 - 8009a82: d011 beq.n 8009aa8 <_puts_r+0x84> - 8009a84: 250a movs r5, #10 - 8009a86: e011 b.n 8009aac <_puts_r+0x88> - 8009a88: 4b1b ldr r3, [pc, #108] ; (8009af8 <_puts_r+0xd4>) - 8009a8a: 429c cmp r4, r3 - 8009a8c: d101 bne.n 8009a92 <_puts_r+0x6e> - 8009a8e: 68ac ldr r4, [r5, #8] - 8009a90: e7da b.n 8009a48 <_puts_r+0x24> - 8009a92: 4b1a ldr r3, [pc, #104] ; (8009afc <_puts_r+0xd8>) - 8009a94: 429c cmp r4, r3 - 8009a96: bf08 it eq - 8009a98: 68ec ldreq r4, [r5, #12] - 8009a9a: e7d5 b.n 8009a48 <_puts_r+0x24> - 8009a9c: 4621 mov r1, r4 - 8009a9e: 4628 mov r0, r5 - 8009aa0: f000 faea bl 800a078 <__swsetup_r> - 8009aa4: 2800 cmp r0, #0 - 8009aa6: d0dd beq.n 8009a64 <_puts_r+0x40> - 8009aa8: f04f 35ff mov.w r5, #4294967295 ; 0xffffffff - 8009aac: 6e63 ldr r3, [r4, #100] ; 0x64 - 8009aae: 07da lsls r2, r3, #31 - 8009ab0: d405 bmi.n 8009abe <_puts_r+0x9a> - 8009ab2: 89a3 ldrh r3, [r4, #12] - 8009ab4: 059b lsls r3, r3, #22 - 8009ab6: d402 bmi.n 8009abe <_puts_r+0x9a> - 8009ab8: 6da0 ldr r0, [r4, #88] ; 0x58 - 8009aba: f001 fbf9 bl 800b2b0 <__retarget_lock_release_recursive> - 8009abe: 4628 mov r0, r5 - 8009ac0: bd70 pop {r4, r5, r6, pc} - 8009ac2: 2b00 cmp r3, #0 - 8009ac4: da04 bge.n 8009ad0 <_puts_r+0xac> - 8009ac6: 69a2 ldr r2, [r4, #24] - 8009ac8: 429a cmp r2, r3 - 8009aca: dc06 bgt.n 8009ada <_puts_r+0xb6> - 8009acc: 290a cmp r1, #10 - 8009ace: d004 beq.n 8009ada <_puts_r+0xb6> - 8009ad0: 6823 ldr r3, [r4, #0] - 8009ad2: 1c5a adds r2, r3, #1 - 8009ad4: 6022 str r2, [r4, #0] - 8009ad6: 7019 strb r1, [r3, #0] - 8009ad8: e7c5 b.n 8009a66 <_puts_r+0x42> - 8009ada: 4622 mov r2, r4 - 8009adc: 4628 mov r0, r5 - 8009ade: f000 fa79 bl 8009fd4 <__swbuf_r> - 8009ae2: 3001 adds r0, #1 - 8009ae4: d1bf bne.n 8009a66 <_puts_r+0x42> - 8009ae6: e7df b.n 8009aa8 <_puts_r+0x84> - 8009ae8: 250a movs r5, #10 - 8009aea: 6823 ldr r3, [r4, #0] - 8009aec: 1c5a adds r2, r3, #1 - 8009aee: 6022 str r2, [r4, #0] - 8009af0: 701d strb r5, [r3, #0] - 8009af2: e7db b.n 8009aac <_puts_r+0x88> - 8009af4: 0800d264 .word 0x0800d264 - 8009af8: 0800d284 .word 0x0800d284 - 8009afc: 0800d244 .word 0x0800d244 +08009a14 <_printf_i>: + 8009a14: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 8009a18: 7e0f ldrb r7, [r1, #24] + 8009a1a: 4691 mov r9, r2 + 8009a1c: 2f78 cmp r7, #120 ; 0x78 + 8009a1e: 4680 mov r8, r0 + 8009a20: 460c mov r4, r1 + 8009a22: 469a mov sl, r3 + 8009a24: 9d0c ldr r5, [sp, #48] ; 0x30 + 8009a26: f101 0243 add.w r2, r1, #67 ; 0x43 + 8009a2a: d807 bhi.n 8009a3c <_printf_i+0x28> + 8009a2c: 2f62 cmp r7, #98 ; 0x62 + 8009a2e: d80a bhi.n 8009a46 <_printf_i+0x32> + 8009a30: 2f00 cmp r7, #0 + 8009a32: f000 80d9 beq.w 8009be8 <_printf_i+0x1d4> + 8009a36: 2f58 cmp r7, #88 ; 0x58 + 8009a38: f000 80a4 beq.w 8009b84 <_printf_i+0x170> + 8009a3c: f104 0542 add.w r5, r4, #66 ; 0x42 + 8009a40: f884 7042 strb.w r7, [r4, #66] ; 0x42 + 8009a44: e03a b.n 8009abc <_printf_i+0xa8> + 8009a46: f1a7 0363 sub.w r3, r7, #99 ; 0x63 + 8009a4a: 2b15 cmp r3, #21 + 8009a4c: d8f6 bhi.n 8009a3c <_printf_i+0x28> + 8009a4e: a101 add r1, pc, #4 ; (adr r1, 8009a54 <_printf_i+0x40>) + 8009a50: f851 f023 ldr.w pc, [r1, r3, lsl #2] + 8009a54: 08009aad .word 0x08009aad + 8009a58: 08009ac1 .word 0x08009ac1 + 8009a5c: 08009a3d .word 0x08009a3d + 8009a60: 08009a3d .word 0x08009a3d + 8009a64: 08009a3d .word 0x08009a3d + 8009a68: 08009a3d .word 0x08009a3d + 8009a6c: 08009ac1 .word 0x08009ac1 + 8009a70: 08009a3d .word 0x08009a3d + 8009a74: 08009a3d .word 0x08009a3d + 8009a78: 08009a3d .word 0x08009a3d + 8009a7c: 08009a3d .word 0x08009a3d + 8009a80: 08009bcf .word 0x08009bcf + 8009a84: 08009af1 .word 0x08009af1 + 8009a88: 08009bb1 .word 0x08009bb1 + 8009a8c: 08009a3d .word 0x08009a3d + 8009a90: 08009a3d .word 0x08009a3d + 8009a94: 08009bf1 .word 0x08009bf1 + 8009a98: 08009a3d .word 0x08009a3d + 8009a9c: 08009af1 .word 0x08009af1 + 8009aa0: 08009a3d .word 0x08009a3d + 8009aa4: 08009a3d .word 0x08009a3d + 8009aa8: 08009bb9 .word 0x08009bb9 + 8009aac: 682b ldr r3, [r5, #0] + 8009aae: 1d1a adds r2, r3, #4 + 8009ab0: 681b ldr r3, [r3, #0] + 8009ab2: 602a str r2, [r5, #0] + 8009ab4: f104 0542 add.w r5, r4, #66 ; 0x42 + 8009ab8: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 8009abc: 2301 movs r3, #1 + 8009abe: e0a4 b.n 8009c0a <_printf_i+0x1f6> + 8009ac0: 6820 ldr r0, [r4, #0] + 8009ac2: 6829 ldr r1, [r5, #0] + 8009ac4: 0606 lsls r6, r0, #24 + 8009ac6: f101 0304 add.w r3, r1, #4 + 8009aca: d50a bpl.n 8009ae2 <_printf_i+0xce> + 8009acc: 680e ldr r6, [r1, #0] + 8009ace: 602b str r3, [r5, #0] + 8009ad0: 2e00 cmp r6, #0 + 8009ad2: da03 bge.n 8009adc <_printf_i+0xc8> + 8009ad4: 232d movs r3, #45 ; 0x2d + 8009ad6: 4276 negs r6, r6 + 8009ad8: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8009adc: 230a movs r3, #10 + 8009ade: 485e ldr r0, [pc, #376] ; (8009c58 <_printf_i+0x244>) + 8009ae0: e019 b.n 8009b16 <_printf_i+0x102> + 8009ae2: 680e ldr r6, [r1, #0] + 8009ae4: f010 0f40 tst.w r0, #64 ; 0x40 + 8009ae8: 602b str r3, [r5, #0] + 8009aea: bf18 it ne + 8009aec: b236 sxthne r6, r6 + 8009aee: e7ef b.n 8009ad0 <_printf_i+0xbc> + 8009af0: 682b ldr r3, [r5, #0] + 8009af2: 6820 ldr r0, [r4, #0] + 8009af4: 1d19 adds r1, r3, #4 + 8009af6: 6029 str r1, [r5, #0] + 8009af8: 0601 lsls r1, r0, #24 + 8009afa: d501 bpl.n 8009b00 <_printf_i+0xec> + 8009afc: 681e ldr r6, [r3, #0] + 8009afe: e002 b.n 8009b06 <_printf_i+0xf2> + 8009b00: 0646 lsls r6, r0, #25 + 8009b02: d5fb bpl.n 8009afc <_printf_i+0xe8> + 8009b04: 881e ldrh r6, [r3, #0] + 8009b06: 2f6f cmp r7, #111 ; 0x6f + 8009b08: bf0c ite eq + 8009b0a: 2308 moveq r3, #8 + 8009b0c: 230a movne r3, #10 + 8009b0e: 4852 ldr r0, [pc, #328] ; (8009c58 <_printf_i+0x244>) + 8009b10: 2100 movs r1, #0 + 8009b12: f884 1043 strb.w r1, [r4, #67] ; 0x43 + 8009b16: 6865 ldr r5, [r4, #4] + 8009b18: 2d00 cmp r5, #0 + 8009b1a: bfa8 it ge + 8009b1c: 6821 ldrge r1, [r4, #0] + 8009b1e: 60a5 str r5, [r4, #8] + 8009b20: bfa4 itt ge + 8009b22: f021 0104 bicge.w r1, r1, #4 + 8009b26: 6021 strge r1, [r4, #0] + 8009b28: b90e cbnz r6, 8009b2e <_printf_i+0x11a> + 8009b2a: 2d00 cmp r5, #0 + 8009b2c: d04d beq.n 8009bca <_printf_i+0x1b6> + 8009b2e: 4615 mov r5, r2 + 8009b30: fbb6 f1f3 udiv r1, r6, r3 + 8009b34: fb03 6711 mls r7, r3, r1, r6 + 8009b38: 5dc7 ldrb r7, [r0, r7] + 8009b3a: f805 7d01 strb.w r7, [r5, #-1]! + 8009b3e: 4637 mov r7, r6 + 8009b40: 42bb cmp r3, r7 + 8009b42: 460e mov r6, r1 + 8009b44: d9f4 bls.n 8009b30 <_printf_i+0x11c> + 8009b46: 2b08 cmp r3, #8 + 8009b48: d10b bne.n 8009b62 <_printf_i+0x14e> + 8009b4a: 6823 ldr r3, [r4, #0] + 8009b4c: 07de lsls r6, r3, #31 + 8009b4e: d508 bpl.n 8009b62 <_printf_i+0x14e> + 8009b50: 6923 ldr r3, [r4, #16] + 8009b52: 6861 ldr r1, [r4, #4] + 8009b54: 4299 cmp r1, r3 + 8009b56: bfde ittt le + 8009b58: 2330 movle r3, #48 ; 0x30 + 8009b5a: f805 3c01 strble.w r3, [r5, #-1] + 8009b5e: f105 35ff addle.w r5, r5, #4294967295 ; 0xffffffff + 8009b62: 1b52 subs r2, r2, r5 + 8009b64: 6122 str r2, [r4, #16] + 8009b66: 464b mov r3, r9 + 8009b68: 4621 mov r1, r4 + 8009b6a: 4640 mov r0, r8 + 8009b6c: f8cd a000 str.w sl, [sp] + 8009b70: aa03 add r2, sp, #12 + 8009b72: f7ff fedf bl 8009934 <_printf_common> + 8009b76: 3001 adds r0, #1 + 8009b78: d14c bne.n 8009c14 <_printf_i+0x200> + 8009b7a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8009b7e: b004 add sp, #16 + 8009b80: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8009b84: 4834 ldr r0, [pc, #208] ; (8009c58 <_printf_i+0x244>) + 8009b86: f881 7045 strb.w r7, [r1, #69] ; 0x45 + 8009b8a: 6829 ldr r1, [r5, #0] + 8009b8c: 6823 ldr r3, [r4, #0] + 8009b8e: f851 6b04 ldr.w r6, [r1], #4 + 8009b92: 6029 str r1, [r5, #0] + 8009b94: 061d lsls r5, r3, #24 + 8009b96: d514 bpl.n 8009bc2 <_printf_i+0x1ae> + 8009b98: 07df lsls r7, r3, #31 + 8009b9a: bf44 itt mi + 8009b9c: f043 0320 orrmi.w r3, r3, #32 + 8009ba0: 6023 strmi r3, [r4, #0] + 8009ba2: b91e cbnz r6, 8009bac <_printf_i+0x198> + 8009ba4: 6823 ldr r3, [r4, #0] + 8009ba6: f023 0320 bic.w r3, r3, #32 + 8009baa: 6023 str r3, [r4, #0] + 8009bac: 2310 movs r3, #16 + 8009bae: e7af b.n 8009b10 <_printf_i+0xfc> + 8009bb0: 6823 ldr r3, [r4, #0] + 8009bb2: f043 0320 orr.w r3, r3, #32 + 8009bb6: 6023 str r3, [r4, #0] + 8009bb8: 2378 movs r3, #120 ; 0x78 + 8009bba: 4828 ldr r0, [pc, #160] ; (8009c5c <_printf_i+0x248>) + 8009bbc: f884 3045 strb.w r3, [r4, #69] ; 0x45 + 8009bc0: e7e3 b.n 8009b8a <_printf_i+0x176> + 8009bc2: 0659 lsls r1, r3, #25 + 8009bc4: bf48 it mi + 8009bc6: b2b6 uxthmi r6, r6 + 8009bc8: e7e6 b.n 8009b98 <_printf_i+0x184> + 8009bca: 4615 mov r5, r2 + 8009bcc: e7bb b.n 8009b46 <_printf_i+0x132> + 8009bce: 682b ldr r3, [r5, #0] + 8009bd0: 6826 ldr r6, [r4, #0] + 8009bd2: 1d18 adds r0, r3, #4 + 8009bd4: 6961 ldr r1, [r4, #20] + 8009bd6: 6028 str r0, [r5, #0] + 8009bd8: 0635 lsls r5, r6, #24 + 8009bda: 681b ldr r3, [r3, #0] + 8009bdc: d501 bpl.n 8009be2 <_printf_i+0x1ce> + 8009bde: 6019 str r1, [r3, #0] + 8009be0: e002 b.n 8009be8 <_printf_i+0x1d4> + 8009be2: 0670 lsls r0, r6, #25 + 8009be4: d5fb bpl.n 8009bde <_printf_i+0x1ca> + 8009be6: 8019 strh r1, [r3, #0] + 8009be8: 2300 movs r3, #0 + 8009bea: 4615 mov r5, r2 + 8009bec: 6123 str r3, [r4, #16] + 8009bee: e7ba b.n 8009b66 <_printf_i+0x152> + 8009bf0: 682b ldr r3, [r5, #0] + 8009bf2: 2100 movs r1, #0 + 8009bf4: 1d1a adds r2, r3, #4 + 8009bf6: 602a str r2, [r5, #0] + 8009bf8: 681d ldr r5, [r3, #0] + 8009bfa: 6862 ldr r2, [r4, #4] + 8009bfc: 4628 mov r0, r5 + 8009bfe: f001 fcf5 bl 800b5ec + 8009c02: b108 cbz r0, 8009c08 <_printf_i+0x1f4> + 8009c04: 1b40 subs r0, r0, r5 + 8009c06: 6060 str r0, [r4, #4] + 8009c08: 6863 ldr r3, [r4, #4] + 8009c0a: 6123 str r3, [r4, #16] + 8009c0c: 2300 movs r3, #0 + 8009c0e: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8009c12: e7a8 b.n 8009b66 <_printf_i+0x152> + 8009c14: 462a mov r2, r5 + 8009c16: 4649 mov r1, r9 + 8009c18: 4640 mov r0, r8 + 8009c1a: 6923 ldr r3, [r4, #16] + 8009c1c: 47d0 blx sl + 8009c1e: 3001 adds r0, #1 + 8009c20: d0ab beq.n 8009b7a <_printf_i+0x166> + 8009c22: 6823 ldr r3, [r4, #0] + 8009c24: 079b lsls r3, r3, #30 + 8009c26: d413 bmi.n 8009c50 <_printf_i+0x23c> + 8009c28: 68e0 ldr r0, [r4, #12] + 8009c2a: 9b03 ldr r3, [sp, #12] + 8009c2c: 4298 cmp r0, r3 + 8009c2e: bfb8 it lt + 8009c30: 4618 movlt r0, r3 + 8009c32: e7a4 b.n 8009b7e <_printf_i+0x16a> + 8009c34: 2301 movs r3, #1 + 8009c36: 4632 mov r2, r6 + 8009c38: 4649 mov r1, r9 + 8009c3a: 4640 mov r0, r8 + 8009c3c: 47d0 blx sl + 8009c3e: 3001 adds r0, #1 + 8009c40: d09b beq.n 8009b7a <_printf_i+0x166> + 8009c42: 3501 adds r5, #1 + 8009c44: 68e3 ldr r3, [r4, #12] + 8009c46: 9903 ldr r1, [sp, #12] + 8009c48: 1a5b subs r3, r3, r1 + 8009c4a: 42ab cmp r3, r5 + 8009c4c: dcf2 bgt.n 8009c34 <_printf_i+0x220> + 8009c4e: e7eb b.n 8009c28 <_printf_i+0x214> + 8009c50: 2500 movs r5, #0 + 8009c52: f104 0619 add.w r6, r4, #25 + 8009c56: e7f5 b.n 8009c44 <_printf_i+0x230> + 8009c58: 0800d3c0 .word 0x0800d3c0 + 8009c5c: 0800d3d1 .word 0x0800d3d1 -08009b00 : - 8009b00: 4b02 ldr r3, [pc, #8] ; (8009b0c ) - 8009b02: 4601 mov r1, r0 - 8009b04: 6818 ldr r0, [r3, #0] - 8009b06: f7ff bf8d b.w 8009a24 <_puts_r> - 8009b0a: bf00 nop - 8009b0c: 20000014 .word 0x20000014 +08009c60 : + 8009c60: b40f push {r0, r1, r2, r3} + 8009c62: 4b0a ldr r3, [pc, #40] ; (8009c8c ) + 8009c64: b513 push {r0, r1, r4, lr} + 8009c66: 681c ldr r4, [r3, #0] + 8009c68: b124 cbz r4, 8009c74 + 8009c6a: 69a3 ldr r3, [r4, #24] + 8009c6c: b913 cbnz r3, 8009c74 + 8009c6e: 4620 mov r0, r4 + 8009c70: f001 fb56 bl 800b320 <__sinit> + 8009c74: ab05 add r3, sp, #20 + 8009c76: 4620 mov r0, r4 + 8009c78: 9a04 ldr r2, [sp, #16] + 8009c7a: 68a1 ldr r1, [r4, #8] + 8009c7c: 9301 str r3, [sp, #4] + 8009c7e: f002 f88d bl 800bd9c <_vfiprintf_r> + 8009c82: b002 add sp, #8 + 8009c84: e8bd 4010 ldmia.w sp!, {r4, lr} + 8009c88: b004 add sp, #16 + 8009c8a: 4770 bx lr + 8009c8c: 20000014 .word 0x20000014 -08009b10 <_sbrk_r>: - 8009b10: b538 push {r3, r4, r5, lr} - 8009b12: 2300 movs r3, #0 - 8009b14: 4d05 ldr r5, [pc, #20] ; (8009b2c <_sbrk_r+0x1c>) - 8009b16: 4604 mov r4, r0 - 8009b18: 4608 mov r0, r1 - 8009b1a: 602b str r3, [r5, #0] - 8009b1c: f7fb f8a4 bl 8004c68 <_sbrk> - 8009b20: 1c43 adds r3, r0, #1 - 8009b22: d102 bne.n 8009b2a <_sbrk_r+0x1a> - 8009b24: 682b ldr r3, [r5, #0] - 8009b26: b103 cbz r3, 8009b2a <_sbrk_r+0x1a> - 8009b28: 6023 str r3, [r4, #0] - 8009b2a: bd38 pop {r3, r4, r5, pc} - 8009b2c: 20001d4c .word 0x20001d4c +08009c90 <_puts_r>: + 8009c90: b570 push {r4, r5, r6, lr} + 8009c92: 460e mov r6, r1 + 8009c94: 4605 mov r5, r0 + 8009c96: b118 cbz r0, 8009ca0 <_puts_r+0x10> + 8009c98: 6983 ldr r3, [r0, #24] + 8009c9a: b90b cbnz r3, 8009ca0 <_puts_r+0x10> + 8009c9c: f001 fb40 bl 800b320 <__sinit> + 8009ca0: 69ab ldr r3, [r5, #24] + 8009ca2: 68ac ldr r4, [r5, #8] + 8009ca4: b913 cbnz r3, 8009cac <_puts_r+0x1c> + 8009ca6: 4628 mov r0, r5 + 8009ca8: f001 fb3a bl 800b320 <__sinit> + 8009cac: 4b2c ldr r3, [pc, #176] ; (8009d60 <_puts_r+0xd0>) + 8009cae: 429c cmp r4, r3 + 8009cb0: d120 bne.n 8009cf4 <_puts_r+0x64> + 8009cb2: 686c ldr r4, [r5, #4] + 8009cb4: 6e63 ldr r3, [r4, #100] ; 0x64 + 8009cb6: 07db lsls r3, r3, #31 + 8009cb8: d405 bmi.n 8009cc6 <_puts_r+0x36> + 8009cba: 89a3 ldrh r3, [r4, #12] + 8009cbc: 0598 lsls r0, r3, #22 + 8009cbe: d402 bmi.n 8009cc6 <_puts_r+0x36> + 8009cc0: 6da0 ldr r0, [r4, #88] ; 0x58 + 8009cc2: f001 fc2b bl 800b51c <__retarget_lock_acquire_recursive> + 8009cc6: 89a3 ldrh r3, [r4, #12] + 8009cc8: 0719 lsls r1, r3, #28 + 8009cca: d51d bpl.n 8009d08 <_puts_r+0x78> + 8009ccc: 6923 ldr r3, [r4, #16] + 8009cce: b1db cbz r3, 8009d08 <_puts_r+0x78> + 8009cd0: 3e01 subs r6, #1 + 8009cd2: 68a3 ldr r3, [r4, #8] + 8009cd4: f816 1f01 ldrb.w r1, [r6, #1]! + 8009cd8: 3b01 subs r3, #1 + 8009cda: 60a3 str r3, [r4, #8] + 8009cdc: bb39 cbnz r1, 8009d2e <_puts_r+0x9e> + 8009cde: 2b00 cmp r3, #0 + 8009ce0: da38 bge.n 8009d54 <_puts_r+0xc4> + 8009ce2: 4622 mov r2, r4 + 8009ce4: 210a movs r1, #10 + 8009ce6: 4628 mov r0, r5 + 8009ce8: f000 faaa bl 800a240 <__swbuf_r> + 8009cec: 3001 adds r0, #1 + 8009cee: d011 beq.n 8009d14 <_puts_r+0x84> + 8009cf0: 250a movs r5, #10 + 8009cf2: e011 b.n 8009d18 <_puts_r+0x88> + 8009cf4: 4b1b ldr r3, [pc, #108] ; (8009d64 <_puts_r+0xd4>) + 8009cf6: 429c cmp r4, r3 + 8009cf8: d101 bne.n 8009cfe <_puts_r+0x6e> + 8009cfa: 68ac ldr r4, [r5, #8] + 8009cfc: e7da b.n 8009cb4 <_puts_r+0x24> + 8009cfe: 4b1a ldr r3, [pc, #104] ; (8009d68 <_puts_r+0xd8>) + 8009d00: 429c cmp r4, r3 + 8009d02: bf08 it eq + 8009d04: 68ec ldreq r4, [r5, #12] + 8009d06: e7d5 b.n 8009cb4 <_puts_r+0x24> + 8009d08: 4621 mov r1, r4 + 8009d0a: 4628 mov r0, r5 + 8009d0c: f000 faea bl 800a2e4 <__swsetup_r> + 8009d10: 2800 cmp r0, #0 + 8009d12: d0dd beq.n 8009cd0 <_puts_r+0x40> + 8009d14: f04f 35ff mov.w r5, #4294967295 ; 0xffffffff + 8009d18: 6e63 ldr r3, [r4, #100] ; 0x64 + 8009d1a: 07da lsls r2, r3, #31 + 8009d1c: d405 bmi.n 8009d2a <_puts_r+0x9a> + 8009d1e: 89a3 ldrh r3, [r4, #12] + 8009d20: 059b lsls r3, r3, #22 + 8009d22: d402 bmi.n 8009d2a <_puts_r+0x9a> + 8009d24: 6da0 ldr r0, [r4, #88] ; 0x58 + 8009d26: f001 fbfb bl 800b520 <__retarget_lock_release_recursive> + 8009d2a: 4628 mov r0, r5 + 8009d2c: bd70 pop {r4, r5, r6, pc} + 8009d2e: 2b00 cmp r3, #0 + 8009d30: da04 bge.n 8009d3c <_puts_r+0xac> + 8009d32: 69a2 ldr r2, [r4, #24] + 8009d34: 429a cmp r2, r3 + 8009d36: dc06 bgt.n 8009d46 <_puts_r+0xb6> + 8009d38: 290a cmp r1, #10 + 8009d3a: d004 beq.n 8009d46 <_puts_r+0xb6> + 8009d3c: 6823 ldr r3, [r4, #0] + 8009d3e: 1c5a adds r2, r3, #1 + 8009d40: 6022 str r2, [r4, #0] + 8009d42: 7019 strb r1, [r3, #0] + 8009d44: e7c5 b.n 8009cd2 <_puts_r+0x42> + 8009d46: 4622 mov r2, r4 + 8009d48: 4628 mov r0, r5 + 8009d4a: f000 fa79 bl 800a240 <__swbuf_r> + 8009d4e: 3001 adds r0, #1 + 8009d50: d1bf bne.n 8009cd2 <_puts_r+0x42> + 8009d52: e7df b.n 8009d14 <_puts_r+0x84> + 8009d54: 250a movs r5, #10 + 8009d56: 6823 ldr r3, [r4, #0] + 8009d58: 1c5a adds r2, r3, #1 + 8009d5a: 6022 str r2, [r4, #0] + 8009d5c: 701d strb r5, [r3, #0] + 8009d5e: e7db b.n 8009d18 <_puts_r+0x88> + 8009d60: 0800d4f4 .word 0x0800d4f4 + 8009d64: 0800d514 .word 0x0800d514 + 8009d68: 0800d4d4 .word 0x0800d4d4 -08009b30 : - 8009b30: 4603 mov r3, r0 - 8009b32: b510 push {r4, lr} - 8009b34: b172 cbz r2, 8009b54 - 8009b36: 3901 subs r1, #1 - 8009b38: 1884 adds r4, r0, r2 - 8009b3a: f813 0b01 ldrb.w r0, [r3], #1 - 8009b3e: f811 2f01 ldrb.w r2, [r1, #1]! - 8009b42: 4290 cmp r0, r2 - 8009b44: d101 bne.n 8009b4a - 8009b46: 42a3 cmp r3, r4 - 8009b48: d101 bne.n 8009b4e - 8009b4a: 1a80 subs r0, r0, r2 - 8009b4c: bd10 pop {r4, pc} - 8009b4e: 2800 cmp r0, #0 - 8009b50: d1f3 bne.n 8009b3a - 8009b52: e7fa b.n 8009b4a - 8009b54: 4610 mov r0, r2 - 8009b56: e7f9 b.n 8009b4c +08009d6c : + 8009d6c: 4b02 ldr r3, [pc, #8] ; (8009d78 ) + 8009d6e: 4601 mov r1, r0 + 8009d70: 6818 ldr r0, [r3, #0] + 8009d72: f7ff bf8d b.w 8009c90 <_puts_r> + 8009d76: bf00 nop + 8009d78: 20000014 .word 0x20000014 -08009b58 <__tzcalc_limits>: - 8009b58: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8009b5c: 4605 mov r5, r0 - 8009b5e: f001 fb9b bl 800b298 <__gettzinfo> - 8009b62: f240 73b1 movw r3, #1969 ; 0x7b1 - 8009b66: 429d cmp r5, r3 - 8009b68: f340 809a ble.w 8009ca0 <__tzcalc_limits+0x148> - 8009b6c: f46f 62f6 mvn.w r2, #1968 ; 0x7b0 - 8009b70: 18ac adds r4, r5, r2 - 8009b72: f240 126d movw r2, #365 ; 0x16d - 8009b76: f2a5 73b2 subw r3, r5, #1970 ; 0x7b2 - 8009b7a: 10a4 asrs r4, r4, #2 - 8009b7c: fb02 4403 mla r4, r2, r3, r4 - 8009b80: f06f 0263 mvn.w r2, #99 ; 0x63 - 8009b84: f2a5 736d subw r3, r5, #1901 ; 0x76d - 8009b88: fb93 f3f2 sdiv r3, r3, r2 - 8009b8c: f46f 61c8 mvn.w r1, #1600 ; 0x640 - 8009b90: 441c add r4, r3 - 8009b92: f44f 73c8 mov.w r3, #400 ; 0x190 - 8009b96: 186a adds r2, r5, r1 - 8009b98: fbb2 f2f3 udiv r2, r2, r3 - 8009b9c: fb95 fcf3 sdiv ip, r5, r3 - 8009ba0: 4414 add r4, r2 - 8009ba2: 2264 movs r2, #100 ; 0x64 - 8009ba4: fb03 5c1c mls ip, r3, ip, r5 - 8009ba8: fb95 f7f2 sdiv r7, r5, r2 - 8009bac: fabc f68c clz r6, ip - 8009bb0: 4601 mov r1, r0 - 8009bb2: fb02 5717 mls r7, r2, r7, r5 - 8009bb6: 6045 str r5, [r0, #4] - 8009bb8: 0976 lsrs r6, r6, #5 - 8009bba: f100 0b50 add.w fp, r0, #80 ; 0x50 - 8009bbe: f005 0203 and.w r2, r5, #3 - 8009bc2: 7a0d ldrb r5, [r1, #8] - 8009bc4: 694b ldr r3, [r1, #20] - 8009bc6: 2d4a cmp r5, #74 ; 0x4a - 8009bc8: d12d bne.n 8009c26 <__tzcalc_limits+0xce> - 8009bca: eb04 0e03 add.w lr, r4, r3 - 8009bce: b902 cbnz r2, 8009bd2 <__tzcalc_limits+0x7a> - 8009bd0: b917 cbnz r7, 8009bd8 <__tzcalc_limits+0x80> - 8009bd2: f1bc 0f00 cmp.w ip, #0 - 8009bd6: d124 bne.n 8009c22 <__tzcalc_limits+0xca> - 8009bd8: 2b3b cmp r3, #59 ; 0x3b - 8009bda: bfd4 ite le - 8009bdc: 2300 movle r3, #0 - 8009bde: 2301 movgt r3, #1 - 8009be0: 4473 add r3, lr - 8009be2: 3b01 subs r3, #1 - 8009be4: 698d ldr r5, [r1, #24] - 8009be6: f8df 80bc ldr.w r8, [pc, #188] ; 8009ca4 <__tzcalc_limits+0x14c> - 8009bea: ea4f 7ee5 mov.w lr, r5, asr #31 - 8009bee: fbc3 5e08 smlal r5, lr, r3, r8 - 8009bf2: 6a8b ldr r3, [r1, #40] ; 0x28 - 8009bf4: 18ed adds r5, r5, r3 - 8009bf6: eb4e 73e3 adc.w r3, lr, r3, asr #31 - 8009bfa: e9c1 5308 strd r5, r3, [r1, #32] - 8009bfe: 3128 adds r1, #40 ; 0x28 - 8009c00: 458b cmp fp, r1 - 8009c02: d1de bne.n 8009bc2 <__tzcalc_limits+0x6a> - 8009c04: e9d0 1312 ldrd r1, r3, [r0, #72] ; 0x48 - 8009c08: e9d0 4208 ldrd r4, r2, [r0, #32] - 8009c0c: 428c cmp r4, r1 - 8009c0e: eb72 0303 sbcs.w r3, r2, r3 - 8009c12: bfb4 ite lt - 8009c14: 2301 movlt r3, #1 - 8009c16: 2300 movge r3, #0 - 8009c18: 6003 str r3, [r0, #0] - 8009c1a: 2001 movs r0, #1 - 8009c1c: b003 add sp, #12 - 8009c1e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8009c22: 2300 movs r3, #0 - 8009c24: e7dc b.n 8009be0 <__tzcalc_limits+0x88> - 8009c26: 2d44 cmp r5, #68 ; 0x44 - 8009c28: d101 bne.n 8009c2e <__tzcalc_limits+0xd6> - 8009c2a: 4423 add r3, r4 - 8009c2c: e7da b.n 8009be4 <__tzcalc_limits+0x8c> - 8009c2e: bb8a cbnz r2, 8009c94 <__tzcalc_limits+0x13c> - 8009c30: 2f00 cmp r7, #0 - 8009c32: bf0c ite eq - 8009c34: 4635 moveq r5, r6 - 8009c36: 2501 movne r5, #1 - 8009c38: f04f 0a30 mov.w sl, #48 ; 0x30 - 8009c3c: f8d1 e00c ldr.w lr, [r1, #12] - 8009c40: f04f 0800 mov.w r8, #0 - 8009c44: f8cd e004 str.w lr, [sp, #4] - 8009c48: 46a6 mov lr, r4 - 8009c4a: f8df 905c ldr.w r9, [pc, #92] ; 8009ca8 <__tzcalc_limits+0x150> - 8009c4e: fb0a 9505 mla r5, sl, r5, r9 - 8009c52: 3d04 subs r5, #4 - 8009c54: f8dd a004 ldr.w sl, [sp, #4] - 8009c58: f108 0801 add.w r8, r8, #1 - 8009c5c: 45c2 cmp sl, r8 - 8009c5e: f855 9028 ldr.w r9, [r5, r8, lsl #2] - 8009c62: dc19 bgt.n 8009c98 <__tzcalc_limits+0x140> - 8009c64: f04f 0807 mov.w r8, #7 - 8009c68: f10e 0504 add.w r5, lr, #4 - 8009c6c: fb95 f8f8 sdiv r8, r5, r8 - 8009c70: ebc8 08c8 rsb r8, r8, r8, lsl #3 - 8009c74: eba5 0808 sub.w r8, r5, r8 - 8009c78: ebb3 0808 subs.w r8, r3, r8 - 8009c7c: 690b ldr r3, [r1, #16] - 8009c7e: bf48 it mi - 8009c80: f108 0807 addmi.w r8, r8, #7 - 8009c84: 3b01 subs r3, #1 - 8009c86: ebc3 03c3 rsb r3, r3, r3, lsl #3 - 8009c8a: 4443 add r3, r8 - 8009c8c: 454b cmp r3, r9 - 8009c8e: da05 bge.n 8009c9c <__tzcalc_limits+0x144> - 8009c90: 4473 add r3, lr - 8009c92: e7a7 b.n 8009be4 <__tzcalc_limits+0x8c> - 8009c94: 4635 mov r5, r6 - 8009c96: e7cf b.n 8009c38 <__tzcalc_limits+0xe0> - 8009c98: 44ce add lr, r9 - 8009c9a: e7db b.n 8009c54 <__tzcalc_limits+0xfc> - 8009c9c: 3b07 subs r3, #7 - 8009c9e: e7f5 b.n 8009c8c <__tzcalc_limits+0x134> - 8009ca0: 2000 movs r0, #0 - 8009ca2: e7bb b.n 8009c1c <__tzcalc_limits+0xc4> - 8009ca4: 00015180 .word 0x00015180 - 8009ca8: 0800d0c0 .word 0x0800d0c0 +08009d7c <_sbrk_r>: + 8009d7c: b538 push {r3, r4, r5, lr} + 8009d7e: 2300 movs r3, #0 + 8009d80: 4d05 ldr r5, [pc, #20] ; (8009d98 <_sbrk_r+0x1c>) + 8009d82: 4604 mov r4, r0 + 8009d84: 4608 mov r0, r1 + 8009d86: 602b str r3, [r5, #0] + 8009d88: f7fb f8a4 bl 8004ed4 <_sbrk> + 8009d8c: 1c43 adds r3, r0, #1 + 8009d8e: d102 bne.n 8009d96 <_sbrk_r+0x1a> + 8009d90: 682b ldr r3, [r5, #0] + 8009d92: b103 cbz r3, 8009d96 <_sbrk_r+0x1a> + 8009d94: 6023 str r3, [r4, #0] + 8009d96: bd38 pop {r3, r4, r5, pc} + 8009d98: 200033cc .word 0x200033cc -08009cac <__tz_lock>: - 8009cac: 4801 ldr r0, [pc, #4] ; (8009cb4 <__tz_lock+0x8>) - 8009cae: f001 bafc b.w 800b2aa <__retarget_lock_acquire> - 8009cb2: bf00 nop - 8009cb4: 20001d48 .word 0x20001d48 +08009d9c : + 8009d9c: 4603 mov r3, r0 + 8009d9e: b510 push {r4, lr} + 8009da0: b172 cbz r2, 8009dc0 + 8009da2: 3901 subs r1, #1 + 8009da4: 1884 adds r4, r0, r2 + 8009da6: f813 0b01 ldrb.w r0, [r3], #1 + 8009daa: f811 2f01 ldrb.w r2, [r1, #1]! + 8009dae: 4290 cmp r0, r2 + 8009db0: d101 bne.n 8009db6 + 8009db2: 42a3 cmp r3, r4 + 8009db4: d101 bne.n 8009dba + 8009db6: 1a80 subs r0, r0, r2 + 8009db8: bd10 pop {r4, pc} + 8009dba: 2800 cmp r0, #0 + 8009dbc: d1f3 bne.n 8009da6 + 8009dbe: e7fa b.n 8009db6 + 8009dc0: 4610 mov r0, r2 + 8009dc2: e7f9 b.n 8009db8 -08009cb8 <__tz_unlock>: - 8009cb8: 4801 ldr r0, [pc, #4] ; (8009cc0 <__tz_unlock+0x8>) - 8009cba: f001 baf8 b.w 800b2ae <__retarget_lock_release> - 8009cbe: bf00 nop - 8009cc0: 20001d48 .word 0x20001d48 +08009dc4 <__tzcalc_limits>: + 8009dc4: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8009dc8: 4605 mov r5, r0 + 8009dca: f001 fb9d bl 800b508 <__gettzinfo> + 8009dce: f240 73b1 movw r3, #1969 ; 0x7b1 + 8009dd2: 429d cmp r5, r3 + 8009dd4: f340 809a ble.w 8009f0c <__tzcalc_limits+0x148> + 8009dd8: f46f 62f6 mvn.w r2, #1968 ; 0x7b0 + 8009ddc: 18ac adds r4, r5, r2 + 8009dde: f240 126d movw r2, #365 ; 0x16d + 8009de2: f2a5 73b2 subw r3, r5, #1970 ; 0x7b2 + 8009de6: 10a4 asrs r4, r4, #2 + 8009de8: fb02 4403 mla r4, r2, r3, r4 + 8009dec: f06f 0263 mvn.w r2, #99 ; 0x63 + 8009df0: f2a5 736d subw r3, r5, #1901 ; 0x76d + 8009df4: fb93 f3f2 sdiv r3, r3, r2 + 8009df8: f46f 61c8 mvn.w r1, #1600 ; 0x640 + 8009dfc: 441c add r4, r3 + 8009dfe: f44f 73c8 mov.w r3, #400 ; 0x190 + 8009e02: 186a adds r2, r5, r1 + 8009e04: fbb2 f2f3 udiv r2, r2, r3 + 8009e08: fb95 fcf3 sdiv ip, r5, r3 + 8009e0c: 4414 add r4, r2 + 8009e0e: 2264 movs r2, #100 ; 0x64 + 8009e10: fb03 5c1c mls ip, r3, ip, r5 + 8009e14: fb95 f7f2 sdiv r7, r5, r2 + 8009e18: fabc f68c clz r6, ip + 8009e1c: 4601 mov r1, r0 + 8009e1e: fb02 5717 mls r7, r2, r7, r5 + 8009e22: 6045 str r5, [r0, #4] + 8009e24: 0976 lsrs r6, r6, #5 + 8009e26: f100 0b50 add.w fp, r0, #80 ; 0x50 + 8009e2a: f005 0203 and.w r2, r5, #3 + 8009e2e: 7a0d ldrb r5, [r1, #8] + 8009e30: 694b ldr r3, [r1, #20] + 8009e32: 2d4a cmp r5, #74 ; 0x4a + 8009e34: d12d bne.n 8009e92 <__tzcalc_limits+0xce> + 8009e36: eb04 0e03 add.w lr, r4, r3 + 8009e3a: b902 cbnz r2, 8009e3e <__tzcalc_limits+0x7a> + 8009e3c: b917 cbnz r7, 8009e44 <__tzcalc_limits+0x80> + 8009e3e: f1bc 0f00 cmp.w ip, #0 + 8009e42: d124 bne.n 8009e8e <__tzcalc_limits+0xca> + 8009e44: 2b3b cmp r3, #59 ; 0x3b + 8009e46: bfd4 ite le + 8009e48: 2300 movle r3, #0 + 8009e4a: 2301 movgt r3, #1 + 8009e4c: 4473 add r3, lr + 8009e4e: 3b01 subs r3, #1 + 8009e50: 698d ldr r5, [r1, #24] + 8009e52: f8df 80bc ldr.w r8, [pc, #188] ; 8009f10 <__tzcalc_limits+0x14c> + 8009e56: ea4f 7ee5 mov.w lr, r5, asr #31 + 8009e5a: fbc3 5e08 smlal r5, lr, r3, r8 + 8009e5e: 6a8b ldr r3, [r1, #40] ; 0x28 + 8009e60: 18ed adds r5, r5, r3 + 8009e62: eb4e 73e3 adc.w r3, lr, r3, asr #31 + 8009e66: e9c1 5308 strd r5, r3, [r1, #32] + 8009e6a: 3128 adds r1, #40 ; 0x28 + 8009e6c: 458b cmp fp, r1 + 8009e6e: d1de bne.n 8009e2e <__tzcalc_limits+0x6a> + 8009e70: e9d0 1312 ldrd r1, r3, [r0, #72] ; 0x48 + 8009e74: e9d0 4208 ldrd r4, r2, [r0, #32] + 8009e78: 428c cmp r4, r1 + 8009e7a: eb72 0303 sbcs.w r3, r2, r3 + 8009e7e: bfb4 ite lt + 8009e80: 2301 movlt r3, #1 + 8009e82: 2300 movge r3, #0 + 8009e84: 6003 str r3, [r0, #0] + 8009e86: 2001 movs r0, #1 + 8009e88: b003 add sp, #12 + 8009e8a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8009e8e: 2300 movs r3, #0 + 8009e90: e7dc b.n 8009e4c <__tzcalc_limits+0x88> + 8009e92: 2d44 cmp r5, #68 ; 0x44 + 8009e94: d101 bne.n 8009e9a <__tzcalc_limits+0xd6> + 8009e96: 4423 add r3, r4 + 8009e98: e7da b.n 8009e50 <__tzcalc_limits+0x8c> + 8009e9a: bb8a cbnz r2, 8009f00 <__tzcalc_limits+0x13c> + 8009e9c: 2f00 cmp r7, #0 + 8009e9e: bf0c ite eq + 8009ea0: 4635 moveq r5, r6 + 8009ea2: 2501 movne r5, #1 + 8009ea4: f04f 0a30 mov.w sl, #48 ; 0x30 + 8009ea8: f8d1 e00c ldr.w lr, [r1, #12] + 8009eac: f04f 0800 mov.w r8, #0 + 8009eb0: f8cd e004 str.w lr, [sp, #4] + 8009eb4: 46a6 mov lr, r4 + 8009eb6: f8df 905c ldr.w r9, [pc, #92] ; 8009f14 <__tzcalc_limits+0x150> + 8009eba: fb0a 9505 mla r5, sl, r5, r9 + 8009ebe: 3d04 subs r5, #4 + 8009ec0: f8dd a004 ldr.w sl, [sp, #4] + 8009ec4: f108 0801 add.w r8, r8, #1 + 8009ec8: 45c2 cmp sl, r8 + 8009eca: f855 9028 ldr.w r9, [r5, r8, lsl #2] + 8009ece: dc19 bgt.n 8009f04 <__tzcalc_limits+0x140> + 8009ed0: f04f 0807 mov.w r8, #7 + 8009ed4: f10e 0504 add.w r5, lr, #4 + 8009ed8: fb95 f8f8 sdiv r8, r5, r8 + 8009edc: ebc8 08c8 rsb r8, r8, r8, lsl #3 + 8009ee0: eba5 0808 sub.w r8, r5, r8 + 8009ee4: ebb3 0808 subs.w r8, r3, r8 + 8009ee8: 690b ldr r3, [r1, #16] + 8009eea: bf48 it mi + 8009eec: f108 0807 addmi.w r8, r8, #7 + 8009ef0: 3b01 subs r3, #1 + 8009ef2: ebc3 03c3 rsb r3, r3, r3, lsl #3 + 8009ef6: 4443 add r3, r8 + 8009ef8: 454b cmp r3, r9 + 8009efa: da05 bge.n 8009f08 <__tzcalc_limits+0x144> + 8009efc: 4473 add r3, lr + 8009efe: e7a7 b.n 8009e50 <__tzcalc_limits+0x8c> + 8009f00: 4635 mov r5, r6 + 8009f02: e7cf b.n 8009ea4 <__tzcalc_limits+0xe0> + 8009f04: 44ce add lr, r9 + 8009f06: e7db b.n 8009ec0 <__tzcalc_limits+0xfc> + 8009f08: 3b07 subs r3, #7 + 8009f0a: e7f5 b.n 8009ef8 <__tzcalc_limits+0x134> + 8009f0c: 2000 movs r0, #0 + 8009f0e: e7bb b.n 8009e88 <__tzcalc_limits+0xc4> + 8009f10: 00015180 .word 0x00015180 + 8009f14: 0800d350 .word 0x0800d350 -08009cc4 <_tzset_unlocked>: - 8009cc4: 4b01 ldr r3, [pc, #4] ; (8009ccc <_tzset_unlocked+0x8>) - 8009cc6: 6818 ldr r0, [r3, #0] - 8009cc8: f000 b802 b.w 8009cd0 <_tzset_unlocked_r> - 8009ccc: 20000014 .word 0x20000014 +08009f18 <__tz_lock>: + 8009f18: 4801 ldr r0, [pc, #4] ; (8009f20 <__tz_lock+0x8>) + 8009f1a: f001 bafe b.w 800b51a <__retarget_lock_acquire> + 8009f1e: bf00 nop + 8009f20: 200033c8 .word 0x200033c8 -08009cd0 <_tzset_unlocked_r>: - 8009cd0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8009cd4: b08d sub sp, #52 ; 0x34 - 8009cd6: 4607 mov r7, r0 - 8009cd8: f001 fade bl 800b298 <__gettzinfo> - 8009cdc: 49b1 ldr r1, [pc, #708] ; (8009fa4 <_tzset_unlocked_r+0x2d4>) - 8009cde: 4605 mov r5, r0 - 8009ce0: 4638 mov r0, r7 - 8009ce2: f001 fad1 bl 800b288 <_getenv_r> - 8009ce6: 4eb0 ldr r6, [pc, #704] ; (8009fa8 <_tzset_unlocked_r+0x2d8>) - 8009ce8: 4604 mov r4, r0 - 8009cea: b970 cbnz r0, 8009d0a <_tzset_unlocked_r+0x3a> - 8009cec: 4baf ldr r3, [pc, #700] ; (8009fac <_tzset_unlocked_r+0x2dc>) - 8009cee: 4ab0 ldr r2, [pc, #704] ; (8009fb0 <_tzset_unlocked_r+0x2e0>) - 8009cf0: 6018 str r0, [r3, #0] - 8009cf2: 4bb0 ldr r3, [pc, #704] ; (8009fb4 <_tzset_unlocked_r+0x2e4>) - 8009cf4: 6018 str r0, [r3, #0] - 8009cf6: 4bb0 ldr r3, [pc, #704] ; (8009fb8 <_tzset_unlocked_r+0x2e8>) - 8009cf8: 6830 ldr r0, [r6, #0] - 8009cfa: e9c3 2200 strd r2, r2, [r3] - 8009cfe: f7ff f91f bl 8008f40 - 8009d02: 6034 str r4, [r6, #0] - 8009d04: b00d add sp, #52 ; 0x34 - 8009d06: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8009d0a: 6831 ldr r1, [r6, #0] - 8009d0c: 2900 cmp r1, #0 - 8009d0e: d162 bne.n 8009dd6 <_tzset_unlocked_r+0x106> - 8009d10: 6830 ldr r0, [r6, #0] - 8009d12: f7ff f915 bl 8008f40 - 8009d16: 4620 mov r0, r4 - 8009d18: f7f6 fa86 bl 8000228 - 8009d1c: 1c41 adds r1, r0, #1 - 8009d1e: 4638 mov r0, r7 - 8009d20: f7ff f994 bl 800904c <_malloc_r> - 8009d24: 6030 str r0, [r6, #0] - 8009d26: 2800 cmp r0, #0 - 8009d28: d15a bne.n 8009de0 <_tzset_unlocked_r+0x110> - 8009d2a: 7823 ldrb r3, [r4, #0] - 8009d2c: ae0a add r6, sp, #40 ; 0x28 - 8009d2e: 2b3a cmp r3, #58 ; 0x3a - 8009d30: bf08 it eq - 8009d32: 3401 addeq r4, #1 - 8009d34: 4633 mov r3, r6 - 8009d36: 4620 mov r0, r4 - 8009d38: 4aa0 ldr r2, [pc, #640] ; (8009fbc <_tzset_unlocked_r+0x2ec>) - 8009d3a: 49a1 ldr r1, [pc, #644] ; (8009fc0 <_tzset_unlocked_r+0x2f0>) - 8009d3c: f002 f826 bl 800bd8c - 8009d40: 2800 cmp r0, #0 - 8009d42: dddf ble.n 8009d04 <_tzset_unlocked_r+0x34> - 8009d44: 9b0a ldr r3, [sp, #40] ; 0x28 - 8009d46: 18e7 adds r7, r4, r3 - 8009d48: 5ce3 ldrb r3, [r4, r3] - 8009d4a: 2b2d cmp r3, #45 ; 0x2d - 8009d4c: d14c bne.n 8009de8 <_tzset_unlocked_r+0x118> - 8009d4e: f04f 38ff mov.w r8, #4294967295 ; 0xffffffff - 8009d52: 3701 adds r7, #1 - 8009d54: 2400 movs r4, #0 - 8009d56: f10d 0a20 add.w sl, sp, #32 - 8009d5a: f10d 0b1e add.w fp, sp, #30 - 8009d5e: 4633 mov r3, r6 - 8009d60: 4638 mov r0, r7 - 8009d62: e9cd 6a01 strd r6, sl, [sp, #4] - 8009d66: 4997 ldr r1, [pc, #604] ; (8009fc4 <_tzset_unlocked_r+0x2f4>) - 8009d68: 9603 str r6, [sp, #12] - 8009d6a: f8cd b000 str.w fp, [sp] - 8009d6e: aa07 add r2, sp, #28 - 8009d70: f8ad 401e strh.w r4, [sp, #30] - 8009d74: f8ad 4020 strh.w r4, [sp, #32] - 8009d78: f002 f808 bl 800bd8c - 8009d7c: 42a0 cmp r0, r4 - 8009d7e: ddc1 ble.n 8009d04 <_tzset_unlocked_r+0x34> - 8009d80: 213c movs r1, #60 ; 0x3c - 8009d82: f8bd 201e ldrh.w r2, [sp, #30] - 8009d86: f8bd 3020 ldrh.w r3, [sp, #32] - 8009d8a: f8df 923c ldr.w r9, [pc, #572] ; 8009fc8 <_tzset_unlocked_r+0x2f8> - 8009d8e: fb01 3302 mla r3, r1, r2, r3 - 8009d92: f44f 6161 mov.w r1, #3600 ; 0xe10 - 8009d96: f8bd 201c ldrh.w r2, [sp, #28] - 8009d9a: fb01 3302 mla r3, r1, r2, r3 - 8009d9e: fb08 f303 mul.w r3, r8, r3 - 8009da2: f8df 8214 ldr.w r8, [pc, #532] ; 8009fb8 <_tzset_unlocked_r+0x2e8> - 8009da6: 62ab str r3, [r5, #40] ; 0x28 - 8009da8: 4b84 ldr r3, [pc, #528] ; (8009fbc <_tzset_unlocked_r+0x2ec>) - 8009daa: 464a mov r2, r9 - 8009dac: f8c8 3000 str.w r3, [r8] - 8009db0: 9b0a ldr r3, [sp, #40] ; 0x28 - 8009db2: 4983 ldr r1, [pc, #524] ; (8009fc0 <_tzset_unlocked_r+0x2f0>) - 8009db4: 441f add r7, r3 - 8009db6: 4638 mov r0, r7 - 8009db8: 4633 mov r3, r6 - 8009dba: f001 ffe7 bl 800bd8c - 8009dbe: 42a0 cmp r0, r4 - 8009dc0: dc18 bgt.n 8009df4 <_tzset_unlocked_r+0x124> - 8009dc2: f8d8 3000 ldr.w r3, [r8] - 8009dc6: 6aaa ldr r2, [r5, #40] ; 0x28 - 8009dc8: f8c8 3004 str.w r3, [r8, #4] - 8009dcc: 4b77 ldr r3, [pc, #476] ; (8009fac <_tzset_unlocked_r+0x2dc>) - 8009dce: 601a str r2, [r3, #0] - 8009dd0: 4b78 ldr r3, [pc, #480] ; (8009fb4 <_tzset_unlocked_r+0x2e4>) - 8009dd2: 601c str r4, [r3, #0] - 8009dd4: e796 b.n 8009d04 <_tzset_unlocked_r+0x34> - 8009dd6: f7f6 fa2f bl 8000238 - 8009dda: 2800 cmp r0, #0 - 8009ddc: d198 bne.n 8009d10 <_tzset_unlocked_r+0x40> - 8009dde: e791 b.n 8009d04 <_tzset_unlocked_r+0x34> - 8009de0: 4621 mov r1, r4 - 8009de2: f002 f842 bl 800be6a - 8009de6: e7a0 b.n 8009d2a <_tzset_unlocked_r+0x5a> - 8009de8: 2b2b cmp r3, #43 ; 0x2b - 8009dea: f04f 0801 mov.w r8, #1 - 8009dee: bf08 it eq - 8009df0: 3701 addeq r7, #1 - 8009df2: e7af b.n 8009d54 <_tzset_unlocked_r+0x84> - 8009df4: 9b0a ldr r3, [sp, #40] ; 0x28 - 8009df6: f8c8 9004 str.w r9, [r8, #4] - 8009dfa: 18fc adds r4, r7, r3 - 8009dfc: 5cfb ldrb r3, [r7, r3] - 8009dfe: 2b2d cmp r3, #45 ; 0x2d - 8009e00: f040 808c bne.w 8009f1c <_tzset_unlocked_r+0x24c> - 8009e04: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff - 8009e08: 3401 adds r4, #1 - 8009e0a: 2300 movs r3, #0 - 8009e0c: 4620 mov r0, r4 - 8009e0e: f8ad 301c strh.w r3, [sp, #28] - 8009e12: f8ad 301e strh.w r3, [sp, #30] - 8009e16: f8ad 3020 strh.w r3, [sp, #32] - 8009e1a: 930a str r3, [sp, #40] ; 0x28 - 8009e1c: e9cd a602 strd sl, r6, [sp, #8] - 8009e20: 4633 mov r3, r6 - 8009e22: e9cd b600 strd fp, r6, [sp] - 8009e26: 4967 ldr r1, [pc, #412] ; (8009fc4 <_tzset_unlocked_r+0x2f4>) - 8009e28: aa07 add r2, sp, #28 - 8009e2a: f001 ffaf bl 800bd8c - 8009e2e: 2800 cmp r0, #0 - 8009e30: dc7a bgt.n 8009f28 <_tzset_unlocked_r+0x258> - 8009e32: 6aab ldr r3, [r5, #40] ; 0x28 - 8009e34: f5a3 6361 sub.w r3, r3, #3600 ; 0xe10 - 8009e38: 462f mov r7, r5 - 8009e3a: f04f 0900 mov.w r9, #0 - 8009e3e: 652b str r3, [r5, #80] ; 0x50 - 8009e40: 9b0a ldr r3, [sp, #40] ; 0x28 - 8009e42: 441c add r4, r3 - 8009e44: 7823 ldrb r3, [r4, #0] - 8009e46: 2b2c cmp r3, #44 ; 0x2c - 8009e48: bf08 it eq - 8009e4a: 3401 addeq r4, #1 - 8009e4c: f894 8000 ldrb.w r8, [r4] - 8009e50: f1b8 0f4d cmp.w r8, #77 ; 0x4d - 8009e54: d17a bne.n 8009f4c <_tzset_unlocked_r+0x27c> - 8009e56: f10d 0326 add.w r3, sp, #38 ; 0x26 - 8009e5a: e9cd 6301 strd r6, r3, [sp, #4] - 8009e5e: ab09 add r3, sp, #36 ; 0x24 - 8009e60: 9300 str r3, [sp, #0] - 8009e62: 4620 mov r0, r4 - 8009e64: 4633 mov r3, r6 - 8009e66: 4959 ldr r1, [pc, #356] ; (8009fcc <_tzset_unlocked_r+0x2fc>) - 8009e68: 9603 str r6, [sp, #12] - 8009e6a: f10d 0222 add.w r2, sp, #34 ; 0x22 - 8009e6e: f001 ff8d bl 800bd8c - 8009e72: 2803 cmp r0, #3 - 8009e74: f47f af46 bne.w 8009d04 <_tzset_unlocked_r+0x34> - 8009e78: f8bd 1022 ldrh.w r1, [sp, #34] ; 0x22 - 8009e7c: 1e4b subs r3, r1, #1 - 8009e7e: 2b0b cmp r3, #11 - 8009e80: f63f af40 bhi.w 8009d04 <_tzset_unlocked_r+0x34> - 8009e84: f8bd 2024 ldrh.w r2, [sp, #36] ; 0x24 - 8009e88: 1e53 subs r3, r2, #1 - 8009e8a: 2b04 cmp r3, #4 - 8009e8c: f63f af3a bhi.w 8009d04 <_tzset_unlocked_r+0x34> - 8009e90: f8bd 3026 ldrh.w r3, [sp, #38] ; 0x26 - 8009e94: 2b06 cmp r3, #6 - 8009e96: f63f af35 bhi.w 8009d04 <_tzset_unlocked_r+0x34> - 8009e9a: e9c7 1203 strd r1, r2, [r7, #12] - 8009e9e: f887 8008 strb.w r8, [r7, #8] - 8009ea2: 617b str r3, [r7, #20] - 8009ea4: 9b0a ldr r3, [sp, #40] ; 0x28 - 8009ea6: eb04 0803 add.w r8, r4, r3 - 8009eaa: 2302 movs r3, #2 - 8009eac: f8ad 301c strh.w r3, [sp, #28] - 8009eb0: 2300 movs r3, #0 - 8009eb2: f8ad 301e strh.w r3, [sp, #30] - 8009eb6: f8ad 3020 strh.w r3, [sp, #32] - 8009eba: 930a str r3, [sp, #40] ; 0x28 - 8009ebc: f898 3000 ldrb.w r3, [r8] - 8009ec0: 2b2f cmp r3, #47 ; 0x2f - 8009ec2: d109 bne.n 8009ed8 <_tzset_unlocked_r+0x208> - 8009ec4: 4633 mov r3, r6 - 8009ec6: 4640 mov r0, r8 - 8009ec8: e9cd a602 strd sl, r6, [sp, #8] - 8009ecc: e9cd b600 strd fp, r6, [sp] - 8009ed0: 493f ldr r1, [pc, #252] ; (8009fd0 <_tzset_unlocked_r+0x300>) - 8009ed2: aa07 add r2, sp, #28 - 8009ed4: f001 ff5a bl 800bd8c - 8009ed8: 213c movs r1, #60 ; 0x3c - 8009eda: f8bd 201e ldrh.w r2, [sp, #30] - 8009ede: f8bd 3020 ldrh.w r3, [sp, #32] - 8009ee2: 3728 adds r7, #40 ; 0x28 - 8009ee4: fb01 3302 mla r3, r1, r2, r3 - 8009ee8: f44f 6161 mov.w r1, #3600 ; 0xe10 - 8009eec: f8bd 201c ldrh.w r2, [sp, #28] - 8009ef0: fb01 3302 mla r3, r1, r2, r3 - 8009ef4: f847 3c10 str.w r3, [r7, #-16] - 8009ef8: 9c0a ldr r4, [sp, #40] ; 0x28 - 8009efa: 4444 add r4, r8 - 8009efc: f1b9 0f00 cmp.w r9, #0 - 8009f00: d021 beq.n 8009f46 <_tzset_unlocked_r+0x276> - 8009f02: 6868 ldr r0, [r5, #4] - 8009f04: f7ff fe28 bl 8009b58 <__tzcalc_limits> - 8009f08: 6aaa ldr r2, [r5, #40] ; 0x28 - 8009f0a: 4b28 ldr r3, [pc, #160] ; (8009fac <_tzset_unlocked_r+0x2dc>) - 8009f0c: 601a str r2, [r3, #0] - 8009f0e: 6d2b ldr r3, [r5, #80] ; 0x50 - 8009f10: 1a9b subs r3, r3, r2 - 8009f12: bf18 it ne - 8009f14: 2301 movne r3, #1 - 8009f16: 4a27 ldr r2, [pc, #156] ; (8009fb4 <_tzset_unlocked_r+0x2e4>) - 8009f18: 6013 str r3, [r2, #0] - 8009f1a: e6f3 b.n 8009d04 <_tzset_unlocked_r+0x34> - 8009f1c: 2b2b cmp r3, #43 ; 0x2b - 8009f1e: f04f 0701 mov.w r7, #1 - 8009f22: bf08 it eq - 8009f24: 3401 addeq r4, #1 - 8009f26: e770 b.n 8009e0a <_tzset_unlocked_r+0x13a> - 8009f28: 213c movs r1, #60 ; 0x3c - 8009f2a: f8bd 201e ldrh.w r2, [sp, #30] - 8009f2e: f8bd 3020 ldrh.w r3, [sp, #32] - 8009f32: fb01 3302 mla r3, r1, r2, r3 - 8009f36: f44f 6161 mov.w r1, #3600 ; 0xe10 - 8009f3a: f8bd 201c ldrh.w r2, [sp, #28] - 8009f3e: fb01 3302 mla r3, r1, r2, r3 - 8009f42: 437b muls r3, r7 - 8009f44: e778 b.n 8009e38 <_tzset_unlocked_r+0x168> - 8009f46: f04f 0901 mov.w r9, #1 - 8009f4a: e77b b.n 8009e44 <_tzset_unlocked_r+0x174> - 8009f4c: f1b8 0f4a cmp.w r8, #74 ; 0x4a - 8009f50: bf0a itet eq - 8009f52: 4643 moveq r3, r8 - 8009f54: 2344 movne r3, #68 ; 0x44 - 8009f56: 3401 addeq r4, #1 - 8009f58: 220a movs r2, #10 - 8009f5a: 4620 mov r0, r4 - 8009f5c: a90b add r1, sp, #44 ; 0x2c - 8009f5e: 9305 str r3, [sp, #20] - 8009f60: f002 f800 bl 800bf64 - 8009f64: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c - 8009f68: 9b05 ldr r3, [sp, #20] - 8009f6a: 45a0 cmp r8, r4 - 8009f6c: f8ad 0026 strh.w r0, [sp, #38] ; 0x26 - 8009f70: d114 bne.n 8009f9c <_tzset_unlocked_r+0x2cc> - 8009f72: 234d movs r3, #77 ; 0x4d - 8009f74: f1b9 0f00 cmp.w r9, #0 - 8009f78: d107 bne.n 8009f8a <_tzset_unlocked_r+0x2ba> - 8009f7a: 2103 movs r1, #3 - 8009f7c: 722b strb r3, [r5, #8] - 8009f7e: 2302 movs r3, #2 - 8009f80: f8c5 9014 str.w r9, [r5, #20] - 8009f84: e9c5 1303 strd r1, r3, [r5, #12] - 8009f88: e78f b.n 8009eaa <_tzset_unlocked_r+0x1da> - 8009f8a: 220b movs r2, #11 - 8009f8c: f885 3030 strb.w r3, [r5, #48] ; 0x30 - 8009f90: 2301 movs r3, #1 - 8009f92: e9c5 230d strd r2, r3, [r5, #52] ; 0x34 - 8009f96: 2300 movs r3, #0 - 8009f98: 63eb str r3, [r5, #60] ; 0x3c - 8009f9a: e786 b.n 8009eaa <_tzset_unlocked_r+0x1da> - 8009f9c: b280 uxth r0, r0 - 8009f9e: 723b strb r3, [r7, #8] - 8009fa0: 6178 str r0, [r7, #20] - 8009fa2: e782 b.n 8009eaa <_tzset_unlocked_r+0x1da> - 8009fa4: 0800d152 .word 0x0800d152 - 8009fa8: 20001d38 .word 0x20001d38 - 8009fac: 20001d40 .word 0x20001d40 - 8009fb0: 0800d155 .word 0x0800d155 - 8009fb4: 20001d3c .word 0x20001d3c - 8009fb8: 20000078 .word 0x20000078 - 8009fbc: 20001d2b .word 0x20001d2b - 8009fc0: 0800d159 .word 0x0800d159 - 8009fc4: 0800d17c .word 0x0800d17c - 8009fc8: 20001d20 .word 0x20001d20 - 8009fcc: 0800d168 .word 0x0800d168 - 8009fd0: 0800d17b .word 0x0800d17b +08009f24 <__tz_unlock>: + 8009f24: 4801 ldr r0, [pc, #4] ; (8009f2c <__tz_unlock+0x8>) + 8009f26: f001 bafa b.w 800b51e <__retarget_lock_release> + 8009f2a: bf00 nop + 8009f2c: 200033c8 .word 0x200033c8 -08009fd4 <__swbuf_r>: - 8009fd4: b5f8 push {r3, r4, r5, r6, r7, lr} - 8009fd6: 460e mov r6, r1 - 8009fd8: 4614 mov r4, r2 - 8009fda: 4605 mov r5, r0 - 8009fdc: b118 cbz r0, 8009fe6 <__swbuf_r+0x12> - 8009fde: 6983 ldr r3, [r0, #24] - 8009fe0: b90b cbnz r3, 8009fe6 <__swbuf_r+0x12> - 8009fe2: f001 f865 bl 800b0b0 <__sinit> - 8009fe6: 4b21 ldr r3, [pc, #132] ; (800a06c <__swbuf_r+0x98>) - 8009fe8: 429c cmp r4, r3 - 8009fea: d12b bne.n 800a044 <__swbuf_r+0x70> - 8009fec: 686c ldr r4, [r5, #4] - 8009fee: 69a3 ldr r3, [r4, #24] - 8009ff0: 60a3 str r3, [r4, #8] - 8009ff2: 89a3 ldrh r3, [r4, #12] - 8009ff4: 071a lsls r2, r3, #28 - 8009ff6: d52f bpl.n 800a058 <__swbuf_r+0x84> - 8009ff8: 6923 ldr r3, [r4, #16] - 8009ffa: b36b cbz r3, 800a058 <__swbuf_r+0x84> - 8009ffc: 6923 ldr r3, [r4, #16] - 8009ffe: 6820 ldr r0, [r4, #0] - 800a000: b2f6 uxtb r6, r6 - 800a002: 1ac0 subs r0, r0, r3 - 800a004: 6963 ldr r3, [r4, #20] - 800a006: 4637 mov r7, r6 - 800a008: 4283 cmp r3, r0 - 800a00a: dc04 bgt.n 800a016 <__swbuf_r+0x42> - 800a00c: 4621 mov r1, r4 - 800a00e: 4628 mov r0, r5 - 800a010: f000 ffba bl 800af88 <_fflush_r> - 800a014: bb30 cbnz r0, 800a064 <__swbuf_r+0x90> - 800a016: 68a3 ldr r3, [r4, #8] - 800a018: 3001 adds r0, #1 - 800a01a: 3b01 subs r3, #1 - 800a01c: 60a3 str r3, [r4, #8] - 800a01e: 6823 ldr r3, [r4, #0] - 800a020: 1c5a adds r2, r3, #1 - 800a022: 6022 str r2, [r4, #0] - 800a024: 701e strb r6, [r3, #0] - 800a026: 6963 ldr r3, [r4, #20] - 800a028: 4283 cmp r3, r0 - 800a02a: d004 beq.n 800a036 <__swbuf_r+0x62> - 800a02c: 89a3 ldrh r3, [r4, #12] - 800a02e: 07db lsls r3, r3, #31 - 800a030: d506 bpl.n 800a040 <__swbuf_r+0x6c> - 800a032: 2e0a cmp r6, #10 - 800a034: d104 bne.n 800a040 <__swbuf_r+0x6c> - 800a036: 4621 mov r1, r4 - 800a038: 4628 mov r0, r5 - 800a03a: f000 ffa5 bl 800af88 <_fflush_r> - 800a03e: b988 cbnz r0, 800a064 <__swbuf_r+0x90> - 800a040: 4638 mov r0, r7 - 800a042: bdf8 pop {r3, r4, r5, r6, r7, pc} - 800a044: 4b0a ldr r3, [pc, #40] ; (800a070 <__swbuf_r+0x9c>) - 800a046: 429c cmp r4, r3 - 800a048: d101 bne.n 800a04e <__swbuf_r+0x7a> - 800a04a: 68ac ldr r4, [r5, #8] - 800a04c: e7cf b.n 8009fee <__swbuf_r+0x1a> - 800a04e: 4b09 ldr r3, [pc, #36] ; (800a074 <__swbuf_r+0xa0>) - 800a050: 429c cmp r4, r3 - 800a052: bf08 it eq - 800a054: 68ec ldreq r4, [r5, #12] - 800a056: e7ca b.n 8009fee <__swbuf_r+0x1a> - 800a058: 4621 mov r1, r4 - 800a05a: 4628 mov r0, r5 - 800a05c: f000 f80c bl 800a078 <__swsetup_r> - 800a060: 2800 cmp r0, #0 - 800a062: d0cb beq.n 8009ffc <__swbuf_r+0x28> - 800a064: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff - 800a068: e7ea b.n 800a040 <__swbuf_r+0x6c> - 800a06a: bf00 nop - 800a06c: 0800d264 .word 0x0800d264 - 800a070: 0800d284 .word 0x0800d284 - 800a074: 0800d244 .word 0x0800d244 +08009f30 <_tzset_unlocked>: + 8009f30: 4b01 ldr r3, [pc, #4] ; (8009f38 <_tzset_unlocked+0x8>) + 8009f32: 6818 ldr r0, [r3, #0] + 8009f34: f000 b802 b.w 8009f3c <_tzset_unlocked_r> + 8009f38: 20000014 .word 0x20000014 -0800a078 <__swsetup_r>: - 800a078: 4b32 ldr r3, [pc, #200] ; (800a144 <__swsetup_r+0xcc>) - 800a07a: b570 push {r4, r5, r6, lr} - 800a07c: 681d ldr r5, [r3, #0] - 800a07e: 4606 mov r6, r0 - 800a080: 460c mov r4, r1 - 800a082: b125 cbz r5, 800a08e <__swsetup_r+0x16> - 800a084: 69ab ldr r3, [r5, #24] - 800a086: b913 cbnz r3, 800a08e <__swsetup_r+0x16> - 800a088: 4628 mov r0, r5 - 800a08a: f001 f811 bl 800b0b0 <__sinit> - 800a08e: 4b2e ldr r3, [pc, #184] ; (800a148 <__swsetup_r+0xd0>) - 800a090: 429c cmp r4, r3 - 800a092: d10f bne.n 800a0b4 <__swsetup_r+0x3c> - 800a094: 686c ldr r4, [r5, #4] - 800a096: 89a3 ldrh r3, [r4, #12] - 800a098: f9b4 200c ldrsh.w r2, [r4, #12] - 800a09c: 0719 lsls r1, r3, #28 - 800a09e: d42c bmi.n 800a0fa <__swsetup_r+0x82> - 800a0a0: 06dd lsls r5, r3, #27 - 800a0a2: d411 bmi.n 800a0c8 <__swsetup_r+0x50> - 800a0a4: 2309 movs r3, #9 - 800a0a6: 6033 str r3, [r6, #0] - 800a0a8: f042 0340 orr.w r3, r2, #64 ; 0x40 - 800a0ac: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800a0b0: 81a3 strh r3, [r4, #12] - 800a0b2: e03e b.n 800a132 <__swsetup_r+0xba> - 800a0b4: 4b25 ldr r3, [pc, #148] ; (800a14c <__swsetup_r+0xd4>) - 800a0b6: 429c cmp r4, r3 - 800a0b8: d101 bne.n 800a0be <__swsetup_r+0x46> - 800a0ba: 68ac ldr r4, [r5, #8] - 800a0bc: e7eb b.n 800a096 <__swsetup_r+0x1e> - 800a0be: 4b24 ldr r3, [pc, #144] ; (800a150 <__swsetup_r+0xd8>) - 800a0c0: 429c cmp r4, r3 - 800a0c2: bf08 it eq - 800a0c4: 68ec ldreq r4, [r5, #12] - 800a0c6: e7e6 b.n 800a096 <__swsetup_r+0x1e> - 800a0c8: 0758 lsls r0, r3, #29 - 800a0ca: d512 bpl.n 800a0f2 <__swsetup_r+0x7a> - 800a0cc: 6b61 ldr r1, [r4, #52] ; 0x34 - 800a0ce: b141 cbz r1, 800a0e2 <__swsetup_r+0x6a> - 800a0d0: f104 0344 add.w r3, r4, #68 ; 0x44 - 800a0d4: 4299 cmp r1, r3 - 800a0d6: d002 beq.n 800a0de <__swsetup_r+0x66> - 800a0d8: 4630 mov r0, r6 - 800a0da: f7fe ff4f bl 8008f7c <_free_r> - 800a0de: 2300 movs r3, #0 - 800a0e0: 6363 str r3, [r4, #52] ; 0x34 - 800a0e2: 89a3 ldrh r3, [r4, #12] - 800a0e4: f023 0324 bic.w r3, r3, #36 ; 0x24 - 800a0e8: 81a3 strh r3, [r4, #12] - 800a0ea: 2300 movs r3, #0 - 800a0ec: 6063 str r3, [r4, #4] - 800a0ee: 6923 ldr r3, [r4, #16] - 800a0f0: 6023 str r3, [r4, #0] - 800a0f2: 89a3 ldrh r3, [r4, #12] - 800a0f4: f043 0308 orr.w r3, r3, #8 - 800a0f8: 81a3 strh r3, [r4, #12] - 800a0fa: 6923 ldr r3, [r4, #16] - 800a0fc: b94b cbnz r3, 800a112 <__swsetup_r+0x9a> - 800a0fe: 89a3 ldrh r3, [r4, #12] - 800a100: f403 7320 and.w r3, r3, #640 ; 0x280 - 800a104: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 800a108: d003 beq.n 800a112 <__swsetup_r+0x9a> - 800a10a: 4621 mov r1, r4 - 800a10c: 4630 mov r0, r6 - 800a10e: f001 f8f5 bl 800b2fc <__smakebuf_r> - 800a112: 89a0 ldrh r0, [r4, #12] - 800a114: f9b4 200c ldrsh.w r2, [r4, #12] - 800a118: f010 0301 ands.w r3, r0, #1 - 800a11c: d00a beq.n 800a134 <__swsetup_r+0xbc> - 800a11e: 2300 movs r3, #0 - 800a120: 60a3 str r3, [r4, #8] - 800a122: 6963 ldr r3, [r4, #20] - 800a124: 425b negs r3, r3 - 800a126: 61a3 str r3, [r4, #24] - 800a128: 6923 ldr r3, [r4, #16] - 800a12a: b943 cbnz r3, 800a13e <__swsetup_r+0xc6> - 800a12c: f010 0080 ands.w r0, r0, #128 ; 0x80 - 800a130: d1ba bne.n 800a0a8 <__swsetup_r+0x30> - 800a132: bd70 pop {r4, r5, r6, pc} - 800a134: 0781 lsls r1, r0, #30 - 800a136: bf58 it pl - 800a138: 6963 ldrpl r3, [r4, #20] - 800a13a: 60a3 str r3, [r4, #8] - 800a13c: e7f4 b.n 800a128 <__swsetup_r+0xb0> - 800a13e: 2000 movs r0, #0 - 800a140: e7f7 b.n 800a132 <__swsetup_r+0xba> - 800a142: bf00 nop - 800a144: 20000014 .word 0x20000014 - 800a148: 0800d264 .word 0x0800d264 - 800a14c: 0800d284 .word 0x0800d284 - 800a150: 0800d244 .word 0x0800d244 +08009f3c <_tzset_unlocked_r>: + 8009f3c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8009f40: b08d sub sp, #52 ; 0x34 + 8009f42: 4607 mov r7, r0 + 8009f44: f001 fae0 bl 800b508 <__gettzinfo> + 8009f48: 49b1 ldr r1, [pc, #708] ; (800a210 <_tzset_unlocked_r+0x2d4>) + 8009f4a: 4605 mov r5, r0 + 8009f4c: 4638 mov r0, r7 + 8009f4e: f001 fad3 bl 800b4f8 <_getenv_r> + 8009f52: 4eb0 ldr r6, [pc, #704] ; (800a214 <_tzset_unlocked_r+0x2d8>) + 8009f54: 4604 mov r4, r0 + 8009f56: b970 cbnz r0, 8009f76 <_tzset_unlocked_r+0x3a> + 8009f58: 4baf ldr r3, [pc, #700] ; (800a218 <_tzset_unlocked_r+0x2dc>) + 8009f5a: 4ab0 ldr r2, [pc, #704] ; (800a21c <_tzset_unlocked_r+0x2e0>) + 8009f5c: 6018 str r0, [r3, #0] + 8009f5e: 4bb0 ldr r3, [pc, #704] ; (800a220 <_tzset_unlocked_r+0x2e4>) + 8009f60: 6018 str r0, [r3, #0] + 8009f62: 4bb0 ldr r3, [pc, #704] ; (800a224 <_tzset_unlocked_r+0x2e8>) + 8009f64: 6830 ldr r0, [r6, #0] + 8009f66: e9c3 2200 strd r2, r2, [r3] + 8009f6a: f7ff f91f bl 80091ac + 8009f6e: 6034 str r4, [r6, #0] + 8009f70: b00d add sp, #52 ; 0x34 + 8009f72: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8009f76: 6831 ldr r1, [r6, #0] + 8009f78: 2900 cmp r1, #0 + 8009f7a: d162 bne.n 800a042 <_tzset_unlocked_r+0x106> + 8009f7c: 6830 ldr r0, [r6, #0] + 8009f7e: f7ff f915 bl 80091ac + 8009f82: 4620 mov r0, r4 + 8009f84: f7f6 f950 bl 8000228 + 8009f88: 1c41 adds r1, r0, #1 + 8009f8a: 4638 mov r0, r7 + 8009f8c: f7ff f994 bl 80092b8 <_malloc_r> + 8009f90: 6030 str r0, [r6, #0] + 8009f92: 2800 cmp r0, #0 + 8009f94: d15a bne.n 800a04c <_tzset_unlocked_r+0x110> + 8009f96: 7823 ldrb r3, [r4, #0] + 8009f98: ae0a add r6, sp, #40 ; 0x28 + 8009f9a: 2b3a cmp r3, #58 ; 0x3a + 8009f9c: bf08 it eq + 8009f9e: 3401 addeq r4, #1 + 8009fa0: 4633 mov r3, r6 + 8009fa2: 4620 mov r0, r4 + 8009fa4: 4aa0 ldr r2, [pc, #640] ; (800a228 <_tzset_unlocked_r+0x2ec>) + 8009fa6: 49a1 ldr r1, [pc, #644] ; (800a22c <_tzset_unlocked_r+0x2f0>) + 8009fa8: f002 f828 bl 800bffc + 8009fac: 2800 cmp r0, #0 + 8009fae: dddf ble.n 8009f70 <_tzset_unlocked_r+0x34> + 8009fb0: 9b0a ldr r3, [sp, #40] ; 0x28 + 8009fb2: 18e7 adds r7, r4, r3 + 8009fb4: 5ce3 ldrb r3, [r4, r3] + 8009fb6: 2b2d cmp r3, #45 ; 0x2d + 8009fb8: d14c bne.n 800a054 <_tzset_unlocked_r+0x118> + 8009fba: f04f 38ff mov.w r8, #4294967295 ; 0xffffffff + 8009fbe: 3701 adds r7, #1 + 8009fc0: 2400 movs r4, #0 + 8009fc2: f10d 0a20 add.w sl, sp, #32 + 8009fc6: f10d 0b1e add.w fp, sp, #30 + 8009fca: 4633 mov r3, r6 + 8009fcc: 4638 mov r0, r7 + 8009fce: e9cd 6a01 strd r6, sl, [sp, #4] + 8009fd2: 4997 ldr r1, [pc, #604] ; (800a230 <_tzset_unlocked_r+0x2f4>) + 8009fd4: 9603 str r6, [sp, #12] + 8009fd6: f8cd b000 str.w fp, [sp] + 8009fda: aa07 add r2, sp, #28 + 8009fdc: f8ad 401e strh.w r4, [sp, #30] + 8009fe0: f8ad 4020 strh.w r4, [sp, #32] + 8009fe4: f002 f80a bl 800bffc + 8009fe8: 42a0 cmp r0, r4 + 8009fea: ddc1 ble.n 8009f70 <_tzset_unlocked_r+0x34> + 8009fec: 213c movs r1, #60 ; 0x3c + 8009fee: f8bd 201e ldrh.w r2, [sp, #30] + 8009ff2: f8bd 3020 ldrh.w r3, [sp, #32] + 8009ff6: f8df 923c ldr.w r9, [pc, #572] ; 800a234 <_tzset_unlocked_r+0x2f8> + 8009ffa: fb01 3302 mla r3, r1, r2, r3 + 8009ffe: f44f 6161 mov.w r1, #3600 ; 0xe10 + 800a002: f8bd 201c ldrh.w r2, [sp, #28] + 800a006: fb01 3302 mla r3, r1, r2, r3 + 800a00a: fb08 f303 mul.w r3, r8, r3 + 800a00e: f8df 8214 ldr.w r8, [pc, #532] ; 800a224 <_tzset_unlocked_r+0x2e8> + 800a012: 62ab str r3, [r5, #40] ; 0x28 + 800a014: 4b84 ldr r3, [pc, #528] ; (800a228 <_tzset_unlocked_r+0x2ec>) + 800a016: 464a mov r2, r9 + 800a018: f8c8 3000 str.w r3, [r8] + 800a01c: 9b0a ldr r3, [sp, #40] ; 0x28 + 800a01e: 4983 ldr r1, [pc, #524] ; (800a22c <_tzset_unlocked_r+0x2f0>) + 800a020: 441f add r7, r3 + 800a022: 4638 mov r0, r7 + 800a024: 4633 mov r3, r6 + 800a026: f001 ffe9 bl 800bffc + 800a02a: 42a0 cmp r0, r4 + 800a02c: dc18 bgt.n 800a060 <_tzset_unlocked_r+0x124> + 800a02e: f8d8 3000 ldr.w r3, [r8] + 800a032: 6aaa ldr r2, [r5, #40] ; 0x28 + 800a034: f8c8 3004 str.w r3, [r8, #4] + 800a038: 4b77 ldr r3, [pc, #476] ; (800a218 <_tzset_unlocked_r+0x2dc>) + 800a03a: 601a str r2, [r3, #0] + 800a03c: 4b78 ldr r3, [pc, #480] ; (800a220 <_tzset_unlocked_r+0x2e4>) + 800a03e: 601c str r4, [r3, #0] + 800a040: e796 b.n 8009f70 <_tzset_unlocked_r+0x34> + 800a042: f7f6 f8f9 bl 8000238 + 800a046: 2800 cmp r0, #0 + 800a048: d198 bne.n 8009f7c <_tzset_unlocked_r+0x40> + 800a04a: e791 b.n 8009f70 <_tzset_unlocked_r+0x34> + 800a04c: 4621 mov r1, r4 + 800a04e: f002 f844 bl 800c0da + 800a052: e7a0 b.n 8009f96 <_tzset_unlocked_r+0x5a> + 800a054: 2b2b cmp r3, #43 ; 0x2b + 800a056: f04f 0801 mov.w r8, #1 + 800a05a: bf08 it eq + 800a05c: 3701 addeq r7, #1 + 800a05e: e7af b.n 8009fc0 <_tzset_unlocked_r+0x84> + 800a060: 9b0a ldr r3, [sp, #40] ; 0x28 + 800a062: f8c8 9004 str.w r9, [r8, #4] + 800a066: 18fc adds r4, r7, r3 + 800a068: 5cfb ldrb r3, [r7, r3] + 800a06a: 2b2d cmp r3, #45 ; 0x2d + 800a06c: f040 808c bne.w 800a188 <_tzset_unlocked_r+0x24c> + 800a070: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff + 800a074: 3401 adds r4, #1 + 800a076: 2300 movs r3, #0 + 800a078: 4620 mov r0, r4 + 800a07a: f8ad 301c strh.w r3, [sp, #28] + 800a07e: f8ad 301e strh.w r3, [sp, #30] + 800a082: f8ad 3020 strh.w r3, [sp, #32] + 800a086: 930a str r3, [sp, #40] ; 0x28 + 800a088: e9cd a602 strd sl, r6, [sp, #8] + 800a08c: 4633 mov r3, r6 + 800a08e: e9cd b600 strd fp, r6, [sp] + 800a092: 4967 ldr r1, [pc, #412] ; (800a230 <_tzset_unlocked_r+0x2f4>) + 800a094: aa07 add r2, sp, #28 + 800a096: f001 ffb1 bl 800bffc + 800a09a: 2800 cmp r0, #0 + 800a09c: dc7a bgt.n 800a194 <_tzset_unlocked_r+0x258> + 800a09e: 6aab ldr r3, [r5, #40] ; 0x28 + 800a0a0: f5a3 6361 sub.w r3, r3, #3600 ; 0xe10 + 800a0a4: 462f mov r7, r5 + 800a0a6: f04f 0900 mov.w r9, #0 + 800a0aa: 652b str r3, [r5, #80] ; 0x50 + 800a0ac: 9b0a ldr r3, [sp, #40] ; 0x28 + 800a0ae: 441c add r4, r3 + 800a0b0: 7823 ldrb r3, [r4, #0] + 800a0b2: 2b2c cmp r3, #44 ; 0x2c + 800a0b4: bf08 it eq + 800a0b6: 3401 addeq r4, #1 + 800a0b8: f894 8000 ldrb.w r8, [r4] + 800a0bc: f1b8 0f4d cmp.w r8, #77 ; 0x4d + 800a0c0: d17a bne.n 800a1b8 <_tzset_unlocked_r+0x27c> + 800a0c2: f10d 0326 add.w r3, sp, #38 ; 0x26 + 800a0c6: e9cd 6301 strd r6, r3, [sp, #4] + 800a0ca: ab09 add r3, sp, #36 ; 0x24 + 800a0cc: 9300 str r3, [sp, #0] + 800a0ce: 4620 mov r0, r4 + 800a0d0: 4633 mov r3, r6 + 800a0d2: 4959 ldr r1, [pc, #356] ; (800a238 <_tzset_unlocked_r+0x2fc>) + 800a0d4: 9603 str r6, [sp, #12] + 800a0d6: f10d 0222 add.w r2, sp, #34 ; 0x22 + 800a0da: f001 ff8f bl 800bffc + 800a0de: 2803 cmp r0, #3 + 800a0e0: f47f af46 bne.w 8009f70 <_tzset_unlocked_r+0x34> + 800a0e4: f8bd 1022 ldrh.w r1, [sp, #34] ; 0x22 + 800a0e8: 1e4b subs r3, r1, #1 + 800a0ea: 2b0b cmp r3, #11 + 800a0ec: f63f af40 bhi.w 8009f70 <_tzset_unlocked_r+0x34> + 800a0f0: f8bd 2024 ldrh.w r2, [sp, #36] ; 0x24 + 800a0f4: 1e53 subs r3, r2, #1 + 800a0f6: 2b04 cmp r3, #4 + 800a0f8: f63f af3a bhi.w 8009f70 <_tzset_unlocked_r+0x34> + 800a0fc: f8bd 3026 ldrh.w r3, [sp, #38] ; 0x26 + 800a100: 2b06 cmp r3, #6 + 800a102: f63f af35 bhi.w 8009f70 <_tzset_unlocked_r+0x34> + 800a106: e9c7 1203 strd r1, r2, [r7, #12] + 800a10a: f887 8008 strb.w r8, [r7, #8] + 800a10e: 617b str r3, [r7, #20] + 800a110: 9b0a ldr r3, [sp, #40] ; 0x28 + 800a112: eb04 0803 add.w r8, r4, r3 + 800a116: 2302 movs r3, #2 + 800a118: f8ad 301c strh.w r3, [sp, #28] + 800a11c: 2300 movs r3, #0 + 800a11e: f8ad 301e strh.w r3, [sp, #30] + 800a122: f8ad 3020 strh.w r3, [sp, #32] + 800a126: 930a str r3, [sp, #40] ; 0x28 + 800a128: f898 3000 ldrb.w r3, [r8] + 800a12c: 2b2f cmp r3, #47 ; 0x2f + 800a12e: d109 bne.n 800a144 <_tzset_unlocked_r+0x208> + 800a130: 4633 mov r3, r6 + 800a132: 4640 mov r0, r8 + 800a134: e9cd a602 strd sl, r6, [sp, #8] + 800a138: e9cd b600 strd fp, r6, [sp] + 800a13c: 493f ldr r1, [pc, #252] ; (800a23c <_tzset_unlocked_r+0x300>) + 800a13e: aa07 add r2, sp, #28 + 800a140: f001 ff5c bl 800bffc + 800a144: 213c movs r1, #60 ; 0x3c + 800a146: f8bd 201e ldrh.w r2, [sp, #30] + 800a14a: f8bd 3020 ldrh.w r3, [sp, #32] + 800a14e: 3728 adds r7, #40 ; 0x28 + 800a150: fb01 3302 mla r3, r1, r2, r3 + 800a154: f44f 6161 mov.w r1, #3600 ; 0xe10 + 800a158: f8bd 201c ldrh.w r2, [sp, #28] + 800a15c: fb01 3302 mla r3, r1, r2, r3 + 800a160: f847 3c10 str.w r3, [r7, #-16] + 800a164: 9c0a ldr r4, [sp, #40] ; 0x28 + 800a166: 4444 add r4, r8 + 800a168: f1b9 0f00 cmp.w r9, #0 + 800a16c: d021 beq.n 800a1b2 <_tzset_unlocked_r+0x276> + 800a16e: 6868 ldr r0, [r5, #4] + 800a170: f7ff fe28 bl 8009dc4 <__tzcalc_limits> + 800a174: 6aaa ldr r2, [r5, #40] ; 0x28 + 800a176: 4b28 ldr r3, [pc, #160] ; (800a218 <_tzset_unlocked_r+0x2dc>) + 800a178: 601a str r2, [r3, #0] + 800a17a: 6d2b ldr r3, [r5, #80] ; 0x50 + 800a17c: 1a9b subs r3, r3, r2 + 800a17e: bf18 it ne + 800a180: 2301 movne r3, #1 + 800a182: 4a27 ldr r2, [pc, #156] ; (800a220 <_tzset_unlocked_r+0x2e4>) + 800a184: 6013 str r3, [r2, #0] + 800a186: e6f3 b.n 8009f70 <_tzset_unlocked_r+0x34> + 800a188: 2b2b cmp r3, #43 ; 0x2b + 800a18a: f04f 0701 mov.w r7, #1 + 800a18e: bf08 it eq + 800a190: 3401 addeq r4, #1 + 800a192: e770 b.n 800a076 <_tzset_unlocked_r+0x13a> + 800a194: 213c movs r1, #60 ; 0x3c + 800a196: f8bd 201e ldrh.w r2, [sp, #30] + 800a19a: f8bd 3020 ldrh.w r3, [sp, #32] + 800a19e: fb01 3302 mla r3, r1, r2, r3 + 800a1a2: f44f 6161 mov.w r1, #3600 ; 0xe10 + 800a1a6: f8bd 201c ldrh.w r2, [sp, #28] + 800a1aa: fb01 3302 mla r3, r1, r2, r3 + 800a1ae: 437b muls r3, r7 + 800a1b0: e778 b.n 800a0a4 <_tzset_unlocked_r+0x168> + 800a1b2: f04f 0901 mov.w r9, #1 + 800a1b6: e77b b.n 800a0b0 <_tzset_unlocked_r+0x174> + 800a1b8: f1b8 0f4a cmp.w r8, #74 ; 0x4a + 800a1bc: bf0a itet eq + 800a1be: 4643 moveq r3, r8 + 800a1c0: 2344 movne r3, #68 ; 0x44 + 800a1c2: 3401 addeq r4, #1 + 800a1c4: 220a movs r2, #10 + 800a1c6: 4620 mov r0, r4 + 800a1c8: a90b add r1, sp, #44 ; 0x2c + 800a1ca: 9305 str r3, [sp, #20] + 800a1cc: f002 f802 bl 800c1d4 + 800a1d0: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c + 800a1d4: 9b05 ldr r3, [sp, #20] + 800a1d6: 45a0 cmp r8, r4 + 800a1d8: f8ad 0026 strh.w r0, [sp, #38] ; 0x26 + 800a1dc: d114 bne.n 800a208 <_tzset_unlocked_r+0x2cc> + 800a1de: 234d movs r3, #77 ; 0x4d + 800a1e0: f1b9 0f00 cmp.w r9, #0 + 800a1e4: d107 bne.n 800a1f6 <_tzset_unlocked_r+0x2ba> + 800a1e6: 2103 movs r1, #3 + 800a1e8: 722b strb r3, [r5, #8] + 800a1ea: 2302 movs r3, #2 + 800a1ec: f8c5 9014 str.w r9, [r5, #20] + 800a1f0: e9c5 1303 strd r1, r3, [r5, #12] + 800a1f4: e78f b.n 800a116 <_tzset_unlocked_r+0x1da> + 800a1f6: 220b movs r2, #11 + 800a1f8: f885 3030 strb.w r3, [r5, #48] ; 0x30 + 800a1fc: 2301 movs r3, #1 + 800a1fe: e9c5 230d strd r2, r3, [r5, #52] ; 0x34 + 800a202: 2300 movs r3, #0 + 800a204: 63eb str r3, [r5, #60] ; 0x3c + 800a206: e786 b.n 800a116 <_tzset_unlocked_r+0x1da> + 800a208: b280 uxth r0, r0 + 800a20a: 723b strb r3, [r7, #8] + 800a20c: 6178 str r0, [r7, #20] + 800a20e: e782 b.n 800a116 <_tzset_unlocked_r+0x1da> + 800a210: 0800d3e2 .word 0x0800d3e2 + 800a214: 200033b8 .word 0x200033b8 + 800a218: 200033c0 .word 0x200033c0 + 800a21c: 0800d3e5 .word 0x0800d3e5 + 800a220: 200033bc .word 0x200033bc + 800a224: 20000078 .word 0x20000078 + 800a228: 200033ab .word 0x200033ab + 800a22c: 0800d3e9 .word 0x0800d3e9 + 800a230: 0800d40c .word 0x0800d40c + 800a234: 200033a0 .word 0x200033a0 + 800a238: 0800d3f8 .word 0x0800d3f8 + 800a23c: 0800d40b .word 0x0800d40b -0800a154 <__assert_func>: - 800a154: b51f push {r0, r1, r2, r3, r4, lr} - 800a156: 4614 mov r4, r2 - 800a158: 461a mov r2, r3 - 800a15a: 4b09 ldr r3, [pc, #36] ; (800a180 <__assert_func+0x2c>) - 800a15c: 4605 mov r5, r0 - 800a15e: 681b ldr r3, [r3, #0] - 800a160: 68d8 ldr r0, [r3, #12] - 800a162: b14c cbz r4, 800a178 <__assert_func+0x24> - 800a164: 4b07 ldr r3, [pc, #28] ; (800a184 <__assert_func+0x30>) - 800a166: e9cd 3401 strd r3, r4, [sp, #4] - 800a16a: 9100 str r1, [sp, #0] - 800a16c: 462b mov r3, r5 - 800a16e: 4906 ldr r1, [pc, #24] ; (800a188 <__assert_func+0x34>) - 800a170: f001 f81c bl 800b1ac - 800a174: f001 ff12 bl 800bf9c - 800a178: 4b04 ldr r3, [pc, #16] ; (800a18c <__assert_func+0x38>) - 800a17a: 461c mov r4, r3 - 800a17c: e7f3 b.n 800a166 <__assert_func+0x12> - 800a17e: bf00 nop - 800a180: 20000014 .word 0x20000014 - 800a184: 0800d18e .word 0x0800d18e - 800a188: 0800d19b .word 0x0800d19b - 800a18c: 0800d1c9 .word 0x0800d1c9 +0800a240 <__swbuf_r>: + 800a240: b5f8 push {r3, r4, r5, r6, r7, lr} + 800a242: 460e mov r6, r1 + 800a244: 4614 mov r4, r2 + 800a246: 4605 mov r5, r0 + 800a248: b118 cbz r0, 800a252 <__swbuf_r+0x12> + 800a24a: 6983 ldr r3, [r0, #24] + 800a24c: b90b cbnz r3, 800a252 <__swbuf_r+0x12> + 800a24e: f001 f867 bl 800b320 <__sinit> + 800a252: 4b21 ldr r3, [pc, #132] ; (800a2d8 <__swbuf_r+0x98>) + 800a254: 429c cmp r4, r3 + 800a256: d12b bne.n 800a2b0 <__swbuf_r+0x70> + 800a258: 686c ldr r4, [r5, #4] + 800a25a: 69a3 ldr r3, [r4, #24] + 800a25c: 60a3 str r3, [r4, #8] + 800a25e: 89a3 ldrh r3, [r4, #12] + 800a260: 071a lsls r2, r3, #28 + 800a262: d52f bpl.n 800a2c4 <__swbuf_r+0x84> + 800a264: 6923 ldr r3, [r4, #16] + 800a266: b36b cbz r3, 800a2c4 <__swbuf_r+0x84> + 800a268: 6923 ldr r3, [r4, #16] + 800a26a: 6820 ldr r0, [r4, #0] + 800a26c: b2f6 uxtb r6, r6 + 800a26e: 1ac0 subs r0, r0, r3 + 800a270: 6963 ldr r3, [r4, #20] + 800a272: 4637 mov r7, r6 + 800a274: 4283 cmp r3, r0 + 800a276: dc04 bgt.n 800a282 <__swbuf_r+0x42> + 800a278: 4621 mov r1, r4 + 800a27a: 4628 mov r0, r5 + 800a27c: f000 ffbc bl 800b1f8 <_fflush_r> + 800a280: bb30 cbnz r0, 800a2d0 <__swbuf_r+0x90> + 800a282: 68a3 ldr r3, [r4, #8] + 800a284: 3001 adds r0, #1 + 800a286: 3b01 subs r3, #1 + 800a288: 60a3 str r3, [r4, #8] + 800a28a: 6823 ldr r3, [r4, #0] + 800a28c: 1c5a adds r2, r3, #1 + 800a28e: 6022 str r2, [r4, #0] + 800a290: 701e strb r6, [r3, #0] + 800a292: 6963 ldr r3, [r4, #20] + 800a294: 4283 cmp r3, r0 + 800a296: d004 beq.n 800a2a2 <__swbuf_r+0x62> + 800a298: 89a3 ldrh r3, [r4, #12] + 800a29a: 07db lsls r3, r3, #31 + 800a29c: d506 bpl.n 800a2ac <__swbuf_r+0x6c> + 800a29e: 2e0a cmp r6, #10 + 800a2a0: d104 bne.n 800a2ac <__swbuf_r+0x6c> + 800a2a2: 4621 mov r1, r4 + 800a2a4: 4628 mov r0, r5 + 800a2a6: f000 ffa7 bl 800b1f8 <_fflush_r> + 800a2aa: b988 cbnz r0, 800a2d0 <__swbuf_r+0x90> + 800a2ac: 4638 mov r0, r7 + 800a2ae: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800a2b0: 4b0a ldr r3, [pc, #40] ; (800a2dc <__swbuf_r+0x9c>) + 800a2b2: 429c cmp r4, r3 + 800a2b4: d101 bne.n 800a2ba <__swbuf_r+0x7a> + 800a2b6: 68ac ldr r4, [r5, #8] + 800a2b8: e7cf b.n 800a25a <__swbuf_r+0x1a> + 800a2ba: 4b09 ldr r3, [pc, #36] ; (800a2e0 <__swbuf_r+0xa0>) + 800a2bc: 429c cmp r4, r3 + 800a2be: bf08 it eq + 800a2c0: 68ec ldreq r4, [r5, #12] + 800a2c2: e7ca b.n 800a25a <__swbuf_r+0x1a> + 800a2c4: 4621 mov r1, r4 + 800a2c6: 4628 mov r0, r5 + 800a2c8: f000 f80c bl 800a2e4 <__swsetup_r> + 800a2cc: 2800 cmp r0, #0 + 800a2ce: d0cb beq.n 800a268 <__swbuf_r+0x28> + 800a2d0: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff + 800a2d4: e7ea b.n 800a2ac <__swbuf_r+0x6c> + 800a2d6: bf00 nop + 800a2d8: 0800d4f4 .word 0x0800d4f4 + 800a2dc: 0800d514 .word 0x0800d514 + 800a2e0: 0800d4d4 .word 0x0800d4d4 -0800a190 : - 800a190: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800a194: 6903 ldr r3, [r0, #16] - 800a196: 690c ldr r4, [r1, #16] - 800a198: 4607 mov r7, r0 - 800a19a: 42a3 cmp r3, r4 - 800a19c: f2c0 8082 blt.w 800a2a4 - 800a1a0: 3c01 subs r4, #1 - 800a1a2: f100 0514 add.w r5, r0, #20 - 800a1a6: f101 0814 add.w r8, r1, #20 - 800a1aa: eb05 0384 add.w r3, r5, r4, lsl #2 - 800a1ae: 9301 str r3, [sp, #4] - 800a1b0: f858 3024 ldr.w r3, [r8, r4, lsl #2] - 800a1b4: f855 2024 ldr.w r2, [r5, r4, lsl #2] - 800a1b8: 3301 adds r3, #1 - 800a1ba: 429a cmp r2, r3 - 800a1bc: fbb2 f6f3 udiv r6, r2, r3 - 800a1c0: ea4f 0b84 mov.w fp, r4, lsl #2 - 800a1c4: eb08 0984 add.w r9, r8, r4, lsl #2 - 800a1c8: d331 bcc.n 800a22e - 800a1ca: f04f 0e00 mov.w lr, #0 - 800a1ce: 4640 mov r0, r8 - 800a1d0: 46ac mov ip, r5 - 800a1d2: 46f2 mov sl, lr - 800a1d4: f850 2b04 ldr.w r2, [r0], #4 - 800a1d8: b293 uxth r3, r2 - 800a1da: fb06 e303 mla r3, r6, r3, lr - 800a1de: 0c12 lsrs r2, r2, #16 - 800a1e0: ea4f 4e13 mov.w lr, r3, lsr #16 - 800a1e4: b29b uxth r3, r3 - 800a1e6: fb06 e202 mla r2, r6, r2, lr - 800a1ea: ebaa 0303 sub.w r3, sl, r3 - 800a1ee: f8dc a000 ldr.w sl, [ip] - 800a1f2: ea4f 4e12 mov.w lr, r2, lsr #16 - 800a1f6: fa1f fa8a uxth.w sl, sl - 800a1fa: 4453 add r3, sl - 800a1fc: f8dc a000 ldr.w sl, [ip] - 800a200: b292 uxth r2, r2 - 800a202: ebc2 421a rsb r2, r2, sl, lsr #16 - 800a206: eb02 4223 add.w r2, r2, r3, asr #16 - 800a20a: b29b uxth r3, r3 - 800a20c: ea43 4302 orr.w r3, r3, r2, lsl #16 - 800a210: 4581 cmp r9, r0 - 800a212: ea4f 4a22 mov.w sl, r2, asr #16 - 800a216: f84c 3b04 str.w r3, [ip], #4 - 800a21a: d2db bcs.n 800a1d4 - 800a21c: f855 300b ldr.w r3, [r5, fp] - 800a220: b92b cbnz r3, 800a22e - 800a222: 9b01 ldr r3, [sp, #4] - 800a224: 3b04 subs r3, #4 - 800a226: 429d cmp r5, r3 - 800a228: 461a mov r2, r3 - 800a22a: d32f bcc.n 800a28c - 800a22c: 613c str r4, [r7, #16] - 800a22e: 4638 mov r0, r7 - 800a230: f001 fb3c bl 800b8ac <__mcmp> - 800a234: 2800 cmp r0, #0 - 800a236: db25 blt.n 800a284 - 800a238: 4628 mov r0, r5 - 800a23a: f04f 0c00 mov.w ip, #0 - 800a23e: 3601 adds r6, #1 - 800a240: f858 1b04 ldr.w r1, [r8], #4 - 800a244: f8d0 e000 ldr.w lr, [r0] - 800a248: b28b uxth r3, r1 - 800a24a: ebac 0303 sub.w r3, ip, r3 - 800a24e: fa1f f28e uxth.w r2, lr - 800a252: 4413 add r3, r2 - 800a254: 0c0a lsrs r2, r1, #16 - 800a256: ebc2 421e rsb r2, r2, lr, lsr #16 - 800a25a: eb02 4223 add.w r2, r2, r3, asr #16 - 800a25e: b29b uxth r3, r3 - 800a260: ea43 4302 orr.w r3, r3, r2, lsl #16 - 800a264: 45c1 cmp r9, r8 - 800a266: ea4f 4c22 mov.w ip, r2, asr #16 - 800a26a: f840 3b04 str.w r3, [r0], #4 - 800a26e: d2e7 bcs.n 800a240 - 800a270: f855 2024 ldr.w r2, [r5, r4, lsl #2] - 800a274: eb05 0384 add.w r3, r5, r4, lsl #2 - 800a278: b922 cbnz r2, 800a284 - 800a27a: 3b04 subs r3, #4 - 800a27c: 429d cmp r5, r3 - 800a27e: 461a mov r2, r3 - 800a280: d30a bcc.n 800a298 - 800a282: 613c str r4, [r7, #16] - 800a284: 4630 mov r0, r6 - 800a286: b003 add sp, #12 - 800a288: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800a28c: 6812 ldr r2, [r2, #0] - 800a28e: 3b04 subs r3, #4 - 800a290: 2a00 cmp r2, #0 - 800a292: d1cb bne.n 800a22c - 800a294: 3c01 subs r4, #1 - 800a296: e7c6 b.n 800a226 - 800a298: 6812 ldr r2, [r2, #0] - 800a29a: 3b04 subs r3, #4 - 800a29c: 2a00 cmp r2, #0 - 800a29e: d1f0 bne.n 800a282 - 800a2a0: 3c01 subs r4, #1 - 800a2a2: e7eb b.n 800a27c - 800a2a4: 2000 movs r0, #0 - 800a2a6: e7ee b.n 800a286 +0800a2e4 <__swsetup_r>: + 800a2e4: 4b32 ldr r3, [pc, #200] ; (800a3b0 <__swsetup_r+0xcc>) + 800a2e6: b570 push {r4, r5, r6, lr} + 800a2e8: 681d ldr r5, [r3, #0] + 800a2ea: 4606 mov r6, r0 + 800a2ec: 460c mov r4, r1 + 800a2ee: b125 cbz r5, 800a2fa <__swsetup_r+0x16> + 800a2f0: 69ab ldr r3, [r5, #24] + 800a2f2: b913 cbnz r3, 800a2fa <__swsetup_r+0x16> + 800a2f4: 4628 mov r0, r5 + 800a2f6: f001 f813 bl 800b320 <__sinit> + 800a2fa: 4b2e ldr r3, [pc, #184] ; (800a3b4 <__swsetup_r+0xd0>) + 800a2fc: 429c cmp r4, r3 + 800a2fe: d10f bne.n 800a320 <__swsetup_r+0x3c> + 800a300: 686c ldr r4, [r5, #4] + 800a302: 89a3 ldrh r3, [r4, #12] + 800a304: f9b4 200c ldrsh.w r2, [r4, #12] + 800a308: 0719 lsls r1, r3, #28 + 800a30a: d42c bmi.n 800a366 <__swsetup_r+0x82> + 800a30c: 06dd lsls r5, r3, #27 + 800a30e: d411 bmi.n 800a334 <__swsetup_r+0x50> + 800a310: 2309 movs r3, #9 + 800a312: 6033 str r3, [r6, #0] + 800a314: f042 0340 orr.w r3, r2, #64 ; 0x40 + 800a318: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800a31c: 81a3 strh r3, [r4, #12] + 800a31e: e03e b.n 800a39e <__swsetup_r+0xba> + 800a320: 4b25 ldr r3, [pc, #148] ; (800a3b8 <__swsetup_r+0xd4>) + 800a322: 429c cmp r4, r3 + 800a324: d101 bne.n 800a32a <__swsetup_r+0x46> + 800a326: 68ac ldr r4, [r5, #8] + 800a328: e7eb b.n 800a302 <__swsetup_r+0x1e> + 800a32a: 4b24 ldr r3, [pc, #144] ; (800a3bc <__swsetup_r+0xd8>) + 800a32c: 429c cmp r4, r3 + 800a32e: bf08 it eq + 800a330: 68ec ldreq r4, [r5, #12] + 800a332: e7e6 b.n 800a302 <__swsetup_r+0x1e> + 800a334: 0758 lsls r0, r3, #29 + 800a336: d512 bpl.n 800a35e <__swsetup_r+0x7a> + 800a338: 6b61 ldr r1, [r4, #52] ; 0x34 + 800a33a: b141 cbz r1, 800a34e <__swsetup_r+0x6a> + 800a33c: f104 0344 add.w r3, r4, #68 ; 0x44 + 800a340: 4299 cmp r1, r3 + 800a342: d002 beq.n 800a34a <__swsetup_r+0x66> + 800a344: 4630 mov r0, r6 + 800a346: f7fe ff4f bl 80091e8 <_free_r> + 800a34a: 2300 movs r3, #0 + 800a34c: 6363 str r3, [r4, #52] ; 0x34 + 800a34e: 89a3 ldrh r3, [r4, #12] + 800a350: f023 0324 bic.w r3, r3, #36 ; 0x24 + 800a354: 81a3 strh r3, [r4, #12] + 800a356: 2300 movs r3, #0 + 800a358: 6063 str r3, [r4, #4] + 800a35a: 6923 ldr r3, [r4, #16] + 800a35c: 6023 str r3, [r4, #0] + 800a35e: 89a3 ldrh r3, [r4, #12] + 800a360: f043 0308 orr.w r3, r3, #8 + 800a364: 81a3 strh r3, [r4, #12] + 800a366: 6923 ldr r3, [r4, #16] + 800a368: b94b cbnz r3, 800a37e <__swsetup_r+0x9a> + 800a36a: 89a3 ldrh r3, [r4, #12] + 800a36c: f403 7320 and.w r3, r3, #640 ; 0x280 + 800a370: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 800a374: d003 beq.n 800a37e <__swsetup_r+0x9a> + 800a376: 4621 mov r1, r4 + 800a378: 4630 mov r0, r6 + 800a37a: f001 f8f7 bl 800b56c <__smakebuf_r> + 800a37e: 89a0 ldrh r0, [r4, #12] + 800a380: f9b4 200c ldrsh.w r2, [r4, #12] + 800a384: f010 0301 ands.w r3, r0, #1 + 800a388: d00a beq.n 800a3a0 <__swsetup_r+0xbc> + 800a38a: 2300 movs r3, #0 + 800a38c: 60a3 str r3, [r4, #8] + 800a38e: 6963 ldr r3, [r4, #20] + 800a390: 425b negs r3, r3 + 800a392: 61a3 str r3, [r4, #24] + 800a394: 6923 ldr r3, [r4, #16] + 800a396: b943 cbnz r3, 800a3aa <__swsetup_r+0xc6> + 800a398: f010 0080 ands.w r0, r0, #128 ; 0x80 + 800a39c: d1ba bne.n 800a314 <__swsetup_r+0x30> + 800a39e: bd70 pop {r4, r5, r6, pc} + 800a3a0: 0781 lsls r1, r0, #30 + 800a3a2: bf58 it pl + 800a3a4: 6963 ldrpl r3, [r4, #20] + 800a3a6: 60a3 str r3, [r4, #8] + 800a3a8: e7f4 b.n 800a394 <__swsetup_r+0xb0> + 800a3aa: 2000 movs r0, #0 + 800a3ac: e7f7 b.n 800a39e <__swsetup_r+0xba> + 800a3ae: bf00 nop + 800a3b0: 20000014 .word 0x20000014 + 800a3b4: 0800d4f4 .word 0x0800d4f4 + 800a3b8: 0800d514 .word 0x0800d514 + 800a3bc: 0800d4d4 .word 0x0800d4d4 -0800a2a8 <_dtoa_r>: - 800a2a8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800a2ac: 4616 mov r6, r2 - 800a2ae: 461f mov r7, r3 - 800a2b0: 6a44 ldr r4, [r0, #36] ; 0x24 - 800a2b2: b099 sub sp, #100 ; 0x64 - 800a2b4: 4605 mov r5, r0 - 800a2b6: e9cd 6704 strd r6, r7, [sp, #16] - 800a2ba: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 - 800a2be: b974 cbnz r4, 800a2de <_dtoa_r+0x36> - 800a2c0: 2010 movs r0, #16 - 800a2c2: f7fe fe35 bl 8008f30 - 800a2c6: 4602 mov r2, r0 - 800a2c8: 6268 str r0, [r5, #36] ; 0x24 - 800a2ca: b920 cbnz r0, 800a2d6 <_dtoa_r+0x2e> - 800a2cc: 21ea movs r1, #234 ; 0xea - 800a2ce: 4ba8 ldr r3, [pc, #672] ; (800a570 <_dtoa_r+0x2c8>) - 800a2d0: 48a8 ldr r0, [pc, #672] ; (800a574 <_dtoa_r+0x2cc>) - 800a2d2: f7ff ff3f bl 800a154 <__assert_func> - 800a2d6: e9c0 4401 strd r4, r4, [r0, #4] - 800a2da: 6004 str r4, [r0, #0] - 800a2dc: 60c4 str r4, [r0, #12] - 800a2de: 6a6b ldr r3, [r5, #36] ; 0x24 - 800a2e0: 6819 ldr r1, [r3, #0] - 800a2e2: b151 cbz r1, 800a2fa <_dtoa_r+0x52> - 800a2e4: 685a ldr r2, [r3, #4] - 800a2e6: 2301 movs r3, #1 - 800a2e8: 4093 lsls r3, r2 - 800a2ea: 604a str r2, [r1, #4] - 800a2ec: 608b str r3, [r1, #8] - 800a2ee: 4628 mov r0, r5 - 800a2f0: f001 f89e bl 800b430 <_Bfree> - 800a2f4: 2200 movs r2, #0 - 800a2f6: 6a6b ldr r3, [r5, #36] ; 0x24 - 800a2f8: 601a str r2, [r3, #0] - 800a2fa: 1e3b subs r3, r7, #0 - 800a2fc: bfaf iteee ge - 800a2fe: 2300 movge r3, #0 - 800a300: 2201 movlt r2, #1 - 800a302: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 - 800a306: 9305 strlt r3, [sp, #20] - 800a308: bfa8 it ge - 800a30a: f8c8 3000 strge.w r3, [r8] - 800a30e: f8dd 9014 ldr.w r9, [sp, #20] - 800a312: 4b99 ldr r3, [pc, #612] ; (800a578 <_dtoa_r+0x2d0>) - 800a314: bfb8 it lt - 800a316: f8c8 2000 strlt.w r2, [r8] - 800a31a: ea33 0309 bics.w r3, r3, r9 - 800a31e: d119 bne.n 800a354 <_dtoa_r+0xac> - 800a320: f242 730f movw r3, #9999 ; 0x270f - 800a324: 9a24 ldr r2, [sp, #144] ; 0x90 - 800a326: 6013 str r3, [r2, #0] - 800a328: f3c9 0313 ubfx r3, r9, #0, #20 - 800a32c: 4333 orrs r3, r6 - 800a32e: f000 857f beq.w 800ae30 <_dtoa_r+0xb88> - 800a332: 9b26 ldr r3, [sp, #152] ; 0x98 - 800a334: b953 cbnz r3, 800a34c <_dtoa_r+0xa4> - 800a336: 4b91 ldr r3, [pc, #580] ; (800a57c <_dtoa_r+0x2d4>) - 800a338: e022 b.n 800a380 <_dtoa_r+0xd8> - 800a33a: 4b91 ldr r3, [pc, #580] ; (800a580 <_dtoa_r+0x2d8>) - 800a33c: 9303 str r3, [sp, #12] - 800a33e: 3308 adds r3, #8 - 800a340: 9a26 ldr r2, [sp, #152] ; 0x98 - 800a342: 6013 str r3, [r2, #0] - 800a344: 9803 ldr r0, [sp, #12] - 800a346: b019 add sp, #100 ; 0x64 - 800a348: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800a34c: 4b8b ldr r3, [pc, #556] ; (800a57c <_dtoa_r+0x2d4>) - 800a34e: 9303 str r3, [sp, #12] - 800a350: 3303 adds r3, #3 - 800a352: e7f5 b.n 800a340 <_dtoa_r+0x98> - 800a354: e9dd 3404 ldrd r3, r4, [sp, #16] - 800a358: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 - 800a35c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 800a360: 2200 movs r2, #0 - 800a362: 2300 movs r3, #0 - 800a364: f7f6 fb96 bl 8000a94 <__aeabi_dcmpeq> - 800a368: 4680 mov r8, r0 - 800a36a: b158 cbz r0, 800a384 <_dtoa_r+0xdc> - 800a36c: 2301 movs r3, #1 - 800a36e: 9a24 ldr r2, [sp, #144] ; 0x90 - 800a370: 6013 str r3, [r2, #0] - 800a372: 9b26 ldr r3, [sp, #152] ; 0x98 - 800a374: 2b00 cmp r3, #0 - 800a376: f000 8558 beq.w 800ae2a <_dtoa_r+0xb82> - 800a37a: 4882 ldr r0, [pc, #520] ; (800a584 <_dtoa_r+0x2dc>) - 800a37c: 6018 str r0, [r3, #0] - 800a37e: 1e43 subs r3, r0, #1 - 800a380: 9303 str r3, [sp, #12] - 800a382: e7df b.n 800a344 <_dtoa_r+0x9c> - 800a384: ab16 add r3, sp, #88 ; 0x58 - 800a386: 9301 str r3, [sp, #4] - 800a388: ab17 add r3, sp, #92 ; 0x5c - 800a38a: 9300 str r3, [sp, #0] - 800a38c: 4628 mov r0, r5 - 800a38e: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 - 800a392: f001 fb33 bl 800b9fc <__d2b> - 800a396: f3c9 540a ubfx r4, r9, #20, #11 - 800a39a: 4683 mov fp, r0 - 800a39c: 2c00 cmp r4, #0 - 800a39e: d07f beq.n 800a4a0 <_dtoa_r+0x1f8> - 800a3a0: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 800a3a4: 9b0d ldr r3, [sp, #52] ; 0x34 - 800a3a6: f2a4 34ff subw r4, r4, #1023 ; 0x3ff - 800a3aa: f3c3 0313 ubfx r3, r3, #0, #20 - 800a3ae: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000 - 800a3b2: f441 1140 orr.w r1, r1, #3145728 ; 0x300000 - 800a3b6: f8cd 804c str.w r8, [sp, #76] ; 0x4c - 800a3ba: 2200 movs r2, #0 - 800a3bc: 4b72 ldr r3, [pc, #456] ; (800a588 <_dtoa_r+0x2e0>) - 800a3be: f7f5 ff49 bl 8000254 <__aeabi_dsub> - 800a3c2: a365 add r3, pc, #404 ; (adr r3, 800a558 <_dtoa_r+0x2b0>) - 800a3c4: e9d3 2300 ldrd r2, r3, [r3] - 800a3c8: f7f6 f8fc bl 80005c4 <__aeabi_dmul> - 800a3cc: a364 add r3, pc, #400 ; (adr r3, 800a560 <_dtoa_r+0x2b8>) - 800a3ce: e9d3 2300 ldrd r2, r3, [r3] - 800a3d2: f7f5 ff41 bl 8000258 <__adddf3> - 800a3d6: 4606 mov r6, r0 - 800a3d8: 4620 mov r0, r4 - 800a3da: 460f mov r7, r1 - 800a3dc: f7f6 f888 bl 80004f0 <__aeabi_i2d> - 800a3e0: a361 add r3, pc, #388 ; (adr r3, 800a568 <_dtoa_r+0x2c0>) - 800a3e2: e9d3 2300 ldrd r2, r3, [r3] - 800a3e6: f7f6 f8ed bl 80005c4 <__aeabi_dmul> - 800a3ea: 4602 mov r2, r0 - 800a3ec: 460b mov r3, r1 - 800a3ee: 4630 mov r0, r6 - 800a3f0: 4639 mov r1, r7 - 800a3f2: f7f5 ff31 bl 8000258 <__adddf3> - 800a3f6: 4606 mov r6, r0 - 800a3f8: 460f mov r7, r1 - 800a3fa: f7f6 fb93 bl 8000b24 <__aeabi_d2iz> - 800a3fe: 2200 movs r2, #0 - 800a400: 4682 mov sl, r0 - 800a402: 2300 movs r3, #0 - 800a404: 4630 mov r0, r6 - 800a406: 4639 mov r1, r7 - 800a408: f7f6 fb4e bl 8000aa8 <__aeabi_dcmplt> - 800a40c: b148 cbz r0, 800a422 <_dtoa_r+0x17a> - 800a40e: 4650 mov r0, sl - 800a410: f7f6 f86e bl 80004f0 <__aeabi_i2d> - 800a414: 4632 mov r2, r6 - 800a416: 463b mov r3, r7 - 800a418: f7f6 fb3c bl 8000a94 <__aeabi_dcmpeq> - 800a41c: b908 cbnz r0, 800a422 <_dtoa_r+0x17a> - 800a41e: f10a 3aff add.w sl, sl, #4294967295 ; 0xffffffff - 800a422: f1ba 0f16 cmp.w sl, #22 - 800a426: d858 bhi.n 800a4da <_dtoa_r+0x232> - 800a428: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 800a42c: 4b57 ldr r3, [pc, #348] ; (800a58c <_dtoa_r+0x2e4>) - 800a42e: eb03 03ca add.w r3, r3, sl, lsl #3 - 800a432: e9d3 2300 ldrd r2, r3, [r3] - 800a436: f7f6 fb37 bl 8000aa8 <__aeabi_dcmplt> - 800a43a: 2800 cmp r0, #0 - 800a43c: d04f beq.n 800a4de <_dtoa_r+0x236> - 800a43e: 2300 movs r3, #0 - 800a440: f10a 3aff add.w sl, sl, #4294967295 ; 0xffffffff - 800a444: 930f str r3, [sp, #60] ; 0x3c - 800a446: 9b16 ldr r3, [sp, #88] ; 0x58 - 800a448: 1b1c subs r4, r3, r4 - 800a44a: 1e63 subs r3, r4, #1 - 800a44c: 9309 str r3, [sp, #36] ; 0x24 - 800a44e: bf49 itett mi - 800a450: f1c4 0301 rsbmi r3, r4, #1 - 800a454: 2300 movpl r3, #0 - 800a456: 9306 strmi r3, [sp, #24] - 800a458: 2300 movmi r3, #0 - 800a45a: bf54 ite pl - 800a45c: 9306 strpl r3, [sp, #24] - 800a45e: 9309 strmi r3, [sp, #36] ; 0x24 - 800a460: f1ba 0f00 cmp.w sl, #0 - 800a464: db3d blt.n 800a4e2 <_dtoa_r+0x23a> - 800a466: 9b09 ldr r3, [sp, #36] ; 0x24 - 800a468: f8cd a038 str.w sl, [sp, #56] ; 0x38 - 800a46c: 4453 add r3, sl - 800a46e: 9309 str r3, [sp, #36] ; 0x24 - 800a470: 2300 movs r3, #0 - 800a472: 930a str r3, [sp, #40] ; 0x28 - 800a474: 9b22 ldr r3, [sp, #136] ; 0x88 - 800a476: 2b09 cmp r3, #9 - 800a478: f200 808c bhi.w 800a594 <_dtoa_r+0x2ec> - 800a47c: 2b05 cmp r3, #5 - 800a47e: bfc4 itt gt - 800a480: 3b04 subgt r3, #4 - 800a482: 9322 strgt r3, [sp, #136] ; 0x88 - 800a484: 9b22 ldr r3, [sp, #136] ; 0x88 - 800a486: bfc8 it gt - 800a488: 2400 movgt r4, #0 - 800a48a: f1a3 0302 sub.w r3, r3, #2 - 800a48e: bfd8 it le - 800a490: 2401 movle r4, #1 - 800a492: 2b03 cmp r3, #3 - 800a494: f200 808a bhi.w 800a5ac <_dtoa_r+0x304> - 800a498: e8df f003 tbb [pc, r3] - 800a49c: 5b4d4f2d .word 0x5b4d4f2d - 800a4a0: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 - 800a4a4: 441c add r4, r3 - 800a4a6: f204 4332 addw r3, r4, #1074 ; 0x432 - 800a4aa: 2b20 cmp r3, #32 - 800a4ac: bfc3 ittte gt - 800a4ae: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 - 800a4b2: f204 4012 addwgt r0, r4, #1042 ; 0x412 - 800a4b6: fa09 f303 lslgt.w r3, r9, r3 - 800a4ba: f1c3 0320 rsble r3, r3, #32 - 800a4be: bfc6 itte gt - 800a4c0: fa26 f000 lsrgt.w r0, r6, r0 - 800a4c4: 4318 orrgt r0, r3 - 800a4c6: fa06 f003 lslle.w r0, r6, r3 - 800a4ca: f7f6 f801 bl 80004d0 <__aeabi_ui2d> - 800a4ce: 2301 movs r3, #1 - 800a4d0: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000 - 800a4d4: 3c01 subs r4, #1 - 800a4d6: 9313 str r3, [sp, #76] ; 0x4c - 800a4d8: e76f b.n 800a3ba <_dtoa_r+0x112> - 800a4da: 2301 movs r3, #1 - 800a4dc: e7b2 b.n 800a444 <_dtoa_r+0x19c> - 800a4de: 900f str r0, [sp, #60] ; 0x3c - 800a4e0: e7b1 b.n 800a446 <_dtoa_r+0x19e> - 800a4e2: 9b06 ldr r3, [sp, #24] - 800a4e4: eba3 030a sub.w r3, r3, sl - 800a4e8: 9306 str r3, [sp, #24] - 800a4ea: f1ca 0300 rsb r3, sl, #0 - 800a4ee: 930a str r3, [sp, #40] ; 0x28 - 800a4f0: 2300 movs r3, #0 - 800a4f2: 930e str r3, [sp, #56] ; 0x38 - 800a4f4: e7be b.n 800a474 <_dtoa_r+0x1cc> - 800a4f6: 2300 movs r3, #0 - 800a4f8: 930b str r3, [sp, #44] ; 0x2c - 800a4fa: 9b23 ldr r3, [sp, #140] ; 0x8c - 800a4fc: 2b00 cmp r3, #0 - 800a4fe: dc58 bgt.n 800a5b2 <_dtoa_r+0x30a> - 800a500: f04f 0901 mov.w r9, #1 - 800a504: 464b mov r3, r9 - 800a506: f8cd 9020 str.w r9, [sp, #32] - 800a50a: f8cd 908c str.w r9, [sp, #140] ; 0x8c - 800a50e: 2200 movs r2, #0 - 800a510: 6a68 ldr r0, [r5, #36] ; 0x24 - 800a512: 6042 str r2, [r0, #4] - 800a514: 2204 movs r2, #4 - 800a516: f102 0614 add.w r6, r2, #20 - 800a51a: 429e cmp r6, r3 - 800a51c: 6841 ldr r1, [r0, #4] - 800a51e: d94e bls.n 800a5be <_dtoa_r+0x316> - 800a520: 4628 mov r0, r5 - 800a522: f000 ff45 bl 800b3b0 <_Balloc> - 800a526: 9003 str r0, [sp, #12] - 800a528: 2800 cmp r0, #0 - 800a52a: d14c bne.n 800a5c6 <_dtoa_r+0x31e> - 800a52c: 4602 mov r2, r0 - 800a52e: f44f 71d5 mov.w r1, #426 ; 0x1aa - 800a532: 4b17 ldr r3, [pc, #92] ; (800a590 <_dtoa_r+0x2e8>) - 800a534: e6cc b.n 800a2d0 <_dtoa_r+0x28> - 800a536: 2301 movs r3, #1 - 800a538: e7de b.n 800a4f8 <_dtoa_r+0x250> - 800a53a: 2300 movs r3, #0 - 800a53c: 930b str r3, [sp, #44] ; 0x2c - 800a53e: 9b23 ldr r3, [sp, #140] ; 0x8c - 800a540: eb0a 0903 add.w r9, sl, r3 - 800a544: f109 0301 add.w r3, r9, #1 - 800a548: 2b01 cmp r3, #1 - 800a54a: 9308 str r3, [sp, #32] - 800a54c: bfb8 it lt - 800a54e: 2301 movlt r3, #1 - 800a550: e7dd b.n 800a50e <_dtoa_r+0x266> - 800a552: 2301 movs r3, #1 - 800a554: e7f2 b.n 800a53c <_dtoa_r+0x294> - 800a556: bf00 nop - 800a558: 636f4361 .word 0x636f4361 - 800a55c: 3fd287a7 .word 0x3fd287a7 - 800a560: 8b60c8b3 .word 0x8b60c8b3 - 800a564: 3fc68a28 .word 0x3fc68a28 - 800a568: 509f79fb .word 0x509f79fb - 800a56c: 3fd34413 .word 0x3fd34413 - 800a570: 0800cfec .word 0x0800cfec - 800a574: 0800d1d7 .word 0x0800d1d7 - 800a578: 7ff00000 .word 0x7ff00000 - 800a57c: 0800d1d3 .word 0x0800d1d3 - 800a580: 0800d1ca .word 0x0800d1ca - 800a584: 0800d51d .word 0x0800d51d - 800a588: 3ff80000 .word 0x3ff80000 - 800a58c: 0800d328 .word 0x0800d328 - 800a590: 0800d232 .word 0x0800d232 - 800a594: 2401 movs r4, #1 - 800a596: 2300 movs r3, #0 - 800a598: 940b str r4, [sp, #44] ; 0x2c - 800a59a: 9322 str r3, [sp, #136] ; 0x88 - 800a59c: f04f 39ff mov.w r9, #4294967295 ; 0xffffffff - 800a5a0: 2200 movs r2, #0 - 800a5a2: 2312 movs r3, #18 - 800a5a4: f8cd 9020 str.w r9, [sp, #32] - 800a5a8: 9223 str r2, [sp, #140] ; 0x8c - 800a5aa: e7b0 b.n 800a50e <_dtoa_r+0x266> - 800a5ac: 2301 movs r3, #1 - 800a5ae: 930b str r3, [sp, #44] ; 0x2c - 800a5b0: e7f4 b.n 800a59c <_dtoa_r+0x2f4> - 800a5b2: f8dd 908c ldr.w r9, [sp, #140] ; 0x8c - 800a5b6: 464b mov r3, r9 - 800a5b8: f8cd 9020 str.w r9, [sp, #32] - 800a5bc: e7a7 b.n 800a50e <_dtoa_r+0x266> - 800a5be: 3101 adds r1, #1 - 800a5c0: 6041 str r1, [r0, #4] - 800a5c2: 0052 lsls r2, r2, #1 - 800a5c4: e7a7 b.n 800a516 <_dtoa_r+0x26e> - 800a5c6: 6a6b ldr r3, [r5, #36] ; 0x24 - 800a5c8: 9a03 ldr r2, [sp, #12] - 800a5ca: 601a str r2, [r3, #0] - 800a5cc: 9b08 ldr r3, [sp, #32] - 800a5ce: 2b0e cmp r3, #14 - 800a5d0: f200 80a8 bhi.w 800a724 <_dtoa_r+0x47c> - 800a5d4: 2c00 cmp r4, #0 - 800a5d6: f000 80a5 beq.w 800a724 <_dtoa_r+0x47c> - 800a5da: f1ba 0f00 cmp.w sl, #0 - 800a5de: dd34 ble.n 800a64a <_dtoa_r+0x3a2> - 800a5e0: 4a9a ldr r2, [pc, #616] ; (800a84c <_dtoa_r+0x5a4>) - 800a5e2: f00a 030f and.w r3, sl, #15 - 800a5e6: eb02 03c3 add.w r3, r2, r3, lsl #3 - 800a5ea: f41a 7f80 tst.w sl, #256 ; 0x100 - 800a5ee: e9d3 3400 ldrd r3, r4, [r3] - 800a5f2: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 - 800a5f6: ea4f 142a mov.w r4, sl, asr #4 - 800a5fa: d016 beq.n 800a62a <_dtoa_r+0x382> - 800a5fc: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 800a600: 4b93 ldr r3, [pc, #588] ; (800a850 <_dtoa_r+0x5a8>) - 800a602: 2703 movs r7, #3 - 800a604: e9d3 2308 ldrd r2, r3, [r3, #32] - 800a608: f7f6 f906 bl 8000818 <__aeabi_ddiv> - 800a60c: e9cd 0104 strd r0, r1, [sp, #16] - 800a610: f004 040f and.w r4, r4, #15 - 800a614: 4e8e ldr r6, [pc, #568] ; (800a850 <_dtoa_r+0x5a8>) - 800a616: b954 cbnz r4, 800a62e <_dtoa_r+0x386> - 800a618: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 800a61c: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a620: f7f6 f8fa bl 8000818 <__aeabi_ddiv> - 800a624: e9cd 0104 strd r0, r1, [sp, #16] - 800a628: e029 b.n 800a67e <_dtoa_r+0x3d6> - 800a62a: 2702 movs r7, #2 - 800a62c: e7f2 b.n 800a614 <_dtoa_r+0x36c> - 800a62e: 07e1 lsls r1, r4, #31 - 800a630: d508 bpl.n 800a644 <_dtoa_r+0x39c> - 800a632: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800a636: e9d6 2300 ldrd r2, r3, [r6] - 800a63a: f7f5 ffc3 bl 80005c4 <__aeabi_dmul> - 800a63e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800a642: 3701 adds r7, #1 - 800a644: 1064 asrs r4, r4, #1 - 800a646: 3608 adds r6, #8 - 800a648: e7e5 b.n 800a616 <_dtoa_r+0x36e> - 800a64a: f000 80a5 beq.w 800a798 <_dtoa_r+0x4f0> - 800a64e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 800a652: f1ca 0400 rsb r4, sl, #0 - 800a656: 4b7d ldr r3, [pc, #500] ; (800a84c <_dtoa_r+0x5a4>) - 800a658: f004 020f and.w r2, r4, #15 - 800a65c: eb03 03c2 add.w r3, r3, r2, lsl #3 - 800a660: e9d3 2300 ldrd r2, r3, [r3] - 800a664: f7f5 ffae bl 80005c4 <__aeabi_dmul> - 800a668: 2702 movs r7, #2 - 800a66a: 2300 movs r3, #0 - 800a66c: e9cd 0104 strd r0, r1, [sp, #16] - 800a670: 4e77 ldr r6, [pc, #476] ; (800a850 <_dtoa_r+0x5a8>) - 800a672: 1124 asrs r4, r4, #4 - 800a674: 2c00 cmp r4, #0 - 800a676: f040 8084 bne.w 800a782 <_dtoa_r+0x4da> - 800a67a: 2b00 cmp r3, #0 - 800a67c: d1d2 bne.n 800a624 <_dtoa_r+0x37c> - 800a67e: 9b0f ldr r3, [sp, #60] ; 0x3c - 800a680: 2b00 cmp r3, #0 - 800a682: f000 808b beq.w 800a79c <_dtoa_r+0x4f4> - 800a686: e9dd 3404 ldrd r3, r4, [sp, #16] - 800a68a: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 - 800a68e: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800a692: 2200 movs r2, #0 - 800a694: 4b6f ldr r3, [pc, #444] ; (800a854 <_dtoa_r+0x5ac>) - 800a696: f7f6 fa07 bl 8000aa8 <__aeabi_dcmplt> - 800a69a: 2800 cmp r0, #0 - 800a69c: d07e beq.n 800a79c <_dtoa_r+0x4f4> - 800a69e: 9b08 ldr r3, [sp, #32] - 800a6a0: 2b00 cmp r3, #0 - 800a6a2: d07b beq.n 800a79c <_dtoa_r+0x4f4> - 800a6a4: f1b9 0f00 cmp.w r9, #0 - 800a6a8: dd38 ble.n 800a71c <_dtoa_r+0x474> - 800a6aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800a6ae: 2200 movs r2, #0 - 800a6b0: 4b69 ldr r3, [pc, #420] ; (800a858 <_dtoa_r+0x5b0>) - 800a6b2: f7f5 ff87 bl 80005c4 <__aeabi_dmul> - 800a6b6: 464c mov r4, r9 - 800a6b8: e9cd 0104 strd r0, r1, [sp, #16] - 800a6bc: f10a 38ff add.w r8, sl, #4294967295 ; 0xffffffff - 800a6c0: 3701 adds r7, #1 - 800a6c2: 4638 mov r0, r7 - 800a6c4: f7f5 ff14 bl 80004f0 <__aeabi_i2d> - 800a6c8: e9dd 2304 ldrd r2, r3, [sp, #16] - 800a6cc: f7f5 ff7a bl 80005c4 <__aeabi_dmul> - 800a6d0: 2200 movs r2, #0 - 800a6d2: 4b62 ldr r3, [pc, #392] ; (800a85c <_dtoa_r+0x5b4>) - 800a6d4: f7f5 fdc0 bl 8000258 <__adddf3> - 800a6d8: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 - 800a6dc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800a6e0: 9611 str r6, [sp, #68] ; 0x44 - 800a6e2: 2c00 cmp r4, #0 - 800a6e4: d15d bne.n 800a7a2 <_dtoa_r+0x4fa> - 800a6e6: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a6ea: 2200 movs r2, #0 - 800a6ec: 4b5c ldr r3, [pc, #368] ; (800a860 <_dtoa_r+0x5b8>) - 800a6ee: f7f5 fdb1 bl 8000254 <__aeabi_dsub> - 800a6f2: 4602 mov r2, r0 - 800a6f4: 460b mov r3, r1 - 800a6f6: e9cd 2304 strd r2, r3, [sp, #16] - 800a6fa: 4633 mov r3, r6 - 800a6fc: 9a10 ldr r2, [sp, #64] ; 0x40 - 800a6fe: f7f6 f9f1 bl 8000ae4 <__aeabi_dcmpgt> - 800a702: 2800 cmp r0, #0 - 800a704: f040 829c bne.w 800ac40 <_dtoa_r+0x998> - 800a708: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a70c: 9a10 ldr r2, [sp, #64] ; 0x40 - 800a70e: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 - 800a712: f7f6 f9c9 bl 8000aa8 <__aeabi_dcmplt> - 800a716: 2800 cmp r0, #0 - 800a718: f040 8290 bne.w 800ac3c <_dtoa_r+0x994> - 800a71c: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 - 800a720: e9cd 3404 strd r3, r4, [sp, #16] - 800a724: 9b17 ldr r3, [sp, #92] ; 0x5c - 800a726: 2b00 cmp r3, #0 - 800a728: f2c0 8152 blt.w 800a9d0 <_dtoa_r+0x728> - 800a72c: f1ba 0f0e cmp.w sl, #14 - 800a730: f300 814e bgt.w 800a9d0 <_dtoa_r+0x728> - 800a734: 4b45 ldr r3, [pc, #276] ; (800a84c <_dtoa_r+0x5a4>) - 800a736: eb03 03ca add.w r3, r3, sl, lsl #3 - 800a73a: e9d3 3400 ldrd r3, r4, [r3] - 800a73e: e9cd 3406 strd r3, r4, [sp, #24] - 800a742: 9b23 ldr r3, [sp, #140] ; 0x8c - 800a744: 2b00 cmp r3, #0 - 800a746: f280 80db bge.w 800a900 <_dtoa_r+0x658> - 800a74a: 9b08 ldr r3, [sp, #32] - 800a74c: 2b00 cmp r3, #0 - 800a74e: f300 80d7 bgt.w 800a900 <_dtoa_r+0x658> - 800a752: f040 8272 bne.w 800ac3a <_dtoa_r+0x992> - 800a756: e9dd 0106 ldrd r0, r1, [sp, #24] - 800a75a: 2200 movs r2, #0 - 800a75c: 4b40 ldr r3, [pc, #256] ; (800a860 <_dtoa_r+0x5b8>) - 800a75e: f7f5 ff31 bl 80005c4 <__aeabi_dmul> - 800a762: e9dd 2304 ldrd r2, r3, [sp, #16] - 800a766: f7f6 f9b3 bl 8000ad0 <__aeabi_dcmpge> - 800a76a: 9c08 ldr r4, [sp, #32] - 800a76c: 4626 mov r6, r4 - 800a76e: 2800 cmp r0, #0 - 800a770: f040 8248 bne.w 800ac04 <_dtoa_r+0x95c> - 800a774: 2331 movs r3, #49 ; 0x31 - 800a776: 9f03 ldr r7, [sp, #12] - 800a778: f10a 0a01 add.w sl, sl, #1 - 800a77c: f807 3b01 strb.w r3, [r7], #1 - 800a780: e244 b.n 800ac0c <_dtoa_r+0x964> - 800a782: 07e2 lsls r2, r4, #31 - 800a784: d505 bpl.n 800a792 <_dtoa_r+0x4ea> - 800a786: e9d6 2300 ldrd r2, r3, [r6] - 800a78a: f7f5 ff1b bl 80005c4 <__aeabi_dmul> - 800a78e: 2301 movs r3, #1 - 800a790: 3701 adds r7, #1 - 800a792: 1064 asrs r4, r4, #1 - 800a794: 3608 adds r6, #8 - 800a796: e76d b.n 800a674 <_dtoa_r+0x3cc> - 800a798: 2702 movs r7, #2 - 800a79a: e770 b.n 800a67e <_dtoa_r+0x3d6> - 800a79c: 46d0 mov r8, sl - 800a79e: 9c08 ldr r4, [sp, #32] - 800a7a0: e78f b.n 800a6c2 <_dtoa_r+0x41a> - 800a7a2: 9903 ldr r1, [sp, #12] - 800a7a4: 4b29 ldr r3, [pc, #164] ; (800a84c <_dtoa_r+0x5a4>) - 800a7a6: 4421 add r1, r4 - 800a7a8: 9112 str r1, [sp, #72] ; 0x48 - 800a7aa: 990b ldr r1, [sp, #44] ; 0x2c - 800a7ac: eb03 03c4 add.w r3, r3, r4, lsl #3 - 800a7b0: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 - 800a7b4: e953 2302 ldrd r2, r3, [r3, #-8] - 800a7b8: 2900 cmp r1, #0 - 800a7ba: d055 beq.n 800a868 <_dtoa_r+0x5c0> - 800a7bc: 2000 movs r0, #0 - 800a7be: 4929 ldr r1, [pc, #164] ; (800a864 <_dtoa_r+0x5bc>) - 800a7c0: f7f6 f82a bl 8000818 <__aeabi_ddiv> - 800a7c4: 463b mov r3, r7 - 800a7c6: 4632 mov r2, r6 - 800a7c8: f7f5 fd44 bl 8000254 <__aeabi_dsub> - 800a7cc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800a7d0: 9f03 ldr r7, [sp, #12] - 800a7d2: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a7d6: f7f6 f9a5 bl 8000b24 <__aeabi_d2iz> - 800a7da: 4604 mov r4, r0 - 800a7dc: f7f5 fe88 bl 80004f0 <__aeabi_i2d> - 800a7e0: 4602 mov r2, r0 - 800a7e2: 460b mov r3, r1 - 800a7e4: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a7e8: f7f5 fd34 bl 8000254 <__aeabi_dsub> - 800a7ec: 4602 mov r2, r0 - 800a7ee: 460b mov r3, r1 - 800a7f0: 3430 adds r4, #48 ; 0x30 - 800a7f2: e9cd 2304 strd r2, r3, [sp, #16] - 800a7f6: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 800a7fa: f807 4b01 strb.w r4, [r7], #1 - 800a7fe: f7f6 f953 bl 8000aa8 <__aeabi_dcmplt> - 800a802: 2800 cmp r0, #0 - 800a804: d174 bne.n 800a8f0 <_dtoa_r+0x648> - 800a806: e9dd 2304 ldrd r2, r3, [sp, #16] - 800a80a: 2000 movs r0, #0 - 800a80c: 4911 ldr r1, [pc, #68] ; (800a854 <_dtoa_r+0x5ac>) - 800a80e: f7f5 fd21 bl 8000254 <__aeabi_dsub> - 800a812: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 800a816: f7f6 f947 bl 8000aa8 <__aeabi_dcmplt> - 800a81a: 2800 cmp r0, #0 - 800a81c: f040 80b7 bne.w 800a98e <_dtoa_r+0x6e6> - 800a820: 9b12 ldr r3, [sp, #72] ; 0x48 - 800a822: 429f cmp r7, r3 - 800a824: f43f af7a beq.w 800a71c <_dtoa_r+0x474> - 800a828: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800a82c: 2200 movs r2, #0 - 800a82e: 4b0a ldr r3, [pc, #40] ; (800a858 <_dtoa_r+0x5b0>) - 800a830: f7f5 fec8 bl 80005c4 <__aeabi_dmul> - 800a834: 2200 movs r2, #0 - 800a836: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800a83a: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a83e: 4b06 ldr r3, [pc, #24] ; (800a858 <_dtoa_r+0x5b0>) - 800a840: f7f5 fec0 bl 80005c4 <__aeabi_dmul> - 800a844: e9cd 0104 strd r0, r1, [sp, #16] - 800a848: e7c3 b.n 800a7d2 <_dtoa_r+0x52a> - 800a84a: bf00 nop - 800a84c: 0800d328 .word 0x0800d328 - 800a850: 0800d300 .word 0x0800d300 - 800a854: 3ff00000 .word 0x3ff00000 - 800a858: 40240000 .word 0x40240000 - 800a85c: 401c0000 .word 0x401c0000 - 800a860: 40140000 .word 0x40140000 - 800a864: 3fe00000 .word 0x3fe00000 - 800a868: 4630 mov r0, r6 - 800a86a: 4639 mov r1, r7 - 800a86c: f7f5 feaa bl 80005c4 <__aeabi_dmul> - 800a870: 9b12 ldr r3, [sp, #72] ; 0x48 - 800a872: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800a876: 9c03 ldr r4, [sp, #12] - 800a878: 9314 str r3, [sp, #80] ; 0x50 - 800a87a: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a87e: f7f6 f951 bl 8000b24 <__aeabi_d2iz> - 800a882: 9015 str r0, [sp, #84] ; 0x54 - 800a884: f7f5 fe34 bl 80004f0 <__aeabi_i2d> - 800a888: 4602 mov r2, r0 - 800a88a: 460b mov r3, r1 +0800a3c0 <__assert_func>: + 800a3c0: b51f push {r0, r1, r2, r3, r4, lr} + 800a3c2: 4614 mov r4, r2 + 800a3c4: 461a mov r2, r3 + 800a3c6: 4b09 ldr r3, [pc, #36] ; (800a3ec <__assert_func+0x2c>) + 800a3c8: 4605 mov r5, r0 + 800a3ca: 681b ldr r3, [r3, #0] + 800a3cc: 68d8 ldr r0, [r3, #12] + 800a3ce: b14c cbz r4, 800a3e4 <__assert_func+0x24> + 800a3d0: 4b07 ldr r3, [pc, #28] ; (800a3f0 <__assert_func+0x30>) + 800a3d2: e9cd 3401 strd r3, r4, [sp, #4] + 800a3d6: 9100 str r1, [sp, #0] + 800a3d8: 462b mov r3, r5 + 800a3da: 4906 ldr r1, [pc, #24] ; (800a3f4 <__assert_func+0x34>) + 800a3dc: f001 f81e bl 800b41c + 800a3e0: f001 ff14 bl 800c20c + 800a3e4: 4b04 ldr r3, [pc, #16] ; (800a3f8 <__assert_func+0x38>) + 800a3e6: 461c mov r4, r3 + 800a3e8: e7f3 b.n 800a3d2 <__assert_func+0x12> + 800a3ea: bf00 nop + 800a3ec: 20000014 .word 0x20000014 + 800a3f0: 0800d41e .word 0x0800d41e + 800a3f4: 0800d42b .word 0x0800d42b + 800a3f8: 0800d459 .word 0x0800d459 + +0800a3fc : + 800a3fc: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800a400: 6903 ldr r3, [r0, #16] + 800a402: 690c ldr r4, [r1, #16] + 800a404: 4607 mov r7, r0 + 800a406: 42a3 cmp r3, r4 + 800a408: f2c0 8082 blt.w 800a510 + 800a40c: 3c01 subs r4, #1 + 800a40e: f100 0514 add.w r5, r0, #20 + 800a412: f101 0814 add.w r8, r1, #20 + 800a416: eb05 0384 add.w r3, r5, r4, lsl #2 + 800a41a: 9301 str r3, [sp, #4] + 800a41c: f858 3024 ldr.w r3, [r8, r4, lsl #2] + 800a420: f855 2024 ldr.w r2, [r5, r4, lsl #2] + 800a424: 3301 adds r3, #1 + 800a426: 429a cmp r2, r3 + 800a428: fbb2 f6f3 udiv r6, r2, r3 + 800a42c: ea4f 0b84 mov.w fp, r4, lsl #2 + 800a430: eb08 0984 add.w r9, r8, r4, lsl #2 + 800a434: d331 bcc.n 800a49a + 800a436: f04f 0e00 mov.w lr, #0 + 800a43a: 4640 mov r0, r8 + 800a43c: 46ac mov ip, r5 + 800a43e: 46f2 mov sl, lr + 800a440: f850 2b04 ldr.w r2, [r0], #4 + 800a444: b293 uxth r3, r2 + 800a446: fb06 e303 mla r3, r6, r3, lr + 800a44a: 0c12 lsrs r2, r2, #16 + 800a44c: ea4f 4e13 mov.w lr, r3, lsr #16 + 800a450: b29b uxth r3, r3 + 800a452: fb06 e202 mla r2, r6, r2, lr + 800a456: ebaa 0303 sub.w r3, sl, r3 + 800a45a: f8dc a000 ldr.w sl, [ip] + 800a45e: ea4f 4e12 mov.w lr, r2, lsr #16 + 800a462: fa1f fa8a uxth.w sl, sl + 800a466: 4453 add r3, sl + 800a468: f8dc a000 ldr.w sl, [ip] + 800a46c: b292 uxth r2, r2 + 800a46e: ebc2 421a rsb r2, r2, sl, lsr #16 + 800a472: eb02 4223 add.w r2, r2, r3, asr #16 + 800a476: b29b uxth r3, r3 + 800a478: ea43 4302 orr.w r3, r3, r2, lsl #16 + 800a47c: 4581 cmp r9, r0 + 800a47e: ea4f 4a22 mov.w sl, r2, asr #16 + 800a482: f84c 3b04 str.w r3, [ip], #4 + 800a486: d2db bcs.n 800a440 + 800a488: f855 300b ldr.w r3, [r5, fp] + 800a48c: b92b cbnz r3, 800a49a + 800a48e: 9b01 ldr r3, [sp, #4] + 800a490: 3b04 subs r3, #4 + 800a492: 429d cmp r5, r3 + 800a494: 461a mov r2, r3 + 800a496: d32f bcc.n 800a4f8 + 800a498: 613c str r4, [r7, #16] + 800a49a: 4638 mov r0, r7 + 800a49c: f001 fb3e bl 800bb1c <__mcmp> + 800a4a0: 2800 cmp r0, #0 + 800a4a2: db25 blt.n 800a4f0 + 800a4a4: 4628 mov r0, r5 + 800a4a6: f04f 0c00 mov.w ip, #0 + 800a4aa: 3601 adds r6, #1 + 800a4ac: f858 1b04 ldr.w r1, [r8], #4 + 800a4b0: f8d0 e000 ldr.w lr, [r0] + 800a4b4: b28b uxth r3, r1 + 800a4b6: ebac 0303 sub.w r3, ip, r3 + 800a4ba: fa1f f28e uxth.w r2, lr + 800a4be: 4413 add r3, r2 + 800a4c0: 0c0a lsrs r2, r1, #16 + 800a4c2: ebc2 421e rsb r2, r2, lr, lsr #16 + 800a4c6: eb02 4223 add.w r2, r2, r3, asr #16 + 800a4ca: b29b uxth r3, r3 + 800a4cc: ea43 4302 orr.w r3, r3, r2, lsl #16 + 800a4d0: 45c1 cmp r9, r8 + 800a4d2: ea4f 4c22 mov.w ip, r2, asr #16 + 800a4d6: f840 3b04 str.w r3, [r0], #4 + 800a4da: d2e7 bcs.n 800a4ac + 800a4dc: f855 2024 ldr.w r2, [r5, r4, lsl #2] + 800a4e0: eb05 0384 add.w r3, r5, r4, lsl #2 + 800a4e4: b922 cbnz r2, 800a4f0 + 800a4e6: 3b04 subs r3, #4 + 800a4e8: 429d cmp r5, r3 + 800a4ea: 461a mov r2, r3 + 800a4ec: d30a bcc.n 800a504 + 800a4ee: 613c str r4, [r7, #16] + 800a4f0: 4630 mov r0, r6 + 800a4f2: b003 add sp, #12 + 800a4f4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800a4f8: 6812 ldr r2, [r2, #0] + 800a4fa: 3b04 subs r3, #4 + 800a4fc: 2a00 cmp r2, #0 + 800a4fe: d1cb bne.n 800a498 + 800a500: 3c01 subs r4, #1 + 800a502: e7c6 b.n 800a492 + 800a504: 6812 ldr r2, [r2, #0] + 800a506: 3b04 subs r3, #4 + 800a508: 2a00 cmp r2, #0 + 800a50a: d1f0 bne.n 800a4ee + 800a50c: 3c01 subs r4, #1 + 800a50e: e7eb b.n 800a4e8 + 800a510: 2000 movs r0, #0 + 800a512: e7ee b.n 800a4f2 + 800a514: 0000 movs r0, r0 + ... + +0800a518 <_dtoa_r>: + 800a518: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800a51c: 4616 mov r6, r2 + 800a51e: 461f mov r7, r3 + 800a520: 6a44 ldr r4, [r0, #36] ; 0x24 + 800a522: b099 sub sp, #100 ; 0x64 + 800a524: 4605 mov r5, r0 + 800a526: e9cd 6704 strd r6, r7, [sp, #16] + 800a52a: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 + 800a52e: b974 cbnz r4, 800a54e <_dtoa_r+0x36> + 800a530: 2010 movs r0, #16 + 800a532: f7fe fe33 bl 800919c + 800a536: 4602 mov r2, r0 + 800a538: 6268 str r0, [r5, #36] ; 0x24 + 800a53a: b920 cbnz r0, 800a546 <_dtoa_r+0x2e> + 800a53c: 21ea movs r1, #234 ; 0xea + 800a53e: 4ba8 ldr r3, [pc, #672] ; (800a7e0 <_dtoa_r+0x2c8>) + 800a540: 48a8 ldr r0, [pc, #672] ; (800a7e4 <_dtoa_r+0x2cc>) + 800a542: f7ff ff3d bl 800a3c0 <__assert_func> + 800a546: e9c0 4401 strd r4, r4, [r0, #4] + 800a54a: 6004 str r4, [r0, #0] + 800a54c: 60c4 str r4, [r0, #12] + 800a54e: 6a6b ldr r3, [r5, #36] ; 0x24 + 800a550: 6819 ldr r1, [r3, #0] + 800a552: b151 cbz r1, 800a56a <_dtoa_r+0x52> + 800a554: 685a ldr r2, [r3, #4] + 800a556: 2301 movs r3, #1 + 800a558: 4093 lsls r3, r2 + 800a55a: 604a str r2, [r1, #4] + 800a55c: 608b str r3, [r1, #8] + 800a55e: 4628 mov r0, r5 + 800a560: f001 f89e bl 800b6a0 <_Bfree> + 800a564: 2200 movs r2, #0 + 800a566: 6a6b ldr r3, [r5, #36] ; 0x24 + 800a568: 601a str r2, [r3, #0] + 800a56a: 1e3b subs r3, r7, #0 + 800a56c: bfaf iteee ge + 800a56e: 2300 movge r3, #0 + 800a570: 2201 movlt r2, #1 + 800a572: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 + 800a576: 9305 strlt r3, [sp, #20] + 800a578: bfa8 it ge + 800a57a: f8c8 3000 strge.w r3, [r8] + 800a57e: f8dd 9014 ldr.w r9, [sp, #20] + 800a582: 4b99 ldr r3, [pc, #612] ; (800a7e8 <_dtoa_r+0x2d0>) + 800a584: bfb8 it lt + 800a586: f8c8 2000 strlt.w r2, [r8] + 800a58a: ea33 0309 bics.w r3, r3, r9 + 800a58e: d119 bne.n 800a5c4 <_dtoa_r+0xac> + 800a590: f242 730f movw r3, #9999 ; 0x270f + 800a594: 9a24 ldr r2, [sp, #144] ; 0x90 + 800a596: 6013 str r3, [r2, #0] + 800a598: f3c9 0313 ubfx r3, r9, #0, #20 + 800a59c: 4333 orrs r3, r6 + 800a59e: f000 857f beq.w 800b0a0 <_dtoa_r+0xb88> + 800a5a2: 9b26 ldr r3, [sp, #152] ; 0x98 + 800a5a4: b953 cbnz r3, 800a5bc <_dtoa_r+0xa4> + 800a5a6: 4b91 ldr r3, [pc, #580] ; (800a7ec <_dtoa_r+0x2d4>) + 800a5a8: e022 b.n 800a5f0 <_dtoa_r+0xd8> + 800a5aa: 4b91 ldr r3, [pc, #580] ; (800a7f0 <_dtoa_r+0x2d8>) + 800a5ac: 9303 str r3, [sp, #12] + 800a5ae: 3308 adds r3, #8 + 800a5b0: 9a26 ldr r2, [sp, #152] ; 0x98 + 800a5b2: 6013 str r3, [r2, #0] + 800a5b4: 9803 ldr r0, [sp, #12] + 800a5b6: b019 add sp, #100 ; 0x64 + 800a5b8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800a5bc: 4b8b ldr r3, [pc, #556] ; (800a7ec <_dtoa_r+0x2d4>) + 800a5be: 9303 str r3, [sp, #12] + 800a5c0: 3303 adds r3, #3 + 800a5c2: e7f5 b.n 800a5b0 <_dtoa_r+0x98> + 800a5c4: e9dd 3404 ldrd r3, r4, [sp, #16] + 800a5c8: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 + 800a5cc: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 800a5d0: 2200 movs r2, #0 + 800a5d2: 2300 movs r3, #0 + 800a5d4: f7f6 fa5e bl 8000a94 <__aeabi_dcmpeq> + 800a5d8: 4680 mov r8, r0 + 800a5da: b158 cbz r0, 800a5f4 <_dtoa_r+0xdc> + 800a5dc: 2301 movs r3, #1 + 800a5de: 9a24 ldr r2, [sp, #144] ; 0x90 + 800a5e0: 6013 str r3, [r2, #0] + 800a5e2: 9b26 ldr r3, [sp, #152] ; 0x98 + 800a5e4: 2b00 cmp r3, #0 + 800a5e6: f000 8558 beq.w 800b09a <_dtoa_r+0xb82> + 800a5ea: 4882 ldr r0, [pc, #520] ; (800a7f4 <_dtoa_r+0x2dc>) + 800a5ec: 6018 str r0, [r3, #0] + 800a5ee: 1e43 subs r3, r0, #1 + 800a5f0: 9303 str r3, [sp, #12] + 800a5f2: e7df b.n 800a5b4 <_dtoa_r+0x9c> + 800a5f4: ab16 add r3, sp, #88 ; 0x58 + 800a5f6: 9301 str r3, [sp, #4] + 800a5f8: ab17 add r3, sp, #92 ; 0x5c + 800a5fa: 9300 str r3, [sp, #0] + 800a5fc: 4628 mov r0, r5 + 800a5fe: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 + 800a602: f001 fb33 bl 800bc6c <__d2b> + 800a606: f3c9 540a ubfx r4, r9, #20, #11 + 800a60a: 4683 mov fp, r0 + 800a60c: 2c00 cmp r4, #0 + 800a60e: d07f beq.n 800a710 <_dtoa_r+0x1f8> + 800a610: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 800a614: 9b0d ldr r3, [sp, #52] ; 0x34 + 800a616: f2a4 34ff subw r4, r4, #1023 ; 0x3ff + 800a61a: f3c3 0313 ubfx r3, r3, #0, #20 + 800a61e: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000 + 800a622: f441 1140 orr.w r1, r1, #3145728 ; 0x300000 + 800a626: f8cd 804c str.w r8, [sp, #76] ; 0x4c + 800a62a: 2200 movs r2, #0 + 800a62c: 4b72 ldr r3, [pc, #456] ; (800a7f8 <_dtoa_r+0x2e0>) + 800a62e: f7f5 fe11 bl 8000254 <__aeabi_dsub> + 800a632: a365 add r3, pc, #404 ; (adr r3, 800a7c8 <_dtoa_r+0x2b0>) + 800a634: e9d3 2300 ldrd r2, r3, [r3] + 800a638: f7f5 ffc4 bl 80005c4 <__aeabi_dmul> + 800a63c: a364 add r3, pc, #400 ; (adr r3, 800a7d0 <_dtoa_r+0x2b8>) + 800a63e: e9d3 2300 ldrd r2, r3, [r3] + 800a642: f7f5 fe09 bl 8000258 <__adddf3> + 800a646: 4606 mov r6, r0 + 800a648: 4620 mov r0, r4 + 800a64a: 460f mov r7, r1 + 800a64c: f7f5 ff50 bl 80004f0 <__aeabi_i2d> + 800a650: a361 add r3, pc, #388 ; (adr r3, 800a7d8 <_dtoa_r+0x2c0>) + 800a652: e9d3 2300 ldrd r2, r3, [r3] + 800a656: f7f5 ffb5 bl 80005c4 <__aeabi_dmul> + 800a65a: 4602 mov r2, r0 + 800a65c: 460b mov r3, r1 + 800a65e: 4630 mov r0, r6 + 800a660: 4639 mov r1, r7 + 800a662: f7f5 fdf9 bl 8000258 <__adddf3> + 800a666: 4606 mov r6, r0 + 800a668: 460f mov r7, r1 + 800a66a: f7f6 fa5b bl 8000b24 <__aeabi_d2iz> + 800a66e: 2200 movs r2, #0 + 800a670: 4682 mov sl, r0 + 800a672: 2300 movs r3, #0 + 800a674: 4630 mov r0, r6 + 800a676: 4639 mov r1, r7 + 800a678: f7f6 fa16 bl 8000aa8 <__aeabi_dcmplt> + 800a67c: b148 cbz r0, 800a692 <_dtoa_r+0x17a> + 800a67e: 4650 mov r0, sl + 800a680: f7f5 ff36 bl 80004f0 <__aeabi_i2d> + 800a684: 4632 mov r2, r6 + 800a686: 463b mov r3, r7 + 800a688: f7f6 fa04 bl 8000a94 <__aeabi_dcmpeq> + 800a68c: b908 cbnz r0, 800a692 <_dtoa_r+0x17a> + 800a68e: f10a 3aff add.w sl, sl, #4294967295 ; 0xffffffff + 800a692: f1ba 0f16 cmp.w sl, #22 + 800a696: d858 bhi.n 800a74a <_dtoa_r+0x232> + 800a698: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 800a69c: 4b57 ldr r3, [pc, #348] ; (800a7fc <_dtoa_r+0x2e4>) + 800a69e: eb03 03ca add.w r3, r3, sl, lsl #3 + 800a6a2: e9d3 2300 ldrd r2, r3, [r3] + 800a6a6: f7f6 f9ff bl 8000aa8 <__aeabi_dcmplt> + 800a6aa: 2800 cmp r0, #0 + 800a6ac: d04f beq.n 800a74e <_dtoa_r+0x236> + 800a6ae: 2300 movs r3, #0 + 800a6b0: f10a 3aff add.w sl, sl, #4294967295 ; 0xffffffff + 800a6b4: 930f str r3, [sp, #60] ; 0x3c + 800a6b6: 9b16 ldr r3, [sp, #88] ; 0x58 + 800a6b8: 1b1c subs r4, r3, r4 + 800a6ba: 1e63 subs r3, r4, #1 + 800a6bc: 9309 str r3, [sp, #36] ; 0x24 + 800a6be: bf49 itett mi + 800a6c0: f1c4 0301 rsbmi r3, r4, #1 + 800a6c4: 2300 movpl r3, #0 + 800a6c6: 9306 strmi r3, [sp, #24] + 800a6c8: 2300 movmi r3, #0 + 800a6ca: bf54 ite pl + 800a6cc: 9306 strpl r3, [sp, #24] + 800a6ce: 9309 strmi r3, [sp, #36] ; 0x24 + 800a6d0: f1ba 0f00 cmp.w sl, #0 + 800a6d4: db3d blt.n 800a752 <_dtoa_r+0x23a> + 800a6d6: 9b09 ldr r3, [sp, #36] ; 0x24 + 800a6d8: f8cd a038 str.w sl, [sp, #56] ; 0x38 + 800a6dc: 4453 add r3, sl + 800a6de: 9309 str r3, [sp, #36] ; 0x24 + 800a6e0: 2300 movs r3, #0 + 800a6e2: 930a str r3, [sp, #40] ; 0x28 + 800a6e4: 9b22 ldr r3, [sp, #136] ; 0x88 + 800a6e6: 2b09 cmp r3, #9 + 800a6e8: f200 808c bhi.w 800a804 <_dtoa_r+0x2ec> + 800a6ec: 2b05 cmp r3, #5 + 800a6ee: bfc4 itt gt + 800a6f0: 3b04 subgt r3, #4 + 800a6f2: 9322 strgt r3, [sp, #136] ; 0x88 + 800a6f4: 9b22 ldr r3, [sp, #136] ; 0x88 + 800a6f6: bfc8 it gt + 800a6f8: 2400 movgt r4, #0 + 800a6fa: f1a3 0302 sub.w r3, r3, #2 + 800a6fe: bfd8 it le + 800a700: 2401 movle r4, #1 + 800a702: 2b03 cmp r3, #3 + 800a704: f200 808a bhi.w 800a81c <_dtoa_r+0x304> + 800a708: e8df f003 tbb [pc, r3] + 800a70c: 5b4d4f2d .word 0x5b4d4f2d + 800a710: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 + 800a714: 441c add r4, r3 + 800a716: f204 4332 addw r3, r4, #1074 ; 0x432 + 800a71a: 2b20 cmp r3, #32 + 800a71c: bfc3 ittte gt + 800a71e: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 + 800a722: f204 4012 addwgt r0, r4, #1042 ; 0x412 + 800a726: fa09 f303 lslgt.w r3, r9, r3 + 800a72a: f1c3 0320 rsble r3, r3, #32 + 800a72e: bfc6 itte gt + 800a730: fa26 f000 lsrgt.w r0, r6, r0 + 800a734: 4318 orrgt r0, r3 + 800a736: fa06 f003 lslle.w r0, r6, r3 + 800a73a: f7f5 fec9 bl 80004d0 <__aeabi_ui2d> + 800a73e: 2301 movs r3, #1 + 800a740: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000 + 800a744: 3c01 subs r4, #1 + 800a746: 9313 str r3, [sp, #76] ; 0x4c + 800a748: e76f b.n 800a62a <_dtoa_r+0x112> + 800a74a: 2301 movs r3, #1 + 800a74c: e7b2 b.n 800a6b4 <_dtoa_r+0x19c> + 800a74e: 900f str r0, [sp, #60] ; 0x3c + 800a750: e7b1 b.n 800a6b6 <_dtoa_r+0x19e> + 800a752: 9b06 ldr r3, [sp, #24] + 800a754: eba3 030a sub.w r3, r3, sl + 800a758: 9306 str r3, [sp, #24] + 800a75a: f1ca 0300 rsb r3, sl, #0 + 800a75e: 930a str r3, [sp, #40] ; 0x28 + 800a760: 2300 movs r3, #0 + 800a762: 930e str r3, [sp, #56] ; 0x38 + 800a764: e7be b.n 800a6e4 <_dtoa_r+0x1cc> + 800a766: 2300 movs r3, #0 + 800a768: 930b str r3, [sp, #44] ; 0x2c + 800a76a: 9b23 ldr r3, [sp, #140] ; 0x8c + 800a76c: 2b00 cmp r3, #0 + 800a76e: dc58 bgt.n 800a822 <_dtoa_r+0x30a> + 800a770: f04f 0901 mov.w r9, #1 + 800a774: 464b mov r3, r9 + 800a776: f8cd 9020 str.w r9, [sp, #32] + 800a77a: f8cd 908c str.w r9, [sp, #140] ; 0x8c + 800a77e: 2200 movs r2, #0 + 800a780: 6a68 ldr r0, [r5, #36] ; 0x24 + 800a782: 6042 str r2, [r0, #4] + 800a784: 2204 movs r2, #4 + 800a786: f102 0614 add.w r6, r2, #20 + 800a78a: 429e cmp r6, r3 + 800a78c: 6841 ldr r1, [r0, #4] + 800a78e: d94e bls.n 800a82e <_dtoa_r+0x316> + 800a790: 4628 mov r0, r5 + 800a792: f000 ff45 bl 800b620 <_Balloc> + 800a796: 9003 str r0, [sp, #12] + 800a798: 2800 cmp r0, #0 + 800a79a: d14c bne.n 800a836 <_dtoa_r+0x31e> + 800a79c: 4602 mov r2, r0 + 800a79e: f44f 71d5 mov.w r1, #426 ; 0x1aa + 800a7a2: 4b17 ldr r3, [pc, #92] ; (800a800 <_dtoa_r+0x2e8>) + 800a7a4: e6cc b.n 800a540 <_dtoa_r+0x28> + 800a7a6: 2301 movs r3, #1 + 800a7a8: e7de b.n 800a768 <_dtoa_r+0x250> + 800a7aa: 2300 movs r3, #0 + 800a7ac: 930b str r3, [sp, #44] ; 0x2c + 800a7ae: 9b23 ldr r3, [sp, #140] ; 0x8c + 800a7b0: eb0a 0903 add.w r9, sl, r3 + 800a7b4: f109 0301 add.w r3, r9, #1 + 800a7b8: 2b01 cmp r3, #1 + 800a7ba: 9308 str r3, [sp, #32] + 800a7bc: bfb8 it lt + 800a7be: 2301 movlt r3, #1 + 800a7c0: e7dd b.n 800a77e <_dtoa_r+0x266> + 800a7c2: 2301 movs r3, #1 + 800a7c4: e7f2 b.n 800a7ac <_dtoa_r+0x294> + 800a7c6: bf00 nop + 800a7c8: 636f4361 .word 0x636f4361 + 800a7cc: 3fd287a7 .word 0x3fd287a7 + 800a7d0: 8b60c8b3 .word 0x8b60c8b3 + 800a7d4: 3fc68a28 .word 0x3fc68a28 + 800a7d8: 509f79fb .word 0x509f79fb + 800a7dc: 3fd34413 .word 0x3fd34413 + 800a7e0: 0800d27c .word 0x0800d27c + 800a7e4: 0800d467 .word 0x0800d467 + 800a7e8: 7ff00000 .word 0x7ff00000 + 800a7ec: 0800d463 .word 0x0800d463 + 800a7f0: 0800d45a .word 0x0800d45a + 800a7f4: 0800d7ad .word 0x0800d7ad + 800a7f8: 3ff80000 .word 0x3ff80000 + 800a7fc: 0800d5b8 .word 0x0800d5b8 + 800a800: 0800d4c2 .word 0x0800d4c2 + 800a804: 2401 movs r4, #1 + 800a806: 2300 movs r3, #0 + 800a808: 940b str r4, [sp, #44] ; 0x2c + 800a80a: 9322 str r3, [sp, #136] ; 0x88 + 800a80c: f04f 39ff mov.w r9, #4294967295 ; 0xffffffff + 800a810: 2200 movs r2, #0 + 800a812: 2312 movs r3, #18 + 800a814: f8cd 9020 str.w r9, [sp, #32] + 800a818: 9223 str r2, [sp, #140] ; 0x8c + 800a81a: e7b0 b.n 800a77e <_dtoa_r+0x266> + 800a81c: 2301 movs r3, #1 + 800a81e: 930b str r3, [sp, #44] ; 0x2c + 800a820: e7f4 b.n 800a80c <_dtoa_r+0x2f4> + 800a822: f8dd 908c ldr.w r9, [sp, #140] ; 0x8c + 800a826: 464b mov r3, r9 + 800a828: f8cd 9020 str.w r9, [sp, #32] + 800a82c: e7a7 b.n 800a77e <_dtoa_r+0x266> + 800a82e: 3101 adds r1, #1 + 800a830: 6041 str r1, [r0, #4] + 800a832: 0052 lsls r2, r2, #1 + 800a834: e7a7 b.n 800a786 <_dtoa_r+0x26e> + 800a836: 6a6b ldr r3, [r5, #36] ; 0x24 + 800a838: 9a03 ldr r2, [sp, #12] + 800a83a: 601a str r2, [r3, #0] + 800a83c: 9b08 ldr r3, [sp, #32] + 800a83e: 2b0e cmp r3, #14 + 800a840: f200 80a8 bhi.w 800a994 <_dtoa_r+0x47c> + 800a844: 2c00 cmp r4, #0 + 800a846: f000 80a5 beq.w 800a994 <_dtoa_r+0x47c> + 800a84a: f1ba 0f00 cmp.w sl, #0 + 800a84e: dd34 ble.n 800a8ba <_dtoa_r+0x3a2> + 800a850: 4a9a ldr r2, [pc, #616] ; (800aabc <_dtoa_r+0x5a4>) + 800a852: f00a 030f and.w r3, sl, #15 + 800a856: eb02 03c3 add.w r3, r2, r3, lsl #3 + 800a85a: f41a 7f80 tst.w sl, #256 ; 0x100 + 800a85e: e9d3 3400 ldrd r3, r4, [r3] + 800a862: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 + 800a866: ea4f 142a mov.w r4, sl, asr #4 + 800a86a: d016 beq.n 800a89a <_dtoa_r+0x382> + 800a86c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 800a870: 4b93 ldr r3, [pc, #588] ; (800aac0 <_dtoa_r+0x5a8>) + 800a872: 2703 movs r7, #3 + 800a874: e9d3 2308 ldrd r2, r3, [r3, #32] + 800a878: f7f5 ffce bl 8000818 <__aeabi_ddiv> + 800a87c: e9cd 0104 strd r0, r1, [sp, #16] + 800a880: f004 040f and.w r4, r4, #15 + 800a884: 4e8e ldr r6, [pc, #568] ; (800aac0 <_dtoa_r+0x5a8>) + 800a886: b954 cbnz r4, 800a89e <_dtoa_r+0x386> + 800a888: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 800a88c: e9dd 0104 ldrd r0, r1, [sp, #16] - 800a890: f7f5 fce0 bl 8000254 <__aeabi_dsub> - 800a894: 9b15 ldr r3, [sp, #84] ; 0x54 - 800a896: 4606 mov r6, r0 - 800a898: 3330 adds r3, #48 ; 0x30 - 800a89a: f804 3b01 strb.w r3, [r4], #1 - 800a89e: 9b12 ldr r3, [sp, #72] ; 0x48 - 800a8a0: 460f mov r7, r1 - 800a8a2: 429c cmp r4, r3 - 800a8a4: f04f 0200 mov.w r2, #0 - 800a8a8: d124 bne.n 800a8f4 <_dtoa_r+0x64c> - 800a8aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800a8ae: 4bb0 ldr r3, [pc, #704] ; (800ab70 <_dtoa_r+0x8c8>) - 800a8b0: f7f5 fcd2 bl 8000258 <__adddf3> - 800a8b4: 4602 mov r2, r0 - 800a8b6: 460b mov r3, r1 - 800a8b8: 4630 mov r0, r6 - 800a8ba: 4639 mov r1, r7 - 800a8bc: f7f6 f912 bl 8000ae4 <__aeabi_dcmpgt> - 800a8c0: 2800 cmp r0, #0 - 800a8c2: d163 bne.n 800a98c <_dtoa_r+0x6e4> - 800a8c4: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 800a8c8: 2000 movs r0, #0 - 800a8ca: 49a9 ldr r1, [pc, #676] ; (800ab70 <_dtoa_r+0x8c8>) - 800a8cc: f7f5 fcc2 bl 8000254 <__aeabi_dsub> - 800a8d0: 4602 mov r2, r0 - 800a8d2: 460b mov r3, r1 - 800a8d4: 4630 mov r0, r6 - 800a8d6: 4639 mov r1, r7 - 800a8d8: f7f6 f8e6 bl 8000aa8 <__aeabi_dcmplt> - 800a8dc: 2800 cmp r0, #0 - 800a8de: f43f af1d beq.w 800a71c <_dtoa_r+0x474> - 800a8e2: 9f14 ldr r7, [sp, #80] ; 0x50 - 800a8e4: 1e7b subs r3, r7, #1 - 800a8e6: 9314 str r3, [sp, #80] ; 0x50 - 800a8e8: f817 3c01 ldrb.w r3, [r7, #-1] - 800a8ec: 2b30 cmp r3, #48 ; 0x30 - 800a8ee: d0f8 beq.n 800a8e2 <_dtoa_r+0x63a> - 800a8f0: 46c2 mov sl, r8 - 800a8f2: e03b b.n 800a96c <_dtoa_r+0x6c4> - 800a8f4: 4b9f ldr r3, [pc, #636] ; (800ab74 <_dtoa_r+0x8cc>) - 800a8f6: f7f5 fe65 bl 80005c4 <__aeabi_dmul> - 800a8fa: e9cd 0104 strd r0, r1, [sp, #16] - 800a8fe: e7bc b.n 800a87a <_dtoa_r+0x5d2> - 800a900: 9f03 ldr r7, [sp, #12] - 800a902: e9dd 8904 ldrd r8, r9, [sp, #16] - 800a906: e9dd 2306 ldrd r2, r3, [sp, #24] - 800a90a: 4640 mov r0, r8 - 800a90c: 4649 mov r1, r9 - 800a90e: f7f5 ff83 bl 8000818 <__aeabi_ddiv> - 800a912: f7f6 f907 bl 8000b24 <__aeabi_d2iz> - 800a916: 4604 mov r4, r0 - 800a918: f7f5 fdea bl 80004f0 <__aeabi_i2d> - 800a91c: e9dd 2306 ldrd r2, r3, [sp, #24] - 800a920: f7f5 fe50 bl 80005c4 <__aeabi_dmul> - 800a924: 4602 mov r2, r0 - 800a926: 460b mov r3, r1 - 800a928: 4640 mov r0, r8 - 800a92a: 4649 mov r1, r9 - 800a92c: f7f5 fc92 bl 8000254 <__aeabi_dsub> - 800a930: f104 0630 add.w r6, r4, #48 ; 0x30 - 800a934: f807 6b01 strb.w r6, [r7], #1 - 800a938: 9e03 ldr r6, [sp, #12] - 800a93a: f8dd c020 ldr.w ip, [sp, #32] - 800a93e: 1bbe subs r6, r7, r6 - 800a940: 45b4 cmp ip, r6 - 800a942: 4602 mov r2, r0 - 800a944: 460b mov r3, r1 - 800a946: d136 bne.n 800a9b6 <_dtoa_r+0x70e> - 800a948: f7f5 fc86 bl 8000258 <__adddf3> - 800a94c: e9dd 2306 ldrd r2, r3, [sp, #24] - 800a950: 4680 mov r8, r0 - 800a952: 4689 mov r9, r1 - 800a954: f7f6 f8c6 bl 8000ae4 <__aeabi_dcmpgt> - 800a958: bb58 cbnz r0, 800a9b2 <_dtoa_r+0x70a> - 800a95a: e9dd 2306 ldrd r2, r3, [sp, #24] - 800a95e: 4640 mov r0, r8 - 800a960: 4649 mov r1, r9 - 800a962: f7f6 f897 bl 8000a94 <__aeabi_dcmpeq> - 800a966: b108 cbz r0, 800a96c <_dtoa_r+0x6c4> - 800a968: 07e1 lsls r1, r4, #31 - 800a96a: d422 bmi.n 800a9b2 <_dtoa_r+0x70a> - 800a96c: 4628 mov r0, r5 - 800a96e: 4659 mov r1, fp - 800a970: f000 fd5e bl 800b430 <_Bfree> - 800a974: 2300 movs r3, #0 - 800a976: 703b strb r3, [r7, #0] - 800a978: 9b24 ldr r3, [sp, #144] ; 0x90 - 800a97a: f10a 0001 add.w r0, sl, #1 - 800a97e: 6018 str r0, [r3, #0] - 800a980: 9b26 ldr r3, [sp, #152] ; 0x98 - 800a982: 2b00 cmp r3, #0 - 800a984: f43f acde beq.w 800a344 <_dtoa_r+0x9c> - 800a988: 601f str r7, [r3, #0] - 800a98a: e4db b.n 800a344 <_dtoa_r+0x9c> - 800a98c: 4627 mov r7, r4 - 800a98e: 463b mov r3, r7 - 800a990: 461f mov r7, r3 - 800a992: f813 2d01 ldrb.w r2, [r3, #-1]! - 800a996: 2a39 cmp r2, #57 ; 0x39 - 800a998: d107 bne.n 800a9aa <_dtoa_r+0x702> - 800a99a: 9a03 ldr r2, [sp, #12] - 800a99c: 429a cmp r2, r3 - 800a99e: d1f7 bne.n 800a990 <_dtoa_r+0x6e8> - 800a9a0: 2230 movs r2, #48 ; 0x30 - 800a9a2: 9903 ldr r1, [sp, #12] - 800a9a4: f108 0801 add.w r8, r8, #1 - 800a9a8: 700a strb r2, [r1, #0] - 800a9aa: 781a ldrb r2, [r3, #0] - 800a9ac: 3201 adds r2, #1 - 800a9ae: 701a strb r2, [r3, #0] - 800a9b0: e79e b.n 800a8f0 <_dtoa_r+0x648> - 800a9b2: 46d0 mov r8, sl - 800a9b4: e7eb b.n 800a98e <_dtoa_r+0x6e6> - 800a9b6: 2200 movs r2, #0 - 800a9b8: 4b6e ldr r3, [pc, #440] ; (800ab74 <_dtoa_r+0x8cc>) - 800a9ba: f7f5 fe03 bl 80005c4 <__aeabi_dmul> - 800a9be: 2200 movs r2, #0 - 800a9c0: 2300 movs r3, #0 - 800a9c2: 4680 mov r8, r0 - 800a9c4: 4689 mov r9, r1 - 800a9c6: f7f6 f865 bl 8000a94 <__aeabi_dcmpeq> - 800a9ca: 2800 cmp r0, #0 - 800a9cc: d09b beq.n 800a906 <_dtoa_r+0x65e> - 800a9ce: e7cd b.n 800a96c <_dtoa_r+0x6c4> - 800a9d0: 9a0b ldr r2, [sp, #44] ; 0x2c - 800a9d2: 2a00 cmp r2, #0 - 800a9d4: f000 80d0 beq.w 800ab78 <_dtoa_r+0x8d0> - 800a9d8: 9a22 ldr r2, [sp, #136] ; 0x88 - 800a9da: 2a01 cmp r2, #1 - 800a9dc: f300 80ae bgt.w 800ab3c <_dtoa_r+0x894> - 800a9e0: 9a13 ldr r2, [sp, #76] ; 0x4c - 800a9e2: 2a00 cmp r2, #0 - 800a9e4: f000 80a6 beq.w 800ab34 <_dtoa_r+0x88c> - 800a9e8: f203 4333 addw r3, r3, #1075 ; 0x433 - 800a9ec: 9c0a ldr r4, [sp, #40] ; 0x28 - 800a9ee: 9f06 ldr r7, [sp, #24] - 800a9f0: 9a06 ldr r2, [sp, #24] - 800a9f2: 2101 movs r1, #1 - 800a9f4: 441a add r2, r3 - 800a9f6: 9206 str r2, [sp, #24] - 800a9f8: 9a09 ldr r2, [sp, #36] ; 0x24 - 800a9fa: 4628 mov r0, r5 - 800a9fc: 441a add r2, r3 - 800a9fe: 9209 str r2, [sp, #36] ; 0x24 - 800aa00: f000 fdcc bl 800b59c <__i2b> - 800aa04: 4606 mov r6, r0 - 800aa06: 2f00 cmp r7, #0 - 800aa08: dd0c ble.n 800aa24 <_dtoa_r+0x77c> - 800aa0a: 9b09 ldr r3, [sp, #36] ; 0x24 - 800aa0c: 2b00 cmp r3, #0 - 800aa0e: dd09 ble.n 800aa24 <_dtoa_r+0x77c> - 800aa10: 42bb cmp r3, r7 - 800aa12: bfa8 it ge - 800aa14: 463b movge r3, r7 - 800aa16: 9a06 ldr r2, [sp, #24] - 800aa18: 1aff subs r7, r7, r3 - 800aa1a: 1ad2 subs r2, r2, r3 - 800aa1c: 9206 str r2, [sp, #24] - 800aa1e: 9a09 ldr r2, [sp, #36] ; 0x24 - 800aa20: 1ad3 subs r3, r2, r3 - 800aa22: 9309 str r3, [sp, #36] ; 0x24 - 800aa24: 9b0a ldr r3, [sp, #40] ; 0x28 - 800aa26: b1f3 cbz r3, 800aa66 <_dtoa_r+0x7be> - 800aa28: 9b0b ldr r3, [sp, #44] ; 0x2c - 800aa2a: 2b00 cmp r3, #0 - 800aa2c: f000 80a8 beq.w 800ab80 <_dtoa_r+0x8d8> - 800aa30: 2c00 cmp r4, #0 - 800aa32: dd10 ble.n 800aa56 <_dtoa_r+0x7ae> - 800aa34: 4631 mov r1, r6 - 800aa36: 4622 mov r2, r4 - 800aa38: 4628 mov r0, r5 - 800aa3a: f000 fe6d bl 800b718 <__pow5mult> - 800aa3e: 465a mov r2, fp - 800aa40: 4601 mov r1, r0 - 800aa42: 4606 mov r6, r0 - 800aa44: 4628 mov r0, r5 - 800aa46: f000 fdbf bl 800b5c8 <__multiply> - 800aa4a: 4680 mov r8, r0 - 800aa4c: 4659 mov r1, fp - 800aa4e: 4628 mov r0, r5 - 800aa50: f000 fcee bl 800b430 <_Bfree> - 800aa54: 46c3 mov fp, r8 - 800aa56: 9b0a ldr r3, [sp, #40] ; 0x28 - 800aa58: 1b1a subs r2, r3, r4 - 800aa5a: d004 beq.n 800aa66 <_dtoa_r+0x7be> - 800aa5c: 4659 mov r1, fp - 800aa5e: 4628 mov r0, r5 - 800aa60: f000 fe5a bl 800b718 <__pow5mult> - 800aa64: 4683 mov fp, r0 - 800aa66: 2101 movs r1, #1 - 800aa68: 4628 mov r0, r5 - 800aa6a: f000 fd97 bl 800b59c <__i2b> - 800aa6e: 9b0e ldr r3, [sp, #56] ; 0x38 - 800aa70: 4604 mov r4, r0 - 800aa72: 2b00 cmp r3, #0 - 800aa74: f340 8086 ble.w 800ab84 <_dtoa_r+0x8dc> - 800aa78: 461a mov r2, r3 - 800aa7a: 4601 mov r1, r0 - 800aa7c: 4628 mov r0, r5 - 800aa7e: f000 fe4b bl 800b718 <__pow5mult> - 800aa82: 9b22 ldr r3, [sp, #136] ; 0x88 - 800aa84: 4604 mov r4, r0 - 800aa86: 2b01 cmp r3, #1 - 800aa88: dd7f ble.n 800ab8a <_dtoa_r+0x8e2> - 800aa8a: f04f 0800 mov.w r8, #0 - 800aa8e: 6923 ldr r3, [r4, #16] - 800aa90: eb04 0383 add.w r3, r4, r3, lsl #2 - 800aa94: 6918 ldr r0, [r3, #16] - 800aa96: f000 fd33 bl 800b500 <__hi0bits> - 800aa9a: f1c0 0020 rsb r0, r0, #32 - 800aa9e: 9b09 ldr r3, [sp, #36] ; 0x24 - 800aaa0: 4418 add r0, r3 - 800aaa2: f010 001f ands.w r0, r0, #31 - 800aaa6: f000 8092 beq.w 800abce <_dtoa_r+0x926> - 800aaaa: f1c0 0320 rsb r3, r0, #32 - 800aaae: 2b04 cmp r3, #4 - 800aab0: f340 808a ble.w 800abc8 <_dtoa_r+0x920> - 800aab4: f1c0 001c rsb r0, r0, #28 - 800aab8: 9b06 ldr r3, [sp, #24] - 800aaba: 4407 add r7, r0 - 800aabc: 4403 add r3, r0 - 800aabe: 9306 str r3, [sp, #24] - 800aac0: 9b09 ldr r3, [sp, #36] ; 0x24 - 800aac2: 4403 add r3, r0 - 800aac4: 9309 str r3, [sp, #36] ; 0x24 - 800aac6: 9b06 ldr r3, [sp, #24] - 800aac8: 2b00 cmp r3, #0 - 800aaca: dd05 ble.n 800aad8 <_dtoa_r+0x830> - 800aacc: 4659 mov r1, fp - 800aace: 461a mov r2, r3 - 800aad0: 4628 mov r0, r5 - 800aad2: f000 fe7b bl 800b7cc <__lshift> - 800aad6: 4683 mov fp, r0 - 800aad8: 9b09 ldr r3, [sp, #36] ; 0x24 - 800aada: 2b00 cmp r3, #0 - 800aadc: dd05 ble.n 800aaea <_dtoa_r+0x842> - 800aade: 4621 mov r1, r4 - 800aae0: 461a mov r2, r3 - 800aae2: 4628 mov r0, r5 - 800aae4: f000 fe72 bl 800b7cc <__lshift> - 800aae8: 4604 mov r4, r0 - 800aaea: 9b0f ldr r3, [sp, #60] ; 0x3c - 800aaec: 2b00 cmp r3, #0 - 800aaee: d070 beq.n 800abd2 <_dtoa_r+0x92a> - 800aaf0: 4621 mov r1, r4 - 800aaf2: 4658 mov r0, fp - 800aaf4: f000 feda bl 800b8ac <__mcmp> - 800aaf8: 2800 cmp r0, #0 - 800aafa: da6a bge.n 800abd2 <_dtoa_r+0x92a> - 800aafc: 2300 movs r3, #0 - 800aafe: 4659 mov r1, fp - 800ab00: 220a movs r2, #10 - 800ab02: 4628 mov r0, r5 - 800ab04: f000 fcb6 bl 800b474 <__multadd> - 800ab08: 9b0b ldr r3, [sp, #44] ; 0x2c - 800ab0a: 4683 mov fp, r0 - 800ab0c: f10a 3aff add.w sl, sl, #4294967295 ; 0xffffffff - 800ab10: 2b00 cmp r3, #0 - 800ab12: f000 8194 beq.w 800ae3e <_dtoa_r+0xb96> - 800ab16: 4631 mov r1, r6 - 800ab18: 2300 movs r3, #0 - 800ab1a: 220a movs r2, #10 - 800ab1c: 4628 mov r0, r5 - 800ab1e: f000 fca9 bl 800b474 <__multadd> - 800ab22: f1b9 0f00 cmp.w r9, #0 - 800ab26: 4606 mov r6, r0 - 800ab28: f300 8093 bgt.w 800ac52 <_dtoa_r+0x9aa> - 800ab2c: 9b22 ldr r3, [sp, #136] ; 0x88 - 800ab2e: 2b02 cmp r3, #2 - 800ab30: dc57 bgt.n 800abe2 <_dtoa_r+0x93a> - 800ab32: e08e b.n 800ac52 <_dtoa_r+0x9aa> - 800ab34: 9b16 ldr r3, [sp, #88] ; 0x58 - 800ab36: f1c3 0336 rsb r3, r3, #54 ; 0x36 - 800ab3a: e757 b.n 800a9ec <_dtoa_r+0x744> - 800ab3c: 9b08 ldr r3, [sp, #32] - 800ab3e: 1e5c subs r4, r3, #1 - 800ab40: 9b0a ldr r3, [sp, #40] ; 0x28 - 800ab42: 42a3 cmp r3, r4 - 800ab44: bfb7 itett lt - 800ab46: 9b0a ldrlt r3, [sp, #40] ; 0x28 - 800ab48: 1b1c subge r4, r3, r4 - 800ab4a: 1ae2 sublt r2, r4, r3 - 800ab4c: 9b0e ldrlt r3, [sp, #56] ; 0x38 - 800ab4e: bfbe ittt lt - 800ab50: 940a strlt r4, [sp, #40] ; 0x28 - 800ab52: 189b addlt r3, r3, r2 - 800ab54: 930e strlt r3, [sp, #56] ; 0x38 - 800ab56: 9b08 ldr r3, [sp, #32] - 800ab58: bfb8 it lt - 800ab5a: 2400 movlt r4, #0 - 800ab5c: 2b00 cmp r3, #0 - 800ab5e: bfbb ittet lt - 800ab60: 9b06 ldrlt r3, [sp, #24] - 800ab62: 9a08 ldrlt r2, [sp, #32] - 800ab64: 9f06 ldrge r7, [sp, #24] - 800ab66: 1a9f sublt r7, r3, r2 - 800ab68: bfac ite ge - 800ab6a: 9b08 ldrge r3, [sp, #32] - 800ab6c: 2300 movlt r3, #0 - 800ab6e: e73f b.n 800a9f0 <_dtoa_r+0x748> - 800ab70: 3fe00000 .word 0x3fe00000 - 800ab74: 40240000 .word 0x40240000 - 800ab78: 9c0a ldr r4, [sp, #40] ; 0x28 - 800ab7a: 9f06 ldr r7, [sp, #24] - 800ab7c: 9e0b ldr r6, [sp, #44] ; 0x2c - 800ab7e: e742 b.n 800aa06 <_dtoa_r+0x75e> - 800ab80: 9a0a ldr r2, [sp, #40] ; 0x28 - 800ab82: e76b b.n 800aa5c <_dtoa_r+0x7b4> - 800ab84: 9b22 ldr r3, [sp, #136] ; 0x88 - 800ab86: 2b01 cmp r3, #1 - 800ab88: dc19 bgt.n 800abbe <_dtoa_r+0x916> - 800ab8a: 9b04 ldr r3, [sp, #16] - 800ab8c: b9bb cbnz r3, 800abbe <_dtoa_r+0x916> - 800ab8e: 9b05 ldr r3, [sp, #20] - 800ab90: f3c3 0313 ubfx r3, r3, #0, #20 - 800ab94: b99b cbnz r3, 800abbe <_dtoa_r+0x916> - 800ab96: 9b05 ldr r3, [sp, #20] - 800ab98: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 - 800ab9c: 0d1b lsrs r3, r3, #20 - 800ab9e: 051b lsls r3, r3, #20 - 800aba0: b183 cbz r3, 800abc4 <_dtoa_r+0x91c> - 800aba2: f04f 0801 mov.w r8, #1 - 800aba6: 9b06 ldr r3, [sp, #24] - 800aba8: 3301 adds r3, #1 - 800abaa: 9306 str r3, [sp, #24] - 800abac: 9b09 ldr r3, [sp, #36] ; 0x24 - 800abae: 3301 adds r3, #1 - 800abb0: 9309 str r3, [sp, #36] ; 0x24 - 800abb2: 9b0e ldr r3, [sp, #56] ; 0x38 - 800abb4: 2b00 cmp r3, #0 - 800abb6: f47f af6a bne.w 800aa8e <_dtoa_r+0x7e6> - 800abba: 2001 movs r0, #1 - 800abbc: e76f b.n 800aa9e <_dtoa_r+0x7f6> - 800abbe: f04f 0800 mov.w r8, #0 - 800abc2: e7f6 b.n 800abb2 <_dtoa_r+0x90a> - 800abc4: 4698 mov r8, r3 - 800abc6: e7f4 b.n 800abb2 <_dtoa_r+0x90a> - 800abc8: f43f af7d beq.w 800aac6 <_dtoa_r+0x81e> - 800abcc: 4618 mov r0, r3 - 800abce: 301c adds r0, #28 - 800abd0: e772 b.n 800aab8 <_dtoa_r+0x810> - 800abd2: 9b08 ldr r3, [sp, #32] - 800abd4: 2b00 cmp r3, #0 - 800abd6: dc36 bgt.n 800ac46 <_dtoa_r+0x99e> - 800abd8: 9b22 ldr r3, [sp, #136] ; 0x88 - 800abda: 2b02 cmp r3, #2 - 800abdc: dd33 ble.n 800ac46 <_dtoa_r+0x99e> - 800abde: f8dd 9020 ldr.w r9, [sp, #32] - 800abe2: f1b9 0f00 cmp.w r9, #0 - 800abe6: d10d bne.n 800ac04 <_dtoa_r+0x95c> - 800abe8: 4621 mov r1, r4 - 800abea: 464b mov r3, r9 - 800abec: 2205 movs r2, #5 - 800abee: 4628 mov r0, r5 - 800abf0: f000 fc40 bl 800b474 <__multadd> - 800abf4: 4601 mov r1, r0 - 800abf6: 4604 mov r4, r0 - 800abf8: 4658 mov r0, fp - 800abfa: f000 fe57 bl 800b8ac <__mcmp> - 800abfe: 2800 cmp r0, #0 - 800ac00: f73f adb8 bgt.w 800a774 <_dtoa_r+0x4cc> - 800ac04: 9b23 ldr r3, [sp, #140] ; 0x8c - 800ac06: 9f03 ldr r7, [sp, #12] - 800ac08: ea6f 0a03 mvn.w sl, r3 - 800ac0c: f04f 0800 mov.w r8, #0 - 800ac10: 4621 mov r1, r4 - 800ac12: 4628 mov r0, r5 - 800ac14: f000 fc0c bl 800b430 <_Bfree> - 800ac18: 2e00 cmp r6, #0 - 800ac1a: f43f aea7 beq.w 800a96c <_dtoa_r+0x6c4> - 800ac1e: f1b8 0f00 cmp.w r8, #0 - 800ac22: d005 beq.n 800ac30 <_dtoa_r+0x988> - 800ac24: 45b0 cmp r8, r6 - 800ac26: d003 beq.n 800ac30 <_dtoa_r+0x988> - 800ac28: 4641 mov r1, r8 - 800ac2a: 4628 mov r0, r5 - 800ac2c: f000 fc00 bl 800b430 <_Bfree> - 800ac30: 4631 mov r1, r6 - 800ac32: 4628 mov r0, r5 - 800ac34: f000 fbfc bl 800b430 <_Bfree> - 800ac38: e698 b.n 800a96c <_dtoa_r+0x6c4> - 800ac3a: 2400 movs r4, #0 - 800ac3c: 4626 mov r6, r4 - 800ac3e: e7e1 b.n 800ac04 <_dtoa_r+0x95c> - 800ac40: 46c2 mov sl, r8 - 800ac42: 4626 mov r6, r4 - 800ac44: e596 b.n 800a774 <_dtoa_r+0x4cc> - 800ac46: 9b0b ldr r3, [sp, #44] ; 0x2c - 800ac48: f8dd 9020 ldr.w r9, [sp, #32] - 800ac4c: 2b00 cmp r3, #0 - 800ac4e: f000 80fd beq.w 800ae4c <_dtoa_r+0xba4> - 800ac52: 2f00 cmp r7, #0 - 800ac54: dd05 ble.n 800ac62 <_dtoa_r+0x9ba> - 800ac56: 4631 mov r1, r6 - 800ac58: 463a mov r2, r7 - 800ac5a: 4628 mov r0, r5 - 800ac5c: f000 fdb6 bl 800b7cc <__lshift> - 800ac60: 4606 mov r6, r0 - 800ac62: f1b8 0f00 cmp.w r8, #0 - 800ac66: d05c beq.n 800ad22 <_dtoa_r+0xa7a> - 800ac68: 4628 mov r0, r5 - 800ac6a: 6871 ldr r1, [r6, #4] - 800ac6c: f000 fba0 bl 800b3b0 <_Balloc> - 800ac70: 4607 mov r7, r0 - 800ac72: b928 cbnz r0, 800ac80 <_dtoa_r+0x9d8> - 800ac74: 4602 mov r2, r0 - 800ac76: f240 21ea movw r1, #746 ; 0x2ea - 800ac7a: 4b7f ldr r3, [pc, #508] ; (800ae78 <_dtoa_r+0xbd0>) - 800ac7c: f7ff bb28 b.w 800a2d0 <_dtoa_r+0x28> - 800ac80: 6932 ldr r2, [r6, #16] - 800ac82: f106 010c add.w r1, r6, #12 - 800ac86: 3202 adds r2, #2 - 800ac88: 0092 lsls r2, r2, #2 - 800ac8a: 300c adds r0, #12 - 800ac8c: f7fe f960 bl 8008f50 - 800ac90: 2201 movs r2, #1 - 800ac92: 4639 mov r1, r7 - 800ac94: 4628 mov r0, r5 - 800ac96: f000 fd99 bl 800b7cc <__lshift> - 800ac9a: 46b0 mov r8, r6 - 800ac9c: 4606 mov r6, r0 - 800ac9e: 9b03 ldr r3, [sp, #12] - 800aca0: 3301 adds r3, #1 - 800aca2: 9308 str r3, [sp, #32] - 800aca4: 9b03 ldr r3, [sp, #12] - 800aca6: 444b add r3, r9 - 800aca8: 930a str r3, [sp, #40] ; 0x28 - 800acaa: 9b04 ldr r3, [sp, #16] - 800acac: f003 0301 and.w r3, r3, #1 - 800acb0: 9309 str r3, [sp, #36] ; 0x24 - 800acb2: 9b08 ldr r3, [sp, #32] - 800acb4: 4621 mov r1, r4 - 800acb6: 3b01 subs r3, #1 - 800acb8: 4658 mov r0, fp - 800acba: 9304 str r3, [sp, #16] - 800acbc: f7ff fa68 bl 800a190 - 800acc0: 4603 mov r3, r0 - 800acc2: 4641 mov r1, r8 - 800acc4: 3330 adds r3, #48 ; 0x30 - 800acc6: 9006 str r0, [sp, #24] - 800acc8: 4658 mov r0, fp - 800acca: 930b str r3, [sp, #44] ; 0x2c - 800accc: f000 fdee bl 800b8ac <__mcmp> - 800acd0: 4632 mov r2, r6 - 800acd2: 4681 mov r9, r0 - 800acd4: 4621 mov r1, r4 - 800acd6: 4628 mov r0, r5 - 800acd8: f000 fe04 bl 800b8e4 <__mdiff> - 800acdc: 68c2 ldr r2, [r0, #12] - 800acde: 4607 mov r7, r0 - 800ace0: 9b0b ldr r3, [sp, #44] ; 0x2c - 800ace2: bb02 cbnz r2, 800ad26 <_dtoa_r+0xa7e> - 800ace4: 4601 mov r1, r0 - 800ace6: 4658 mov r0, fp - 800ace8: f000 fde0 bl 800b8ac <__mcmp> - 800acec: 4602 mov r2, r0 - 800acee: 9b0b ldr r3, [sp, #44] ; 0x2c - 800acf0: 4639 mov r1, r7 - 800acf2: 4628 mov r0, r5 - 800acf4: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c - 800acf8: f000 fb9a bl 800b430 <_Bfree> - 800acfc: 9b22 ldr r3, [sp, #136] ; 0x88 - 800acfe: 9a0c ldr r2, [sp, #48] ; 0x30 - 800ad00: 9f08 ldr r7, [sp, #32] - 800ad02: ea43 0102 orr.w r1, r3, r2 - 800ad06: 9b09 ldr r3, [sp, #36] ; 0x24 - 800ad08: 430b orrs r3, r1 - 800ad0a: 9b0b ldr r3, [sp, #44] ; 0x2c - 800ad0c: d10d bne.n 800ad2a <_dtoa_r+0xa82> - 800ad0e: 2b39 cmp r3, #57 ; 0x39 - 800ad10: d029 beq.n 800ad66 <_dtoa_r+0xabe> - 800ad12: f1b9 0f00 cmp.w r9, #0 - 800ad16: dd01 ble.n 800ad1c <_dtoa_r+0xa74> - 800ad18: 9b06 ldr r3, [sp, #24] - 800ad1a: 3331 adds r3, #49 ; 0x31 - 800ad1c: 9a04 ldr r2, [sp, #16] - 800ad1e: 7013 strb r3, [r2, #0] - 800ad20: e776 b.n 800ac10 <_dtoa_r+0x968> - 800ad22: 4630 mov r0, r6 - 800ad24: e7b9 b.n 800ac9a <_dtoa_r+0x9f2> - 800ad26: 2201 movs r2, #1 - 800ad28: e7e2 b.n 800acf0 <_dtoa_r+0xa48> - 800ad2a: f1b9 0f00 cmp.w r9, #0 - 800ad2e: db06 blt.n 800ad3e <_dtoa_r+0xa96> - 800ad30: 9922 ldr r1, [sp, #136] ; 0x88 - 800ad32: ea41 0909 orr.w r9, r1, r9 - 800ad36: 9909 ldr r1, [sp, #36] ; 0x24 - 800ad38: ea59 0101 orrs.w r1, r9, r1 - 800ad3c: d120 bne.n 800ad80 <_dtoa_r+0xad8> - 800ad3e: 2a00 cmp r2, #0 - 800ad40: ddec ble.n 800ad1c <_dtoa_r+0xa74> - 800ad42: 4659 mov r1, fp - 800ad44: 2201 movs r2, #1 - 800ad46: 4628 mov r0, r5 - 800ad48: 9308 str r3, [sp, #32] - 800ad4a: f000 fd3f bl 800b7cc <__lshift> + 800a890: f7f5 ffc2 bl 8000818 <__aeabi_ddiv> + 800a894: e9cd 0104 strd r0, r1, [sp, #16] + 800a898: e029 b.n 800a8ee <_dtoa_r+0x3d6> + 800a89a: 2702 movs r7, #2 + 800a89c: e7f2 b.n 800a884 <_dtoa_r+0x36c> + 800a89e: 07e1 lsls r1, r4, #31 + 800a8a0: d508 bpl.n 800a8b4 <_dtoa_r+0x39c> + 800a8a2: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800a8a6: e9d6 2300 ldrd r2, r3, [r6] + 800a8aa: f7f5 fe8b bl 80005c4 <__aeabi_dmul> + 800a8ae: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 800a8b2: 3701 adds r7, #1 + 800a8b4: 1064 asrs r4, r4, #1 + 800a8b6: 3608 adds r6, #8 + 800a8b8: e7e5 b.n 800a886 <_dtoa_r+0x36e> + 800a8ba: f000 80a5 beq.w 800aa08 <_dtoa_r+0x4f0> + 800a8be: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 800a8c2: f1ca 0400 rsb r4, sl, #0 + 800a8c6: 4b7d ldr r3, [pc, #500] ; (800aabc <_dtoa_r+0x5a4>) + 800a8c8: f004 020f and.w r2, r4, #15 + 800a8cc: eb03 03c2 add.w r3, r3, r2, lsl #3 + 800a8d0: e9d3 2300 ldrd r2, r3, [r3] + 800a8d4: f7f5 fe76 bl 80005c4 <__aeabi_dmul> + 800a8d8: 2702 movs r7, #2 + 800a8da: 2300 movs r3, #0 + 800a8dc: e9cd 0104 strd r0, r1, [sp, #16] + 800a8e0: 4e77 ldr r6, [pc, #476] ; (800aac0 <_dtoa_r+0x5a8>) + 800a8e2: 1124 asrs r4, r4, #4 + 800a8e4: 2c00 cmp r4, #0 + 800a8e6: f040 8084 bne.w 800a9f2 <_dtoa_r+0x4da> + 800a8ea: 2b00 cmp r3, #0 + 800a8ec: d1d2 bne.n 800a894 <_dtoa_r+0x37c> + 800a8ee: 9b0f ldr r3, [sp, #60] ; 0x3c + 800a8f0: 2b00 cmp r3, #0 + 800a8f2: f000 808b beq.w 800aa0c <_dtoa_r+0x4f4> + 800a8f6: e9dd 3404 ldrd r3, r4, [sp, #16] + 800a8fa: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 + 800a8fe: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800a902: 2200 movs r2, #0 + 800a904: 4b6f ldr r3, [pc, #444] ; (800aac4 <_dtoa_r+0x5ac>) + 800a906: f7f6 f8cf bl 8000aa8 <__aeabi_dcmplt> + 800a90a: 2800 cmp r0, #0 + 800a90c: d07e beq.n 800aa0c <_dtoa_r+0x4f4> + 800a90e: 9b08 ldr r3, [sp, #32] + 800a910: 2b00 cmp r3, #0 + 800a912: d07b beq.n 800aa0c <_dtoa_r+0x4f4> + 800a914: f1b9 0f00 cmp.w r9, #0 + 800a918: dd38 ble.n 800a98c <_dtoa_r+0x474> + 800a91a: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800a91e: 2200 movs r2, #0 + 800a920: 4b69 ldr r3, [pc, #420] ; (800aac8 <_dtoa_r+0x5b0>) + 800a922: f7f5 fe4f bl 80005c4 <__aeabi_dmul> + 800a926: 464c mov r4, r9 + 800a928: e9cd 0104 strd r0, r1, [sp, #16] + 800a92c: f10a 38ff add.w r8, sl, #4294967295 ; 0xffffffff + 800a930: 3701 adds r7, #1 + 800a932: 4638 mov r0, r7 + 800a934: f7f5 fddc bl 80004f0 <__aeabi_i2d> + 800a938: e9dd 2304 ldrd r2, r3, [sp, #16] + 800a93c: f7f5 fe42 bl 80005c4 <__aeabi_dmul> + 800a940: 2200 movs r2, #0 + 800a942: 4b62 ldr r3, [pc, #392] ; (800aacc <_dtoa_r+0x5b4>) + 800a944: f7f5 fc88 bl 8000258 <__adddf3> + 800a948: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 + 800a94c: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 800a950: 9611 str r6, [sp, #68] ; 0x44 + 800a952: 2c00 cmp r4, #0 + 800a954: d15d bne.n 800aa12 <_dtoa_r+0x4fa> + 800a956: e9dd 0104 ldrd r0, r1, [sp, #16] + 800a95a: 2200 movs r2, #0 + 800a95c: 4b5c ldr r3, [pc, #368] ; (800aad0 <_dtoa_r+0x5b8>) + 800a95e: f7f5 fc79 bl 8000254 <__aeabi_dsub> + 800a962: 4602 mov r2, r0 + 800a964: 460b mov r3, r1 + 800a966: e9cd 2304 strd r2, r3, [sp, #16] + 800a96a: 4633 mov r3, r6 + 800a96c: 9a10 ldr r2, [sp, #64] ; 0x40 + 800a96e: f7f6 f8b9 bl 8000ae4 <__aeabi_dcmpgt> + 800a972: 2800 cmp r0, #0 + 800a974: f040 829c bne.w 800aeb0 <_dtoa_r+0x998> + 800a978: e9dd 0104 ldrd r0, r1, [sp, #16] + 800a97c: 9a10 ldr r2, [sp, #64] ; 0x40 + 800a97e: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 + 800a982: f7f6 f891 bl 8000aa8 <__aeabi_dcmplt> + 800a986: 2800 cmp r0, #0 + 800a988: f040 8290 bne.w 800aeac <_dtoa_r+0x994> + 800a98c: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 + 800a990: e9cd 3404 strd r3, r4, [sp, #16] + 800a994: 9b17 ldr r3, [sp, #92] ; 0x5c + 800a996: 2b00 cmp r3, #0 + 800a998: f2c0 8152 blt.w 800ac40 <_dtoa_r+0x728> + 800a99c: f1ba 0f0e cmp.w sl, #14 + 800a9a0: f300 814e bgt.w 800ac40 <_dtoa_r+0x728> + 800a9a4: 4b45 ldr r3, [pc, #276] ; (800aabc <_dtoa_r+0x5a4>) + 800a9a6: eb03 03ca add.w r3, r3, sl, lsl #3 + 800a9aa: e9d3 3400 ldrd r3, r4, [r3] + 800a9ae: e9cd 3406 strd r3, r4, [sp, #24] + 800a9b2: 9b23 ldr r3, [sp, #140] ; 0x8c + 800a9b4: 2b00 cmp r3, #0 + 800a9b6: f280 80db bge.w 800ab70 <_dtoa_r+0x658> + 800a9ba: 9b08 ldr r3, [sp, #32] + 800a9bc: 2b00 cmp r3, #0 + 800a9be: f300 80d7 bgt.w 800ab70 <_dtoa_r+0x658> + 800a9c2: f040 8272 bne.w 800aeaa <_dtoa_r+0x992> + 800a9c6: e9dd 0106 ldrd r0, r1, [sp, #24] + 800a9ca: 2200 movs r2, #0 + 800a9cc: 4b40 ldr r3, [pc, #256] ; (800aad0 <_dtoa_r+0x5b8>) + 800a9ce: f7f5 fdf9 bl 80005c4 <__aeabi_dmul> + 800a9d2: e9dd 2304 ldrd r2, r3, [sp, #16] + 800a9d6: f7f6 f87b bl 8000ad0 <__aeabi_dcmpge> + 800a9da: 9c08 ldr r4, [sp, #32] + 800a9dc: 4626 mov r6, r4 + 800a9de: 2800 cmp r0, #0 + 800a9e0: f040 8248 bne.w 800ae74 <_dtoa_r+0x95c> + 800a9e4: 2331 movs r3, #49 ; 0x31 + 800a9e6: 9f03 ldr r7, [sp, #12] + 800a9e8: f10a 0a01 add.w sl, sl, #1 + 800a9ec: f807 3b01 strb.w r3, [r7], #1 + 800a9f0: e244 b.n 800ae7c <_dtoa_r+0x964> + 800a9f2: 07e2 lsls r2, r4, #31 + 800a9f4: d505 bpl.n 800aa02 <_dtoa_r+0x4ea> + 800a9f6: e9d6 2300 ldrd r2, r3, [r6] + 800a9fa: f7f5 fde3 bl 80005c4 <__aeabi_dmul> + 800a9fe: 2301 movs r3, #1 + 800aa00: 3701 adds r7, #1 + 800aa02: 1064 asrs r4, r4, #1 + 800aa04: 3608 adds r6, #8 + 800aa06: e76d b.n 800a8e4 <_dtoa_r+0x3cc> + 800aa08: 2702 movs r7, #2 + 800aa0a: e770 b.n 800a8ee <_dtoa_r+0x3d6> + 800aa0c: 46d0 mov r8, sl + 800aa0e: 9c08 ldr r4, [sp, #32] + 800aa10: e78f b.n 800a932 <_dtoa_r+0x41a> + 800aa12: 9903 ldr r1, [sp, #12] + 800aa14: 4b29 ldr r3, [pc, #164] ; (800aabc <_dtoa_r+0x5a4>) + 800aa16: 4421 add r1, r4 + 800aa18: 9112 str r1, [sp, #72] ; 0x48 + 800aa1a: 990b ldr r1, [sp, #44] ; 0x2c + 800aa1c: eb03 03c4 add.w r3, r3, r4, lsl #3 + 800aa20: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 + 800aa24: e953 2302 ldrd r2, r3, [r3, #-8] + 800aa28: 2900 cmp r1, #0 + 800aa2a: d055 beq.n 800aad8 <_dtoa_r+0x5c0> + 800aa2c: 2000 movs r0, #0 + 800aa2e: 4929 ldr r1, [pc, #164] ; (800aad4 <_dtoa_r+0x5bc>) + 800aa30: f7f5 fef2 bl 8000818 <__aeabi_ddiv> + 800aa34: 463b mov r3, r7 + 800aa36: 4632 mov r2, r6 + 800aa38: f7f5 fc0c bl 8000254 <__aeabi_dsub> + 800aa3c: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 800aa40: 9f03 ldr r7, [sp, #12] + 800aa42: e9dd 0104 ldrd r0, r1, [sp, #16] + 800aa46: f7f6 f86d bl 8000b24 <__aeabi_d2iz> + 800aa4a: 4604 mov r4, r0 + 800aa4c: f7f5 fd50 bl 80004f0 <__aeabi_i2d> + 800aa50: 4602 mov r2, r0 + 800aa52: 460b mov r3, r1 + 800aa54: e9dd 0104 ldrd r0, r1, [sp, #16] + 800aa58: f7f5 fbfc bl 8000254 <__aeabi_dsub> + 800aa5c: 4602 mov r2, r0 + 800aa5e: 460b mov r3, r1 + 800aa60: 3430 adds r4, #48 ; 0x30 + 800aa62: e9cd 2304 strd r2, r3, [sp, #16] + 800aa66: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 800aa6a: f807 4b01 strb.w r4, [r7], #1 + 800aa6e: f7f6 f81b bl 8000aa8 <__aeabi_dcmplt> + 800aa72: 2800 cmp r0, #0 + 800aa74: d174 bne.n 800ab60 <_dtoa_r+0x648> + 800aa76: e9dd 2304 ldrd r2, r3, [sp, #16] + 800aa7a: 2000 movs r0, #0 + 800aa7c: 4911 ldr r1, [pc, #68] ; (800aac4 <_dtoa_r+0x5ac>) + 800aa7e: f7f5 fbe9 bl 8000254 <__aeabi_dsub> + 800aa82: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 800aa86: f7f6 f80f bl 8000aa8 <__aeabi_dcmplt> + 800aa8a: 2800 cmp r0, #0 + 800aa8c: f040 80b7 bne.w 800abfe <_dtoa_r+0x6e6> + 800aa90: 9b12 ldr r3, [sp, #72] ; 0x48 + 800aa92: 429f cmp r7, r3 + 800aa94: f43f af7a beq.w 800a98c <_dtoa_r+0x474> + 800aa98: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800aa9c: 2200 movs r2, #0 + 800aa9e: 4b0a ldr r3, [pc, #40] ; (800aac8 <_dtoa_r+0x5b0>) + 800aaa0: f7f5 fd90 bl 80005c4 <__aeabi_dmul> + 800aaa4: 2200 movs r2, #0 + 800aaa6: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 800aaaa: e9dd 0104 ldrd r0, r1, [sp, #16] + 800aaae: 4b06 ldr r3, [pc, #24] ; (800aac8 <_dtoa_r+0x5b0>) + 800aab0: f7f5 fd88 bl 80005c4 <__aeabi_dmul> + 800aab4: e9cd 0104 strd r0, r1, [sp, #16] + 800aab8: e7c3 b.n 800aa42 <_dtoa_r+0x52a> + 800aaba: bf00 nop + 800aabc: 0800d5b8 .word 0x0800d5b8 + 800aac0: 0800d590 .word 0x0800d590 + 800aac4: 3ff00000 .word 0x3ff00000 + 800aac8: 40240000 .word 0x40240000 + 800aacc: 401c0000 .word 0x401c0000 + 800aad0: 40140000 .word 0x40140000 + 800aad4: 3fe00000 .word 0x3fe00000 + 800aad8: 4630 mov r0, r6 + 800aada: 4639 mov r1, r7 + 800aadc: f7f5 fd72 bl 80005c4 <__aeabi_dmul> + 800aae0: 9b12 ldr r3, [sp, #72] ; 0x48 + 800aae2: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 800aae6: 9c03 ldr r4, [sp, #12] + 800aae8: 9314 str r3, [sp, #80] ; 0x50 + 800aaea: e9dd 0104 ldrd r0, r1, [sp, #16] + 800aaee: f7f6 f819 bl 8000b24 <__aeabi_d2iz> + 800aaf2: 9015 str r0, [sp, #84] ; 0x54 + 800aaf4: f7f5 fcfc bl 80004f0 <__aeabi_i2d> + 800aaf8: 4602 mov r2, r0 + 800aafa: 460b mov r3, r1 + 800aafc: e9dd 0104 ldrd r0, r1, [sp, #16] + 800ab00: f7f5 fba8 bl 8000254 <__aeabi_dsub> + 800ab04: 9b15 ldr r3, [sp, #84] ; 0x54 + 800ab06: 4606 mov r6, r0 + 800ab08: 3330 adds r3, #48 ; 0x30 + 800ab0a: f804 3b01 strb.w r3, [r4], #1 + 800ab0e: 9b12 ldr r3, [sp, #72] ; 0x48 + 800ab10: 460f mov r7, r1 + 800ab12: 429c cmp r4, r3 + 800ab14: f04f 0200 mov.w r2, #0 + 800ab18: d124 bne.n 800ab64 <_dtoa_r+0x64c> + 800ab1a: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800ab1e: 4bb0 ldr r3, [pc, #704] ; (800ade0 <_dtoa_r+0x8c8>) + 800ab20: f7f5 fb9a bl 8000258 <__adddf3> + 800ab24: 4602 mov r2, r0 + 800ab26: 460b mov r3, r1 + 800ab28: 4630 mov r0, r6 + 800ab2a: 4639 mov r1, r7 + 800ab2c: f7f5 ffda bl 8000ae4 <__aeabi_dcmpgt> + 800ab30: 2800 cmp r0, #0 + 800ab32: d163 bne.n 800abfc <_dtoa_r+0x6e4> + 800ab34: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 800ab38: 2000 movs r0, #0 + 800ab3a: 49a9 ldr r1, [pc, #676] ; (800ade0 <_dtoa_r+0x8c8>) + 800ab3c: f7f5 fb8a bl 8000254 <__aeabi_dsub> + 800ab40: 4602 mov r2, r0 + 800ab42: 460b mov r3, r1 + 800ab44: 4630 mov r0, r6 + 800ab46: 4639 mov r1, r7 + 800ab48: f7f5 ffae bl 8000aa8 <__aeabi_dcmplt> + 800ab4c: 2800 cmp r0, #0 + 800ab4e: f43f af1d beq.w 800a98c <_dtoa_r+0x474> + 800ab52: 9f14 ldr r7, [sp, #80] ; 0x50 + 800ab54: 1e7b subs r3, r7, #1 + 800ab56: 9314 str r3, [sp, #80] ; 0x50 + 800ab58: f817 3c01 ldrb.w r3, [r7, #-1] + 800ab5c: 2b30 cmp r3, #48 ; 0x30 + 800ab5e: d0f8 beq.n 800ab52 <_dtoa_r+0x63a> + 800ab60: 46c2 mov sl, r8 + 800ab62: e03b b.n 800abdc <_dtoa_r+0x6c4> + 800ab64: 4b9f ldr r3, [pc, #636] ; (800ade4 <_dtoa_r+0x8cc>) + 800ab66: f7f5 fd2d bl 80005c4 <__aeabi_dmul> + 800ab6a: e9cd 0104 strd r0, r1, [sp, #16] + 800ab6e: e7bc b.n 800aaea <_dtoa_r+0x5d2> + 800ab70: 9f03 ldr r7, [sp, #12] + 800ab72: e9dd 8904 ldrd r8, r9, [sp, #16] + 800ab76: e9dd 2306 ldrd r2, r3, [sp, #24] + 800ab7a: 4640 mov r0, r8 + 800ab7c: 4649 mov r1, r9 + 800ab7e: f7f5 fe4b bl 8000818 <__aeabi_ddiv> + 800ab82: f7f5 ffcf bl 8000b24 <__aeabi_d2iz> + 800ab86: 4604 mov r4, r0 + 800ab88: f7f5 fcb2 bl 80004f0 <__aeabi_i2d> + 800ab8c: e9dd 2306 ldrd r2, r3, [sp, #24] + 800ab90: f7f5 fd18 bl 80005c4 <__aeabi_dmul> + 800ab94: 4602 mov r2, r0 + 800ab96: 460b mov r3, r1 + 800ab98: 4640 mov r0, r8 + 800ab9a: 4649 mov r1, r9 + 800ab9c: f7f5 fb5a bl 8000254 <__aeabi_dsub> + 800aba0: f104 0630 add.w r6, r4, #48 ; 0x30 + 800aba4: f807 6b01 strb.w r6, [r7], #1 + 800aba8: 9e03 ldr r6, [sp, #12] + 800abaa: f8dd c020 ldr.w ip, [sp, #32] + 800abae: 1bbe subs r6, r7, r6 + 800abb0: 45b4 cmp ip, r6 + 800abb2: 4602 mov r2, r0 + 800abb4: 460b mov r3, r1 + 800abb6: d136 bne.n 800ac26 <_dtoa_r+0x70e> + 800abb8: f7f5 fb4e bl 8000258 <__adddf3> + 800abbc: e9dd 2306 ldrd r2, r3, [sp, #24] + 800abc0: 4680 mov r8, r0 + 800abc2: 4689 mov r9, r1 + 800abc4: f7f5 ff8e bl 8000ae4 <__aeabi_dcmpgt> + 800abc8: bb58 cbnz r0, 800ac22 <_dtoa_r+0x70a> + 800abca: e9dd 2306 ldrd r2, r3, [sp, #24] + 800abce: 4640 mov r0, r8 + 800abd0: 4649 mov r1, r9 + 800abd2: f7f5 ff5f bl 8000a94 <__aeabi_dcmpeq> + 800abd6: b108 cbz r0, 800abdc <_dtoa_r+0x6c4> + 800abd8: 07e1 lsls r1, r4, #31 + 800abda: d422 bmi.n 800ac22 <_dtoa_r+0x70a> + 800abdc: 4628 mov r0, r5 + 800abde: 4659 mov r1, fp + 800abe0: f000 fd5e bl 800b6a0 <_Bfree> + 800abe4: 2300 movs r3, #0 + 800abe6: 703b strb r3, [r7, #0] + 800abe8: 9b24 ldr r3, [sp, #144] ; 0x90 + 800abea: f10a 0001 add.w r0, sl, #1 + 800abee: 6018 str r0, [r3, #0] + 800abf0: 9b26 ldr r3, [sp, #152] ; 0x98 + 800abf2: 2b00 cmp r3, #0 + 800abf4: f43f acde beq.w 800a5b4 <_dtoa_r+0x9c> + 800abf8: 601f str r7, [r3, #0] + 800abfa: e4db b.n 800a5b4 <_dtoa_r+0x9c> + 800abfc: 4627 mov r7, r4 + 800abfe: 463b mov r3, r7 + 800ac00: 461f mov r7, r3 + 800ac02: f813 2d01 ldrb.w r2, [r3, #-1]! + 800ac06: 2a39 cmp r2, #57 ; 0x39 + 800ac08: d107 bne.n 800ac1a <_dtoa_r+0x702> + 800ac0a: 9a03 ldr r2, [sp, #12] + 800ac0c: 429a cmp r2, r3 + 800ac0e: d1f7 bne.n 800ac00 <_dtoa_r+0x6e8> + 800ac10: 2230 movs r2, #48 ; 0x30 + 800ac12: 9903 ldr r1, [sp, #12] + 800ac14: f108 0801 add.w r8, r8, #1 + 800ac18: 700a strb r2, [r1, #0] + 800ac1a: 781a ldrb r2, [r3, #0] + 800ac1c: 3201 adds r2, #1 + 800ac1e: 701a strb r2, [r3, #0] + 800ac20: e79e b.n 800ab60 <_dtoa_r+0x648> + 800ac22: 46d0 mov r8, sl + 800ac24: e7eb b.n 800abfe <_dtoa_r+0x6e6> + 800ac26: 2200 movs r2, #0 + 800ac28: 4b6e ldr r3, [pc, #440] ; (800ade4 <_dtoa_r+0x8cc>) + 800ac2a: f7f5 fccb bl 80005c4 <__aeabi_dmul> + 800ac2e: 2200 movs r2, #0 + 800ac30: 2300 movs r3, #0 + 800ac32: 4680 mov r8, r0 + 800ac34: 4689 mov r9, r1 + 800ac36: f7f5 ff2d bl 8000a94 <__aeabi_dcmpeq> + 800ac3a: 2800 cmp r0, #0 + 800ac3c: d09b beq.n 800ab76 <_dtoa_r+0x65e> + 800ac3e: e7cd b.n 800abdc <_dtoa_r+0x6c4> + 800ac40: 9a0b ldr r2, [sp, #44] ; 0x2c + 800ac42: 2a00 cmp r2, #0 + 800ac44: f000 80d0 beq.w 800ade8 <_dtoa_r+0x8d0> + 800ac48: 9a22 ldr r2, [sp, #136] ; 0x88 + 800ac4a: 2a01 cmp r2, #1 + 800ac4c: f300 80ae bgt.w 800adac <_dtoa_r+0x894> + 800ac50: 9a13 ldr r2, [sp, #76] ; 0x4c + 800ac52: 2a00 cmp r2, #0 + 800ac54: f000 80a6 beq.w 800ada4 <_dtoa_r+0x88c> + 800ac58: f203 4333 addw r3, r3, #1075 ; 0x433 + 800ac5c: 9c0a ldr r4, [sp, #40] ; 0x28 + 800ac5e: 9f06 ldr r7, [sp, #24] + 800ac60: 9a06 ldr r2, [sp, #24] + 800ac62: 2101 movs r1, #1 + 800ac64: 441a add r2, r3 + 800ac66: 9206 str r2, [sp, #24] + 800ac68: 9a09 ldr r2, [sp, #36] ; 0x24 + 800ac6a: 4628 mov r0, r5 + 800ac6c: 441a add r2, r3 + 800ac6e: 9209 str r2, [sp, #36] ; 0x24 + 800ac70: f000 fdcc bl 800b80c <__i2b> + 800ac74: 4606 mov r6, r0 + 800ac76: 2f00 cmp r7, #0 + 800ac78: dd0c ble.n 800ac94 <_dtoa_r+0x77c> + 800ac7a: 9b09 ldr r3, [sp, #36] ; 0x24 + 800ac7c: 2b00 cmp r3, #0 + 800ac7e: dd09 ble.n 800ac94 <_dtoa_r+0x77c> + 800ac80: 42bb cmp r3, r7 + 800ac82: bfa8 it ge + 800ac84: 463b movge r3, r7 + 800ac86: 9a06 ldr r2, [sp, #24] + 800ac88: 1aff subs r7, r7, r3 + 800ac8a: 1ad2 subs r2, r2, r3 + 800ac8c: 9206 str r2, [sp, #24] + 800ac8e: 9a09 ldr r2, [sp, #36] ; 0x24 + 800ac90: 1ad3 subs r3, r2, r3 + 800ac92: 9309 str r3, [sp, #36] ; 0x24 + 800ac94: 9b0a ldr r3, [sp, #40] ; 0x28 + 800ac96: b1f3 cbz r3, 800acd6 <_dtoa_r+0x7be> + 800ac98: 9b0b ldr r3, [sp, #44] ; 0x2c + 800ac9a: 2b00 cmp r3, #0 + 800ac9c: f000 80a8 beq.w 800adf0 <_dtoa_r+0x8d8> + 800aca0: 2c00 cmp r4, #0 + 800aca2: dd10 ble.n 800acc6 <_dtoa_r+0x7ae> + 800aca4: 4631 mov r1, r6 + 800aca6: 4622 mov r2, r4 + 800aca8: 4628 mov r0, r5 + 800acaa: f000 fe6d bl 800b988 <__pow5mult> + 800acae: 465a mov r2, fp + 800acb0: 4601 mov r1, r0 + 800acb2: 4606 mov r6, r0 + 800acb4: 4628 mov r0, r5 + 800acb6: f000 fdbf bl 800b838 <__multiply> + 800acba: 4680 mov r8, r0 + 800acbc: 4659 mov r1, fp + 800acbe: 4628 mov r0, r5 + 800acc0: f000 fcee bl 800b6a0 <_Bfree> + 800acc4: 46c3 mov fp, r8 + 800acc6: 9b0a ldr r3, [sp, #40] ; 0x28 + 800acc8: 1b1a subs r2, r3, r4 + 800acca: d004 beq.n 800acd6 <_dtoa_r+0x7be> + 800accc: 4659 mov r1, fp + 800acce: 4628 mov r0, r5 + 800acd0: f000 fe5a bl 800b988 <__pow5mult> + 800acd4: 4683 mov fp, r0 + 800acd6: 2101 movs r1, #1 + 800acd8: 4628 mov r0, r5 + 800acda: f000 fd97 bl 800b80c <__i2b> + 800acde: 9b0e ldr r3, [sp, #56] ; 0x38 + 800ace0: 4604 mov r4, r0 + 800ace2: 2b00 cmp r3, #0 + 800ace4: f340 8086 ble.w 800adf4 <_dtoa_r+0x8dc> + 800ace8: 461a mov r2, r3 + 800acea: 4601 mov r1, r0 + 800acec: 4628 mov r0, r5 + 800acee: f000 fe4b bl 800b988 <__pow5mult> + 800acf2: 9b22 ldr r3, [sp, #136] ; 0x88 + 800acf4: 4604 mov r4, r0 + 800acf6: 2b01 cmp r3, #1 + 800acf8: dd7f ble.n 800adfa <_dtoa_r+0x8e2> + 800acfa: f04f 0800 mov.w r8, #0 + 800acfe: 6923 ldr r3, [r4, #16] + 800ad00: eb04 0383 add.w r3, r4, r3, lsl #2 + 800ad04: 6918 ldr r0, [r3, #16] + 800ad06: f000 fd33 bl 800b770 <__hi0bits> + 800ad0a: f1c0 0020 rsb r0, r0, #32 + 800ad0e: 9b09 ldr r3, [sp, #36] ; 0x24 + 800ad10: 4418 add r0, r3 + 800ad12: f010 001f ands.w r0, r0, #31 + 800ad16: f000 8092 beq.w 800ae3e <_dtoa_r+0x926> + 800ad1a: f1c0 0320 rsb r3, r0, #32 + 800ad1e: 2b04 cmp r3, #4 + 800ad20: f340 808a ble.w 800ae38 <_dtoa_r+0x920> + 800ad24: f1c0 001c rsb r0, r0, #28 + 800ad28: 9b06 ldr r3, [sp, #24] + 800ad2a: 4407 add r7, r0 + 800ad2c: 4403 add r3, r0 + 800ad2e: 9306 str r3, [sp, #24] + 800ad30: 9b09 ldr r3, [sp, #36] ; 0x24 + 800ad32: 4403 add r3, r0 + 800ad34: 9309 str r3, [sp, #36] ; 0x24 + 800ad36: 9b06 ldr r3, [sp, #24] + 800ad38: 2b00 cmp r3, #0 + 800ad3a: dd05 ble.n 800ad48 <_dtoa_r+0x830> + 800ad3c: 4659 mov r1, fp + 800ad3e: 461a mov r2, r3 + 800ad40: 4628 mov r0, r5 + 800ad42: f000 fe7b bl 800ba3c <__lshift> + 800ad46: 4683 mov fp, r0 + 800ad48: 9b09 ldr r3, [sp, #36] ; 0x24 + 800ad4a: 2b00 cmp r3, #0 + 800ad4c: dd05 ble.n 800ad5a <_dtoa_r+0x842> 800ad4e: 4621 mov r1, r4 - 800ad50: 4683 mov fp, r0 - 800ad52: f000 fdab bl 800b8ac <__mcmp> - 800ad56: 2800 cmp r0, #0 - 800ad58: 9b08 ldr r3, [sp, #32] - 800ad5a: dc02 bgt.n 800ad62 <_dtoa_r+0xaba> - 800ad5c: d1de bne.n 800ad1c <_dtoa_r+0xa74> - 800ad5e: 07da lsls r2, r3, #31 - 800ad60: d5dc bpl.n 800ad1c <_dtoa_r+0xa74> - 800ad62: 2b39 cmp r3, #57 ; 0x39 - 800ad64: d1d8 bne.n 800ad18 <_dtoa_r+0xa70> - 800ad66: 2339 movs r3, #57 ; 0x39 - 800ad68: 9a04 ldr r2, [sp, #16] - 800ad6a: 7013 strb r3, [r2, #0] - 800ad6c: 463b mov r3, r7 - 800ad6e: 461f mov r7, r3 - 800ad70: f817 2c01 ldrb.w r2, [r7, #-1] - 800ad74: 3b01 subs r3, #1 - 800ad76: 2a39 cmp r2, #57 ; 0x39 - 800ad78: d050 beq.n 800ae1c <_dtoa_r+0xb74> - 800ad7a: 3201 adds r2, #1 - 800ad7c: 701a strb r2, [r3, #0] - 800ad7e: e747 b.n 800ac10 <_dtoa_r+0x968> - 800ad80: 2a00 cmp r2, #0 - 800ad82: dd03 ble.n 800ad8c <_dtoa_r+0xae4> - 800ad84: 2b39 cmp r3, #57 ; 0x39 - 800ad86: d0ee beq.n 800ad66 <_dtoa_r+0xabe> - 800ad88: 3301 adds r3, #1 - 800ad8a: e7c7 b.n 800ad1c <_dtoa_r+0xa74> - 800ad8c: 9a08 ldr r2, [sp, #32] - 800ad8e: 990a ldr r1, [sp, #40] ; 0x28 - 800ad90: f802 3c01 strb.w r3, [r2, #-1] - 800ad94: 428a cmp r2, r1 - 800ad96: d02a beq.n 800adee <_dtoa_r+0xb46> - 800ad98: 4659 mov r1, fp - 800ad9a: 2300 movs r3, #0 - 800ad9c: 220a movs r2, #10 - 800ad9e: 4628 mov r0, r5 - 800ada0: f000 fb68 bl 800b474 <__multadd> - 800ada4: 45b0 cmp r8, r6 - 800ada6: 4683 mov fp, r0 - 800ada8: f04f 0300 mov.w r3, #0 - 800adac: f04f 020a mov.w r2, #10 - 800adb0: 4641 mov r1, r8 - 800adb2: 4628 mov r0, r5 - 800adb4: d107 bne.n 800adc6 <_dtoa_r+0xb1e> - 800adb6: f000 fb5d bl 800b474 <__multadd> - 800adba: 4680 mov r8, r0 - 800adbc: 4606 mov r6, r0 - 800adbe: 9b08 ldr r3, [sp, #32] - 800adc0: 3301 adds r3, #1 - 800adc2: 9308 str r3, [sp, #32] - 800adc4: e775 b.n 800acb2 <_dtoa_r+0xa0a> - 800adc6: f000 fb55 bl 800b474 <__multadd> - 800adca: 4631 mov r1, r6 - 800adcc: 4680 mov r8, r0 - 800adce: 2300 movs r3, #0 - 800add0: 220a movs r2, #10 - 800add2: 4628 mov r0, r5 - 800add4: f000 fb4e bl 800b474 <__multadd> - 800add8: 4606 mov r6, r0 - 800adda: e7f0 b.n 800adbe <_dtoa_r+0xb16> - 800addc: f1b9 0f00 cmp.w r9, #0 - 800ade0: bfcc ite gt - 800ade2: 464f movgt r7, r9 - 800ade4: 2701 movle r7, #1 - 800ade6: f04f 0800 mov.w r8, #0 - 800adea: 9a03 ldr r2, [sp, #12] - 800adec: 4417 add r7, r2 - 800adee: 4659 mov r1, fp - 800adf0: 2201 movs r2, #1 - 800adf2: 4628 mov r0, r5 - 800adf4: 9308 str r3, [sp, #32] - 800adf6: f000 fce9 bl 800b7cc <__lshift> - 800adfa: 4621 mov r1, r4 - 800adfc: 4683 mov fp, r0 - 800adfe: f000 fd55 bl 800b8ac <__mcmp> - 800ae02: 2800 cmp r0, #0 - 800ae04: dcb2 bgt.n 800ad6c <_dtoa_r+0xac4> - 800ae06: d102 bne.n 800ae0e <_dtoa_r+0xb66> - 800ae08: 9b08 ldr r3, [sp, #32] - 800ae0a: 07db lsls r3, r3, #31 - 800ae0c: d4ae bmi.n 800ad6c <_dtoa_r+0xac4> - 800ae0e: 463b mov r3, r7 - 800ae10: 461f mov r7, r3 - 800ae12: f813 2d01 ldrb.w r2, [r3, #-1]! - 800ae16: 2a30 cmp r2, #48 ; 0x30 - 800ae18: d0fa beq.n 800ae10 <_dtoa_r+0xb68> - 800ae1a: e6f9 b.n 800ac10 <_dtoa_r+0x968> - 800ae1c: 9a03 ldr r2, [sp, #12] - 800ae1e: 429a cmp r2, r3 - 800ae20: d1a5 bne.n 800ad6e <_dtoa_r+0xac6> - 800ae22: 2331 movs r3, #49 ; 0x31 - 800ae24: f10a 0a01 add.w sl, sl, #1 - 800ae28: e779 b.n 800ad1e <_dtoa_r+0xa76> - 800ae2a: 4b14 ldr r3, [pc, #80] ; (800ae7c <_dtoa_r+0xbd4>) - 800ae2c: f7ff baa8 b.w 800a380 <_dtoa_r+0xd8> - 800ae30: 9b26 ldr r3, [sp, #152] ; 0x98 - 800ae32: 2b00 cmp r3, #0 - 800ae34: f47f aa81 bne.w 800a33a <_dtoa_r+0x92> - 800ae38: 4b11 ldr r3, [pc, #68] ; (800ae80 <_dtoa_r+0xbd8>) - 800ae3a: f7ff baa1 b.w 800a380 <_dtoa_r+0xd8> - 800ae3e: f1b9 0f00 cmp.w r9, #0 - 800ae42: dc03 bgt.n 800ae4c <_dtoa_r+0xba4> - 800ae44: 9b22 ldr r3, [sp, #136] ; 0x88 - 800ae46: 2b02 cmp r3, #2 - 800ae48: f73f aecb bgt.w 800abe2 <_dtoa_r+0x93a> - 800ae4c: 9f03 ldr r7, [sp, #12] - 800ae4e: 4621 mov r1, r4 - 800ae50: 4658 mov r0, fp - 800ae52: f7ff f99d bl 800a190 - 800ae56: 9a03 ldr r2, [sp, #12] - 800ae58: f100 0330 add.w r3, r0, #48 ; 0x30 - 800ae5c: f807 3b01 strb.w r3, [r7], #1 - 800ae60: 1aba subs r2, r7, r2 - 800ae62: 4591 cmp r9, r2 - 800ae64: ddba ble.n 800addc <_dtoa_r+0xb34> - 800ae66: 4659 mov r1, fp - 800ae68: 2300 movs r3, #0 - 800ae6a: 220a movs r2, #10 - 800ae6c: 4628 mov r0, r5 - 800ae6e: f000 fb01 bl 800b474 <__multadd> - 800ae72: 4683 mov fp, r0 - 800ae74: e7eb b.n 800ae4e <_dtoa_r+0xba6> - 800ae76: bf00 nop - 800ae78: 0800d232 .word 0x0800d232 - 800ae7c: 0800d51c .word 0x0800d51c - 800ae80: 0800d1ca .word 0x0800d1ca - -0800ae84 <__sflush_r>: - 800ae84: 898a ldrh r2, [r1, #12] - 800ae86: b5f8 push {r3, r4, r5, r6, r7, lr} - 800ae88: 4605 mov r5, r0 - 800ae8a: 0710 lsls r0, r2, #28 - 800ae8c: 460c mov r4, r1 - 800ae8e: d457 bmi.n 800af40 <__sflush_r+0xbc> - 800ae90: 684b ldr r3, [r1, #4] - 800ae92: 2b00 cmp r3, #0 - 800ae94: dc04 bgt.n 800aea0 <__sflush_r+0x1c> - 800ae96: 6c0b ldr r3, [r1, #64] ; 0x40 - 800ae98: 2b00 cmp r3, #0 - 800ae9a: dc01 bgt.n 800aea0 <__sflush_r+0x1c> - 800ae9c: 2000 movs r0, #0 - 800ae9e: bdf8 pop {r3, r4, r5, r6, r7, pc} - 800aea0: 6ae6 ldr r6, [r4, #44] ; 0x2c - 800aea2: 2e00 cmp r6, #0 - 800aea4: d0fa beq.n 800ae9c <__sflush_r+0x18> - 800aea6: 2300 movs r3, #0 - 800aea8: f412 5280 ands.w r2, r2, #4096 ; 0x1000 - 800aeac: 682f ldr r7, [r5, #0] - 800aeae: 602b str r3, [r5, #0] - 800aeb0: d032 beq.n 800af18 <__sflush_r+0x94> - 800aeb2: 6d60 ldr r0, [r4, #84] ; 0x54 - 800aeb4: 89a3 ldrh r3, [r4, #12] - 800aeb6: 075a lsls r2, r3, #29 - 800aeb8: d505 bpl.n 800aec6 <__sflush_r+0x42> - 800aeba: 6863 ldr r3, [r4, #4] - 800aebc: 1ac0 subs r0, r0, r3 - 800aebe: 6b63 ldr r3, [r4, #52] ; 0x34 - 800aec0: b10b cbz r3, 800aec6 <__sflush_r+0x42> - 800aec2: 6c23 ldr r3, [r4, #64] ; 0x40 - 800aec4: 1ac0 subs r0, r0, r3 - 800aec6: 2300 movs r3, #0 - 800aec8: 4602 mov r2, r0 - 800aeca: 6ae6 ldr r6, [r4, #44] ; 0x2c - 800aecc: 4628 mov r0, r5 - 800aece: 6a21 ldr r1, [r4, #32] - 800aed0: 47b0 blx r6 - 800aed2: 1c43 adds r3, r0, #1 - 800aed4: 89a3 ldrh r3, [r4, #12] - 800aed6: d106 bne.n 800aee6 <__sflush_r+0x62> - 800aed8: 6829 ldr r1, [r5, #0] - 800aeda: 291d cmp r1, #29 - 800aedc: d82c bhi.n 800af38 <__sflush_r+0xb4> - 800aede: 4a29 ldr r2, [pc, #164] ; (800af84 <__sflush_r+0x100>) - 800aee0: 40ca lsrs r2, r1 - 800aee2: 07d6 lsls r6, r2, #31 - 800aee4: d528 bpl.n 800af38 <__sflush_r+0xb4> - 800aee6: 2200 movs r2, #0 - 800aee8: 6062 str r2, [r4, #4] - 800aeea: 6922 ldr r2, [r4, #16] - 800aeec: 04d9 lsls r1, r3, #19 - 800aeee: 6022 str r2, [r4, #0] - 800aef0: d504 bpl.n 800aefc <__sflush_r+0x78> - 800aef2: 1c42 adds r2, r0, #1 - 800aef4: d101 bne.n 800aefa <__sflush_r+0x76> - 800aef6: 682b ldr r3, [r5, #0] - 800aef8: b903 cbnz r3, 800aefc <__sflush_r+0x78> - 800aefa: 6560 str r0, [r4, #84] ; 0x54 - 800aefc: 6b61 ldr r1, [r4, #52] ; 0x34 - 800aefe: 602f str r7, [r5, #0] - 800af00: 2900 cmp r1, #0 - 800af02: d0cb beq.n 800ae9c <__sflush_r+0x18> - 800af04: f104 0344 add.w r3, r4, #68 ; 0x44 - 800af08: 4299 cmp r1, r3 - 800af0a: d002 beq.n 800af12 <__sflush_r+0x8e> - 800af0c: 4628 mov r0, r5 - 800af0e: f7fe f835 bl 8008f7c <_free_r> - 800af12: 2000 movs r0, #0 - 800af14: 6360 str r0, [r4, #52] ; 0x34 - 800af16: e7c2 b.n 800ae9e <__sflush_r+0x1a> - 800af18: 6a21 ldr r1, [r4, #32] - 800af1a: 2301 movs r3, #1 - 800af1c: 4628 mov r0, r5 - 800af1e: 47b0 blx r6 - 800af20: 1c41 adds r1, r0, #1 - 800af22: d1c7 bne.n 800aeb4 <__sflush_r+0x30> - 800af24: 682b ldr r3, [r5, #0] - 800af26: 2b00 cmp r3, #0 - 800af28: d0c4 beq.n 800aeb4 <__sflush_r+0x30> - 800af2a: 2b1d cmp r3, #29 - 800af2c: d001 beq.n 800af32 <__sflush_r+0xae> - 800af2e: 2b16 cmp r3, #22 - 800af30: d101 bne.n 800af36 <__sflush_r+0xb2> - 800af32: 602f str r7, [r5, #0] - 800af34: e7b2 b.n 800ae9c <__sflush_r+0x18> - 800af36: 89a3 ldrh r3, [r4, #12] - 800af38: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800af3c: 81a3 strh r3, [r4, #12] - 800af3e: e7ae b.n 800ae9e <__sflush_r+0x1a> - 800af40: 690f ldr r7, [r1, #16] - 800af42: 2f00 cmp r7, #0 - 800af44: d0aa beq.n 800ae9c <__sflush_r+0x18> - 800af46: 0793 lsls r3, r2, #30 - 800af48: bf18 it ne - 800af4a: 2300 movne r3, #0 - 800af4c: 680e ldr r6, [r1, #0] - 800af4e: bf08 it eq - 800af50: 694b ldreq r3, [r1, #20] - 800af52: 1bf6 subs r6, r6, r7 - 800af54: 600f str r7, [r1, #0] - 800af56: 608b str r3, [r1, #8] - 800af58: 2e00 cmp r6, #0 - 800af5a: dd9f ble.n 800ae9c <__sflush_r+0x18> - 800af5c: 4633 mov r3, r6 - 800af5e: 463a mov r2, r7 - 800af60: 4628 mov r0, r5 - 800af62: 6a21 ldr r1, [r4, #32] - 800af64: f8d4 c028 ldr.w ip, [r4, #40] ; 0x28 - 800af68: 47e0 blx ip - 800af6a: 2800 cmp r0, #0 - 800af6c: dc06 bgt.n 800af7c <__sflush_r+0xf8> - 800af6e: 89a3 ldrh r3, [r4, #12] - 800af70: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800af74: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800af78: 81a3 strh r3, [r4, #12] - 800af7a: e790 b.n 800ae9e <__sflush_r+0x1a> - 800af7c: 4407 add r7, r0 - 800af7e: 1a36 subs r6, r6, r0 - 800af80: e7ea b.n 800af58 <__sflush_r+0xd4> - 800af82: bf00 nop - 800af84: 20400001 .word 0x20400001 - -0800af88 <_fflush_r>: - 800af88: b538 push {r3, r4, r5, lr} - 800af8a: 690b ldr r3, [r1, #16] - 800af8c: 4605 mov r5, r0 - 800af8e: 460c mov r4, r1 - 800af90: b913 cbnz r3, 800af98 <_fflush_r+0x10> - 800af92: 2500 movs r5, #0 - 800af94: 4628 mov r0, r5 - 800af96: bd38 pop {r3, r4, r5, pc} - 800af98: b118 cbz r0, 800afa2 <_fflush_r+0x1a> - 800af9a: 6983 ldr r3, [r0, #24] - 800af9c: b90b cbnz r3, 800afa2 <_fflush_r+0x1a> - 800af9e: f000 f887 bl 800b0b0 <__sinit> - 800afa2: 4b14 ldr r3, [pc, #80] ; (800aff4 <_fflush_r+0x6c>) - 800afa4: 429c cmp r4, r3 - 800afa6: d11b bne.n 800afe0 <_fflush_r+0x58> - 800afa8: 686c ldr r4, [r5, #4] - 800afaa: f9b4 300c ldrsh.w r3, [r4, #12] - 800afae: 2b00 cmp r3, #0 - 800afb0: d0ef beq.n 800af92 <_fflush_r+0xa> - 800afb2: 6e62 ldr r2, [r4, #100] ; 0x64 - 800afb4: 07d0 lsls r0, r2, #31 - 800afb6: d404 bmi.n 800afc2 <_fflush_r+0x3a> - 800afb8: 0599 lsls r1, r3, #22 - 800afba: d402 bmi.n 800afc2 <_fflush_r+0x3a> - 800afbc: 6da0 ldr r0, [r4, #88] ; 0x58 - 800afbe: f000 f975 bl 800b2ac <__retarget_lock_acquire_recursive> - 800afc2: 4628 mov r0, r5 - 800afc4: 4621 mov r1, r4 - 800afc6: f7ff ff5d bl 800ae84 <__sflush_r> - 800afca: 6e63 ldr r3, [r4, #100] ; 0x64 - 800afcc: 4605 mov r5, r0 + 800ad50: 461a mov r2, r3 + 800ad52: 4628 mov r0, r5 + 800ad54: f000 fe72 bl 800ba3c <__lshift> + 800ad58: 4604 mov r4, r0 + 800ad5a: 9b0f ldr r3, [sp, #60] ; 0x3c + 800ad5c: 2b00 cmp r3, #0 + 800ad5e: d070 beq.n 800ae42 <_dtoa_r+0x92a> + 800ad60: 4621 mov r1, r4 + 800ad62: 4658 mov r0, fp + 800ad64: f000 feda bl 800bb1c <__mcmp> + 800ad68: 2800 cmp r0, #0 + 800ad6a: da6a bge.n 800ae42 <_dtoa_r+0x92a> + 800ad6c: 2300 movs r3, #0 + 800ad6e: 4659 mov r1, fp + 800ad70: 220a movs r2, #10 + 800ad72: 4628 mov r0, r5 + 800ad74: f000 fcb6 bl 800b6e4 <__multadd> + 800ad78: 9b0b ldr r3, [sp, #44] ; 0x2c + 800ad7a: 4683 mov fp, r0 + 800ad7c: f10a 3aff add.w sl, sl, #4294967295 ; 0xffffffff + 800ad80: 2b00 cmp r3, #0 + 800ad82: f000 8194 beq.w 800b0ae <_dtoa_r+0xb96> + 800ad86: 4631 mov r1, r6 + 800ad88: 2300 movs r3, #0 + 800ad8a: 220a movs r2, #10 + 800ad8c: 4628 mov r0, r5 + 800ad8e: f000 fca9 bl 800b6e4 <__multadd> + 800ad92: f1b9 0f00 cmp.w r9, #0 + 800ad96: 4606 mov r6, r0 + 800ad98: f300 8093 bgt.w 800aec2 <_dtoa_r+0x9aa> + 800ad9c: 9b22 ldr r3, [sp, #136] ; 0x88 + 800ad9e: 2b02 cmp r3, #2 + 800ada0: dc57 bgt.n 800ae52 <_dtoa_r+0x93a> + 800ada2: e08e b.n 800aec2 <_dtoa_r+0x9aa> + 800ada4: 9b16 ldr r3, [sp, #88] ; 0x58 + 800ada6: f1c3 0336 rsb r3, r3, #54 ; 0x36 + 800adaa: e757 b.n 800ac5c <_dtoa_r+0x744> + 800adac: 9b08 ldr r3, [sp, #32] + 800adae: 1e5c subs r4, r3, #1 + 800adb0: 9b0a ldr r3, [sp, #40] ; 0x28 + 800adb2: 42a3 cmp r3, r4 + 800adb4: bfb7 itett lt + 800adb6: 9b0a ldrlt r3, [sp, #40] ; 0x28 + 800adb8: 1b1c subge r4, r3, r4 + 800adba: 1ae2 sublt r2, r4, r3 + 800adbc: 9b0e ldrlt r3, [sp, #56] ; 0x38 + 800adbe: bfbe ittt lt + 800adc0: 940a strlt r4, [sp, #40] ; 0x28 + 800adc2: 189b addlt r3, r3, r2 + 800adc4: 930e strlt r3, [sp, #56] ; 0x38 + 800adc6: 9b08 ldr r3, [sp, #32] + 800adc8: bfb8 it lt + 800adca: 2400 movlt r4, #0 + 800adcc: 2b00 cmp r3, #0 + 800adce: bfbb ittet lt + 800add0: 9b06 ldrlt r3, [sp, #24] + 800add2: 9a08 ldrlt r2, [sp, #32] + 800add4: 9f06 ldrge r7, [sp, #24] + 800add6: 1a9f sublt r7, r3, r2 + 800add8: bfac ite ge + 800adda: 9b08 ldrge r3, [sp, #32] + 800addc: 2300 movlt r3, #0 + 800adde: e73f b.n 800ac60 <_dtoa_r+0x748> + 800ade0: 3fe00000 .word 0x3fe00000 + 800ade4: 40240000 .word 0x40240000 + 800ade8: 9c0a ldr r4, [sp, #40] ; 0x28 + 800adea: 9f06 ldr r7, [sp, #24] + 800adec: 9e0b ldr r6, [sp, #44] ; 0x2c + 800adee: e742 b.n 800ac76 <_dtoa_r+0x75e> + 800adf0: 9a0a ldr r2, [sp, #40] ; 0x28 + 800adf2: e76b b.n 800accc <_dtoa_r+0x7b4> + 800adf4: 9b22 ldr r3, [sp, #136] ; 0x88 + 800adf6: 2b01 cmp r3, #1 + 800adf8: dc19 bgt.n 800ae2e <_dtoa_r+0x916> + 800adfa: 9b04 ldr r3, [sp, #16] + 800adfc: b9bb cbnz r3, 800ae2e <_dtoa_r+0x916> + 800adfe: 9b05 ldr r3, [sp, #20] + 800ae00: f3c3 0313 ubfx r3, r3, #0, #20 + 800ae04: b99b cbnz r3, 800ae2e <_dtoa_r+0x916> + 800ae06: 9b05 ldr r3, [sp, #20] + 800ae08: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 + 800ae0c: 0d1b lsrs r3, r3, #20 + 800ae0e: 051b lsls r3, r3, #20 + 800ae10: b183 cbz r3, 800ae34 <_dtoa_r+0x91c> + 800ae12: f04f 0801 mov.w r8, #1 + 800ae16: 9b06 ldr r3, [sp, #24] + 800ae18: 3301 adds r3, #1 + 800ae1a: 9306 str r3, [sp, #24] + 800ae1c: 9b09 ldr r3, [sp, #36] ; 0x24 + 800ae1e: 3301 adds r3, #1 + 800ae20: 9309 str r3, [sp, #36] ; 0x24 + 800ae22: 9b0e ldr r3, [sp, #56] ; 0x38 + 800ae24: 2b00 cmp r3, #0 + 800ae26: f47f af6a bne.w 800acfe <_dtoa_r+0x7e6> + 800ae2a: 2001 movs r0, #1 + 800ae2c: e76f b.n 800ad0e <_dtoa_r+0x7f6> + 800ae2e: f04f 0800 mov.w r8, #0 + 800ae32: e7f6 b.n 800ae22 <_dtoa_r+0x90a> + 800ae34: 4698 mov r8, r3 + 800ae36: e7f4 b.n 800ae22 <_dtoa_r+0x90a> + 800ae38: f43f af7d beq.w 800ad36 <_dtoa_r+0x81e> + 800ae3c: 4618 mov r0, r3 + 800ae3e: 301c adds r0, #28 + 800ae40: e772 b.n 800ad28 <_dtoa_r+0x810> + 800ae42: 9b08 ldr r3, [sp, #32] + 800ae44: 2b00 cmp r3, #0 + 800ae46: dc36 bgt.n 800aeb6 <_dtoa_r+0x99e> + 800ae48: 9b22 ldr r3, [sp, #136] ; 0x88 + 800ae4a: 2b02 cmp r3, #2 + 800ae4c: dd33 ble.n 800aeb6 <_dtoa_r+0x99e> + 800ae4e: f8dd 9020 ldr.w r9, [sp, #32] + 800ae52: f1b9 0f00 cmp.w r9, #0 + 800ae56: d10d bne.n 800ae74 <_dtoa_r+0x95c> + 800ae58: 4621 mov r1, r4 + 800ae5a: 464b mov r3, r9 + 800ae5c: 2205 movs r2, #5 + 800ae5e: 4628 mov r0, r5 + 800ae60: f000 fc40 bl 800b6e4 <__multadd> + 800ae64: 4601 mov r1, r0 + 800ae66: 4604 mov r4, r0 + 800ae68: 4658 mov r0, fp + 800ae6a: f000 fe57 bl 800bb1c <__mcmp> + 800ae6e: 2800 cmp r0, #0 + 800ae70: f73f adb8 bgt.w 800a9e4 <_dtoa_r+0x4cc> + 800ae74: 9b23 ldr r3, [sp, #140] ; 0x8c + 800ae76: 9f03 ldr r7, [sp, #12] + 800ae78: ea6f 0a03 mvn.w sl, r3 + 800ae7c: f04f 0800 mov.w r8, #0 + 800ae80: 4621 mov r1, r4 + 800ae82: 4628 mov r0, r5 + 800ae84: f000 fc0c bl 800b6a0 <_Bfree> + 800ae88: 2e00 cmp r6, #0 + 800ae8a: f43f aea7 beq.w 800abdc <_dtoa_r+0x6c4> + 800ae8e: f1b8 0f00 cmp.w r8, #0 + 800ae92: d005 beq.n 800aea0 <_dtoa_r+0x988> + 800ae94: 45b0 cmp r8, r6 + 800ae96: d003 beq.n 800aea0 <_dtoa_r+0x988> + 800ae98: 4641 mov r1, r8 + 800ae9a: 4628 mov r0, r5 + 800ae9c: f000 fc00 bl 800b6a0 <_Bfree> + 800aea0: 4631 mov r1, r6 + 800aea2: 4628 mov r0, r5 + 800aea4: f000 fbfc bl 800b6a0 <_Bfree> + 800aea8: e698 b.n 800abdc <_dtoa_r+0x6c4> + 800aeaa: 2400 movs r4, #0 + 800aeac: 4626 mov r6, r4 + 800aeae: e7e1 b.n 800ae74 <_dtoa_r+0x95c> + 800aeb0: 46c2 mov sl, r8 + 800aeb2: 4626 mov r6, r4 + 800aeb4: e596 b.n 800a9e4 <_dtoa_r+0x4cc> + 800aeb6: 9b0b ldr r3, [sp, #44] ; 0x2c + 800aeb8: f8dd 9020 ldr.w r9, [sp, #32] + 800aebc: 2b00 cmp r3, #0 + 800aebe: f000 80fd beq.w 800b0bc <_dtoa_r+0xba4> + 800aec2: 2f00 cmp r7, #0 + 800aec4: dd05 ble.n 800aed2 <_dtoa_r+0x9ba> + 800aec6: 4631 mov r1, r6 + 800aec8: 463a mov r2, r7 + 800aeca: 4628 mov r0, r5 + 800aecc: f000 fdb6 bl 800ba3c <__lshift> + 800aed0: 4606 mov r6, r0 + 800aed2: f1b8 0f00 cmp.w r8, #0 + 800aed6: d05c beq.n 800af92 <_dtoa_r+0xa7a> + 800aed8: 4628 mov r0, r5 + 800aeda: 6871 ldr r1, [r6, #4] + 800aedc: f000 fba0 bl 800b620 <_Balloc> + 800aee0: 4607 mov r7, r0 + 800aee2: b928 cbnz r0, 800aef0 <_dtoa_r+0x9d8> + 800aee4: 4602 mov r2, r0 + 800aee6: f240 21ea movw r1, #746 ; 0x2ea + 800aeea: 4b7f ldr r3, [pc, #508] ; (800b0e8 <_dtoa_r+0xbd0>) + 800aeec: f7ff bb28 b.w 800a540 <_dtoa_r+0x28> + 800aef0: 6932 ldr r2, [r6, #16] + 800aef2: f106 010c add.w r1, r6, #12 + 800aef6: 3202 adds r2, #2 + 800aef8: 0092 lsls r2, r2, #2 + 800aefa: 300c adds r0, #12 + 800aefc: f7fe f95e bl 80091bc + 800af00: 2201 movs r2, #1 + 800af02: 4639 mov r1, r7 + 800af04: 4628 mov r0, r5 + 800af06: f000 fd99 bl 800ba3c <__lshift> + 800af0a: 46b0 mov r8, r6 + 800af0c: 4606 mov r6, r0 + 800af0e: 9b03 ldr r3, [sp, #12] + 800af10: 3301 adds r3, #1 + 800af12: 9308 str r3, [sp, #32] + 800af14: 9b03 ldr r3, [sp, #12] + 800af16: 444b add r3, r9 + 800af18: 930a str r3, [sp, #40] ; 0x28 + 800af1a: 9b04 ldr r3, [sp, #16] + 800af1c: f003 0301 and.w r3, r3, #1 + 800af20: 9309 str r3, [sp, #36] ; 0x24 + 800af22: 9b08 ldr r3, [sp, #32] + 800af24: 4621 mov r1, r4 + 800af26: 3b01 subs r3, #1 + 800af28: 4658 mov r0, fp + 800af2a: 9304 str r3, [sp, #16] + 800af2c: f7ff fa66 bl 800a3fc + 800af30: 4603 mov r3, r0 + 800af32: 4641 mov r1, r8 + 800af34: 3330 adds r3, #48 ; 0x30 + 800af36: 9006 str r0, [sp, #24] + 800af38: 4658 mov r0, fp + 800af3a: 930b str r3, [sp, #44] ; 0x2c + 800af3c: f000 fdee bl 800bb1c <__mcmp> + 800af40: 4632 mov r2, r6 + 800af42: 4681 mov r9, r0 + 800af44: 4621 mov r1, r4 + 800af46: 4628 mov r0, r5 + 800af48: f000 fe04 bl 800bb54 <__mdiff> + 800af4c: 68c2 ldr r2, [r0, #12] + 800af4e: 4607 mov r7, r0 + 800af50: 9b0b ldr r3, [sp, #44] ; 0x2c + 800af52: bb02 cbnz r2, 800af96 <_dtoa_r+0xa7e> + 800af54: 4601 mov r1, r0 + 800af56: 4658 mov r0, fp + 800af58: f000 fde0 bl 800bb1c <__mcmp> + 800af5c: 4602 mov r2, r0 + 800af5e: 9b0b ldr r3, [sp, #44] ; 0x2c + 800af60: 4639 mov r1, r7 + 800af62: 4628 mov r0, r5 + 800af64: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c + 800af68: f000 fb9a bl 800b6a0 <_Bfree> + 800af6c: 9b22 ldr r3, [sp, #136] ; 0x88 + 800af6e: 9a0c ldr r2, [sp, #48] ; 0x30 + 800af70: 9f08 ldr r7, [sp, #32] + 800af72: ea43 0102 orr.w r1, r3, r2 + 800af76: 9b09 ldr r3, [sp, #36] ; 0x24 + 800af78: 430b orrs r3, r1 + 800af7a: 9b0b ldr r3, [sp, #44] ; 0x2c + 800af7c: d10d bne.n 800af9a <_dtoa_r+0xa82> + 800af7e: 2b39 cmp r3, #57 ; 0x39 + 800af80: d029 beq.n 800afd6 <_dtoa_r+0xabe> + 800af82: f1b9 0f00 cmp.w r9, #0 + 800af86: dd01 ble.n 800af8c <_dtoa_r+0xa74> + 800af88: 9b06 ldr r3, [sp, #24] + 800af8a: 3331 adds r3, #49 ; 0x31 + 800af8c: 9a04 ldr r2, [sp, #16] + 800af8e: 7013 strb r3, [r2, #0] + 800af90: e776 b.n 800ae80 <_dtoa_r+0x968> + 800af92: 4630 mov r0, r6 + 800af94: e7b9 b.n 800af0a <_dtoa_r+0x9f2> + 800af96: 2201 movs r2, #1 + 800af98: e7e2 b.n 800af60 <_dtoa_r+0xa48> + 800af9a: f1b9 0f00 cmp.w r9, #0 + 800af9e: db06 blt.n 800afae <_dtoa_r+0xa96> + 800afa0: 9922 ldr r1, [sp, #136] ; 0x88 + 800afa2: ea41 0909 orr.w r9, r1, r9 + 800afa6: 9909 ldr r1, [sp, #36] ; 0x24 + 800afa8: ea59 0101 orrs.w r1, r9, r1 + 800afac: d120 bne.n 800aff0 <_dtoa_r+0xad8> + 800afae: 2a00 cmp r2, #0 + 800afb0: ddec ble.n 800af8c <_dtoa_r+0xa74> + 800afb2: 4659 mov r1, fp + 800afb4: 2201 movs r2, #1 + 800afb6: 4628 mov r0, r5 + 800afb8: 9308 str r3, [sp, #32] + 800afba: f000 fd3f bl 800ba3c <__lshift> + 800afbe: 4621 mov r1, r4 + 800afc0: 4683 mov fp, r0 + 800afc2: f000 fdab bl 800bb1c <__mcmp> + 800afc6: 2800 cmp r0, #0 + 800afc8: 9b08 ldr r3, [sp, #32] + 800afca: dc02 bgt.n 800afd2 <_dtoa_r+0xaba> + 800afcc: d1de bne.n 800af8c <_dtoa_r+0xa74> 800afce: 07da lsls r2, r3, #31 - 800afd0: d4e0 bmi.n 800af94 <_fflush_r+0xc> - 800afd2: 89a3 ldrh r3, [r4, #12] - 800afd4: 059b lsls r3, r3, #22 - 800afd6: d4dd bmi.n 800af94 <_fflush_r+0xc> - 800afd8: 6da0 ldr r0, [r4, #88] ; 0x58 - 800afda: f000 f969 bl 800b2b0 <__retarget_lock_release_recursive> - 800afde: e7d9 b.n 800af94 <_fflush_r+0xc> - 800afe0: 4b05 ldr r3, [pc, #20] ; (800aff8 <_fflush_r+0x70>) - 800afe2: 429c cmp r4, r3 - 800afe4: d101 bne.n 800afea <_fflush_r+0x62> - 800afe6: 68ac ldr r4, [r5, #8] - 800afe8: e7df b.n 800afaa <_fflush_r+0x22> - 800afea: 4b04 ldr r3, [pc, #16] ; (800affc <_fflush_r+0x74>) - 800afec: 429c cmp r4, r3 - 800afee: bf08 it eq - 800aff0: 68ec ldreq r4, [r5, #12] - 800aff2: e7da b.n 800afaa <_fflush_r+0x22> - 800aff4: 0800d264 .word 0x0800d264 - 800aff8: 0800d284 .word 0x0800d284 - 800affc: 0800d244 .word 0x0800d244 + 800afd0: d5dc bpl.n 800af8c <_dtoa_r+0xa74> + 800afd2: 2b39 cmp r3, #57 ; 0x39 + 800afd4: d1d8 bne.n 800af88 <_dtoa_r+0xa70> + 800afd6: 2339 movs r3, #57 ; 0x39 + 800afd8: 9a04 ldr r2, [sp, #16] + 800afda: 7013 strb r3, [r2, #0] + 800afdc: 463b mov r3, r7 + 800afde: 461f mov r7, r3 + 800afe0: f817 2c01 ldrb.w r2, [r7, #-1] + 800afe4: 3b01 subs r3, #1 + 800afe6: 2a39 cmp r2, #57 ; 0x39 + 800afe8: d050 beq.n 800b08c <_dtoa_r+0xb74> + 800afea: 3201 adds r2, #1 + 800afec: 701a strb r2, [r3, #0] + 800afee: e747 b.n 800ae80 <_dtoa_r+0x968> + 800aff0: 2a00 cmp r2, #0 + 800aff2: dd03 ble.n 800affc <_dtoa_r+0xae4> + 800aff4: 2b39 cmp r3, #57 ; 0x39 + 800aff6: d0ee beq.n 800afd6 <_dtoa_r+0xabe> + 800aff8: 3301 adds r3, #1 + 800affa: e7c7 b.n 800af8c <_dtoa_r+0xa74> + 800affc: 9a08 ldr r2, [sp, #32] + 800affe: 990a ldr r1, [sp, #40] ; 0x28 + 800b000: f802 3c01 strb.w r3, [r2, #-1] + 800b004: 428a cmp r2, r1 + 800b006: d02a beq.n 800b05e <_dtoa_r+0xb46> + 800b008: 4659 mov r1, fp + 800b00a: 2300 movs r3, #0 + 800b00c: 220a movs r2, #10 + 800b00e: 4628 mov r0, r5 + 800b010: f000 fb68 bl 800b6e4 <__multadd> + 800b014: 45b0 cmp r8, r6 + 800b016: 4683 mov fp, r0 + 800b018: f04f 0300 mov.w r3, #0 + 800b01c: f04f 020a mov.w r2, #10 + 800b020: 4641 mov r1, r8 + 800b022: 4628 mov r0, r5 + 800b024: d107 bne.n 800b036 <_dtoa_r+0xb1e> + 800b026: f000 fb5d bl 800b6e4 <__multadd> + 800b02a: 4680 mov r8, r0 + 800b02c: 4606 mov r6, r0 + 800b02e: 9b08 ldr r3, [sp, #32] + 800b030: 3301 adds r3, #1 + 800b032: 9308 str r3, [sp, #32] + 800b034: e775 b.n 800af22 <_dtoa_r+0xa0a> + 800b036: f000 fb55 bl 800b6e4 <__multadd> + 800b03a: 4631 mov r1, r6 + 800b03c: 4680 mov r8, r0 + 800b03e: 2300 movs r3, #0 + 800b040: 220a movs r2, #10 + 800b042: 4628 mov r0, r5 + 800b044: f000 fb4e bl 800b6e4 <__multadd> + 800b048: 4606 mov r6, r0 + 800b04a: e7f0 b.n 800b02e <_dtoa_r+0xb16> + 800b04c: f1b9 0f00 cmp.w r9, #0 + 800b050: bfcc ite gt + 800b052: 464f movgt r7, r9 + 800b054: 2701 movle r7, #1 + 800b056: f04f 0800 mov.w r8, #0 + 800b05a: 9a03 ldr r2, [sp, #12] + 800b05c: 4417 add r7, r2 + 800b05e: 4659 mov r1, fp + 800b060: 2201 movs r2, #1 + 800b062: 4628 mov r0, r5 + 800b064: 9308 str r3, [sp, #32] + 800b066: f000 fce9 bl 800ba3c <__lshift> + 800b06a: 4621 mov r1, r4 + 800b06c: 4683 mov fp, r0 + 800b06e: f000 fd55 bl 800bb1c <__mcmp> + 800b072: 2800 cmp r0, #0 + 800b074: dcb2 bgt.n 800afdc <_dtoa_r+0xac4> + 800b076: d102 bne.n 800b07e <_dtoa_r+0xb66> + 800b078: 9b08 ldr r3, [sp, #32] + 800b07a: 07db lsls r3, r3, #31 + 800b07c: d4ae bmi.n 800afdc <_dtoa_r+0xac4> + 800b07e: 463b mov r3, r7 + 800b080: 461f mov r7, r3 + 800b082: f813 2d01 ldrb.w r2, [r3, #-1]! + 800b086: 2a30 cmp r2, #48 ; 0x30 + 800b088: d0fa beq.n 800b080 <_dtoa_r+0xb68> + 800b08a: e6f9 b.n 800ae80 <_dtoa_r+0x968> + 800b08c: 9a03 ldr r2, [sp, #12] + 800b08e: 429a cmp r2, r3 + 800b090: d1a5 bne.n 800afde <_dtoa_r+0xac6> + 800b092: 2331 movs r3, #49 ; 0x31 + 800b094: f10a 0a01 add.w sl, sl, #1 + 800b098: e779 b.n 800af8e <_dtoa_r+0xa76> + 800b09a: 4b14 ldr r3, [pc, #80] ; (800b0ec <_dtoa_r+0xbd4>) + 800b09c: f7ff baa8 b.w 800a5f0 <_dtoa_r+0xd8> + 800b0a0: 9b26 ldr r3, [sp, #152] ; 0x98 + 800b0a2: 2b00 cmp r3, #0 + 800b0a4: f47f aa81 bne.w 800a5aa <_dtoa_r+0x92> + 800b0a8: 4b11 ldr r3, [pc, #68] ; (800b0f0 <_dtoa_r+0xbd8>) + 800b0aa: f7ff baa1 b.w 800a5f0 <_dtoa_r+0xd8> + 800b0ae: f1b9 0f00 cmp.w r9, #0 + 800b0b2: dc03 bgt.n 800b0bc <_dtoa_r+0xba4> + 800b0b4: 9b22 ldr r3, [sp, #136] ; 0x88 + 800b0b6: 2b02 cmp r3, #2 + 800b0b8: f73f aecb bgt.w 800ae52 <_dtoa_r+0x93a> + 800b0bc: 9f03 ldr r7, [sp, #12] + 800b0be: 4621 mov r1, r4 + 800b0c0: 4658 mov r0, fp + 800b0c2: f7ff f99b bl 800a3fc + 800b0c6: 9a03 ldr r2, [sp, #12] + 800b0c8: f100 0330 add.w r3, r0, #48 ; 0x30 + 800b0cc: f807 3b01 strb.w r3, [r7], #1 + 800b0d0: 1aba subs r2, r7, r2 + 800b0d2: 4591 cmp r9, r2 + 800b0d4: ddba ble.n 800b04c <_dtoa_r+0xb34> + 800b0d6: 4659 mov r1, fp + 800b0d8: 2300 movs r3, #0 + 800b0da: 220a movs r2, #10 + 800b0dc: 4628 mov r0, r5 + 800b0de: f000 fb01 bl 800b6e4 <__multadd> + 800b0e2: 4683 mov fp, r0 + 800b0e4: e7eb b.n 800b0be <_dtoa_r+0xba6> + 800b0e6: bf00 nop + 800b0e8: 0800d4c2 .word 0x0800d4c2 + 800b0ec: 0800d7ac .word 0x0800d7ac + 800b0f0: 0800d45a .word 0x0800d45a -0800b000 : - 800b000: 2300 movs r3, #0 - 800b002: b510 push {r4, lr} - 800b004: 4604 mov r4, r0 - 800b006: e9c0 3300 strd r3, r3, [r0] - 800b00a: e9c0 3304 strd r3, r3, [r0, #16] - 800b00e: 6083 str r3, [r0, #8] - 800b010: 8181 strh r1, [r0, #12] - 800b012: 6643 str r3, [r0, #100] ; 0x64 - 800b014: 81c2 strh r2, [r0, #14] - 800b016: 6183 str r3, [r0, #24] - 800b018: 4619 mov r1, r3 - 800b01a: 2208 movs r2, #8 - 800b01c: 305c adds r0, #92 ; 0x5c - 800b01e: f7fd ffa5 bl 8008f6c - 800b022: 4b05 ldr r3, [pc, #20] ; (800b038 ) - 800b024: 6224 str r4, [r4, #32] - 800b026: 6263 str r3, [r4, #36] ; 0x24 - 800b028: 4b04 ldr r3, [pc, #16] ; (800b03c ) - 800b02a: 62a3 str r3, [r4, #40] ; 0x28 - 800b02c: 4b04 ldr r3, [pc, #16] ; (800b040 ) - 800b02e: 62e3 str r3, [r4, #44] ; 0x2c - 800b030: 4b04 ldr r3, [pc, #16] ; (800b044 ) - 800b032: 6323 str r3, [r4, #48] ; 0x30 - 800b034: bd10 pop {r4, pc} - 800b036: bf00 nop - 800b038: 0800bde1 .word 0x0800bde1 - 800b03c: 0800be07 .word 0x0800be07 - 800b040: 0800be3f .word 0x0800be3f - 800b044: 0800be63 .word 0x0800be63 +0800b0f4 <__sflush_r>: + 800b0f4: 898a ldrh r2, [r1, #12] + 800b0f6: b5f8 push {r3, r4, r5, r6, r7, lr} + 800b0f8: 4605 mov r5, r0 + 800b0fa: 0710 lsls r0, r2, #28 + 800b0fc: 460c mov r4, r1 + 800b0fe: d457 bmi.n 800b1b0 <__sflush_r+0xbc> + 800b100: 684b ldr r3, [r1, #4] + 800b102: 2b00 cmp r3, #0 + 800b104: dc04 bgt.n 800b110 <__sflush_r+0x1c> + 800b106: 6c0b ldr r3, [r1, #64] ; 0x40 + 800b108: 2b00 cmp r3, #0 + 800b10a: dc01 bgt.n 800b110 <__sflush_r+0x1c> + 800b10c: 2000 movs r0, #0 + 800b10e: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800b110: 6ae6 ldr r6, [r4, #44] ; 0x2c + 800b112: 2e00 cmp r6, #0 + 800b114: d0fa beq.n 800b10c <__sflush_r+0x18> + 800b116: 2300 movs r3, #0 + 800b118: f412 5280 ands.w r2, r2, #4096 ; 0x1000 + 800b11c: 682f ldr r7, [r5, #0] + 800b11e: 602b str r3, [r5, #0] + 800b120: d032 beq.n 800b188 <__sflush_r+0x94> + 800b122: 6d60 ldr r0, [r4, #84] ; 0x54 + 800b124: 89a3 ldrh r3, [r4, #12] + 800b126: 075a lsls r2, r3, #29 + 800b128: d505 bpl.n 800b136 <__sflush_r+0x42> + 800b12a: 6863 ldr r3, [r4, #4] + 800b12c: 1ac0 subs r0, r0, r3 + 800b12e: 6b63 ldr r3, [r4, #52] ; 0x34 + 800b130: b10b cbz r3, 800b136 <__sflush_r+0x42> + 800b132: 6c23 ldr r3, [r4, #64] ; 0x40 + 800b134: 1ac0 subs r0, r0, r3 + 800b136: 2300 movs r3, #0 + 800b138: 4602 mov r2, r0 + 800b13a: 6ae6 ldr r6, [r4, #44] ; 0x2c + 800b13c: 4628 mov r0, r5 + 800b13e: 6a21 ldr r1, [r4, #32] + 800b140: 47b0 blx r6 + 800b142: 1c43 adds r3, r0, #1 + 800b144: 89a3 ldrh r3, [r4, #12] + 800b146: d106 bne.n 800b156 <__sflush_r+0x62> + 800b148: 6829 ldr r1, [r5, #0] + 800b14a: 291d cmp r1, #29 + 800b14c: d82c bhi.n 800b1a8 <__sflush_r+0xb4> + 800b14e: 4a29 ldr r2, [pc, #164] ; (800b1f4 <__sflush_r+0x100>) + 800b150: 40ca lsrs r2, r1 + 800b152: 07d6 lsls r6, r2, #31 + 800b154: d528 bpl.n 800b1a8 <__sflush_r+0xb4> + 800b156: 2200 movs r2, #0 + 800b158: 6062 str r2, [r4, #4] + 800b15a: 6922 ldr r2, [r4, #16] + 800b15c: 04d9 lsls r1, r3, #19 + 800b15e: 6022 str r2, [r4, #0] + 800b160: d504 bpl.n 800b16c <__sflush_r+0x78> + 800b162: 1c42 adds r2, r0, #1 + 800b164: d101 bne.n 800b16a <__sflush_r+0x76> + 800b166: 682b ldr r3, [r5, #0] + 800b168: b903 cbnz r3, 800b16c <__sflush_r+0x78> + 800b16a: 6560 str r0, [r4, #84] ; 0x54 + 800b16c: 6b61 ldr r1, [r4, #52] ; 0x34 + 800b16e: 602f str r7, [r5, #0] + 800b170: 2900 cmp r1, #0 + 800b172: d0cb beq.n 800b10c <__sflush_r+0x18> + 800b174: f104 0344 add.w r3, r4, #68 ; 0x44 + 800b178: 4299 cmp r1, r3 + 800b17a: d002 beq.n 800b182 <__sflush_r+0x8e> + 800b17c: 4628 mov r0, r5 + 800b17e: f7fe f833 bl 80091e8 <_free_r> + 800b182: 2000 movs r0, #0 + 800b184: 6360 str r0, [r4, #52] ; 0x34 + 800b186: e7c2 b.n 800b10e <__sflush_r+0x1a> + 800b188: 6a21 ldr r1, [r4, #32] + 800b18a: 2301 movs r3, #1 + 800b18c: 4628 mov r0, r5 + 800b18e: 47b0 blx r6 + 800b190: 1c41 adds r1, r0, #1 + 800b192: d1c7 bne.n 800b124 <__sflush_r+0x30> + 800b194: 682b ldr r3, [r5, #0] + 800b196: 2b00 cmp r3, #0 + 800b198: d0c4 beq.n 800b124 <__sflush_r+0x30> + 800b19a: 2b1d cmp r3, #29 + 800b19c: d001 beq.n 800b1a2 <__sflush_r+0xae> + 800b19e: 2b16 cmp r3, #22 + 800b1a0: d101 bne.n 800b1a6 <__sflush_r+0xb2> + 800b1a2: 602f str r7, [r5, #0] + 800b1a4: e7b2 b.n 800b10c <__sflush_r+0x18> + 800b1a6: 89a3 ldrh r3, [r4, #12] + 800b1a8: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800b1ac: 81a3 strh r3, [r4, #12] + 800b1ae: e7ae b.n 800b10e <__sflush_r+0x1a> + 800b1b0: 690f ldr r7, [r1, #16] + 800b1b2: 2f00 cmp r7, #0 + 800b1b4: d0aa beq.n 800b10c <__sflush_r+0x18> + 800b1b6: 0793 lsls r3, r2, #30 + 800b1b8: bf18 it ne + 800b1ba: 2300 movne r3, #0 + 800b1bc: 680e ldr r6, [r1, #0] + 800b1be: bf08 it eq + 800b1c0: 694b ldreq r3, [r1, #20] + 800b1c2: 1bf6 subs r6, r6, r7 + 800b1c4: 600f str r7, [r1, #0] + 800b1c6: 608b str r3, [r1, #8] + 800b1c8: 2e00 cmp r6, #0 + 800b1ca: dd9f ble.n 800b10c <__sflush_r+0x18> + 800b1cc: 4633 mov r3, r6 + 800b1ce: 463a mov r2, r7 + 800b1d0: 4628 mov r0, r5 + 800b1d2: 6a21 ldr r1, [r4, #32] + 800b1d4: f8d4 c028 ldr.w ip, [r4, #40] ; 0x28 + 800b1d8: 47e0 blx ip + 800b1da: 2800 cmp r0, #0 + 800b1dc: dc06 bgt.n 800b1ec <__sflush_r+0xf8> + 800b1de: 89a3 ldrh r3, [r4, #12] + 800b1e0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800b1e4: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800b1e8: 81a3 strh r3, [r4, #12] + 800b1ea: e790 b.n 800b10e <__sflush_r+0x1a> + 800b1ec: 4407 add r7, r0 + 800b1ee: 1a36 subs r6, r6, r0 + 800b1f0: e7ea b.n 800b1c8 <__sflush_r+0xd4> + 800b1f2: bf00 nop + 800b1f4: 20400001 .word 0x20400001 -0800b048 <_cleanup_r>: - 800b048: 4901 ldr r1, [pc, #4] ; (800b050 <_cleanup_r+0x8>) - 800b04a: f000 b8c1 b.w 800b1d0 <_fwalk_reent> - 800b04e: bf00 nop - 800b050: 0800af89 .word 0x0800af89 +0800b1f8 <_fflush_r>: + 800b1f8: b538 push {r3, r4, r5, lr} + 800b1fa: 690b ldr r3, [r1, #16] + 800b1fc: 4605 mov r5, r0 + 800b1fe: 460c mov r4, r1 + 800b200: b913 cbnz r3, 800b208 <_fflush_r+0x10> + 800b202: 2500 movs r5, #0 + 800b204: 4628 mov r0, r5 + 800b206: bd38 pop {r3, r4, r5, pc} + 800b208: b118 cbz r0, 800b212 <_fflush_r+0x1a> + 800b20a: 6983 ldr r3, [r0, #24] + 800b20c: b90b cbnz r3, 800b212 <_fflush_r+0x1a> + 800b20e: f000 f887 bl 800b320 <__sinit> + 800b212: 4b14 ldr r3, [pc, #80] ; (800b264 <_fflush_r+0x6c>) + 800b214: 429c cmp r4, r3 + 800b216: d11b bne.n 800b250 <_fflush_r+0x58> + 800b218: 686c ldr r4, [r5, #4] + 800b21a: f9b4 300c ldrsh.w r3, [r4, #12] + 800b21e: 2b00 cmp r3, #0 + 800b220: d0ef beq.n 800b202 <_fflush_r+0xa> + 800b222: 6e62 ldr r2, [r4, #100] ; 0x64 + 800b224: 07d0 lsls r0, r2, #31 + 800b226: d404 bmi.n 800b232 <_fflush_r+0x3a> + 800b228: 0599 lsls r1, r3, #22 + 800b22a: d402 bmi.n 800b232 <_fflush_r+0x3a> + 800b22c: 6da0 ldr r0, [r4, #88] ; 0x58 + 800b22e: f000 f975 bl 800b51c <__retarget_lock_acquire_recursive> + 800b232: 4628 mov r0, r5 + 800b234: 4621 mov r1, r4 + 800b236: f7ff ff5d bl 800b0f4 <__sflush_r> + 800b23a: 6e63 ldr r3, [r4, #100] ; 0x64 + 800b23c: 4605 mov r5, r0 + 800b23e: 07da lsls r2, r3, #31 + 800b240: d4e0 bmi.n 800b204 <_fflush_r+0xc> + 800b242: 89a3 ldrh r3, [r4, #12] + 800b244: 059b lsls r3, r3, #22 + 800b246: d4dd bmi.n 800b204 <_fflush_r+0xc> + 800b248: 6da0 ldr r0, [r4, #88] ; 0x58 + 800b24a: f000 f969 bl 800b520 <__retarget_lock_release_recursive> + 800b24e: e7d9 b.n 800b204 <_fflush_r+0xc> + 800b250: 4b05 ldr r3, [pc, #20] ; (800b268 <_fflush_r+0x70>) + 800b252: 429c cmp r4, r3 + 800b254: d101 bne.n 800b25a <_fflush_r+0x62> + 800b256: 68ac ldr r4, [r5, #8] + 800b258: e7df b.n 800b21a <_fflush_r+0x22> + 800b25a: 4b04 ldr r3, [pc, #16] ; (800b26c <_fflush_r+0x74>) + 800b25c: 429c cmp r4, r3 + 800b25e: bf08 it eq + 800b260: 68ec ldreq r4, [r5, #12] + 800b262: e7da b.n 800b21a <_fflush_r+0x22> + 800b264: 0800d4f4 .word 0x0800d4f4 + 800b268: 0800d514 .word 0x0800d514 + 800b26c: 0800d4d4 .word 0x0800d4d4 -0800b054 <__sfmoreglue>: - 800b054: 2268 movs r2, #104 ; 0x68 - 800b056: b570 push {r4, r5, r6, lr} - 800b058: 1e4d subs r5, r1, #1 - 800b05a: 4355 muls r5, r2 - 800b05c: 460e mov r6, r1 - 800b05e: f105 0174 add.w r1, r5, #116 ; 0x74 - 800b062: f7fd fff3 bl 800904c <_malloc_r> - 800b066: 4604 mov r4, r0 - 800b068: b140 cbz r0, 800b07c <__sfmoreglue+0x28> - 800b06a: 2100 movs r1, #0 - 800b06c: e9c0 1600 strd r1, r6, [r0] - 800b070: 300c adds r0, #12 - 800b072: 60a0 str r0, [r4, #8] - 800b074: f105 0268 add.w r2, r5, #104 ; 0x68 - 800b078: f7fd ff78 bl 8008f6c - 800b07c: 4620 mov r0, r4 - 800b07e: bd70 pop {r4, r5, r6, pc} +0800b270 : + 800b270: 2300 movs r3, #0 + 800b272: b510 push {r4, lr} + 800b274: 4604 mov r4, r0 + 800b276: e9c0 3300 strd r3, r3, [r0] + 800b27a: e9c0 3304 strd r3, r3, [r0, #16] + 800b27e: 6083 str r3, [r0, #8] + 800b280: 8181 strh r1, [r0, #12] + 800b282: 6643 str r3, [r0, #100] ; 0x64 + 800b284: 81c2 strh r2, [r0, #14] + 800b286: 6183 str r3, [r0, #24] + 800b288: 4619 mov r1, r3 + 800b28a: 2208 movs r2, #8 + 800b28c: 305c adds r0, #92 ; 0x5c + 800b28e: f7fd ffa3 bl 80091d8 + 800b292: 4b05 ldr r3, [pc, #20] ; (800b2a8 ) + 800b294: 6224 str r4, [r4, #32] + 800b296: 6263 str r3, [r4, #36] ; 0x24 + 800b298: 4b04 ldr r3, [pc, #16] ; (800b2ac ) + 800b29a: 62a3 str r3, [r4, #40] ; 0x28 + 800b29c: 4b04 ldr r3, [pc, #16] ; (800b2b0 ) + 800b29e: 62e3 str r3, [r4, #44] ; 0x2c + 800b2a0: 4b04 ldr r3, [pc, #16] ; (800b2b4 ) + 800b2a2: 6323 str r3, [r4, #48] ; 0x30 + 800b2a4: bd10 pop {r4, pc} + 800b2a6: bf00 nop + 800b2a8: 0800c051 .word 0x0800c051 + 800b2ac: 0800c077 .word 0x0800c077 + 800b2b0: 0800c0af .word 0x0800c0af + 800b2b4: 0800c0d3 .word 0x0800c0d3 -0800b080 <__sfp_lock_acquire>: - 800b080: 4801 ldr r0, [pc, #4] ; (800b088 <__sfp_lock_acquire+0x8>) - 800b082: f000 b913 b.w 800b2ac <__retarget_lock_acquire_recursive> - 800b086: bf00 nop - 800b088: 20001d46 .word 0x20001d46 +0800b2b8 <_cleanup_r>: + 800b2b8: 4901 ldr r1, [pc, #4] ; (800b2c0 <_cleanup_r+0x8>) + 800b2ba: f000 b8c1 b.w 800b440 <_fwalk_reent> + 800b2be: bf00 nop + 800b2c0: 0800b1f9 .word 0x0800b1f9 -0800b08c <__sfp_lock_release>: - 800b08c: 4801 ldr r0, [pc, #4] ; (800b094 <__sfp_lock_release+0x8>) - 800b08e: f000 b90f b.w 800b2b0 <__retarget_lock_release_recursive> - 800b092: bf00 nop - 800b094: 20001d46 .word 0x20001d46 +0800b2c4 <__sfmoreglue>: + 800b2c4: 2268 movs r2, #104 ; 0x68 + 800b2c6: b570 push {r4, r5, r6, lr} + 800b2c8: 1e4d subs r5, r1, #1 + 800b2ca: 4355 muls r5, r2 + 800b2cc: 460e mov r6, r1 + 800b2ce: f105 0174 add.w r1, r5, #116 ; 0x74 + 800b2d2: f7fd fff1 bl 80092b8 <_malloc_r> + 800b2d6: 4604 mov r4, r0 + 800b2d8: b140 cbz r0, 800b2ec <__sfmoreglue+0x28> + 800b2da: 2100 movs r1, #0 + 800b2dc: e9c0 1600 strd r1, r6, [r0] + 800b2e0: 300c adds r0, #12 + 800b2e2: 60a0 str r0, [r4, #8] + 800b2e4: f105 0268 add.w r2, r5, #104 ; 0x68 + 800b2e8: f7fd ff76 bl 80091d8 + 800b2ec: 4620 mov r0, r4 + 800b2ee: bd70 pop {r4, r5, r6, pc} -0800b098 <__sinit_lock_acquire>: - 800b098: 4801 ldr r0, [pc, #4] ; (800b0a0 <__sinit_lock_acquire+0x8>) - 800b09a: f000 b907 b.w 800b2ac <__retarget_lock_acquire_recursive> - 800b09e: bf00 nop - 800b0a0: 20001d47 .word 0x20001d47 +0800b2f0 <__sfp_lock_acquire>: + 800b2f0: 4801 ldr r0, [pc, #4] ; (800b2f8 <__sfp_lock_acquire+0x8>) + 800b2f2: f000 b913 b.w 800b51c <__retarget_lock_acquire_recursive> + 800b2f6: bf00 nop + 800b2f8: 200033c6 .word 0x200033c6 -0800b0a4 <__sinit_lock_release>: - 800b0a4: 4801 ldr r0, [pc, #4] ; (800b0ac <__sinit_lock_release+0x8>) - 800b0a6: f000 b903 b.w 800b2b0 <__retarget_lock_release_recursive> - 800b0aa: bf00 nop - 800b0ac: 20001d47 .word 0x20001d47 +0800b2fc <__sfp_lock_release>: + 800b2fc: 4801 ldr r0, [pc, #4] ; (800b304 <__sfp_lock_release+0x8>) + 800b2fe: f000 b90f b.w 800b520 <__retarget_lock_release_recursive> + 800b302: bf00 nop + 800b304: 200033c6 .word 0x200033c6 -0800b0b0 <__sinit>: - 800b0b0: b510 push {r4, lr} - 800b0b2: 4604 mov r4, r0 - 800b0b4: f7ff fff0 bl 800b098 <__sinit_lock_acquire> - 800b0b8: 69a3 ldr r3, [r4, #24] - 800b0ba: b11b cbz r3, 800b0c4 <__sinit+0x14> - 800b0bc: e8bd 4010 ldmia.w sp!, {r4, lr} - 800b0c0: f7ff bff0 b.w 800b0a4 <__sinit_lock_release> - 800b0c4: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 - 800b0c8: 6523 str r3, [r4, #80] ; 0x50 - 800b0ca: 4b13 ldr r3, [pc, #76] ; (800b118 <__sinit+0x68>) - 800b0cc: 4a13 ldr r2, [pc, #76] ; (800b11c <__sinit+0x6c>) - 800b0ce: 681b ldr r3, [r3, #0] - 800b0d0: 62a2 str r2, [r4, #40] ; 0x28 - 800b0d2: 42a3 cmp r3, r4 - 800b0d4: bf08 it eq - 800b0d6: 2301 moveq r3, #1 - 800b0d8: 4620 mov r0, r4 - 800b0da: bf08 it eq - 800b0dc: 61a3 streq r3, [r4, #24] - 800b0de: f000 f81f bl 800b120 <__sfp> - 800b0e2: 6060 str r0, [r4, #4] - 800b0e4: 4620 mov r0, r4 - 800b0e6: f000 f81b bl 800b120 <__sfp> - 800b0ea: 60a0 str r0, [r4, #8] - 800b0ec: 4620 mov r0, r4 - 800b0ee: f000 f817 bl 800b120 <__sfp> - 800b0f2: 2200 movs r2, #0 - 800b0f4: 2104 movs r1, #4 - 800b0f6: 60e0 str r0, [r4, #12] - 800b0f8: 6860 ldr r0, [r4, #4] - 800b0fa: f7ff ff81 bl 800b000 - 800b0fe: 2201 movs r2, #1 - 800b100: 2109 movs r1, #9 - 800b102: 68a0 ldr r0, [r4, #8] - 800b104: f7ff ff7c bl 800b000 - 800b108: 2202 movs r2, #2 - 800b10a: 2112 movs r1, #18 - 800b10c: 68e0 ldr r0, [r4, #12] - 800b10e: f7ff ff77 bl 800b000 - 800b112: 2301 movs r3, #1 - 800b114: 61a3 str r3, [r4, #24] - 800b116: e7d1 b.n 800b0bc <__sinit+0xc> - 800b118: 0800d060 .word 0x0800d060 - 800b11c: 0800b049 .word 0x0800b049 +0800b308 <__sinit_lock_acquire>: + 800b308: 4801 ldr r0, [pc, #4] ; (800b310 <__sinit_lock_acquire+0x8>) + 800b30a: f000 b907 b.w 800b51c <__retarget_lock_acquire_recursive> + 800b30e: bf00 nop + 800b310: 200033c7 .word 0x200033c7 -0800b120 <__sfp>: - 800b120: b5f8 push {r3, r4, r5, r6, r7, lr} - 800b122: 4607 mov r7, r0 - 800b124: f7ff ffac bl 800b080 <__sfp_lock_acquire> - 800b128: 4b1e ldr r3, [pc, #120] ; (800b1a4 <__sfp+0x84>) - 800b12a: 681e ldr r6, [r3, #0] - 800b12c: 69b3 ldr r3, [r6, #24] - 800b12e: b913 cbnz r3, 800b136 <__sfp+0x16> - 800b130: 4630 mov r0, r6 - 800b132: f7ff ffbd bl 800b0b0 <__sinit> - 800b136: 3648 adds r6, #72 ; 0x48 - 800b138: e9d6 3401 ldrd r3, r4, [r6, #4] - 800b13c: 3b01 subs r3, #1 - 800b13e: d503 bpl.n 800b148 <__sfp+0x28> - 800b140: 6833 ldr r3, [r6, #0] - 800b142: b30b cbz r3, 800b188 <__sfp+0x68> - 800b144: 6836 ldr r6, [r6, #0] - 800b146: e7f7 b.n 800b138 <__sfp+0x18> - 800b148: f9b4 500c ldrsh.w r5, [r4, #12] - 800b14c: b9d5 cbnz r5, 800b184 <__sfp+0x64> - 800b14e: 4b16 ldr r3, [pc, #88] ; (800b1a8 <__sfp+0x88>) - 800b150: f104 0058 add.w r0, r4, #88 ; 0x58 - 800b154: 60e3 str r3, [r4, #12] - 800b156: 6665 str r5, [r4, #100] ; 0x64 - 800b158: f000 f8a6 bl 800b2a8 <__retarget_lock_init_recursive> - 800b15c: f7ff ff96 bl 800b08c <__sfp_lock_release> - 800b160: 2208 movs r2, #8 - 800b162: 4629 mov r1, r5 - 800b164: e9c4 5501 strd r5, r5, [r4, #4] - 800b168: e9c4 5504 strd r5, r5, [r4, #16] - 800b16c: 6025 str r5, [r4, #0] - 800b16e: 61a5 str r5, [r4, #24] - 800b170: f104 005c add.w r0, r4, #92 ; 0x5c - 800b174: f7fd fefa bl 8008f6c - 800b178: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 - 800b17c: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 - 800b180: 4620 mov r0, r4 - 800b182: bdf8 pop {r3, r4, r5, r6, r7, pc} - 800b184: 3468 adds r4, #104 ; 0x68 - 800b186: e7d9 b.n 800b13c <__sfp+0x1c> - 800b188: 2104 movs r1, #4 - 800b18a: 4638 mov r0, r7 - 800b18c: f7ff ff62 bl 800b054 <__sfmoreglue> - 800b190: 4604 mov r4, r0 - 800b192: 6030 str r0, [r6, #0] - 800b194: 2800 cmp r0, #0 - 800b196: d1d5 bne.n 800b144 <__sfp+0x24> - 800b198: f7ff ff78 bl 800b08c <__sfp_lock_release> - 800b19c: 230c movs r3, #12 - 800b19e: 603b str r3, [r7, #0] - 800b1a0: e7ee b.n 800b180 <__sfp+0x60> - 800b1a2: bf00 nop - 800b1a4: 0800d060 .word 0x0800d060 - 800b1a8: ffff0001 .word 0xffff0001 +0800b314 <__sinit_lock_release>: + 800b314: 4801 ldr r0, [pc, #4] ; (800b31c <__sinit_lock_release+0x8>) + 800b316: f000 b903 b.w 800b520 <__retarget_lock_release_recursive> + 800b31a: bf00 nop + 800b31c: 200033c7 .word 0x200033c7 -0800b1ac : - 800b1ac: b40e push {r1, r2, r3} - 800b1ae: b503 push {r0, r1, lr} - 800b1b0: 4601 mov r1, r0 - 800b1b2: ab03 add r3, sp, #12 - 800b1b4: 4805 ldr r0, [pc, #20] ; (800b1cc ) - 800b1b6: f853 2b04 ldr.w r2, [r3], #4 - 800b1ba: 6800 ldr r0, [r0, #0] - 800b1bc: 9301 str r3, [sp, #4] - 800b1be: f000 fcb5 bl 800bb2c <_vfiprintf_r> - 800b1c2: b002 add sp, #8 - 800b1c4: f85d eb04 ldr.w lr, [sp], #4 - 800b1c8: b003 add sp, #12 - 800b1ca: 4770 bx lr - 800b1cc: 20000014 .word 0x20000014 +0800b320 <__sinit>: + 800b320: b510 push {r4, lr} + 800b322: 4604 mov r4, r0 + 800b324: f7ff fff0 bl 800b308 <__sinit_lock_acquire> + 800b328: 69a3 ldr r3, [r4, #24] + 800b32a: b11b cbz r3, 800b334 <__sinit+0x14> + 800b32c: e8bd 4010 ldmia.w sp!, {r4, lr} + 800b330: f7ff bff0 b.w 800b314 <__sinit_lock_release> + 800b334: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 + 800b338: 6523 str r3, [r4, #80] ; 0x50 + 800b33a: 4b13 ldr r3, [pc, #76] ; (800b388 <__sinit+0x68>) + 800b33c: 4a13 ldr r2, [pc, #76] ; (800b38c <__sinit+0x6c>) + 800b33e: 681b ldr r3, [r3, #0] + 800b340: 62a2 str r2, [r4, #40] ; 0x28 + 800b342: 42a3 cmp r3, r4 + 800b344: bf08 it eq + 800b346: 2301 moveq r3, #1 + 800b348: 4620 mov r0, r4 + 800b34a: bf08 it eq + 800b34c: 61a3 streq r3, [r4, #24] + 800b34e: f000 f81f bl 800b390 <__sfp> + 800b352: 6060 str r0, [r4, #4] + 800b354: 4620 mov r0, r4 + 800b356: f000 f81b bl 800b390 <__sfp> + 800b35a: 60a0 str r0, [r4, #8] + 800b35c: 4620 mov r0, r4 + 800b35e: f000 f817 bl 800b390 <__sfp> + 800b362: 2200 movs r2, #0 + 800b364: 2104 movs r1, #4 + 800b366: 60e0 str r0, [r4, #12] + 800b368: 6860 ldr r0, [r4, #4] + 800b36a: f7ff ff81 bl 800b270 + 800b36e: 2201 movs r2, #1 + 800b370: 2109 movs r1, #9 + 800b372: 68a0 ldr r0, [r4, #8] + 800b374: f7ff ff7c bl 800b270 + 800b378: 2202 movs r2, #2 + 800b37a: 2112 movs r1, #18 + 800b37c: 68e0 ldr r0, [r4, #12] + 800b37e: f7ff ff77 bl 800b270 + 800b382: 2301 movs r3, #1 + 800b384: 61a3 str r3, [r4, #24] + 800b386: e7d1 b.n 800b32c <__sinit+0xc> + 800b388: 0800d2f0 .word 0x0800d2f0 + 800b38c: 0800b2b9 .word 0x0800b2b9 -0800b1d0 <_fwalk_reent>: - 800b1d0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 800b1d4: 4606 mov r6, r0 - 800b1d6: 4688 mov r8, r1 - 800b1d8: 2700 movs r7, #0 - 800b1da: f100 0448 add.w r4, r0, #72 ; 0x48 - 800b1de: e9d4 9501 ldrd r9, r5, [r4, #4] - 800b1e2: f1b9 0901 subs.w r9, r9, #1 - 800b1e6: d505 bpl.n 800b1f4 <_fwalk_reent+0x24> - 800b1e8: 6824 ldr r4, [r4, #0] - 800b1ea: 2c00 cmp r4, #0 - 800b1ec: d1f7 bne.n 800b1de <_fwalk_reent+0xe> - 800b1ee: 4638 mov r0, r7 - 800b1f0: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 800b1f4: 89ab ldrh r3, [r5, #12] - 800b1f6: 2b01 cmp r3, #1 - 800b1f8: d907 bls.n 800b20a <_fwalk_reent+0x3a> - 800b1fa: f9b5 300e ldrsh.w r3, [r5, #14] - 800b1fe: 3301 adds r3, #1 - 800b200: d003 beq.n 800b20a <_fwalk_reent+0x3a> - 800b202: 4629 mov r1, r5 - 800b204: 4630 mov r0, r6 - 800b206: 47c0 blx r8 - 800b208: 4307 orrs r7, r0 - 800b20a: 3568 adds r5, #104 ; 0x68 - 800b20c: e7e9 b.n 800b1e2 <_fwalk_reent+0x12> - ... - -0800b210 <_findenv_r>: - 800b210: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800b214: f8df a06c ldr.w sl, [pc, #108] ; 800b284 <_findenv_r+0x74> - 800b218: 4607 mov r7, r0 - 800b21a: 4689 mov r9, r1 - 800b21c: 4616 mov r6, r2 - 800b21e: f000 fed5 bl 800bfcc <__env_lock> - 800b222: f8da 4000 ldr.w r4, [sl] - 800b226: b134 cbz r4, 800b236 <_findenv_r+0x26> - 800b228: 464b mov r3, r9 - 800b22a: 4698 mov r8, r3 - 800b22c: f813 2b01 ldrb.w r2, [r3], #1 - 800b230: b13a cbz r2, 800b242 <_findenv_r+0x32> - 800b232: 2a3d cmp r2, #61 ; 0x3d - 800b234: d1f9 bne.n 800b22a <_findenv_r+0x1a> - 800b236: 4638 mov r0, r7 - 800b238: f000 fece bl 800bfd8 <__env_unlock> - 800b23c: 2000 movs r0, #0 - 800b23e: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800b242: eba8 0809 sub.w r8, r8, r9 - 800b246: 46a3 mov fp, r4 - 800b248: f854 0b04 ldr.w r0, [r4], #4 - 800b24c: 2800 cmp r0, #0 - 800b24e: d0f2 beq.n 800b236 <_findenv_r+0x26> - 800b250: 4642 mov r2, r8 - 800b252: 4649 mov r1, r9 - 800b254: f7fe fc6c bl 8009b30 - 800b258: 2800 cmp r0, #0 - 800b25a: d1f4 bne.n 800b246 <_findenv_r+0x36> - 800b25c: f854 3c04 ldr.w r3, [r4, #-4] - 800b260: eb03 0508 add.w r5, r3, r8 - 800b264: f813 3008 ldrb.w r3, [r3, r8] - 800b268: 2b3d cmp r3, #61 ; 0x3d - 800b26a: d1ec bne.n 800b246 <_findenv_r+0x36> - 800b26c: f8da 3000 ldr.w r3, [sl] - 800b270: 4638 mov r0, r7 - 800b272: ebab 0303 sub.w r3, fp, r3 - 800b276: 109b asrs r3, r3, #2 - 800b278: 6033 str r3, [r6, #0] - 800b27a: f000 fead bl 800bfd8 <__env_unlock> - 800b27e: 1c68 adds r0, r5, #1 - 800b280: e7dd b.n 800b23e <_findenv_r+0x2e> - 800b282: bf00 nop - 800b284: 20000004 .word 0x20000004 - -0800b288 <_getenv_r>: - 800b288: b507 push {r0, r1, r2, lr} - 800b28a: aa01 add r2, sp, #4 - 800b28c: f7ff ffc0 bl 800b210 <_findenv_r> - 800b290: b003 add sp, #12 - 800b292: f85d fb04 ldr.w pc, [sp], #4 - ... - -0800b298 <__gettzinfo>: - 800b298: 4800 ldr r0, [pc, #0] ; (800b29c <__gettzinfo+0x4>) - 800b29a: 4770 bx lr - 800b29c: 20000080 .word 0x20000080 - -0800b2a0 <_localeconv_r>: - 800b2a0: 4800 ldr r0, [pc, #0] ; (800b2a4 <_localeconv_r+0x4>) - 800b2a2: 4770 bx lr - 800b2a4: 200001c8 .word 0x200001c8 - -0800b2a8 <__retarget_lock_init_recursive>: - 800b2a8: 4770 bx lr - -0800b2aa <__retarget_lock_acquire>: - 800b2aa: 4770 bx lr - -0800b2ac <__retarget_lock_acquire_recursive>: - 800b2ac: 4770 bx lr - -0800b2ae <__retarget_lock_release>: - 800b2ae: 4770 bx lr - -0800b2b0 <__retarget_lock_release_recursive>: - 800b2b0: 4770 bx lr - -0800b2b2 <__swhatbuf_r>: - 800b2b2: b570 push {r4, r5, r6, lr} - 800b2b4: 460e mov r6, r1 - 800b2b6: f9b1 100e ldrsh.w r1, [r1, #14] - 800b2ba: 4614 mov r4, r2 - 800b2bc: 2900 cmp r1, #0 - 800b2be: 461d mov r5, r3 - 800b2c0: b096 sub sp, #88 ; 0x58 - 800b2c2: da08 bge.n 800b2d6 <__swhatbuf_r+0x24> - 800b2c4: 2200 movs r2, #0 - 800b2c6: f9b6 300c ldrsh.w r3, [r6, #12] - 800b2ca: 602a str r2, [r5, #0] - 800b2cc: 061a lsls r2, r3, #24 - 800b2ce: d410 bmi.n 800b2f2 <__swhatbuf_r+0x40> - 800b2d0: f44f 6380 mov.w r3, #1024 ; 0x400 - 800b2d4: e00e b.n 800b2f4 <__swhatbuf_r+0x42> - 800b2d6: 466a mov r2, sp - 800b2d8: f000 fe84 bl 800bfe4 <_fstat_r> - 800b2dc: 2800 cmp r0, #0 - 800b2de: dbf1 blt.n 800b2c4 <__swhatbuf_r+0x12> - 800b2e0: 9a01 ldr r2, [sp, #4] - 800b2e2: f402 4270 and.w r2, r2, #61440 ; 0xf000 - 800b2e6: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 - 800b2ea: 425a negs r2, r3 - 800b2ec: 415a adcs r2, r3 - 800b2ee: 602a str r2, [r5, #0] - 800b2f0: e7ee b.n 800b2d0 <__swhatbuf_r+0x1e> - 800b2f2: 2340 movs r3, #64 ; 0x40 - 800b2f4: 2000 movs r0, #0 - 800b2f6: 6023 str r3, [r4, #0] - 800b2f8: b016 add sp, #88 ; 0x58 - 800b2fa: bd70 pop {r4, r5, r6, pc} - -0800b2fc <__smakebuf_r>: - 800b2fc: 898b ldrh r3, [r1, #12] - 800b2fe: b573 push {r0, r1, r4, r5, r6, lr} - 800b300: 079d lsls r5, r3, #30 - 800b302: 4606 mov r6, r0 - 800b304: 460c mov r4, r1 - 800b306: d507 bpl.n 800b318 <__smakebuf_r+0x1c> - 800b308: f104 0347 add.w r3, r4, #71 ; 0x47 - 800b30c: 6023 str r3, [r4, #0] - 800b30e: 6123 str r3, [r4, #16] - 800b310: 2301 movs r3, #1 - 800b312: 6163 str r3, [r4, #20] - 800b314: b002 add sp, #8 - 800b316: bd70 pop {r4, r5, r6, pc} - 800b318: 466a mov r2, sp - 800b31a: ab01 add r3, sp, #4 - 800b31c: f7ff ffc9 bl 800b2b2 <__swhatbuf_r> - 800b320: 9900 ldr r1, [sp, #0] - 800b322: 4605 mov r5, r0 - 800b324: 4630 mov r0, r6 - 800b326: f7fd fe91 bl 800904c <_malloc_r> - 800b32a: b948 cbnz r0, 800b340 <__smakebuf_r+0x44> - 800b32c: f9b4 300c ldrsh.w r3, [r4, #12] - 800b330: 059a lsls r2, r3, #22 - 800b332: d4ef bmi.n 800b314 <__smakebuf_r+0x18> - 800b334: f023 0303 bic.w r3, r3, #3 - 800b338: f043 0302 orr.w r3, r3, #2 - 800b33c: 81a3 strh r3, [r4, #12] - 800b33e: e7e3 b.n 800b308 <__smakebuf_r+0xc> - 800b340: 4b0d ldr r3, [pc, #52] ; (800b378 <__smakebuf_r+0x7c>) - 800b342: 62b3 str r3, [r6, #40] ; 0x28 - 800b344: 89a3 ldrh r3, [r4, #12] - 800b346: 6020 str r0, [r4, #0] - 800b348: f043 0380 orr.w r3, r3, #128 ; 0x80 - 800b34c: 81a3 strh r3, [r4, #12] - 800b34e: 9b00 ldr r3, [sp, #0] - 800b350: 6120 str r0, [r4, #16] - 800b352: 6163 str r3, [r4, #20] - 800b354: 9b01 ldr r3, [sp, #4] - 800b356: b15b cbz r3, 800b370 <__smakebuf_r+0x74> - 800b358: 4630 mov r0, r6 - 800b35a: f9b4 100e ldrsh.w r1, [r4, #14] - 800b35e: f000 fe53 bl 800c008 <_isatty_r> - 800b362: b128 cbz r0, 800b370 <__smakebuf_r+0x74> - 800b364: 89a3 ldrh r3, [r4, #12] - 800b366: f023 0303 bic.w r3, r3, #3 - 800b36a: f043 0301 orr.w r3, r3, #1 - 800b36e: 81a3 strh r3, [r4, #12] - 800b370: 89a0 ldrh r0, [r4, #12] - 800b372: 4305 orrs r5, r0 - 800b374: 81a5 strh r5, [r4, #12] - 800b376: e7cd b.n 800b314 <__smakebuf_r+0x18> - 800b378: 0800b049 .word 0x0800b049 - -0800b37c : - 800b37c: 4603 mov r3, r0 - 800b37e: b510 push {r4, lr} - 800b380: b2c9 uxtb r1, r1 - 800b382: 4402 add r2, r0 - 800b384: 4293 cmp r3, r2 - 800b386: 4618 mov r0, r3 - 800b388: d101 bne.n 800b38e - 800b38a: 2000 movs r0, #0 - 800b38c: e003 b.n 800b396 - 800b38e: 7804 ldrb r4, [r0, #0] - 800b390: 3301 adds r3, #1 - 800b392: 428c cmp r4, r1 - 800b394: d1f6 bne.n 800b384 - 800b396: bd10 pop {r4, pc} - -0800b398 <__malloc_lock>: - 800b398: 4801 ldr r0, [pc, #4] ; (800b3a0 <__malloc_lock+0x8>) - 800b39a: f7ff bf87 b.w 800b2ac <__retarget_lock_acquire_recursive> - 800b39e: bf00 nop - 800b3a0: 20001d45 .word 0x20001d45 - -0800b3a4 <__malloc_unlock>: - 800b3a4: 4801 ldr r0, [pc, #4] ; (800b3ac <__malloc_unlock+0x8>) - 800b3a6: f7ff bf83 b.w 800b2b0 <__retarget_lock_release_recursive> - 800b3aa: bf00 nop - 800b3ac: 20001d45 .word 0x20001d45 - -0800b3b0 <_Balloc>: - 800b3b0: b570 push {r4, r5, r6, lr} - 800b3b2: 6a46 ldr r6, [r0, #36] ; 0x24 - 800b3b4: 4604 mov r4, r0 - 800b3b6: 460d mov r5, r1 - 800b3b8: b976 cbnz r6, 800b3d8 <_Balloc+0x28> - 800b3ba: 2010 movs r0, #16 - 800b3bc: f7fd fdb8 bl 8008f30 - 800b3c0: 4602 mov r2, r0 - 800b3c2: 6260 str r0, [r4, #36] ; 0x24 - 800b3c4: b920 cbnz r0, 800b3d0 <_Balloc+0x20> - 800b3c6: 2166 movs r1, #102 ; 0x66 - 800b3c8: 4b17 ldr r3, [pc, #92] ; (800b428 <_Balloc+0x78>) - 800b3ca: 4818 ldr r0, [pc, #96] ; (800b42c <_Balloc+0x7c>) - 800b3cc: f7fe fec2 bl 800a154 <__assert_func> - 800b3d0: e9c0 6601 strd r6, r6, [r0, #4] - 800b3d4: 6006 str r6, [r0, #0] - 800b3d6: 60c6 str r6, [r0, #12] - 800b3d8: 6a66 ldr r6, [r4, #36] ; 0x24 - 800b3da: 68f3 ldr r3, [r6, #12] - 800b3dc: b183 cbz r3, 800b400 <_Balloc+0x50> - 800b3de: 6a63 ldr r3, [r4, #36] ; 0x24 - 800b3e0: 68db ldr r3, [r3, #12] - 800b3e2: f853 0025 ldr.w r0, [r3, r5, lsl #2] - 800b3e6: b9b8 cbnz r0, 800b418 <_Balloc+0x68> - 800b3e8: 2101 movs r1, #1 - 800b3ea: fa01 f605 lsl.w r6, r1, r5 - 800b3ee: 1d72 adds r2, r6, #5 +0800b390 <__sfp>: + 800b390: b5f8 push {r3, r4, r5, r6, r7, lr} + 800b392: 4607 mov r7, r0 + 800b394: f7ff ffac bl 800b2f0 <__sfp_lock_acquire> + 800b398: 4b1e ldr r3, [pc, #120] ; (800b414 <__sfp+0x84>) + 800b39a: 681e ldr r6, [r3, #0] + 800b39c: 69b3 ldr r3, [r6, #24] + 800b39e: b913 cbnz r3, 800b3a6 <__sfp+0x16> + 800b3a0: 4630 mov r0, r6 + 800b3a2: f7ff ffbd bl 800b320 <__sinit> + 800b3a6: 3648 adds r6, #72 ; 0x48 + 800b3a8: e9d6 3401 ldrd r3, r4, [r6, #4] + 800b3ac: 3b01 subs r3, #1 + 800b3ae: d503 bpl.n 800b3b8 <__sfp+0x28> + 800b3b0: 6833 ldr r3, [r6, #0] + 800b3b2: b30b cbz r3, 800b3f8 <__sfp+0x68> + 800b3b4: 6836 ldr r6, [r6, #0] + 800b3b6: e7f7 b.n 800b3a8 <__sfp+0x18> + 800b3b8: f9b4 500c ldrsh.w r5, [r4, #12] + 800b3bc: b9d5 cbnz r5, 800b3f4 <__sfp+0x64> + 800b3be: 4b16 ldr r3, [pc, #88] ; (800b418 <__sfp+0x88>) + 800b3c0: f104 0058 add.w r0, r4, #88 ; 0x58 + 800b3c4: 60e3 str r3, [r4, #12] + 800b3c6: 6665 str r5, [r4, #100] ; 0x64 + 800b3c8: f000 f8a6 bl 800b518 <__retarget_lock_init_recursive> + 800b3cc: f7ff ff96 bl 800b2fc <__sfp_lock_release> + 800b3d0: 2208 movs r2, #8 + 800b3d2: 4629 mov r1, r5 + 800b3d4: e9c4 5501 strd r5, r5, [r4, #4] + 800b3d8: e9c4 5504 strd r5, r5, [r4, #16] + 800b3dc: 6025 str r5, [r4, #0] + 800b3de: 61a5 str r5, [r4, #24] + 800b3e0: f104 005c add.w r0, r4, #92 ; 0x5c + 800b3e4: f7fd fef8 bl 80091d8 + 800b3e8: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 + 800b3ec: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 800b3f0: 4620 mov r0, r4 - 800b3f2: 0092 lsls r2, r2, #2 - 800b3f4: f000 fb5e bl 800bab4 <_calloc_r> - 800b3f8: b160 cbz r0, 800b414 <_Balloc+0x64> - 800b3fa: e9c0 5601 strd r5, r6, [r0, #4] - 800b3fe: e00e b.n 800b41e <_Balloc+0x6e> - 800b400: 2221 movs r2, #33 ; 0x21 - 800b402: 2104 movs r1, #4 - 800b404: 4620 mov r0, r4 - 800b406: f000 fb55 bl 800bab4 <_calloc_r> - 800b40a: 6a63 ldr r3, [r4, #36] ; 0x24 - 800b40c: 60f0 str r0, [r6, #12] - 800b40e: 68db ldr r3, [r3, #12] - 800b410: 2b00 cmp r3, #0 - 800b412: d1e4 bne.n 800b3de <_Balloc+0x2e> - 800b414: 2000 movs r0, #0 - 800b416: bd70 pop {r4, r5, r6, pc} - 800b418: 6802 ldr r2, [r0, #0] - 800b41a: f843 2025 str.w r2, [r3, r5, lsl #2] - 800b41e: 2300 movs r3, #0 - 800b420: e9c0 3303 strd r3, r3, [r0, #12] - 800b424: e7f7 b.n 800b416 <_Balloc+0x66> - 800b426: bf00 nop - 800b428: 0800cfec .word 0x0800cfec - 800b42c: 0800d2a4 .word 0x0800d2a4 + 800b3f2: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800b3f4: 3468 adds r4, #104 ; 0x68 + 800b3f6: e7d9 b.n 800b3ac <__sfp+0x1c> + 800b3f8: 2104 movs r1, #4 + 800b3fa: 4638 mov r0, r7 + 800b3fc: f7ff ff62 bl 800b2c4 <__sfmoreglue> + 800b400: 4604 mov r4, r0 + 800b402: 6030 str r0, [r6, #0] + 800b404: 2800 cmp r0, #0 + 800b406: d1d5 bne.n 800b3b4 <__sfp+0x24> + 800b408: f7ff ff78 bl 800b2fc <__sfp_lock_release> + 800b40c: 230c movs r3, #12 + 800b40e: 603b str r3, [r7, #0] + 800b410: e7ee b.n 800b3f0 <__sfp+0x60> + 800b412: bf00 nop + 800b414: 0800d2f0 .word 0x0800d2f0 + 800b418: ffff0001 .word 0xffff0001 -0800b430 <_Bfree>: - 800b430: b570 push {r4, r5, r6, lr} - 800b432: 6a46 ldr r6, [r0, #36] ; 0x24 - 800b434: 4605 mov r5, r0 - 800b436: 460c mov r4, r1 - 800b438: b976 cbnz r6, 800b458 <_Bfree+0x28> - 800b43a: 2010 movs r0, #16 - 800b43c: f7fd fd78 bl 8008f30 - 800b440: 4602 mov r2, r0 - 800b442: 6268 str r0, [r5, #36] ; 0x24 - 800b444: b920 cbnz r0, 800b450 <_Bfree+0x20> - 800b446: 218a movs r1, #138 ; 0x8a - 800b448: 4b08 ldr r3, [pc, #32] ; (800b46c <_Bfree+0x3c>) - 800b44a: 4809 ldr r0, [pc, #36] ; (800b470 <_Bfree+0x40>) - 800b44c: f7fe fe82 bl 800a154 <__assert_func> - 800b450: e9c0 6601 strd r6, r6, [r0, #4] - 800b454: 6006 str r6, [r0, #0] - 800b456: 60c6 str r6, [r0, #12] - 800b458: b13c cbz r4, 800b46a <_Bfree+0x3a> - 800b45a: 6a6b ldr r3, [r5, #36] ; 0x24 - 800b45c: 6862 ldr r2, [r4, #4] - 800b45e: 68db ldr r3, [r3, #12] - 800b460: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 800b464: 6021 str r1, [r4, #0] - 800b466: f843 4022 str.w r4, [r3, r2, lsl #2] - 800b46a: bd70 pop {r4, r5, r6, pc} - 800b46c: 0800cfec .word 0x0800cfec - 800b470: 0800d2a4 .word 0x0800d2a4 +0800b41c : + 800b41c: b40e push {r1, r2, r3} + 800b41e: b503 push {r0, r1, lr} + 800b420: 4601 mov r1, r0 + 800b422: ab03 add r3, sp, #12 + 800b424: 4805 ldr r0, [pc, #20] ; (800b43c ) + 800b426: f853 2b04 ldr.w r2, [r3], #4 + 800b42a: 6800 ldr r0, [r0, #0] + 800b42c: 9301 str r3, [sp, #4] + 800b42e: f000 fcb5 bl 800bd9c <_vfiprintf_r> + 800b432: b002 add sp, #8 + 800b434: f85d eb04 ldr.w lr, [sp], #4 + 800b438: b003 add sp, #12 + 800b43a: 4770 bx lr + 800b43c: 20000014 .word 0x20000014 -0800b474 <__multadd>: - 800b474: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 800b478: 4607 mov r7, r0 - 800b47a: 460c mov r4, r1 - 800b47c: 461e mov r6, r3 - 800b47e: 2000 movs r0, #0 - 800b480: 690d ldr r5, [r1, #16] - 800b482: f101 0c14 add.w ip, r1, #20 - 800b486: f8dc 3000 ldr.w r3, [ip] - 800b48a: 3001 adds r0, #1 - 800b48c: b299 uxth r1, r3 - 800b48e: fb02 6101 mla r1, r2, r1, r6 - 800b492: 0c1e lsrs r6, r3, #16 - 800b494: 0c0b lsrs r3, r1, #16 - 800b496: fb02 3306 mla r3, r2, r6, r3 - 800b49a: b289 uxth r1, r1 - 800b49c: eb01 4103 add.w r1, r1, r3, lsl #16 - 800b4a0: 4285 cmp r5, r0 - 800b4a2: ea4f 4613 mov.w r6, r3, lsr #16 - 800b4a6: f84c 1b04 str.w r1, [ip], #4 - 800b4aa: dcec bgt.n 800b486 <__multadd+0x12> - 800b4ac: b30e cbz r6, 800b4f2 <__multadd+0x7e> - 800b4ae: 68a3 ldr r3, [r4, #8] - 800b4b0: 42ab cmp r3, r5 - 800b4b2: dc19 bgt.n 800b4e8 <__multadd+0x74> - 800b4b4: 6861 ldr r1, [r4, #4] - 800b4b6: 4638 mov r0, r7 - 800b4b8: 3101 adds r1, #1 - 800b4ba: f7ff ff79 bl 800b3b0 <_Balloc> - 800b4be: 4680 mov r8, r0 - 800b4c0: b928 cbnz r0, 800b4ce <__multadd+0x5a> - 800b4c2: 4602 mov r2, r0 - 800b4c4: 21b5 movs r1, #181 ; 0xb5 - 800b4c6: 4b0c ldr r3, [pc, #48] ; (800b4f8 <__multadd+0x84>) - 800b4c8: 480c ldr r0, [pc, #48] ; (800b4fc <__multadd+0x88>) - 800b4ca: f7fe fe43 bl 800a154 <__assert_func> - 800b4ce: 6922 ldr r2, [r4, #16] - 800b4d0: f104 010c add.w r1, r4, #12 - 800b4d4: 3202 adds r2, #2 - 800b4d6: 0092 lsls r2, r2, #2 - 800b4d8: 300c adds r0, #12 - 800b4da: f7fd fd39 bl 8008f50 - 800b4de: 4621 mov r1, r4 +0800b440 <_fwalk_reent>: + 800b440: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 800b444: 4606 mov r6, r0 + 800b446: 4688 mov r8, r1 + 800b448: 2700 movs r7, #0 + 800b44a: f100 0448 add.w r4, r0, #72 ; 0x48 + 800b44e: e9d4 9501 ldrd r9, r5, [r4, #4] + 800b452: f1b9 0901 subs.w r9, r9, #1 + 800b456: d505 bpl.n 800b464 <_fwalk_reent+0x24> + 800b458: 6824 ldr r4, [r4, #0] + 800b45a: 2c00 cmp r4, #0 + 800b45c: d1f7 bne.n 800b44e <_fwalk_reent+0xe> + 800b45e: 4638 mov r0, r7 + 800b460: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 800b464: 89ab ldrh r3, [r5, #12] + 800b466: 2b01 cmp r3, #1 + 800b468: d907 bls.n 800b47a <_fwalk_reent+0x3a> + 800b46a: f9b5 300e ldrsh.w r3, [r5, #14] + 800b46e: 3301 adds r3, #1 + 800b470: d003 beq.n 800b47a <_fwalk_reent+0x3a> + 800b472: 4629 mov r1, r5 + 800b474: 4630 mov r0, r6 + 800b476: 47c0 blx r8 + 800b478: 4307 orrs r7, r0 + 800b47a: 3568 adds r5, #104 ; 0x68 + 800b47c: e7e9 b.n 800b452 <_fwalk_reent+0x12> + ... + +0800b480 <_findenv_r>: + 800b480: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800b484: f8df a06c ldr.w sl, [pc, #108] ; 800b4f4 <_findenv_r+0x74> + 800b488: 4607 mov r7, r0 + 800b48a: 4689 mov r9, r1 + 800b48c: 4616 mov r6, r2 + 800b48e: f000 fed5 bl 800c23c <__env_lock> + 800b492: f8da 4000 ldr.w r4, [sl] + 800b496: b134 cbz r4, 800b4a6 <_findenv_r+0x26> + 800b498: 464b mov r3, r9 + 800b49a: 4698 mov r8, r3 + 800b49c: f813 2b01 ldrb.w r2, [r3], #1 + 800b4a0: b13a cbz r2, 800b4b2 <_findenv_r+0x32> + 800b4a2: 2a3d cmp r2, #61 ; 0x3d + 800b4a4: d1f9 bne.n 800b49a <_findenv_r+0x1a> + 800b4a6: 4638 mov r0, r7 + 800b4a8: f000 fece bl 800c248 <__env_unlock> + 800b4ac: 2000 movs r0, #0 + 800b4ae: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800b4b2: eba8 0809 sub.w r8, r8, r9 + 800b4b6: 46a3 mov fp, r4 + 800b4b8: f854 0b04 ldr.w r0, [r4], #4 + 800b4bc: 2800 cmp r0, #0 + 800b4be: d0f2 beq.n 800b4a6 <_findenv_r+0x26> + 800b4c0: 4642 mov r2, r8 + 800b4c2: 4649 mov r1, r9 + 800b4c4: f7fe fc6a bl 8009d9c + 800b4c8: 2800 cmp r0, #0 + 800b4ca: d1f4 bne.n 800b4b6 <_findenv_r+0x36> + 800b4cc: f854 3c04 ldr.w r3, [r4, #-4] + 800b4d0: eb03 0508 add.w r5, r3, r8 + 800b4d4: f813 3008 ldrb.w r3, [r3, r8] + 800b4d8: 2b3d cmp r3, #61 ; 0x3d + 800b4da: d1ec bne.n 800b4b6 <_findenv_r+0x36> + 800b4dc: f8da 3000 ldr.w r3, [sl] 800b4e0: 4638 mov r0, r7 - 800b4e2: f7ff ffa5 bl 800b430 <_Bfree> - 800b4e6: 4644 mov r4, r8 - 800b4e8: eb04 0385 add.w r3, r4, r5, lsl #2 - 800b4ec: 3501 adds r5, #1 - 800b4ee: 615e str r6, [r3, #20] - 800b4f0: 6125 str r5, [r4, #16] - 800b4f2: 4620 mov r0, r4 - 800b4f4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 800b4f8: 0800d232 .word 0x0800d232 - 800b4fc: 0800d2a4 .word 0x0800d2a4 + 800b4e2: ebab 0303 sub.w r3, fp, r3 + 800b4e6: 109b asrs r3, r3, #2 + 800b4e8: 6033 str r3, [r6, #0] + 800b4ea: f000 fead bl 800c248 <__env_unlock> + 800b4ee: 1c68 adds r0, r5, #1 + 800b4f0: e7dd b.n 800b4ae <_findenv_r+0x2e> + 800b4f2: bf00 nop + 800b4f4: 20000004 .word 0x20000004 -0800b500 <__hi0bits>: - 800b500: 0c02 lsrs r2, r0, #16 - 800b502: 0412 lsls r2, r2, #16 - 800b504: 4603 mov r3, r0 - 800b506: b9ca cbnz r2, 800b53c <__hi0bits+0x3c> - 800b508: 0403 lsls r3, r0, #16 - 800b50a: 2010 movs r0, #16 - 800b50c: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 - 800b510: bf04 itt eq - 800b512: 021b lsleq r3, r3, #8 - 800b514: 3008 addeq r0, #8 - 800b516: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 - 800b51a: bf04 itt eq - 800b51c: 011b lsleq r3, r3, #4 - 800b51e: 3004 addeq r0, #4 - 800b520: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 - 800b524: bf04 itt eq - 800b526: 009b lsleq r3, r3, #2 - 800b528: 3002 addeq r0, #2 - 800b52a: 2b00 cmp r3, #0 - 800b52c: db05 blt.n 800b53a <__hi0bits+0x3a> - 800b52e: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 - 800b532: f100 0001 add.w r0, r0, #1 - 800b536: bf08 it eq - 800b538: 2020 moveq r0, #32 - 800b53a: 4770 bx lr - 800b53c: 2000 movs r0, #0 - 800b53e: e7e5 b.n 800b50c <__hi0bits+0xc> - -0800b540 <__lo0bits>: - 800b540: 6803 ldr r3, [r0, #0] - 800b542: 4602 mov r2, r0 - 800b544: f013 0007 ands.w r0, r3, #7 - 800b548: d00b beq.n 800b562 <__lo0bits+0x22> - 800b54a: 07d9 lsls r1, r3, #31 - 800b54c: d421 bmi.n 800b592 <__lo0bits+0x52> - 800b54e: 0798 lsls r0, r3, #30 - 800b550: bf49 itett mi - 800b552: 085b lsrmi r3, r3, #1 - 800b554: 089b lsrpl r3, r3, #2 - 800b556: 2001 movmi r0, #1 - 800b558: 6013 strmi r3, [r2, #0] - 800b55a: bf5c itt pl - 800b55c: 2002 movpl r0, #2 - 800b55e: 6013 strpl r3, [r2, #0] - 800b560: 4770 bx lr - 800b562: b299 uxth r1, r3 - 800b564: b909 cbnz r1, 800b56a <__lo0bits+0x2a> - 800b566: 2010 movs r0, #16 - 800b568: 0c1b lsrs r3, r3, #16 - 800b56a: b2d9 uxtb r1, r3 - 800b56c: b909 cbnz r1, 800b572 <__lo0bits+0x32> - 800b56e: 3008 adds r0, #8 - 800b570: 0a1b lsrs r3, r3, #8 - 800b572: 0719 lsls r1, r3, #28 - 800b574: bf04 itt eq - 800b576: 091b lsreq r3, r3, #4 - 800b578: 3004 addeq r0, #4 - 800b57a: 0799 lsls r1, r3, #30 - 800b57c: bf04 itt eq - 800b57e: 089b lsreq r3, r3, #2 - 800b580: 3002 addeq r0, #2 - 800b582: 07d9 lsls r1, r3, #31 - 800b584: d403 bmi.n 800b58e <__lo0bits+0x4e> - 800b586: 085b lsrs r3, r3, #1 - 800b588: f100 0001 add.w r0, r0, #1 - 800b58c: d003 beq.n 800b596 <__lo0bits+0x56> - 800b58e: 6013 str r3, [r2, #0] - 800b590: 4770 bx lr - 800b592: 2000 movs r0, #0 - 800b594: 4770 bx lr - 800b596: 2020 movs r0, #32 - 800b598: 4770 bx lr +0800b4f8 <_getenv_r>: + 800b4f8: b507 push {r0, r1, r2, lr} + 800b4fa: aa01 add r2, sp, #4 + 800b4fc: f7ff ffc0 bl 800b480 <_findenv_r> + 800b500: b003 add sp, #12 + 800b502: f85d fb04 ldr.w pc, [sp], #4 ... -0800b59c <__i2b>: - 800b59c: b510 push {r4, lr} - 800b59e: 460c mov r4, r1 - 800b5a0: 2101 movs r1, #1 - 800b5a2: f7ff ff05 bl 800b3b0 <_Balloc> - 800b5a6: 4602 mov r2, r0 - 800b5a8: b928 cbnz r0, 800b5b6 <__i2b+0x1a> - 800b5aa: f44f 71a0 mov.w r1, #320 ; 0x140 - 800b5ae: 4b04 ldr r3, [pc, #16] ; (800b5c0 <__i2b+0x24>) - 800b5b0: 4804 ldr r0, [pc, #16] ; (800b5c4 <__i2b+0x28>) - 800b5b2: f7fe fdcf bl 800a154 <__assert_func> - 800b5b6: 2301 movs r3, #1 - 800b5b8: 6144 str r4, [r0, #20] - 800b5ba: 6103 str r3, [r0, #16] - 800b5bc: bd10 pop {r4, pc} - 800b5be: bf00 nop - 800b5c0: 0800d232 .word 0x0800d232 - 800b5c4: 0800d2a4 .word 0x0800d2a4 +0800b508 <__gettzinfo>: + 800b508: 4800 ldr r0, [pc, #0] ; (800b50c <__gettzinfo+0x4>) + 800b50a: 4770 bx lr + 800b50c: 20000080 .word 0x20000080 -0800b5c8 <__multiply>: - 800b5c8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800b5cc: 4691 mov r9, r2 - 800b5ce: 690a ldr r2, [r1, #16] - 800b5d0: f8d9 3010 ldr.w r3, [r9, #16] - 800b5d4: 460c mov r4, r1 - 800b5d6: 429a cmp r2, r3 - 800b5d8: bfbe ittt lt - 800b5da: 460b movlt r3, r1 - 800b5dc: 464c movlt r4, r9 - 800b5de: 4699 movlt r9, r3 - 800b5e0: 6927 ldr r7, [r4, #16] - 800b5e2: f8d9 a010 ldr.w sl, [r9, #16] - 800b5e6: 68a3 ldr r3, [r4, #8] - 800b5e8: 6861 ldr r1, [r4, #4] - 800b5ea: eb07 060a add.w r6, r7, sl - 800b5ee: 42b3 cmp r3, r6 - 800b5f0: b085 sub sp, #20 - 800b5f2: bfb8 it lt - 800b5f4: 3101 addlt r1, #1 - 800b5f6: f7ff fedb bl 800b3b0 <_Balloc> - 800b5fa: b930 cbnz r0, 800b60a <__multiply+0x42> - 800b5fc: 4602 mov r2, r0 - 800b5fe: f240 115d movw r1, #349 ; 0x15d - 800b602: 4b43 ldr r3, [pc, #268] ; (800b710 <__multiply+0x148>) - 800b604: 4843 ldr r0, [pc, #268] ; (800b714 <__multiply+0x14c>) - 800b606: f7fe fda5 bl 800a154 <__assert_func> - 800b60a: f100 0514 add.w r5, r0, #20 - 800b60e: 462b mov r3, r5 - 800b610: 2200 movs r2, #0 - 800b612: eb05 0886 add.w r8, r5, r6, lsl #2 - 800b616: 4543 cmp r3, r8 - 800b618: d321 bcc.n 800b65e <__multiply+0x96> - 800b61a: f104 0314 add.w r3, r4, #20 - 800b61e: eb03 0787 add.w r7, r3, r7, lsl #2 - 800b622: f109 0314 add.w r3, r9, #20 - 800b626: eb03 028a add.w r2, r3, sl, lsl #2 - 800b62a: 9202 str r2, [sp, #8] - 800b62c: 1b3a subs r2, r7, r4 - 800b62e: 3a15 subs r2, #21 - 800b630: f022 0203 bic.w r2, r2, #3 - 800b634: 3204 adds r2, #4 - 800b636: f104 0115 add.w r1, r4, #21 - 800b63a: 428f cmp r7, r1 - 800b63c: bf38 it cc - 800b63e: 2204 movcc r2, #4 - 800b640: 9201 str r2, [sp, #4] - 800b642: 9a02 ldr r2, [sp, #8] - 800b644: 9303 str r3, [sp, #12] - 800b646: 429a cmp r2, r3 - 800b648: d80c bhi.n 800b664 <__multiply+0x9c> - 800b64a: 2e00 cmp r6, #0 - 800b64c: dd03 ble.n 800b656 <__multiply+0x8e> - 800b64e: f858 3d04 ldr.w r3, [r8, #-4]! - 800b652: 2b00 cmp r3, #0 - 800b654: d059 beq.n 800b70a <__multiply+0x142> - 800b656: 6106 str r6, [r0, #16] - 800b658: b005 add sp, #20 - 800b65a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800b65e: f843 2b04 str.w r2, [r3], #4 - 800b662: e7d8 b.n 800b616 <__multiply+0x4e> - 800b664: f8b3 a000 ldrh.w sl, [r3] - 800b668: f1ba 0f00 cmp.w sl, #0 - 800b66c: d023 beq.n 800b6b6 <__multiply+0xee> - 800b66e: 46a9 mov r9, r5 - 800b670: f04f 0c00 mov.w ip, #0 - 800b674: f104 0e14 add.w lr, r4, #20 - 800b678: f85e 2b04 ldr.w r2, [lr], #4 - 800b67c: f8d9 1000 ldr.w r1, [r9] - 800b680: fa1f fb82 uxth.w fp, r2 - 800b684: b289 uxth r1, r1 - 800b686: fb0a 110b mla r1, sl, fp, r1 - 800b68a: 4461 add r1, ip - 800b68c: f8d9 c000 ldr.w ip, [r9] - 800b690: 0c12 lsrs r2, r2, #16 - 800b692: ea4f 4c1c mov.w ip, ip, lsr #16 - 800b696: fb0a c202 mla r2, sl, r2, ip - 800b69a: eb02 4211 add.w r2, r2, r1, lsr #16 - 800b69e: b289 uxth r1, r1 - 800b6a0: ea41 4102 orr.w r1, r1, r2, lsl #16 - 800b6a4: 4577 cmp r7, lr - 800b6a6: ea4f 4c12 mov.w ip, r2, lsr #16 - 800b6aa: f849 1b04 str.w r1, [r9], #4 - 800b6ae: d8e3 bhi.n 800b678 <__multiply+0xb0> - 800b6b0: 9a01 ldr r2, [sp, #4] - 800b6b2: f845 c002 str.w ip, [r5, r2] - 800b6b6: 9a03 ldr r2, [sp, #12] - 800b6b8: 3304 adds r3, #4 - 800b6ba: f8b2 9002 ldrh.w r9, [r2, #2] - 800b6be: f1b9 0f00 cmp.w r9, #0 - 800b6c2: d020 beq.n 800b706 <__multiply+0x13e> - 800b6c4: 46ae mov lr, r5 - 800b6c6: f04f 0a00 mov.w sl, #0 - 800b6ca: 6829 ldr r1, [r5, #0] - 800b6cc: f104 0c14 add.w ip, r4, #20 - 800b6d0: f8bc b000 ldrh.w fp, [ip] - 800b6d4: f8be 2002 ldrh.w r2, [lr, #2] - 800b6d8: b289 uxth r1, r1 - 800b6da: fb09 220b mla r2, r9, fp, r2 - 800b6de: 4492 add sl, r2 - 800b6e0: ea41 410a orr.w r1, r1, sl, lsl #16 - 800b6e4: f84e 1b04 str.w r1, [lr], #4 - 800b6e8: f85c 2b04 ldr.w r2, [ip], #4 - 800b6ec: f8be 1000 ldrh.w r1, [lr] - 800b6f0: 0c12 lsrs r2, r2, #16 - 800b6f2: fb09 1102 mla r1, r9, r2, r1 - 800b6f6: 4567 cmp r7, ip - 800b6f8: eb01 411a add.w r1, r1, sl, lsr #16 - 800b6fc: ea4f 4a11 mov.w sl, r1, lsr #16 - 800b700: d8e6 bhi.n 800b6d0 <__multiply+0x108> - 800b702: 9a01 ldr r2, [sp, #4] - 800b704: 50a9 str r1, [r5, r2] - 800b706: 3504 adds r5, #4 - 800b708: e79b b.n 800b642 <__multiply+0x7a> - 800b70a: 3e01 subs r6, #1 - 800b70c: e79d b.n 800b64a <__multiply+0x82> - 800b70e: bf00 nop - 800b710: 0800d232 .word 0x0800d232 - 800b714: 0800d2a4 .word 0x0800d2a4 +0800b510 <_localeconv_r>: + 800b510: 4800 ldr r0, [pc, #0] ; (800b514 <_localeconv_r+0x4>) + 800b512: 4770 bx lr + 800b514: 200001c8 .word 0x200001c8 -0800b718 <__pow5mult>: - 800b718: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 800b71c: 4615 mov r5, r2 - 800b71e: f012 0203 ands.w r2, r2, #3 - 800b722: 4606 mov r6, r0 - 800b724: 460f mov r7, r1 - 800b726: d007 beq.n 800b738 <__pow5mult+0x20> - 800b728: 4c25 ldr r4, [pc, #148] ; (800b7c0 <__pow5mult+0xa8>) - 800b72a: 3a01 subs r2, #1 - 800b72c: 2300 movs r3, #0 - 800b72e: f854 2022 ldr.w r2, [r4, r2, lsl #2] - 800b732: f7ff fe9f bl 800b474 <__multadd> - 800b736: 4607 mov r7, r0 - 800b738: 10ad asrs r5, r5, #2 - 800b73a: d03d beq.n 800b7b8 <__pow5mult+0xa0> - 800b73c: 6a74 ldr r4, [r6, #36] ; 0x24 - 800b73e: b97c cbnz r4, 800b760 <__pow5mult+0x48> - 800b740: 2010 movs r0, #16 - 800b742: f7fd fbf5 bl 8008f30 - 800b746: 4602 mov r2, r0 - 800b748: 6270 str r0, [r6, #36] ; 0x24 - 800b74a: b928 cbnz r0, 800b758 <__pow5mult+0x40> - 800b74c: f44f 71d7 mov.w r1, #430 ; 0x1ae - 800b750: 4b1c ldr r3, [pc, #112] ; (800b7c4 <__pow5mult+0xac>) - 800b752: 481d ldr r0, [pc, #116] ; (800b7c8 <__pow5mult+0xb0>) - 800b754: f7fe fcfe bl 800a154 <__assert_func> - 800b758: e9c0 4401 strd r4, r4, [r0, #4] - 800b75c: 6004 str r4, [r0, #0] - 800b75e: 60c4 str r4, [r0, #12] - 800b760: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24 - 800b764: f8d8 4008 ldr.w r4, [r8, #8] - 800b768: b94c cbnz r4, 800b77e <__pow5mult+0x66> - 800b76a: f240 2171 movw r1, #625 ; 0x271 - 800b76e: 4630 mov r0, r6 - 800b770: f7ff ff14 bl 800b59c <__i2b> - 800b774: 2300 movs r3, #0 - 800b776: 4604 mov r4, r0 - 800b778: f8c8 0008 str.w r0, [r8, #8] - 800b77c: 6003 str r3, [r0, #0] - 800b77e: f04f 0900 mov.w r9, #0 - 800b782: 07eb lsls r3, r5, #31 - 800b784: d50a bpl.n 800b79c <__pow5mult+0x84> - 800b786: 4639 mov r1, r7 - 800b788: 4622 mov r2, r4 - 800b78a: 4630 mov r0, r6 - 800b78c: f7ff ff1c bl 800b5c8 <__multiply> - 800b790: 4680 mov r8, r0 - 800b792: 4639 mov r1, r7 - 800b794: 4630 mov r0, r6 - 800b796: f7ff fe4b bl 800b430 <_Bfree> - 800b79a: 4647 mov r7, r8 - 800b79c: 106d asrs r5, r5, #1 - 800b79e: d00b beq.n 800b7b8 <__pow5mult+0xa0> - 800b7a0: 6820 ldr r0, [r4, #0] - 800b7a2: b938 cbnz r0, 800b7b4 <__pow5mult+0x9c> - 800b7a4: 4622 mov r2, r4 - 800b7a6: 4621 mov r1, r4 - 800b7a8: 4630 mov r0, r6 - 800b7aa: f7ff ff0d bl 800b5c8 <__multiply> - 800b7ae: 6020 str r0, [r4, #0] - 800b7b0: f8c0 9000 str.w r9, [r0] - 800b7b4: 4604 mov r4, r0 - 800b7b6: e7e4 b.n 800b782 <__pow5mult+0x6a> - 800b7b8: 4638 mov r0, r7 - 800b7ba: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 800b7be: bf00 nop - 800b7c0: 0800d3f0 .word 0x0800d3f0 - 800b7c4: 0800cfec .word 0x0800cfec - 800b7c8: 0800d2a4 .word 0x0800d2a4 +0800b518 <__retarget_lock_init_recursive>: + 800b518: 4770 bx lr -0800b7cc <__lshift>: - 800b7cc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 800b7d0: 460c mov r4, r1 - 800b7d2: 4607 mov r7, r0 - 800b7d4: 4691 mov r9, r2 - 800b7d6: 6923 ldr r3, [r4, #16] - 800b7d8: 6849 ldr r1, [r1, #4] - 800b7da: eb03 1862 add.w r8, r3, r2, asr #5 - 800b7de: 68a3 ldr r3, [r4, #8] - 800b7e0: ea4f 1a62 mov.w sl, r2, asr #5 - 800b7e4: f108 0601 add.w r6, r8, #1 - 800b7e8: 42b3 cmp r3, r6 - 800b7ea: db0b blt.n 800b804 <__lshift+0x38> - 800b7ec: 4638 mov r0, r7 - 800b7ee: f7ff fddf bl 800b3b0 <_Balloc> - 800b7f2: 4605 mov r5, r0 - 800b7f4: b948 cbnz r0, 800b80a <__lshift+0x3e> - 800b7f6: 4602 mov r2, r0 - 800b7f8: f240 11d9 movw r1, #473 ; 0x1d9 - 800b7fc: 4b29 ldr r3, [pc, #164] ; (800b8a4 <__lshift+0xd8>) - 800b7fe: 482a ldr r0, [pc, #168] ; (800b8a8 <__lshift+0xdc>) - 800b800: f7fe fca8 bl 800a154 <__assert_func> - 800b804: 3101 adds r1, #1 - 800b806: 005b lsls r3, r3, #1 - 800b808: e7ee b.n 800b7e8 <__lshift+0x1c> - 800b80a: 2300 movs r3, #0 - 800b80c: f100 0114 add.w r1, r0, #20 - 800b810: f100 0210 add.w r2, r0, #16 - 800b814: 4618 mov r0, r3 - 800b816: 4553 cmp r3, sl - 800b818: db37 blt.n 800b88a <__lshift+0xbe> - 800b81a: 6920 ldr r0, [r4, #16] - 800b81c: ea2a 7aea bic.w sl, sl, sl, asr #31 - 800b820: f104 0314 add.w r3, r4, #20 - 800b824: f019 091f ands.w r9, r9, #31 - 800b828: eb01 018a add.w r1, r1, sl, lsl #2 - 800b82c: eb03 0080 add.w r0, r3, r0, lsl #2 - 800b830: d02f beq.n 800b892 <__lshift+0xc6> - 800b832: 468a mov sl, r1 - 800b834: f04f 0c00 mov.w ip, #0 - 800b838: f1c9 0e20 rsb lr, r9, #32 - 800b83c: 681a ldr r2, [r3, #0] - 800b83e: fa02 f209 lsl.w r2, r2, r9 - 800b842: ea42 020c orr.w r2, r2, ip - 800b846: f84a 2b04 str.w r2, [sl], #4 - 800b84a: f853 2b04 ldr.w r2, [r3], #4 - 800b84e: 4298 cmp r0, r3 - 800b850: fa22 fc0e lsr.w ip, r2, lr - 800b854: d8f2 bhi.n 800b83c <__lshift+0x70> - 800b856: 1b03 subs r3, r0, r4 - 800b858: 3b15 subs r3, #21 - 800b85a: f023 0303 bic.w r3, r3, #3 - 800b85e: 3304 adds r3, #4 - 800b860: f104 0215 add.w r2, r4, #21 - 800b864: 4290 cmp r0, r2 - 800b866: bf38 it cc - 800b868: 2304 movcc r3, #4 - 800b86a: f841 c003 str.w ip, [r1, r3] - 800b86e: f1bc 0f00 cmp.w ip, #0 - 800b872: d001 beq.n 800b878 <__lshift+0xac> - 800b874: f108 0602 add.w r6, r8, #2 - 800b878: 3e01 subs r6, #1 - 800b87a: 4638 mov r0, r7 - 800b87c: 4621 mov r1, r4 - 800b87e: 612e str r6, [r5, #16] - 800b880: f7ff fdd6 bl 800b430 <_Bfree> - 800b884: 4628 mov r0, r5 - 800b886: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 800b88a: f842 0f04 str.w r0, [r2, #4]! - 800b88e: 3301 adds r3, #1 - 800b890: e7c1 b.n 800b816 <__lshift+0x4a> - 800b892: 3904 subs r1, #4 - 800b894: f853 2b04 ldr.w r2, [r3], #4 - 800b898: 4298 cmp r0, r3 - 800b89a: f841 2f04 str.w r2, [r1, #4]! - 800b89e: d8f9 bhi.n 800b894 <__lshift+0xc8> - 800b8a0: e7ea b.n 800b878 <__lshift+0xac> - 800b8a2: bf00 nop - 800b8a4: 0800d232 .word 0x0800d232 - 800b8a8: 0800d2a4 .word 0x0800d2a4 +0800b51a <__retarget_lock_acquire>: + 800b51a: 4770 bx lr -0800b8ac <__mcmp>: - 800b8ac: 4603 mov r3, r0 - 800b8ae: 690a ldr r2, [r1, #16] - 800b8b0: 6900 ldr r0, [r0, #16] - 800b8b2: b530 push {r4, r5, lr} - 800b8b4: 1a80 subs r0, r0, r2 - 800b8b6: d10d bne.n 800b8d4 <__mcmp+0x28> - 800b8b8: 3314 adds r3, #20 - 800b8ba: 3114 adds r1, #20 - 800b8bc: eb03 0482 add.w r4, r3, r2, lsl #2 - 800b8c0: eb01 0182 add.w r1, r1, r2, lsl #2 - 800b8c4: f854 5d04 ldr.w r5, [r4, #-4]! - 800b8c8: f851 2d04 ldr.w r2, [r1, #-4]! - 800b8cc: 4295 cmp r5, r2 - 800b8ce: d002 beq.n 800b8d6 <__mcmp+0x2a> - 800b8d0: d304 bcc.n 800b8dc <__mcmp+0x30> - 800b8d2: 2001 movs r0, #1 - 800b8d4: bd30 pop {r4, r5, pc} - 800b8d6: 42a3 cmp r3, r4 - 800b8d8: d3f4 bcc.n 800b8c4 <__mcmp+0x18> - 800b8da: e7fb b.n 800b8d4 <__mcmp+0x28> - 800b8dc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800b8e0: e7f8 b.n 800b8d4 <__mcmp+0x28> +0800b51c <__retarget_lock_acquire_recursive>: + 800b51c: 4770 bx lr + +0800b51e <__retarget_lock_release>: + 800b51e: 4770 bx lr + +0800b520 <__retarget_lock_release_recursive>: + 800b520: 4770 bx lr + +0800b522 <__swhatbuf_r>: + 800b522: b570 push {r4, r5, r6, lr} + 800b524: 460e mov r6, r1 + 800b526: f9b1 100e ldrsh.w r1, [r1, #14] + 800b52a: 4614 mov r4, r2 + 800b52c: 2900 cmp r1, #0 + 800b52e: 461d mov r5, r3 + 800b530: b096 sub sp, #88 ; 0x58 + 800b532: da08 bge.n 800b546 <__swhatbuf_r+0x24> + 800b534: 2200 movs r2, #0 + 800b536: f9b6 300c ldrsh.w r3, [r6, #12] + 800b53a: 602a str r2, [r5, #0] + 800b53c: 061a lsls r2, r3, #24 + 800b53e: d410 bmi.n 800b562 <__swhatbuf_r+0x40> + 800b540: f44f 6380 mov.w r3, #1024 ; 0x400 + 800b544: e00e b.n 800b564 <__swhatbuf_r+0x42> + 800b546: 466a mov r2, sp + 800b548: f000 fe84 bl 800c254 <_fstat_r> + 800b54c: 2800 cmp r0, #0 + 800b54e: dbf1 blt.n 800b534 <__swhatbuf_r+0x12> + 800b550: 9a01 ldr r2, [sp, #4] + 800b552: f402 4270 and.w r2, r2, #61440 ; 0xf000 + 800b556: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 + 800b55a: 425a negs r2, r3 + 800b55c: 415a adcs r2, r3 + 800b55e: 602a str r2, [r5, #0] + 800b560: e7ee b.n 800b540 <__swhatbuf_r+0x1e> + 800b562: 2340 movs r3, #64 ; 0x40 + 800b564: 2000 movs r0, #0 + 800b566: 6023 str r3, [r4, #0] + 800b568: b016 add sp, #88 ; 0x58 + 800b56a: bd70 pop {r4, r5, r6, pc} + +0800b56c <__smakebuf_r>: + 800b56c: 898b ldrh r3, [r1, #12] + 800b56e: b573 push {r0, r1, r4, r5, r6, lr} + 800b570: 079d lsls r5, r3, #30 + 800b572: 4606 mov r6, r0 + 800b574: 460c mov r4, r1 + 800b576: d507 bpl.n 800b588 <__smakebuf_r+0x1c> + 800b578: f104 0347 add.w r3, r4, #71 ; 0x47 + 800b57c: 6023 str r3, [r4, #0] + 800b57e: 6123 str r3, [r4, #16] + 800b580: 2301 movs r3, #1 + 800b582: 6163 str r3, [r4, #20] + 800b584: b002 add sp, #8 + 800b586: bd70 pop {r4, r5, r6, pc} + 800b588: 466a mov r2, sp + 800b58a: ab01 add r3, sp, #4 + 800b58c: f7ff ffc9 bl 800b522 <__swhatbuf_r> + 800b590: 9900 ldr r1, [sp, #0] + 800b592: 4605 mov r5, r0 + 800b594: 4630 mov r0, r6 + 800b596: f7fd fe8f bl 80092b8 <_malloc_r> + 800b59a: b948 cbnz r0, 800b5b0 <__smakebuf_r+0x44> + 800b59c: f9b4 300c ldrsh.w r3, [r4, #12] + 800b5a0: 059a lsls r2, r3, #22 + 800b5a2: d4ef bmi.n 800b584 <__smakebuf_r+0x18> + 800b5a4: f023 0303 bic.w r3, r3, #3 + 800b5a8: f043 0302 orr.w r3, r3, #2 + 800b5ac: 81a3 strh r3, [r4, #12] + 800b5ae: e7e3 b.n 800b578 <__smakebuf_r+0xc> + 800b5b0: 4b0d ldr r3, [pc, #52] ; (800b5e8 <__smakebuf_r+0x7c>) + 800b5b2: 62b3 str r3, [r6, #40] ; 0x28 + 800b5b4: 89a3 ldrh r3, [r4, #12] + 800b5b6: 6020 str r0, [r4, #0] + 800b5b8: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800b5bc: 81a3 strh r3, [r4, #12] + 800b5be: 9b00 ldr r3, [sp, #0] + 800b5c0: 6120 str r0, [r4, #16] + 800b5c2: 6163 str r3, [r4, #20] + 800b5c4: 9b01 ldr r3, [sp, #4] + 800b5c6: b15b cbz r3, 800b5e0 <__smakebuf_r+0x74> + 800b5c8: 4630 mov r0, r6 + 800b5ca: f9b4 100e ldrsh.w r1, [r4, #14] + 800b5ce: f000 fe53 bl 800c278 <_isatty_r> + 800b5d2: b128 cbz r0, 800b5e0 <__smakebuf_r+0x74> + 800b5d4: 89a3 ldrh r3, [r4, #12] + 800b5d6: f023 0303 bic.w r3, r3, #3 + 800b5da: f043 0301 orr.w r3, r3, #1 + 800b5de: 81a3 strh r3, [r4, #12] + 800b5e0: 89a0 ldrh r0, [r4, #12] + 800b5e2: 4305 orrs r5, r0 + 800b5e4: 81a5 strh r5, [r4, #12] + 800b5e6: e7cd b.n 800b584 <__smakebuf_r+0x18> + 800b5e8: 0800b2b9 .word 0x0800b2b9 + +0800b5ec : + 800b5ec: 4603 mov r3, r0 + 800b5ee: b510 push {r4, lr} + 800b5f0: b2c9 uxtb r1, r1 + 800b5f2: 4402 add r2, r0 + 800b5f4: 4293 cmp r3, r2 + 800b5f6: 4618 mov r0, r3 + 800b5f8: d101 bne.n 800b5fe + 800b5fa: 2000 movs r0, #0 + 800b5fc: e003 b.n 800b606 + 800b5fe: 7804 ldrb r4, [r0, #0] + 800b600: 3301 adds r3, #1 + 800b602: 428c cmp r4, r1 + 800b604: d1f6 bne.n 800b5f4 + 800b606: bd10 pop {r4, pc} + +0800b608 <__malloc_lock>: + 800b608: 4801 ldr r0, [pc, #4] ; (800b610 <__malloc_lock+0x8>) + 800b60a: f7ff bf87 b.w 800b51c <__retarget_lock_acquire_recursive> + 800b60e: bf00 nop + 800b610: 200033c5 .word 0x200033c5 + +0800b614 <__malloc_unlock>: + 800b614: 4801 ldr r0, [pc, #4] ; (800b61c <__malloc_unlock+0x8>) + 800b616: f7ff bf83 b.w 800b520 <__retarget_lock_release_recursive> + 800b61a: bf00 nop + 800b61c: 200033c5 .word 0x200033c5 + +0800b620 <_Balloc>: + 800b620: b570 push {r4, r5, r6, lr} + 800b622: 6a46 ldr r6, [r0, #36] ; 0x24 + 800b624: 4604 mov r4, r0 + 800b626: 460d mov r5, r1 + 800b628: b976 cbnz r6, 800b648 <_Balloc+0x28> + 800b62a: 2010 movs r0, #16 + 800b62c: f7fd fdb6 bl 800919c + 800b630: 4602 mov r2, r0 + 800b632: 6260 str r0, [r4, #36] ; 0x24 + 800b634: b920 cbnz r0, 800b640 <_Balloc+0x20> + 800b636: 2166 movs r1, #102 ; 0x66 + 800b638: 4b17 ldr r3, [pc, #92] ; (800b698 <_Balloc+0x78>) + 800b63a: 4818 ldr r0, [pc, #96] ; (800b69c <_Balloc+0x7c>) + 800b63c: f7fe fec0 bl 800a3c0 <__assert_func> + 800b640: e9c0 6601 strd r6, r6, [r0, #4] + 800b644: 6006 str r6, [r0, #0] + 800b646: 60c6 str r6, [r0, #12] + 800b648: 6a66 ldr r6, [r4, #36] ; 0x24 + 800b64a: 68f3 ldr r3, [r6, #12] + 800b64c: b183 cbz r3, 800b670 <_Balloc+0x50> + 800b64e: 6a63 ldr r3, [r4, #36] ; 0x24 + 800b650: 68db ldr r3, [r3, #12] + 800b652: f853 0025 ldr.w r0, [r3, r5, lsl #2] + 800b656: b9b8 cbnz r0, 800b688 <_Balloc+0x68> + 800b658: 2101 movs r1, #1 + 800b65a: fa01 f605 lsl.w r6, r1, r5 + 800b65e: 1d72 adds r2, r6, #5 + 800b660: 4620 mov r0, r4 + 800b662: 0092 lsls r2, r2, #2 + 800b664: f000 fb5e bl 800bd24 <_calloc_r> + 800b668: b160 cbz r0, 800b684 <_Balloc+0x64> + 800b66a: e9c0 5601 strd r5, r6, [r0, #4] + 800b66e: e00e b.n 800b68e <_Balloc+0x6e> + 800b670: 2221 movs r2, #33 ; 0x21 + 800b672: 2104 movs r1, #4 + 800b674: 4620 mov r0, r4 + 800b676: f000 fb55 bl 800bd24 <_calloc_r> + 800b67a: 6a63 ldr r3, [r4, #36] ; 0x24 + 800b67c: 60f0 str r0, [r6, #12] + 800b67e: 68db ldr r3, [r3, #12] + 800b680: 2b00 cmp r3, #0 + 800b682: d1e4 bne.n 800b64e <_Balloc+0x2e> + 800b684: 2000 movs r0, #0 + 800b686: bd70 pop {r4, r5, r6, pc} + 800b688: 6802 ldr r2, [r0, #0] + 800b68a: f843 2025 str.w r2, [r3, r5, lsl #2] + 800b68e: 2300 movs r3, #0 + 800b690: e9c0 3303 strd r3, r3, [r0, #12] + 800b694: e7f7 b.n 800b686 <_Balloc+0x66> + 800b696: bf00 nop + 800b698: 0800d27c .word 0x0800d27c + 800b69c: 0800d534 .word 0x0800d534 + +0800b6a0 <_Bfree>: + 800b6a0: b570 push {r4, r5, r6, lr} + 800b6a2: 6a46 ldr r6, [r0, #36] ; 0x24 + 800b6a4: 4605 mov r5, r0 + 800b6a6: 460c mov r4, r1 + 800b6a8: b976 cbnz r6, 800b6c8 <_Bfree+0x28> + 800b6aa: 2010 movs r0, #16 + 800b6ac: f7fd fd76 bl 800919c + 800b6b0: 4602 mov r2, r0 + 800b6b2: 6268 str r0, [r5, #36] ; 0x24 + 800b6b4: b920 cbnz r0, 800b6c0 <_Bfree+0x20> + 800b6b6: 218a movs r1, #138 ; 0x8a + 800b6b8: 4b08 ldr r3, [pc, #32] ; (800b6dc <_Bfree+0x3c>) + 800b6ba: 4809 ldr r0, [pc, #36] ; (800b6e0 <_Bfree+0x40>) + 800b6bc: f7fe fe80 bl 800a3c0 <__assert_func> + 800b6c0: e9c0 6601 strd r6, r6, [r0, #4] + 800b6c4: 6006 str r6, [r0, #0] + 800b6c6: 60c6 str r6, [r0, #12] + 800b6c8: b13c cbz r4, 800b6da <_Bfree+0x3a> + 800b6ca: 6a6b ldr r3, [r5, #36] ; 0x24 + 800b6cc: 6862 ldr r2, [r4, #4] + 800b6ce: 68db ldr r3, [r3, #12] + 800b6d0: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 800b6d4: 6021 str r1, [r4, #0] + 800b6d6: f843 4022 str.w r4, [r3, r2, lsl #2] + 800b6da: bd70 pop {r4, r5, r6, pc} + 800b6dc: 0800d27c .word 0x0800d27c + 800b6e0: 0800d534 .word 0x0800d534 + +0800b6e4 <__multadd>: + 800b6e4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800b6e8: 4607 mov r7, r0 + 800b6ea: 460c mov r4, r1 + 800b6ec: 461e mov r6, r3 + 800b6ee: 2000 movs r0, #0 + 800b6f0: 690d ldr r5, [r1, #16] + 800b6f2: f101 0c14 add.w ip, r1, #20 + 800b6f6: f8dc 3000 ldr.w r3, [ip] + 800b6fa: 3001 adds r0, #1 + 800b6fc: b299 uxth r1, r3 + 800b6fe: fb02 6101 mla r1, r2, r1, r6 + 800b702: 0c1e lsrs r6, r3, #16 + 800b704: 0c0b lsrs r3, r1, #16 + 800b706: fb02 3306 mla r3, r2, r6, r3 + 800b70a: b289 uxth r1, r1 + 800b70c: eb01 4103 add.w r1, r1, r3, lsl #16 + 800b710: 4285 cmp r5, r0 + 800b712: ea4f 4613 mov.w r6, r3, lsr #16 + 800b716: f84c 1b04 str.w r1, [ip], #4 + 800b71a: dcec bgt.n 800b6f6 <__multadd+0x12> + 800b71c: b30e cbz r6, 800b762 <__multadd+0x7e> + 800b71e: 68a3 ldr r3, [r4, #8] + 800b720: 42ab cmp r3, r5 + 800b722: dc19 bgt.n 800b758 <__multadd+0x74> + 800b724: 6861 ldr r1, [r4, #4] + 800b726: 4638 mov r0, r7 + 800b728: 3101 adds r1, #1 + 800b72a: f7ff ff79 bl 800b620 <_Balloc> + 800b72e: 4680 mov r8, r0 + 800b730: b928 cbnz r0, 800b73e <__multadd+0x5a> + 800b732: 4602 mov r2, r0 + 800b734: 21b5 movs r1, #181 ; 0xb5 + 800b736: 4b0c ldr r3, [pc, #48] ; (800b768 <__multadd+0x84>) + 800b738: 480c ldr r0, [pc, #48] ; (800b76c <__multadd+0x88>) + 800b73a: f7fe fe41 bl 800a3c0 <__assert_func> + 800b73e: 6922 ldr r2, [r4, #16] + 800b740: f104 010c add.w r1, r4, #12 + 800b744: 3202 adds r2, #2 + 800b746: 0092 lsls r2, r2, #2 + 800b748: 300c adds r0, #12 + 800b74a: f7fd fd37 bl 80091bc + 800b74e: 4621 mov r1, r4 + 800b750: 4638 mov r0, r7 + 800b752: f7ff ffa5 bl 800b6a0 <_Bfree> + 800b756: 4644 mov r4, r8 + 800b758: eb04 0385 add.w r3, r4, r5, lsl #2 + 800b75c: 3501 adds r5, #1 + 800b75e: 615e str r6, [r3, #20] + 800b760: 6125 str r5, [r4, #16] + 800b762: 4620 mov r0, r4 + 800b764: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800b768: 0800d4c2 .word 0x0800d4c2 + 800b76c: 0800d534 .word 0x0800d534 + +0800b770 <__hi0bits>: + 800b770: 0c02 lsrs r2, r0, #16 + 800b772: 0412 lsls r2, r2, #16 + 800b774: 4603 mov r3, r0 + 800b776: b9ca cbnz r2, 800b7ac <__hi0bits+0x3c> + 800b778: 0403 lsls r3, r0, #16 + 800b77a: 2010 movs r0, #16 + 800b77c: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 + 800b780: bf04 itt eq + 800b782: 021b lsleq r3, r3, #8 + 800b784: 3008 addeq r0, #8 + 800b786: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 + 800b78a: bf04 itt eq + 800b78c: 011b lsleq r3, r3, #4 + 800b78e: 3004 addeq r0, #4 + 800b790: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 + 800b794: bf04 itt eq + 800b796: 009b lsleq r3, r3, #2 + 800b798: 3002 addeq r0, #2 + 800b79a: 2b00 cmp r3, #0 + 800b79c: db05 blt.n 800b7aa <__hi0bits+0x3a> + 800b79e: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 + 800b7a2: f100 0001 add.w r0, r0, #1 + 800b7a6: bf08 it eq + 800b7a8: 2020 moveq r0, #32 + 800b7aa: 4770 bx lr + 800b7ac: 2000 movs r0, #0 + 800b7ae: e7e5 b.n 800b77c <__hi0bits+0xc> + +0800b7b0 <__lo0bits>: + 800b7b0: 6803 ldr r3, [r0, #0] + 800b7b2: 4602 mov r2, r0 + 800b7b4: f013 0007 ands.w r0, r3, #7 + 800b7b8: d00b beq.n 800b7d2 <__lo0bits+0x22> + 800b7ba: 07d9 lsls r1, r3, #31 + 800b7bc: d421 bmi.n 800b802 <__lo0bits+0x52> + 800b7be: 0798 lsls r0, r3, #30 + 800b7c0: bf49 itett mi + 800b7c2: 085b lsrmi r3, r3, #1 + 800b7c4: 089b lsrpl r3, r3, #2 + 800b7c6: 2001 movmi r0, #1 + 800b7c8: 6013 strmi r3, [r2, #0] + 800b7ca: bf5c itt pl + 800b7cc: 2002 movpl r0, #2 + 800b7ce: 6013 strpl r3, [r2, #0] + 800b7d0: 4770 bx lr + 800b7d2: b299 uxth r1, r3 + 800b7d4: b909 cbnz r1, 800b7da <__lo0bits+0x2a> + 800b7d6: 2010 movs r0, #16 + 800b7d8: 0c1b lsrs r3, r3, #16 + 800b7da: b2d9 uxtb r1, r3 + 800b7dc: b909 cbnz r1, 800b7e2 <__lo0bits+0x32> + 800b7de: 3008 adds r0, #8 + 800b7e0: 0a1b lsrs r3, r3, #8 + 800b7e2: 0719 lsls r1, r3, #28 + 800b7e4: bf04 itt eq + 800b7e6: 091b lsreq r3, r3, #4 + 800b7e8: 3004 addeq r0, #4 + 800b7ea: 0799 lsls r1, r3, #30 + 800b7ec: bf04 itt eq + 800b7ee: 089b lsreq r3, r3, #2 + 800b7f0: 3002 addeq r0, #2 + 800b7f2: 07d9 lsls r1, r3, #31 + 800b7f4: d403 bmi.n 800b7fe <__lo0bits+0x4e> + 800b7f6: 085b lsrs r3, r3, #1 + 800b7f8: f100 0001 add.w r0, r0, #1 + 800b7fc: d003 beq.n 800b806 <__lo0bits+0x56> + 800b7fe: 6013 str r3, [r2, #0] + 800b800: 4770 bx lr + 800b802: 2000 movs r0, #0 + 800b804: 4770 bx lr + 800b806: 2020 movs r0, #32 + 800b808: 4770 bx lr ... -0800b8e4 <__mdiff>: - 800b8e4: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800b8e8: 460d mov r5, r1 - 800b8ea: 4607 mov r7, r0 - 800b8ec: 4611 mov r1, r2 - 800b8ee: 4628 mov r0, r5 - 800b8f0: 4614 mov r4, r2 - 800b8f2: f7ff ffdb bl 800b8ac <__mcmp> - 800b8f6: 1e06 subs r6, r0, #0 - 800b8f8: d111 bne.n 800b91e <__mdiff+0x3a> - 800b8fa: 4631 mov r1, r6 - 800b8fc: 4638 mov r0, r7 - 800b8fe: f7ff fd57 bl 800b3b0 <_Balloc> - 800b902: 4602 mov r2, r0 - 800b904: b928 cbnz r0, 800b912 <__mdiff+0x2e> - 800b906: f240 2132 movw r1, #562 ; 0x232 - 800b90a: 4b3a ldr r3, [pc, #232] ; (800b9f4 <__mdiff+0x110>) - 800b90c: 483a ldr r0, [pc, #232] ; (800b9f8 <__mdiff+0x114>) - 800b90e: f7fe fc21 bl 800a154 <__assert_func> - 800b912: 2301 movs r3, #1 - 800b914: e9c0 3604 strd r3, r6, [r0, #16] - 800b918: 4610 mov r0, r2 - 800b91a: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800b91e: bfa4 itt ge - 800b920: 4623 movge r3, r4 - 800b922: 462c movge r4, r5 - 800b924: 4638 mov r0, r7 - 800b926: 6861 ldr r1, [r4, #4] - 800b928: bfa6 itte ge - 800b92a: 461d movge r5, r3 - 800b92c: 2600 movge r6, #0 - 800b92e: 2601 movlt r6, #1 - 800b930: f7ff fd3e bl 800b3b0 <_Balloc> - 800b934: 4602 mov r2, r0 - 800b936: b918 cbnz r0, 800b940 <__mdiff+0x5c> - 800b938: f44f 7110 mov.w r1, #576 ; 0x240 - 800b93c: 4b2d ldr r3, [pc, #180] ; (800b9f4 <__mdiff+0x110>) - 800b93e: e7e5 b.n 800b90c <__mdiff+0x28> - 800b940: f102 0814 add.w r8, r2, #20 - 800b944: 46c2 mov sl, r8 - 800b946: f04f 0c00 mov.w ip, #0 - 800b94a: 6927 ldr r7, [r4, #16] - 800b94c: 60c6 str r6, [r0, #12] - 800b94e: 692e ldr r6, [r5, #16] - 800b950: f104 0014 add.w r0, r4, #20 - 800b954: f105 0914 add.w r9, r5, #20 - 800b958: eb00 0e87 add.w lr, r0, r7, lsl #2 - 800b95c: eb09 0686 add.w r6, r9, r6, lsl #2 - 800b960: 3410 adds r4, #16 - 800b962: f854 bf04 ldr.w fp, [r4, #4]! - 800b966: f859 3b04 ldr.w r3, [r9], #4 - 800b96a: fa1f f18b uxth.w r1, fp - 800b96e: 448c add ip, r1 - 800b970: b299 uxth r1, r3 - 800b972: 0c1b lsrs r3, r3, #16 - 800b974: ebac 0101 sub.w r1, ip, r1 - 800b978: ebc3 431b rsb r3, r3, fp, lsr #16 - 800b97c: eb03 4321 add.w r3, r3, r1, asr #16 - 800b980: b289 uxth r1, r1 - 800b982: ea4f 4c23 mov.w ip, r3, asr #16 - 800b986: 454e cmp r6, r9 - 800b988: ea41 4303 orr.w r3, r1, r3, lsl #16 - 800b98c: f84a 3b04 str.w r3, [sl], #4 - 800b990: d8e7 bhi.n 800b962 <__mdiff+0x7e> - 800b992: 1b73 subs r3, r6, r5 - 800b994: 3b15 subs r3, #21 - 800b996: f023 0303 bic.w r3, r3, #3 - 800b99a: 3515 adds r5, #21 - 800b99c: 3304 adds r3, #4 - 800b99e: 42ae cmp r6, r5 - 800b9a0: bf38 it cc - 800b9a2: 2304 movcc r3, #4 - 800b9a4: 4418 add r0, r3 - 800b9a6: 4443 add r3, r8 - 800b9a8: 461e mov r6, r3 - 800b9aa: 4605 mov r5, r0 - 800b9ac: 4575 cmp r5, lr - 800b9ae: d30e bcc.n 800b9ce <__mdiff+0xea> - 800b9b0: f10e 0103 add.w r1, lr, #3 - 800b9b4: 1a09 subs r1, r1, r0 - 800b9b6: f021 0103 bic.w r1, r1, #3 - 800b9ba: 3803 subs r0, #3 - 800b9bc: 4586 cmp lr, r0 - 800b9be: bf38 it cc - 800b9c0: 2100 movcc r1, #0 - 800b9c2: 4419 add r1, r3 - 800b9c4: f851 3d04 ldr.w r3, [r1, #-4]! - 800b9c8: b18b cbz r3, 800b9ee <__mdiff+0x10a> - 800b9ca: 6117 str r7, [r2, #16] - 800b9cc: e7a4 b.n 800b918 <__mdiff+0x34> - 800b9ce: f855 8b04 ldr.w r8, [r5], #4 - 800b9d2: fa1f f188 uxth.w r1, r8 - 800b9d6: 4461 add r1, ip - 800b9d8: 140c asrs r4, r1, #16 - 800b9da: eb04 4418 add.w r4, r4, r8, lsr #16 - 800b9de: b289 uxth r1, r1 - 800b9e0: ea41 4104 orr.w r1, r1, r4, lsl #16 - 800b9e4: ea4f 4c24 mov.w ip, r4, asr #16 - 800b9e8: f846 1b04 str.w r1, [r6], #4 - 800b9ec: e7de b.n 800b9ac <__mdiff+0xc8> - 800b9ee: 3f01 subs r7, #1 - 800b9f0: e7e8 b.n 800b9c4 <__mdiff+0xe0> - 800b9f2: bf00 nop - 800b9f4: 0800d232 .word 0x0800d232 - 800b9f8: 0800d2a4 .word 0x0800d2a4 +0800b80c <__i2b>: + 800b80c: b510 push {r4, lr} + 800b80e: 460c mov r4, r1 + 800b810: 2101 movs r1, #1 + 800b812: f7ff ff05 bl 800b620 <_Balloc> + 800b816: 4602 mov r2, r0 + 800b818: b928 cbnz r0, 800b826 <__i2b+0x1a> + 800b81a: f44f 71a0 mov.w r1, #320 ; 0x140 + 800b81e: 4b04 ldr r3, [pc, #16] ; (800b830 <__i2b+0x24>) + 800b820: 4804 ldr r0, [pc, #16] ; (800b834 <__i2b+0x28>) + 800b822: f7fe fdcd bl 800a3c0 <__assert_func> + 800b826: 2301 movs r3, #1 + 800b828: 6144 str r4, [r0, #20] + 800b82a: 6103 str r3, [r0, #16] + 800b82c: bd10 pop {r4, pc} + 800b82e: bf00 nop + 800b830: 0800d4c2 .word 0x0800d4c2 + 800b834: 0800d534 .word 0x0800d534 -0800b9fc <__d2b>: - 800b9fc: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} - 800ba00: 2101 movs r1, #1 - 800ba02: e9dd 7608 ldrd r7, r6, [sp, #32] - 800ba06: 4690 mov r8, r2 - 800ba08: 461d mov r5, r3 - 800ba0a: f7ff fcd1 bl 800b3b0 <_Balloc> - 800ba0e: 4604 mov r4, r0 - 800ba10: b930 cbnz r0, 800ba20 <__d2b+0x24> - 800ba12: 4602 mov r2, r0 - 800ba14: f240 310a movw r1, #778 ; 0x30a - 800ba18: 4b24 ldr r3, [pc, #144] ; (800baac <__d2b+0xb0>) - 800ba1a: 4825 ldr r0, [pc, #148] ; (800bab0 <__d2b+0xb4>) - 800ba1c: f7fe fb9a bl 800a154 <__assert_func> - 800ba20: f3c5 0313 ubfx r3, r5, #0, #20 - 800ba24: f3c5 550a ubfx r5, r5, #20, #11 - 800ba28: bb2d cbnz r5, 800ba76 <__d2b+0x7a> - 800ba2a: 9301 str r3, [sp, #4] - 800ba2c: f1b8 0300 subs.w r3, r8, #0 - 800ba30: d026 beq.n 800ba80 <__d2b+0x84> - 800ba32: 4668 mov r0, sp - 800ba34: 9300 str r3, [sp, #0] - 800ba36: f7ff fd83 bl 800b540 <__lo0bits> - 800ba3a: 9900 ldr r1, [sp, #0] - 800ba3c: b1f0 cbz r0, 800ba7c <__d2b+0x80> - 800ba3e: 9a01 ldr r2, [sp, #4] - 800ba40: f1c0 0320 rsb r3, r0, #32 - 800ba44: fa02 f303 lsl.w r3, r2, r3 - 800ba48: 430b orrs r3, r1 - 800ba4a: 40c2 lsrs r2, r0 - 800ba4c: 6163 str r3, [r4, #20] - 800ba4e: 9201 str r2, [sp, #4] - 800ba50: 9b01 ldr r3, [sp, #4] - 800ba52: 2b00 cmp r3, #0 - 800ba54: bf14 ite ne - 800ba56: 2102 movne r1, #2 - 800ba58: 2101 moveq r1, #1 - 800ba5a: 61a3 str r3, [r4, #24] - 800ba5c: 6121 str r1, [r4, #16] - 800ba5e: b1c5 cbz r5, 800ba92 <__d2b+0x96> - 800ba60: f2a5 4533 subw r5, r5, #1075 ; 0x433 - 800ba64: 4405 add r5, r0 - 800ba66: f1c0 0035 rsb r0, r0, #53 ; 0x35 - 800ba6a: 603d str r5, [r7, #0] - 800ba6c: 6030 str r0, [r6, #0] - 800ba6e: 4620 mov r0, r4 - 800ba70: b002 add sp, #8 - 800ba72: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 800ba76: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 800ba7a: e7d6 b.n 800ba2a <__d2b+0x2e> - 800ba7c: 6161 str r1, [r4, #20] - 800ba7e: e7e7 b.n 800ba50 <__d2b+0x54> - 800ba80: a801 add r0, sp, #4 - 800ba82: f7ff fd5d bl 800b540 <__lo0bits> - 800ba86: 2101 movs r1, #1 - 800ba88: 9b01 ldr r3, [sp, #4] - 800ba8a: 6121 str r1, [r4, #16] - 800ba8c: 6163 str r3, [r4, #20] - 800ba8e: 3020 adds r0, #32 - 800ba90: e7e5 b.n 800ba5e <__d2b+0x62> - 800ba92: eb04 0381 add.w r3, r4, r1, lsl #2 - 800ba96: f2a0 4032 subw r0, r0, #1074 ; 0x432 - 800ba9a: 6038 str r0, [r7, #0] - 800ba9c: 6918 ldr r0, [r3, #16] - 800ba9e: f7ff fd2f bl 800b500 <__hi0bits> - 800baa2: ebc0 1141 rsb r1, r0, r1, lsl #5 - 800baa6: 6031 str r1, [r6, #0] - 800baa8: e7e1 b.n 800ba6e <__d2b+0x72> - 800baaa: bf00 nop - 800baac: 0800d232 .word 0x0800d232 - 800bab0: 0800d2a4 .word 0x0800d2a4 +0800b838 <__multiply>: + 800b838: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800b83c: 4691 mov r9, r2 + 800b83e: 690a ldr r2, [r1, #16] + 800b840: f8d9 3010 ldr.w r3, [r9, #16] + 800b844: 460c mov r4, r1 + 800b846: 429a cmp r2, r3 + 800b848: bfbe ittt lt + 800b84a: 460b movlt r3, r1 + 800b84c: 464c movlt r4, r9 + 800b84e: 4699 movlt r9, r3 + 800b850: 6927 ldr r7, [r4, #16] + 800b852: f8d9 a010 ldr.w sl, [r9, #16] + 800b856: 68a3 ldr r3, [r4, #8] + 800b858: 6861 ldr r1, [r4, #4] + 800b85a: eb07 060a add.w r6, r7, sl + 800b85e: 42b3 cmp r3, r6 + 800b860: b085 sub sp, #20 + 800b862: bfb8 it lt + 800b864: 3101 addlt r1, #1 + 800b866: f7ff fedb bl 800b620 <_Balloc> + 800b86a: b930 cbnz r0, 800b87a <__multiply+0x42> + 800b86c: 4602 mov r2, r0 + 800b86e: f240 115d movw r1, #349 ; 0x15d + 800b872: 4b43 ldr r3, [pc, #268] ; (800b980 <__multiply+0x148>) + 800b874: 4843 ldr r0, [pc, #268] ; (800b984 <__multiply+0x14c>) + 800b876: f7fe fda3 bl 800a3c0 <__assert_func> + 800b87a: f100 0514 add.w r5, r0, #20 + 800b87e: 462b mov r3, r5 + 800b880: 2200 movs r2, #0 + 800b882: eb05 0886 add.w r8, r5, r6, lsl #2 + 800b886: 4543 cmp r3, r8 + 800b888: d321 bcc.n 800b8ce <__multiply+0x96> + 800b88a: f104 0314 add.w r3, r4, #20 + 800b88e: eb03 0787 add.w r7, r3, r7, lsl #2 + 800b892: f109 0314 add.w r3, r9, #20 + 800b896: eb03 028a add.w r2, r3, sl, lsl #2 + 800b89a: 9202 str r2, [sp, #8] + 800b89c: 1b3a subs r2, r7, r4 + 800b89e: 3a15 subs r2, #21 + 800b8a0: f022 0203 bic.w r2, r2, #3 + 800b8a4: 3204 adds r2, #4 + 800b8a6: f104 0115 add.w r1, r4, #21 + 800b8aa: 428f cmp r7, r1 + 800b8ac: bf38 it cc + 800b8ae: 2204 movcc r2, #4 + 800b8b0: 9201 str r2, [sp, #4] + 800b8b2: 9a02 ldr r2, [sp, #8] + 800b8b4: 9303 str r3, [sp, #12] + 800b8b6: 429a cmp r2, r3 + 800b8b8: d80c bhi.n 800b8d4 <__multiply+0x9c> + 800b8ba: 2e00 cmp r6, #0 + 800b8bc: dd03 ble.n 800b8c6 <__multiply+0x8e> + 800b8be: f858 3d04 ldr.w r3, [r8, #-4]! + 800b8c2: 2b00 cmp r3, #0 + 800b8c4: d059 beq.n 800b97a <__multiply+0x142> + 800b8c6: 6106 str r6, [r0, #16] + 800b8c8: b005 add sp, #20 + 800b8ca: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800b8ce: f843 2b04 str.w r2, [r3], #4 + 800b8d2: e7d8 b.n 800b886 <__multiply+0x4e> + 800b8d4: f8b3 a000 ldrh.w sl, [r3] + 800b8d8: f1ba 0f00 cmp.w sl, #0 + 800b8dc: d023 beq.n 800b926 <__multiply+0xee> + 800b8de: 46a9 mov r9, r5 + 800b8e0: f04f 0c00 mov.w ip, #0 + 800b8e4: f104 0e14 add.w lr, r4, #20 + 800b8e8: f85e 2b04 ldr.w r2, [lr], #4 + 800b8ec: f8d9 1000 ldr.w r1, [r9] + 800b8f0: fa1f fb82 uxth.w fp, r2 + 800b8f4: b289 uxth r1, r1 + 800b8f6: fb0a 110b mla r1, sl, fp, r1 + 800b8fa: 4461 add r1, ip + 800b8fc: f8d9 c000 ldr.w ip, [r9] + 800b900: 0c12 lsrs r2, r2, #16 + 800b902: ea4f 4c1c mov.w ip, ip, lsr #16 + 800b906: fb0a c202 mla r2, sl, r2, ip + 800b90a: eb02 4211 add.w r2, r2, r1, lsr #16 + 800b90e: b289 uxth r1, r1 + 800b910: ea41 4102 orr.w r1, r1, r2, lsl #16 + 800b914: 4577 cmp r7, lr + 800b916: ea4f 4c12 mov.w ip, r2, lsr #16 + 800b91a: f849 1b04 str.w r1, [r9], #4 + 800b91e: d8e3 bhi.n 800b8e8 <__multiply+0xb0> + 800b920: 9a01 ldr r2, [sp, #4] + 800b922: f845 c002 str.w ip, [r5, r2] + 800b926: 9a03 ldr r2, [sp, #12] + 800b928: 3304 adds r3, #4 + 800b92a: f8b2 9002 ldrh.w r9, [r2, #2] + 800b92e: f1b9 0f00 cmp.w r9, #0 + 800b932: d020 beq.n 800b976 <__multiply+0x13e> + 800b934: 46ae mov lr, r5 + 800b936: f04f 0a00 mov.w sl, #0 + 800b93a: 6829 ldr r1, [r5, #0] + 800b93c: f104 0c14 add.w ip, r4, #20 + 800b940: f8bc b000 ldrh.w fp, [ip] + 800b944: f8be 2002 ldrh.w r2, [lr, #2] + 800b948: b289 uxth r1, r1 + 800b94a: fb09 220b mla r2, r9, fp, r2 + 800b94e: 4492 add sl, r2 + 800b950: ea41 410a orr.w r1, r1, sl, lsl #16 + 800b954: f84e 1b04 str.w r1, [lr], #4 + 800b958: f85c 2b04 ldr.w r2, [ip], #4 + 800b95c: f8be 1000 ldrh.w r1, [lr] + 800b960: 0c12 lsrs r2, r2, #16 + 800b962: fb09 1102 mla r1, r9, r2, r1 + 800b966: 4567 cmp r7, ip + 800b968: eb01 411a add.w r1, r1, sl, lsr #16 + 800b96c: ea4f 4a11 mov.w sl, r1, lsr #16 + 800b970: d8e6 bhi.n 800b940 <__multiply+0x108> + 800b972: 9a01 ldr r2, [sp, #4] + 800b974: 50a9 str r1, [r5, r2] + 800b976: 3504 adds r5, #4 + 800b978: e79b b.n 800b8b2 <__multiply+0x7a> + 800b97a: 3e01 subs r6, #1 + 800b97c: e79d b.n 800b8ba <__multiply+0x82> + 800b97e: bf00 nop + 800b980: 0800d4c2 .word 0x0800d4c2 + 800b984: 0800d534 .word 0x0800d534 -0800bab4 <_calloc_r>: - 800bab4: b570 push {r4, r5, r6, lr} - 800bab6: fba1 5402 umull r5, r4, r1, r2 - 800baba: b934 cbnz r4, 800baca <_calloc_r+0x16> - 800babc: 4629 mov r1, r5 - 800babe: f7fd fac5 bl 800904c <_malloc_r> - 800bac2: 4606 mov r6, r0 - 800bac4: b928 cbnz r0, 800bad2 <_calloc_r+0x1e> - 800bac6: 4630 mov r0, r6 - 800bac8: bd70 pop {r4, r5, r6, pc} - 800baca: 220c movs r2, #12 - 800bacc: 2600 movs r6, #0 - 800bace: 6002 str r2, [r0, #0] - 800bad0: e7f9 b.n 800bac6 <_calloc_r+0x12> - 800bad2: 462a mov r2, r5 - 800bad4: 4621 mov r1, r4 - 800bad6: f7fd fa49 bl 8008f6c - 800bada: e7f4 b.n 800bac6 <_calloc_r+0x12> +0800b988 <__pow5mult>: + 800b988: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 800b98c: 4615 mov r5, r2 + 800b98e: f012 0203 ands.w r2, r2, #3 + 800b992: 4606 mov r6, r0 + 800b994: 460f mov r7, r1 + 800b996: d007 beq.n 800b9a8 <__pow5mult+0x20> + 800b998: 4c25 ldr r4, [pc, #148] ; (800ba30 <__pow5mult+0xa8>) + 800b99a: 3a01 subs r2, #1 + 800b99c: 2300 movs r3, #0 + 800b99e: f854 2022 ldr.w r2, [r4, r2, lsl #2] + 800b9a2: f7ff fe9f bl 800b6e4 <__multadd> + 800b9a6: 4607 mov r7, r0 + 800b9a8: 10ad asrs r5, r5, #2 + 800b9aa: d03d beq.n 800ba28 <__pow5mult+0xa0> + 800b9ac: 6a74 ldr r4, [r6, #36] ; 0x24 + 800b9ae: b97c cbnz r4, 800b9d0 <__pow5mult+0x48> + 800b9b0: 2010 movs r0, #16 + 800b9b2: f7fd fbf3 bl 800919c + 800b9b6: 4602 mov r2, r0 + 800b9b8: 6270 str r0, [r6, #36] ; 0x24 + 800b9ba: b928 cbnz r0, 800b9c8 <__pow5mult+0x40> + 800b9bc: f44f 71d7 mov.w r1, #430 ; 0x1ae + 800b9c0: 4b1c ldr r3, [pc, #112] ; (800ba34 <__pow5mult+0xac>) + 800b9c2: 481d ldr r0, [pc, #116] ; (800ba38 <__pow5mult+0xb0>) + 800b9c4: f7fe fcfc bl 800a3c0 <__assert_func> + 800b9c8: e9c0 4401 strd r4, r4, [r0, #4] + 800b9cc: 6004 str r4, [r0, #0] + 800b9ce: 60c4 str r4, [r0, #12] + 800b9d0: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24 + 800b9d4: f8d8 4008 ldr.w r4, [r8, #8] + 800b9d8: b94c cbnz r4, 800b9ee <__pow5mult+0x66> + 800b9da: f240 2171 movw r1, #625 ; 0x271 + 800b9de: 4630 mov r0, r6 + 800b9e0: f7ff ff14 bl 800b80c <__i2b> + 800b9e4: 2300 movs r3, #0 + 800b9e6: 4604 mov r4, r0 + 800b9e8: f8c8 0008 str.w r0, [r8, #8] + 800b9ec: 6003 str r3, [r0, #0] + 800b9ee: f04f 0900 mov.w r9, #0 + 800b9f2: 07eb lsls r3, r5, #31 + 800b9f4: d50a bpl.n 800ba0c <__pow5mult+0x84> + 800b9f6: 4639 mov r1, r7 + 800b9f8: 4622 mov r2, r4 + 800b9fa: 4630 mov r0, r6 + 800b9fc: f7ff ff1c bl 800b838 <__multiply> + 800ba00: 4680 mov r8, r0 + 800ba02: 4639 mov r1, r7 + 800ba04: 4630 mov r0, r6 + 800ba06: f7ff fe4b bl 800b6a0 <_Bfree> + 800ba0a: 4647 mov r7, r8 + 800ba0c: 106d asrs r5, r5, #1 + 800ba0e: d00b beq.n 800ba28 <__pow5mult+0xa0> + 800ba10: 6820 ldr r0, [r4, #0] + 800ba12: b938 cbnz r0, 800ba24 <__pow5mult+0x9c> + 800ba14: 4622 mov r2, r4 + 800ba16: 4621 mov r1, r4 + 800ba18: 4630 mov r0, r6 + 800ba1a: f7ff ff0d bl 800b838 <__multiply> + 800ba1e: 6020 str r0, [r4, #0] + 800ba20: f8c0 9000 str.w r9, [r0] + 800ba24: 4604 mov r4, r0 + 800ba26: e7e4 b.n 800b9f2 <__pow5mult+0x6a> + 800ba28: 4638 mov r0, r7 + 800ba2a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 800ba2e: bf00 nop + 800ba30: 0800d680 .word 0x0800d680 + 800ba34: 0800d27c .word 0x0800d27c + 800ba38: 0800d534 .word 0x0800d534 -0800badc <__sfputc_r>: - 800badc: 6893 ldr r3, [r2, #8] - 800bade: b410 push {r4} - 800bae0: 3b01 subs r3, #1 - 800bae2: 2b00 cmp r3, #0 - 800bae4: 6093 str r3, [r2, #8] - 800bae6: da07 bge.n 800baf8 <__sfputc_r+0x1c> - 800bae8: 6994 ldr r4, [r2, #24] - 800baea: 42a3 cmp r3, r4 - 800baec: db01 blt.n 800baf2 <__sfputc_r+0x16> - 800baee: 290a cmp r1, #10 - 800baf0: d102 bne.n 800baf8 <__sfputc_r+0x1c> - 800baf2: bc10 pop {r4} - 800baf4: f7fe ba6e b.w 8009fd4 <__swbuf_r> - 800baf8: 6813 ldr r3, [r2, #0] - 800bafa: 1c58 adds r0, r3, #1 - 800bafc: 6010 str r0, [r2, #0] - 800bafe: 7019 strb r1, [r3, #0] - 800bb00: 4608 mov r0, r1 - 800bb02: bc10 pop {r4} - 800bb04: 4770 bx lr +0800ba3c <__lshift>: + 800ba3c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 800ba40: 460c mov r4, r1 + 800ba42: 4607 mov r7, r0 + 800ba44: 4691 mov r9, r2 + 800ba46: 6923 ldr r3, [r4, #16] + 800ba48: 6849 ldr r1, [r1, #4] + 800ba4a: eb03 1862 add.w r8, r3, r2, asr #5 + 800ba4e: 68a3 ldr r3, [r4, #8] + 800ba50: ea4f 1a62 mov.w sl, r2, asr #5 + 800ba54: f108 0601 add.w r6, r8, #1 + 800ba58: 42b3 cmp r3, r6 + 800ba5a: db0b blt.n 800ba74 <__lshift+0x38> + 800ba5c: 4638 mov r0, r7 + 800ba5e: f7ff fddf bl 800b620 <_Balloc> + 800ba62: 4605 mov r5, r0 + 800ba64: b948 cbnz r0, 800ba7a <__lshift+0x3e> + 800ba66: 4602 mov r2, r0 + 800ba68: f240 11d9 movw r1, #473 ; 0x1d9 + 800ba6c: 4b29 ldr r3, [pc, #164] ; (800bb14 <__lshift+0xd8>) + 800ba6e: 482a ldr r0, [pc, #168] ; (800bb18 <__lshift+0xdc>) + 800ba70: f7fe fca6 bl 800a3c0 <__assert_func> + 800ba74: 3101 adds r1, #1 + 800ba76: 005b lsls r3, r3, #1 + 800ba78: e7ee b.n 800ba58 <__lshift+0x1c> + 800ba7a: 2300 movs r3, #0 + 800ba7c: f100 0114 add.w r1, r0, #20 + 800ba80: f100 0210 add.w r2, r0, #16 + 800ba84: 4618 mov r0, r3 + 800ba86: 4553 cmp r3, sl + 800ba88: db37 blt.n 800bafa <__lshift+0xbe> + 800ba8a: 6920 ldr r0, [r4, #16] + 800ba8c: ea2a 7aea bic.w sl, sl, sl, asr #31 + 800ba90: f104 0314 add.w r3, r4, #20 + 800ba94: f019 091f ands.w r9, r9, #31 + 800ba98: eb01 018a add.w r1, r1, sl, lsl #2 + 800ba9c: eb03 0080 add.w r0, r3, r0, lsl #2 + 800baa0: d02f beq.n 800bb02 <__lshift+0xc6> + 800baa2: 468a mov sl, r1 + 800baa4: f04f 0c00 mov.w ip, #0 + 800baa8: f1c9 0e20 rsb lr, r9, #32 + 800baac: 681a ldr r2, [r3, #0] + 800baae: fa02 f209 lsl.w r2, r2, r9 + 800bab2: ea42 020c orr.w r2, r2, ip + 800bab6: f84a 2b04 str.w r2, [sl], #4 + 800baba: f853 2b04 ldr.w r2, [r3], #4 + 800babe: 4298 cmp r0, r3 + 800bac0: fa22 fc0e lsr.w ip, r2, lr + 800bac4: d8f2 bhi.n 800baac <__lshift+0x70> + 800bac6: 1b03 subs r3, r0, r4 + 800bac8: 3b15 subs r3, #21 + 800baca: f023 0303 bic.w r3, r3, #3 + 800bace: 3304 adds r3, #4 + 800bad0: f104 0215 add.w r2, r4, #21 + 800bad4: 4290 cmp r0, r2 + 800bad6: bf38 it cc + 800bad8: 2304 movcc r3, #4 + 800bada: f841 c003 str.w ip, [r1, r3] + 800bade: f1bc 0f00 cmp.w ip, #0 + 800bae2: d001 beq.n 800bae8 <__lshift+0xac> + 800bae4: f108 0602 add.w r6, r8, #2 + 800bae8: 3e01 subs r6, #1 + 800baea: 4638 mov r0, r7 + 800baec: 4621 mov r1, r4 + 800baee: 612e str r6, [r5, #16] + 800baf0: f7ff fdd6 bl 800b6a0 <_Bfree> + 800baf4: 4628 mov r0, r5 + 800baf6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800bafa: f842 0f04 str.w r0, [r2, #4]! + 800bafe: 3301 adds r3, #1 + 800bb00: e7c1 b.n 800ba86 <__lshift+0x4a> + 800bb02: 3904 subs r1, #4 + 800bb04: f853 2b04 ldr.w r2, [r3], #4 + 800bb08: 4298 cmp r0, r3 + 800bb0a: f841 2f04 str.w r2, [r1, #4]! + 800bb0e: d8f9 bhi.n 800bb04 <__lshift+0xc8> + 800bb10: e7ea b.n 800bae8 <__lshift+0xac> + 800bb12: bf00 nop + 800bb14: 0800d4c2 .word 0x0800d4c2 + 800bb18: 0800d534 .word 0x0800d534 -0800bb06 <__sfputs_r>: - 800bb06: b5f8 push {r3, r4, r5, r6, r7, lr} - 800bb08: 4606 mov r6, r0 - 800bb0a: 460f mov r7, r1 - 800bb0c: 4614 mov r4, r2 - 800bb0e: 18d5 adds r5, r2, r3 - 800bb10: 42ac cmp r4, r5 - 800bb12: d101 bne.n 800bb18 <__sfputs_r+0x12> - 800bb14: 2000 movs r0, #0 - 800bb16: e007 b.n 800bb28 <__sfputs_r+0x22> - 800bb18: 463a mov r2, r7 - 800bb1a: 4630 mov r0, r6 - 800bb1c: f814 1b01 ldrb.w r1, [r4], #1 - 800bb20: f7ff ffdc bl 800badc <__sfputc_r> - 800bb24: 1c43 adds r3, r0, #1 - 800bb26: d1f3 bne.n 800bb10 <__sfputs_r+0xa> - 800bb28: bdf8 pop {r3, r4, r5, r6, r7, pc} +0800bb1c <__mcmp>: + 800bb1c: 4603 mov r3, r0 + 800bb1e: 690a ldr r2, [r1, #16] + 800bb20: 6900 ldr r0, [r0, #16] + 800bb22: b530 push {r4, r5, lr} + 800bb24: 1a80 subs r0, r0, r2 + 800bb26: d10d bne.n 800bb44 <__mcmp+0x28> + 800bb28: 3314 adds r3, #20 + 800bb2a: 3114 adds r1, #20 + 800bb2c: eb03 0482 add.w r4, r3, r2, lsl #2 + 800bb30: eb01 0182 add.w r1, r1, r2, lsl #2 + 800bb34: f854 5d04 ldr.w r5, [r4, #-4]! + 800bb38: f851 2d04 ldr.w r2, [r1, #-4]! + 800bb3c: 4295 cmp r5, r2 + 800bb3e: d002 beq.n 800bb46 <__mcmp+0x2a> + 800bb40: d304 bcc.n 800bb4c <__mcmp+0x30> + 800bb42: 2001 movs r0, #1 + 800bb44: bd30 pop {r4, r5, pc} + 800bb46: 42a3 cmp r3, r4 + 800bb48: d3f4 bcc.n 800bb34 <__mcmp+0x18> + 800bb4a: e7fb b.n 800bb44 <__mcmp+0x28> + 800bb4c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800bb50: e7f8 b.n 800bb44 <__mcmp+0x28> ... -0800bb2c <_vfiprintf_r>: - 800bb2c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800bb30: 460d mov r5, r1 - 800bb32: 4614 mov r4, r2 - 800bb34: 4698 mov r8, r3 - 800bb36: 4606 mov r6, r0 - 800bb38: b09d sub sp, #116 ; 0x74 - 800bb3a: b118 cbz r0, 800bb44 <_vfiprintf_r+0x18> - 800bb3c: 6983 ldr r3, [r0, #24] - 800bb3e: b90b cbnz r3, 800bb44 <_vfiprintf_r+0x18> - 800bb40: f7ff fab6 bl 800b0b0 <__sinit> - 800bb44: 4b89 ldr r3, [pc, #548] ; (800bd6c <_vfiprintf_r+0x240>) - 800bb46: 429d cmp r5, r3 - 800bb48: d11b bne.n 800bb82 <_vfiprintf_r+0x56> - 800bb4a: 6875 ldr r5, [r6, #4] - 800bb4c: 6e6b ldr r3, [r5, #100] ; 0x64 - 800bb4e: 07d9 lsls r1, r3, #31 - 800bb50: d405 bmi.n 800bb5e <_vfiprintf_r+0x32> - 800bb52: 89ab ldrh r3, [r5, #12] - 800bb54: 059a lsls r2, r3, #22 - 800bb56: d402 bmi.n 800bb5e <_vfiprintf_r+0x32> - 800bb58: 6da8 ldr r0, [r5, #88] ; 0x58 - 800bb5a: f7ff fba7 bl 800b2ac <__retarget_lock_acquire_recursive> - 800bb5e: 89ab ldrh r3, [r5, #12] - 800bb60: 071b lsls r3, r3, #28 - 800bb62: d501 bpl.n 800bb68 <_vfiprintf_r+0x3c> - 800bb64: 692b ldr r3, [r5, #16] - 800bb66: b9eb cbnz r3, 800bba4 <_vfiprintf_r+0x78> - 800bb68: 4629 mov r1, r5 - 800bb6a: 4630 mov r0, r6 - 800bb6c: f7fe fa84 bl 800a078 <__swsetup_r> - 800bb70: b1c0 cbz r0, 800bba4 <_vfiprintf_r+0x78> - 800bb72: 6e6b ldr r3, [r5, #100] ; 0x64 - 800bb74: 07dc lsls r4, r3, #31 - 800bb76: d50e bpl.n 800bb96 <_vfiprintf_r+0x6a> - 800bb78: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800bb7c: b01d add sp, #116 ; 0x74 - 800bb7e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800bb82: 4b7b ldr r3, [pc, #492] ; (800bd70 <_vfiprintf_r+0x244>) - 800bb84: 429d cmp r5, r3 - 800bb86: d101 bne.n 800bb8c <_vfiprintf_r+0x60> - 800bb88: 68b5 ldr r5, [r6, #8] - 800bb8a: e7df b.n 800bb4c <_vfiprintf_r+0x20> - 800bb8c: 4b79 ldr r3, [pc, #484] ; (800bd74 <_vfiprintf_r+0x248>) - 800bb8e: 429d cmp r5, r3 - 800bb90: bf08 it eq - 800bb92: 68f5 ldreq r5, [r6, #12] - 800bb94: e7da b.n 800bb4c <_vfiprintf_r+0x20> - 800bb96: 89ab ldrh r3, [r5, #12] - 800bb98: 0598 lsls r0, r3, #22 - 800bb9a: d4ed bmi.n 800bb78 <_vfiprintf_r+0x4c> - 800bb9c: 6da8 ldr r0, [r5, #88] ; 0x58 - 800bb9e: f7ff fb87 bl 800b2b0 <__retarget_lock_release_recursive> - 800bba2: e7e9 b.n 800bb78 <_vfiprintf_r+0x4c> - 800bba4: 2300 movs r3, #0 - 800bba6: 9309 str r3, [sp, #36] ; 0x24 - 800bba8: 2320 movs r3, #32 - 800bbaa: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 800bbae: 2330 movs r3, #48 ; 0x30 - 800bbb0: f04f 0901 mov.w r9, #1 - 800bbb4: f8cd 800c str.w r8, [sp, #12] - 800bbb8: f8df 81bc ldr.w r8, [pc, #444] ; 800bd78 <_vfiprintf_r+0x24c> - 800bbbc: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 800bbc0: 4623 mov r3, r4 - 800bbc2: 469a mov sl, r3 - 800bbc4: f813 2b01 ldrb.w r2, [r3], #1 - 800bbc8: b10a cbz r2, 800bbce <_vfiprintf_r+0xa2> - 800bbca: 2a25 cmp r2, #37 ; 0x25 - 800bbcc: d1f9 bne.n 800bbc2 <_vfiprintf_r+0x96> - 800bbce: ebba 0b04 subs.w fp, sl, r4 - 800bbd2: d00b beq.n 800bbec <_vfiprintf_r+0xc0> - 800bbd4: 465b mov r3, fp - 800bbd6: 4622 mov r2, r4 - 800bbd8: 4629 mov r1, r5 - 800bbda: 4630 mov r0, r6 - 800bbdc: f7ff ff93 bl 800bb06 <__sfputs_r> - 800bbe0: 3001 adds r0, #1 - 800bbe2: f000 80aa beq.w 800bd3a <_vfiprintf_r+0x20e> - 800bbe6: 9a09 ldr r2, [sp, #36] ; 0x24 - 800bbe8: 445a add r2, fp - 800bbea: 9209 str r2, [sp, #36] ; 0x24 - 800bbec: f89a 3000 ldrb.w r3, [sl] - 800bbf0: 2b00 cmp r3, #0 - 800bbf2: f000 80a2 beq.w 800bd3a <_vfiprintf_r+0x20e> - 800bbf6: 2300 movs r3, #0 - 800bbf8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 800bbfc: e9cd 2305 strd r2, r3, [sp, #20] - 800bc00: f10a 0a01 add.w sl, sl, #1 - 800bc04: 9304 str r3, [sp, #16] - 800bc06: 9307 str r3, [sp, #28] - 800bc08: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 800bc0c: 931a str r3, [sp, #104] ; 0x68 - 800bc0e: 4654 mov r4, sl - 800bc10: 2205 movs r2, #5 - 800bc12: f814 1b01 ldrb.w r1, [r4], #1 - 800bc16: 4858 ldr r0, [pc, #352] ; (800bd78 <_vfiprintf_r+0x24c>) - 800bc18: f7ff fbb0 bl 800b37c - 800bc1c: 9a04 ldr r2, [sp, #16] - 800bc1e: b9d8 cbnz r0, 800bc58 <_vfiprintf_r+0x12c> - 800bc20: 06d1 lsls r1, r2, #27 - 800bc22: bf44 itt mi - 800bc24: 2320 movmi r3, #32 - 800bc26: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 800bc2a: 0713 lsls r3, r2, #28 - 800bc2c: bf44 itt mi - 800bc2e: 232b movmi r3, #43 ; 0x2b - 800bc30: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 800bc34: f89a 3000 ldrb.w r3, [sl] - 800bc38: 2b2a cmp r3, #42 ; 0x2a - 800bc3a: d015 beq.n 800bc68 <_vfiprintf_r+0x13c> - 800bc3c: 4654 mov r4, sl - 800bc3e: 2000 movs r0, #0 - 800bc40: f04f 0c0a mov.w ip, #10 - 800bc44: 9a07 ldr r2, [sp, #28] - 800bc46: 4621 mov r1, r4 - 800bc48: f811 3b01 ldrb.w r3, [r1], #1 - 800bc4c: 3b30 subs r3, #48 ; 0x30 - 800bc4e: 2b09 cmp r3, #9 - 800bc50: d94e bls.n 800bcf0 <_vfiprintf_r+0x1c4> - 800bc52: b1b0 cbz r0, 800bc82 <_vfiprintf_r+0x156> - 800bc54: 9207 str r2, [sp, #28] - 800bc56: e014 b.n 800bc82 <_vfiprintf_r+0x156> - 800bc58: eba0 0308 sub.w r3, r0, r8 - 800bc5c: fa09 f303 lsl.w r3, r9, r3 - 800bc60: 4313 orrs r3, r2 - 800bc62: 46a2 mov sl, r4 - 800bc64: 9304 str r3, [sp, #16] - 800bc66: e7d2 b.n 800bc0e <_vfiprintf_r+0xe2> - 800bc68: 9b03 ldr r3, [sp, #12] - 800bc6a: 1d19 adds r1, r3, #4 - 800bc6c: 681b ldr r3, [r3, #0] - 800bc6e: 9103 str r1, [sp, #12] - 800bc70: 2b00 cmp r3, #0 - 800bc72: bfbb ittet lt - 800bc74: 425b neglt r3, r3 - 800bc76: f042 0202 orrlt.w r2, r2, #2 - 800bc7a: 9307 strge r3, [sp, #28] - 800bc7c: 9307 strlt r3, [sp, #28] - 800bc7e: bfb8 it lt - 800bc80: 9204 strlt r2, [sp, #16] - 800bc82: 7823 ldrb r3, [r4, #0] - 800bc84: 2b2e cmp r3, #46 ; 0x2e - 800bc86: d10c bne.n 800bca2 <_vfiprintf_r+0x176> - 800bc88: 7863 ldrb r3, [r4, #1] - 800bc8a: 2b2a cmp r3, #42 ; 0x2a - 800bc8c: d135 bne.n 800bcfa <_vfiprintf_r+0x1ce> - 800bc8e: 9b03 ldr r3, [sp, #12] - 800bc90: 3402 adds r4, #2 - 800bc92: 1d1a adds r2, r3, #4 - 800bc94: 681b ldr r3, [r3, #0] - 800bc96: 9203 str r2, [sp, #12] - 800bc98: 2b00 cmp r3, #0 - 800bc9a: bfb8 it lt - 800bc9c: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff - 800bca0: 9305 str r3, [sp, #20] - 800bca2: f8df a0d8 ldr.w sl, [pc, #216] ; 800bd7c <_vfiprintf_r+0x250> - 800bca6: 2203 movs r2, #3 - 800bca8: 4650 mov r0, sl - 800bcaa: 7821 ldrb r1, [r4, #0] - 800bcac: f7ff fb66 bl 800b37c - 800bcb0: b140 cbz r0, 800bcc4 <_vfiprintf_r+0x198> - 800bcb2: 2340 movs r3, #64 ; 0x40 - 800bcb4: eba0 000a sub.w r0, r0, sl - 800bcb8: fa03 f000 lsl.w r0, r3, r0 - 800bcbc: 9b04 ldr r3, [sp, #16] - 800bcbe: 3401 adds r4, #1 - 800bcc0: 4303 orrs r3, r0 - 800bcc2: 9304 str r3, [sp, #16] - 800bcc4: f814 1b01 ldrb.w r1, [r4], #1 - 800bcc8: 2206 movs r2, #6 - 800bcca: 482d ldr r0, [pc, #180] ; (800bd80 <_vfiprintf_r+0x254>) - 800bccc: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 800bcd0: f7ff fb54 bl 800b37c - 800bcd4: 2800 cmp r0, #0 - 800bcd6: d03f beq.n 800bd58 <_vfiprintf_r+0x22c> - 800bcd8: 4b2a ldr r3, [pc, #168] ; (800bd84 <_vfiprintf_r+0x258>) - 800bcda: bb1b cbnz r3, 800bd24 <_vfiprintf_r+0x1f8> - 800bcdc: 9b03 ldr r3, [sp, #12] - 800bcde: 3307 adds r3, #7 - 800bce0: f023 0307 bic.w r3, r3, #7 - 800bce4: 3308 adds r3, #8 - 800bce6: 9303 str r3, [sp, #12] - 800bce8: 9b09 ldr r3, [sp, #36] ; 0x24 - 800bcea: 443b add r3, r7 - 800bcec: 9309 str r3, [sp, #36] ; 0x24 - 800bcee: e767 b.n 800bbc0 <_vfiprintf_r+0x94> - 800bcf0: 460c mov r4, r1 - 800bcf2: 2001 movs r0, #1 - 800bcf4: fb0c 3202 mla r2, ip, r2, r3 - 800bcf8: e7a5 b.n 800bc46 <_vfiprintf_r+0x11a> - 800bcfa: 2300 movs r3, #0 - 800bcfc: f04f 0c0a mov.w ip, #10 - 800bd00: 4619 mov r1, r3 - 800bd02: 3401 adds r4, #1 - 800bd04: 9305 str r3, [sp, #20] - 800bd06: 4620 mov r0, r4 - 800bd08: f810 2b01 ldrb.w r2, [r0], #1 - 800bd0c: 3a30 subs r2, #48 ; 0x30 - 800bd0e: 2a09 cmp r2, #9 - 800bd10: d903 bls.n 800bd1a <_vfiprintf_r+0x1ee> - 800bd12: 2b00 cmp r3, #0 - 800bd14: d0c5 beq.n 800bca2 <_vfiprintf_r+0x176> - 800bd16: 9105 str r1, [sp, #20] - 800bd18: e7c3 b.n 800bca2 <_vfiprintf_r+0x176> - 800bd1a: 4604 mov r4, r0 - 800bd1c: 2301 movs r3, #1 - 800bd1e: fb0c 2101 mla r1, ip, r1, r2 - 800bd22: e7f0 b.n 800bd06 <_vfiprintf_r+0x1da> - 800bd24: ab03 add r3, sp, #12 - 800bd26: 9300 str r3, [sp, #0] - 800bd28: 462a mov r2, r5 - 800bd2a: 4630 mov r0, r6 - 800bd2c: 4b16 ldr r3, [pc, #88] ; (800bd88 <_vfiprintf_r+0x25c>) - 800bd2e: a904 add r1, sp, #16 - 800bd30: f7fd fa9e bl 8009270 <_printf_float> - 800bd34: 4607 mov r7, r0 - 800bd36: 1c78 adds r0, r7, #1 - 800bd38: d1d6 bne.n 800bce8 <_vfiprintf_r+0x1bc> - 800bd3a: 6e6b ldr r3, [r5, #100] ; 0x64 - 800bd3c: 07d9 lsls r1, r3, #31 - 800bd3e: d405 bmi.n 800bd4c <_vfiprintf_r+0x220> - 800bd40: 89ab ldrh r3, [r5, #12] - 800bd42: 059a lsls r2, r3, #22 - 800bd44: d402 bmi.n 800bd4c <_vfiprintf_r+0x220> - 800bd46: 6da8 ldr r0, [r5, #88] ; 0x58 - 800bd48: f7ff fab2 bl 800b2b0 <__retarget_lock_release_recursive> - 800bd4c: 89ab ldrh r3, [r5, #12] - 800bd4e: 065b lsls r3, r3, #25 - 800bd50: f53f af12 bmi.w 800bb78 <_vfiprintf_r+0x4c> - 800bd54: 9809 ldr r0, [sp, #36] ; 0x24 - 800bd56: e711 b.n 800bb7c <_vfiprintf_r+0x50> - 800bd58: ab03 add r3, sp, #12 - 800bd5a: 9300 str r3, [sp, #0] - 800bd5c: 462a mov r2, r5 - 800bd5e: 4630 mov r0, r6 - 800bd60: 4b09 ldr r3, [pc, #36] ; (800bd88 <_vfiprintf_r+0x25c>) - 800bd62: a904 add r1, sp, #16 - 800bd64: f7fd fd20 bl 80097a8 <_printf_i> - 800bd68: e7e4 b.n 800bd34 <_vfiprintf_r+0x208> - 800bd6a: bf00 nop - 800bd6c: 0800d264 .word 0x0800d264 - 800bd70: 0800d284 .word 0x0800d284 - 800bd74: 0800d244 .word 0x0800d244 - 800bd78: 0800d3fc .word 0x0800d3fc - 800bd7c: 0800d402 .word 0x0800d402 - 800bd80: 0800d406 .word 0x0800d406 - 800bd84: 08009271 .word 0x08009271 - 800bd88: 0800bb07 .word 0x0800bb07 +0800bb54 <__mdiff>: + 800bb54: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800bb58: 460d mov r5, r1 + 800bb5a: 4607 mov r7, r0 + 800bb5c: 4611 mov r1, r2 + 800bb5e: 4628 mov r0, r5 + 800bb60: 4614 mov r4, r2 + 800bb62: f7ff ffdb bl 800bb1c <__mcmp> + 800bb66: 1e06 subs r6, r0, #0 + 800bb68: d111 bne.n 800bb8e <__mdiff+0x3a> + 800bb6a: 4631 mov r1, r6 + 800bb6c: 4638 mov r0, r7 + 800bb6e: f7ff fd57 bl 800b620 <_Balloc> + 800bb72: 4602 mov r2, r0 + 800bb74: b928 cbnz r0, 800bb82 <__mdiff+0x2e> + 800bb76: f240 2132 movw r1, #562 ; 0x232 + 800bb7a: 4b3a ldr r3, [pc, #232] ; (800bc64 <__mdiff+0x110>) + 800bb7c: 483a ldr r0, [pc, #232] ; (800bc68 <__mdiff+0x114>) + 800bb7e: f7fe fc1f bl 800a3c0 <__assert_func> + 800bb82: 2301 movs r3, #1 + 800bb84: e9c0 3604 strd r3, r6, [r0, #16] + 800bb88: 4610 mov r0, r2 + 800bb8a: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800bb8e: bfa4 itt ge + 800bb90: 4623 movge r3, r4 + 800bb92: 462c movge r4, r5 + 800bb94: 4638 mov r0, r7 + 800bb96: 6861 ldr r1, [r4, #4] + 800bb98: bfa6 itte ge + 800bb9a: 461d movge r5, r3 + 800bb9c: 2600 movge r6, #0 + 800bb9e: 2601 movlt r6, #1 + 800bba0: f7ff fd3e bl 800b620 <_Balloc> + 800bba4: 4602 mov r2, r0 + 800bba6: b918 cbnz r0, 800bbb0 <__mdiff+0x5c> + 800bba8: f44f 7110 mov.w r1, #576 ; 0x240 + 800bbac: 4b2d ldr r3, [pc, #180] ; (800bc64 <__mdiff+0x110>) + 800bbae: e7e5 b.n 800bb7c <__mdiff+0x28> + 800bbb0: f102 0814 add.w r8, r2, #20 + 800bbb4: 46c2 mov sl, r8 + 800bbb6: f04f 0c00 mov.w ip, #0 + 800bbba: 6927 ldr r7, [r4, #16] + 800bbbc: 60c6 str r6, [r0, #12] + 800bbbe: 692e ldr r6, [r5, #16] + 800bbc0: f104 0014 add.w r0, r4, #20 + 800bbc4: f105 0914 add.w r9, r5, #20 + 800bbc8: eb00 0e87 add.w lr, r0, r7, lsl #2 + 800bbcc: eb09 0686 add.w r6, r9, r6, lsl #2 + 800bbd0: 3410 adds r4, #16 + 800bbd2: f854 bf04 ldr.w fp, [r4, #4]! + 800bbd6: f859 3b04 ldr.w r3, [r9], #4 + 800bbda: fa1f f18b uxth.w r1, fp + 800bbde: 448c add ip, r1 + 800bbe0: b299 uxth r1, r3 + 800bbe2: 0c1b lsrs r3, r3, #16 + 800bbe4: ebac 0101 sub.w r1, ip, r1 + 800bbe8: ebc3 431b rsb r3, r3, fp, lsr #16 + 800bbec: eb03 4321 add.w r3, r3, r1, asr #16 + 800bbf0: b289 uxth r1, r1 + 800bbf2: ea4f 4c23 mov.w ip, r3, asr #16 + 800bbf6: 454e cmp r6, r9 + 800bbf8: ea41 4303 orr.w r3, r1, r3, lsl #16 + 800bbfc: f84a 3b04 str.w r3, [sl], #4 + 800bc00: d8e7 bhi.n 800bbd2 <__mdiff+0x7e> + 800bc02: 1b73 subs r3, r6, r5 + 800bc04: 3b15 subs r3, #21 + 800bc06: f023 0303 bic.w r3, r3, #3 + 800bc0a: 3515 adds r5, #21 + 800bc0c: 3304 adds r3, #4 + 800bc0e: 42ae cmp r6, r5 + 800bc10: bf38 it cc + 800bc12: 2304 movcc r3, #4 + 800bc14: 4418 add r0, r3 + 800bc16: 4443 add r3, r8 + 800bc18: 461e mov r6, r3 + 800bc1a: 4605 mov r5, r0 + 800bc1c: 4575 cmp r5, lr + 800bc1e: d30e bcc.n 800bc3e <__mdiff+0xea> + 800bc20: f10e 0103 add.w r1, lr, #3 + 800bc24: 1a09 subs r1, r1, r0 + 800bc26: f021 0103 bic.w r1, r1, #3 + 800bc2a: 3803 subs r0, #3 + 800bc2c: 4586 cmp lr, r0 + 800bc2e: bf38 it cc + 800bc30: 2100 movcc r1, #0 + 800bc32: 4419 add r1, r3 + 800bc34: f851 3d04 ldr.w r3, [r1, #-4]! + 800bc38: b18b cbz r3, 800bc5e <__mdiff+0x10a> + 800bc3a: 6117 str r7, [r2, #16] + 800bc3c: e7a4 b.n 800bb88 <__mdiff+0x34> + 800bc3e: f855 8b04 ldr.w r8, [r5], #4 + 800bc42: fa1f f188 uxth.w r1, r8 + 800bc46: 4461 add r1, ip + 800bc48: 140c asrs r4, r1, #16 + 800bc4a: eb04 4418 add.w r4, r4, r8, lsr #16 + 800bc4e: b289 uxth r1, r1 + 800bc50: ea41 4104 orr.w r1, r1, r4, lsl #16 + 800bc54: ea4f 4c24 mov.w ip, r4, asr #16 + 800bc58: f846 1b04 str.w r1, [r6], #4 + 800bc5c: e7de b.n 800bc1c <__mdiff+0xc8> + 800bc5e: 3f01 subs r7, #1 + 800bc60: e7e8 b.n 800bc34 <__mdiff+0xe0> + 800bc62: bf00 nop + 800bc64: 0800d4c2 .word 0x0800d4c2 + 800bc68: 0800d534 .word 0x0800d534 -0800bd8c : - 800bd8c: b40e push {r1, r2, r3} - 800bd8e: f44f 7201 mov.w r2, #516 ; 0x204 - 800bd92: b530 push {r4, r5, lr} - 800bd94: b09c sub sp, #112 ; 0x70 - 800bd96: ac1f add r4, sp, #124 ; 0x7c - 800bd98: f854 5b04 ldr.w r5, [r4], #4 - 800bd9c: f8ad 2014 strh.w r2, [sp, #20] - 800bda0: 9002 str r0, [sp, #8] - 800bda2: 9006 str r0, [sp, #24] - 800bda4: f7f4 fa40 bl 8000228 - 800bda8: 4b0b ldr r3, [pc, #44] ; (800bdd8 ) - 800bdaa: 9003 str r0, [sp, #12] - 800bdac: 930b str r3, [sp, #44] ; 0x2c - 800bdae: 2300 movs r3, #0 - 800bdb0: 930f str r3, [sp, #60] ; 0x3c - 800bdb2: 9314 str r3, [sp, #80] ; 0x50 - 800bdb4: f64f 73ff movw r3, #65535 ; 0xffff - 800bdb8: 9007 str r0, [sp, #28] - 800bdba: 4808 ldr r0, [pc, #32] ; (800bddc ) - 800bdbc: f8ad 3016 strh.w r3, [sp, #22] - 800bdc0: 462a mov r2, r5 - 800bdc2: 4623 mov r3, r4 - 800bdc4: a902 add r1, sp, #8 - 800bdc6: 6800 ldr r0, [r0, #0] - 800bdc8: 9401 str r4, [sp, #4] - 800bdca: f000 f9db bl 800c184 <__ssvfiscanf_r> - 800bdce: b01c add sp, #112 ; 0x70 - 800bdd0: e8bd 4030 ldmia.w sp!, {r4, r5, lr} - 800bdd4: b003 add sp, #12 - 800bdd6: 4770 bx lr - 800bdd8: 0800be03 .word 0x0800be03 - 800bddc: 20000014 .word 0x20000014 +0800bc6c <__d2b>: + 800bc6c: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} + 800bc70: 2101 movs r1, #1 + 800bc72: e9dd 7608 ldrd r7, r6, [sp, #32] + 800bc76: 4690 mov r8, r2 + 800bc78: 461d mov r5, r3 + 800bc7a: f7ff fcd1 bl 800b620 <_Balloc> + 800bc7e: 4604 mov r4, r0 + 800bc80: b930 cbnz r0, 800bc90 <__d2b+0x24> + 800bc82: 4602 mov r2, r0 + 800bc84: f240 310a movw r1, #778 ; 0x30a + 800bc88: 4b24 ldr r3, [pc, #144] ; (800bd1c <__d2b+0xb0>) + 800bc8a: 4825 ldr r0, [pc, #148] ; (800bd20 <__d2b+0xb4>) + 800bc8c: f7fe fb98 bl 800a3c0 <__assert_func> + 800bc90: f3c5 0313 ubfx r3, r5, #0, #20 + 800bc94: f3c5 550a ubfx r5, r5, #20, #11 + 800bc98: bb2d cbnz r5, 800bce6 <__d2b+0x7a> + 800bc9a: 9301 str r3, [sp, #4] + 800bc9c: f1b8 0300 subs.w r3, r8, #0 + 800bca0: d026 beq.n 800bcf0 <__d2b+0x84> + 800bca2: 4668 mov r0, sp + 800bca4: 9300 str r3, [sp, #0] + 800bca6: f7ff fd83 bl 800b7b0 <__lo0bits> + 800bcaa: 9900 ldr r1, [sp, #0] + 800bcac: b1f0 cbz r0, 800bcec <__d2b+0x80> + 800bcae: 9a01 ldr r2, [sp, #4] + 800bcb0: f1c0 0320 rsb r3, r0, #32 + 800bcb4: fa02 f303 lsl.w r3, r2, r3 + 800bcb8: 430b orrs r3, r1 + 800bcba: 40c2 lsrs r2, r0 + 800bcbc: 6163 str r3, [r4, #20] + 800bcbe: 9201 str r2, [sp, #4] + 800bcc0: 9b01 ldr r3, [sp, #4] + 800bcc2: 2b00 cmp r3, #0 + 800bcc4: bf14 ite ne + 800bcc6: 2102 movne r1, #2 + 800bcc8: 2101 moveq r1, #1 + 800bcca: 61a3 str r3, [r4, #24] + 800bccc: 6121 str r1, [r4, #16] + 800bcce: b1c5 cbz r5, 800bd02 <__d2b+0x96> + 800bcd0: f2a5 4533 subw r5, r5, #1075 ; 0x433 + 800bcd4: 4405 add r5, r0 + 800bcd6: f1c0 0035 rsb r0, r0, #53 ; 0x35 + 800bcda: 603d str r5, [r7, #0] + 800bcdc: 6030 str r0, [r6, #0] + 800bcde: 4620 mov r0, r4 + 800bce0: b002 add sp, #8 + 800bce2: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800bce6: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 + 800bcea: e7d6 b.n 800bc9a <__d2b+0x2e> + 800bcec: 6161 str r1, [r4, #20] + 800bcee: e7e7 b.n 800bcc0 <__d2b+0x54> + 800bcf0: a801 add r0, sp, #4 + 800bcf2: f7ff fd5d bl 800b7b0 <__lo0bits> + 800bcf6: 2101 movs r1, #1 + 800bcf8: 9b01 ldr r3, [sp, #4] + 800bcfa: 6121 str r1, [r4, #16] + 800bcfc: 6163 str r3, [r4, #20] + 800bcfe: 3020 adds r0, #32 + 800bd00: e7e5 b.n 800bcce <__d2b+0x62> + 800bd02: eb04 0381 add.w r3, r4, r1, lsl #2 + 800bd06: f2a0 4032 subw r0, r0, #1074 ; 0x432 + 800bd0a: 6038 str r0, [r7, #0] + 800bd0c: 6918 ldr r0, [r3, #16] + 800bd0e: f7ff fd2f bl 800b770 <__hi0bits> + 800bd12: ebc0 1141 rsb r1, r0, r1, lsl #5 + 800bd16: 6031 str r1, [r6, #0] + 800bd18: e7e1 b.n 800bcde <__d2b+0x72> + 800bd1a: bf00 nop + 800bd1c: 0800d4c2 .word 0x0800d4c2 + 800bd20: 0800d534 .word 0x0800d534 -0800bde0 <__sread>: - 800bde0: b510 push {r4, lr} - 800bde2: 460c mov r4, r1 - 800bde4: f9b1 100e ldrsh.w r1, [r1, #14] - 800bde8: f000 fc98 bl 800c71c <_read_r> - 800bdec: 2800 cmp r0, #0 - 800bdee: bfab itete ge - 800bdf0: 6d63 ldrge r3, [r4, #84] ; 0x54 - 800bdf2: 89a3 ldrhlt r3, [r4, #12] - 800bdf4: 181b addge r3, r3, r0 - 800bdf6: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 - 800bdfa: bfac ite ge - 800bdfc: 6563 strge r3, [r4, #84] ; 0x54 - 800bdfe: 81a3 strhlt r3, [r4, #12] - 800be00: bd10 pop {r4, pc} +0800bd24 <_calloc_r>: + 800bd24: b570 push {r4, r5, r6, lr} + 800bd26: fba1 5402 umull r5, r4, r1, r2 + 800bd2a: b934 cbnz r4, 800bd3a <_calloc_r+0x16> + 800bd2c: 4629 mov r1, r5 + 800bd2e: f7fd fac3 bl 80092b8 <_malloc_r> + 800bd32: 4606 mov r6, r0 + 800bd34: b928 cbnz r0, 800bd42 <_calloc_r+0x1e> + 800bd36: 4630 mov r0, r6 + 800bd38: bd70 pop {r4, r5, r6, pc} + 800bd3a: 220c movs r2, #12 + 800bd3c: 2600 movs r6, #0 + 800bd3e: 6002 str r2, [r0, #0] + 800bd40: e7f9 b.n 800bd36 <_calloc_r+0x12> + 800bd42: 462a mov r2, r5 + 800bd44: 4621 mov r1, r4 + 800bd46: f7fd fa47 bl 80091d8 + 800bd4a: e7f4 b.n 800bd36 <_calloc_r+0x12> -0800be02 <__seofread>: - 800be02: 2000 movs r0, #0 - 800be04: 4770 bx lr +0800bd4c <__sfputc_r>: + 800bd4c: 6893 ldr r3, [r2, #8] + 800bd4e: b410 push {r4} + 800bd50: 3b01 subs r3, #1 + 800bd52: 2b00 cmp r3, #0 + 800bd54: 6093 str r3, [r2, #8] + 800bd56: da07 bge.n 800bd68 <__sfputc_r+0x1c> + 800bd58: 6994 ldr r4, [r2, #24] + 800bd5a: 42a3 cmp r3, r4 + 800bd5c: db01 blt.n 800bd62 <__sfputc_r+0x16> + 800bd5e: 290a cmp r1, #10 + 800bd60: d102 bne.n 800bd68 <__sfputc_r+0x1c> + 800bd62: bc10 pop {r4} + 800bd64: f7fe ba6c b.w 800a240 <__swbuf_r> + 800bd68: 6813 ldr r3, [r2, #0] + 800bd6a: 1c58 adds r0, r3, #1 + 800bd6c: 6010 str r0, [r2, #0] + 800bd6e: 7019 strb r1, [r3, #0] + 800bd70: 4608 mov r0, r1 + 800bd72: bc10 pop {r4} + 800bd74: 4770 bx lr -0800be06 <__swrite>: - 800be06: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 800be0a: 461f mov r7, r3 - 800be0c: 898b ldrh r3, [r1, #12] - 800be0e: 4605 mov r5, r0 - 800be10: 05db lsls r3, r3, #23 - 800be12: 460c mov r4, r1 - 800be14: 4616 mov r6, r2 - 800be16: d505 bpl.n 800be24 <__swrite+0x1e> - 800be18: 2302 movs r3, #2 - 800be1a: 2200 movs r2, #0 - 800be1c: f9b1 100e ldrsh.w r1, [r1, #14] - 800be20: f000 f902 bl 800c028 <_lseek_r> - 800be24: 89a3 ldrh r3, [r4, #12] - 800be26: 4632 mov r2, r6 - 800be28: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 800be2c: 81a3 strh r3, [r4, #12] - 800be2e: 4628 mov r0, r5 - 800be30: 463b mov r3, r7 - 800be32: f9b4 100e ldrsh.w r1, [r4, #14] - 800be36: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 800be3a: f000 b89d b.w 800bf78 <_write_r> - -0800be3e <__sseek>: - 800be3e: b510 push {r4, lr} - 800be40: 460c mov r4, r1 - 800be42: f9b1 100e ldrsh.w r1, [r1, #14] - 800be46: f000 f8ef bl 800c028 <_lseek_r> - 800be4a: 1c43 adds r3, r0, #1 - 800be4c: 89a3 ldrh r3, [r4, #12] - 800be4e: bf15 itete ne - 800be50: 6560 strne r0, [r4, #84] ; 0x54 - 800be52: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 - 800be56: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 - 800be5a: 81a3 strheq r3, [r4, #12] - 800be5c: bf18 it ne - 800be5e: 81a3 strhne r3, [r4, #12] - 800be60: bd10 pop {r4, pc} - -0800be62 <__sclose>: - 800be62: f9b1 100e ldrsh.w r1, [r1, #14] - 800be66: f000 b8a1 b.w 800bfac <_close_r> - -0800be6a : - 800be6a: 4603 mov r3, r0 - 800be6c: f811 2b01 ldrb.w r2, [r1], #1 - 800be70: f803 2b01 strb.w r2, [r3], #1 - 800be74: 2a00 cmp r2, #0 - 800be76: d1f9 bne.n 800be6c - 800be78: 4770 bx lr +0800bd76 <__sfputs_r>: + 800bd76: b5f8 push {r3, r4, r5, r6, r7, lr} + 800bd78: 4606 mov r6, r0 + 800bd7a: 460f mov r7, r1 + 800bd7c: 4614 mov r4, r2 + 800bd7e: 18d5 adds r5, r2, r3 + 800bd80: 42ac cmp r4, r5 + 800bd82: d101 bne.n 800bd88 <__sfputs_r+0x12> + 800bd84: 2000 movs r0, #0 + 800bd86: e007 b.n 800bd98 <__sfputs_r+0x22> + 800bd88: 463a mov r2, r7 + 800bd8a: 4630 mov r0, r6 + 800bd8c: f814 1b01 ldrb.w r1, [r4], #1 + 800bd90: f7ff ffdc bl 800bd4c <__sfputc_r> + 800bd94: 1c43 adds r3, r0, #1 + 800bd96: d1f3 bne.n 800bd80 <__sfputs_r+0xa> + 800bd98: bdf8 pop {r3, r4, r5, r6, r7, pc} ... -0800be7c <_strtoul_l.constprop.0>: - 800be7c: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} - 800be80: 4686 mov lr, r0 - 800be82: 460d mov r5, r1 - 800be84: 4f35 ldr r7, [pc, #212] ; (800bf5c <_strtoul_l.constprop.0+0xe0>) - 800be86: 4628 mov r0, r5 - 800be88: f815 4b01 ldrb.w r4, [r5], #1 - 800be8c: 5de6 ldrb r6, [r4, r7] - 800be8e: f016 0608 ands.w r6, r6, #8 - 800be92: d1f8 bne.n 800be86 <_strtoul_l.constprop.0+0xa> - 800be94: 2c2d cmp r4, #45 ; 0x2d - 800be96: d12f bne.n 800bef8 <_strtoul_l.constprop.0+0x7c> - 800be98: 2601 movs r6, #1 - 800be9a: 782c ldrb r4, [r5, #0] - 800be9c: 1c85 adds r5, r0, #2 - 800be9e: 2b00 cmp r3, #0 - 800bea0: d057 beq.n 800bf52 <_strtoul_l.constprop.0+0xd6> - 800bea2: 2b10 cmp r3, #16 - 800bea4: d109 bne.n 800beba <_strtoul_l.constprop.0+0x3e> - 800bea6: 2c30 cmp r4, #48 ; 0x30 - 800bea8: d107 bne.n 800beba <_strtoul_l.constprop.0+0x3e> - 800beaa: 7828 ldrb r0, [r5, #0] - 800beac: f000 00df and.w r0, r0, #223 ; 0xdf - 800beb0: 2858 cmp r0, #88 ; 0x58 - 800beb2: d149 bne.n 800bf48 <_strtoul_l.constprop.0+0xcc> - 800beb4: 2310 movs r3, #16 - 800beb6: 786c ldrb r4, [r5, #1] - 800beb8: 3502 adds r5, #2 - 800beba: f04f 38ff mov.w r8, #4294967295 ; 0xffffffff - 800bebe: fbb8 f8f3 udiv r8, r8, r3 - 800bec2: 2700 movs r7, #0 - 800bec4: fb03 f908 mul.w r9, r3, r8 - 800bec8: 4638 mov r0, r7 - 800beca: ea6f 0909 mvn.w r9, r9 - 800bece: f1a4 0c30 sub.w ip, r4, #48 ; 0x30 - 800bed2: f1bc 0f09 cmp.w ip, #9 - 800bed6: d814 bhi.n 800bf02 <_strtoul_l.constprop.0+0x86> - 800bed8: 4664 mov r4, ip - 800beda: 42a3 cmp r3, r4 - 800bedc: dd22 ble.n 800bf24 <_strtoul_l.constprop.0+0xa8> - 800bede: 2f00 cmp r7, #0 - 800bee0: db1d blt.n 800bf1e <_strtoul_l.constprop.0+0xa2> - 800bee2: 4580 cmp r8, r0 - 800bee4: d31b bcc.n 800bf1e <_strtoul_l.constprop.0+0xa2> - 800bee6: d101 bne.n 800beec <_strtoul_l.constprop.0+0x70> - 800bee8: 45a1 cmp r9, r4 - 800beea: db18 blt.n 800bf1e <_strtoul_l.constprop.0+0xa2> - 800beec: 2701 movs r7, #1 - 800beee: fb00 4003 mla r0, r0, r3, r4 - 800bef2: f815 4b01 ldrb.w r4, [r5], #1 - 800bef6: e7ea b.n 800bece <_strtoul_l.constprop.0+0x52> - 800bef8: 2c2b cmp r4, #43 ; 0x2b - 800befa: bf04 itt eq - 800befc: 782c ldrbeq r4, [r5, #0] - 800befe: 1c85 addeq r5, r0, #2 - 800bf00: e7cd b.n 800be9e <_strtoul_l.constprop.0+0x22> - 800bf02: f1a4 0c41 sub.w ip, r4, #65 ; 0x41 - 800bf06: f1bc 0f19 cmp.w ip, #25 - 800bf0a: d801 bhi.n 800bf10 <_strtoul_l.constprop.0+0x94> - 800bf0c: 3c37 subs r4, #55 ; 0x37 - 800bf0e: e7e4 b.n 800beda <_strtoul_l.constprop.0+0x5e> - 800bf10: f1a4 0c61 sub.w ip, r4, #97 ; 0x61 - 800bf14: f1bc 0f19 cmp.w ip, #25 - 800bf18: d804 bhi.n 800bf24 <_strtoul_l.constprop.0+0xa8> - 800bf1a: 3c57 subs r4, #87 ; 0x57 - 800bf1c: e7dd b.n 800beda <_strtoul_l.constprop.0+0x5e> - 800bf1e: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff - 800bf22: e7e6 b.n 800bef2 <_strtoul_l.constprop.0+0x76> - 800bf24: 2f00 cmp r7, #0 - 800bf26: da07 bge.n 800bf38 <_strtoul_l.constprop.0+0xbc> - 800bf28: 2322 movs r3, #34 ; 0x22 - 800bf2a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800bf2e: f8ce 3000 str.w r3, [lr] - 800bf32: b932 cbnz r2, 800bf42 <_strtoul_l.constprop.0+0xc6> - 800bf34: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} - 800bf38: b106 cbz r6, 800bf3c <_strtoul_l.constprop.0+0xc0> - 800bf3a: 4240 negs r0, r0 - 800bf3c: 2a00 cmp r2, #0 - 800bf3e: d0f9 beq.n 800bf34 <_strtoul_l.constprop.0+0xb8> - 800bf40: b107 cbz r7, 800bf44 <_strtoul_l.constprop.0+0xc8> - 800bf42: 1e69 subs r1, r5, #1 - 800bf44: 6011 str r1, [r2, #0] - 800bf46: e7f5 b.n 800bf34 <_strtoul_l.constprop.0+0xb8> - 800bf48: 2430 movs r4, #48 ; 0x30 - 800bf4a: 2b00 cmp r3, #0 - 800bf4c: d1b5 bne.n 800beba <_strtoul_l.constprop.0+0x3e> - 800bf4e: 2308 movs r3, #8 - 800bf50: e7b3 b.n 800beba <_strtoul_l.constprop.0+0x3e> - 800bf52: 2c30 cmp r4, #48 ; 0x30 - 800bf54: d0a9 beq.n 800beaa <_strtoul_l.constprop.0+0x2e> - 800bf56: 230a movs r3, #10 - 800bf58: e7af b.n 800beba <_strtoul_l.constprop.0+0x3e> - 800bf5a: bf00 nop - 800bf5c: 0800d40e .word 0x0800d40e +0800bd9c <_vfiprintf_r>: + 800bd9c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800bda0: 460d mov r5, r1 + 800bda2: 4614 mov r4, r2 + 800bda4: 4698 mov r8, r3 + 800bda6: 4606 mov r6, r0 + 800bda8: b09d sub sp, #116 ; 0x74 + 800bdaa: b118 cbz r0, 800bdb4 <_vfiprintf_r+0x18> + 800bdac: 6983 ldr r3, [r0, #24] + 800bdae: b90b cbnz r3, 800bdb4 <_vfiprintf_r+0x18> + 800bdb0: f7ff fab6 bl 800b320 <__sinit> + 800bdb4: 4b89 ldr r3, [pc, #548] ; (800bfdc <_vfiprintf_r+0x240>) + 800bdb6: 429d cmp r5, r3 + 800bdb8: d11b bne.n 800bdf2 <_vfiprintf_r+0x56> + 800bdba: 6875 ldr r5, [r6, #4] + 800bdbc: 6e6b ldr r3, [r5, #100] ; 0x64 + 800bdbe: 07d9 lsls r1, r3, #31 + 800bdc0: d405 bmi.n 800bdce <_vfiprintf_r+0x32> + 800bdc2: 89ab ldrh r3, [r5, #12] + 800bdc4: 059a lsls r2, r3, #22 + 800bdc6: d402 bmi.n 800bdce <_vfiprintf_r+0x32> + 800bdc8: 6da8 ldr r0, [r5, #88] ; 0x58 + 800bdca: f7ff fba7 bl 800b51c <__retarget_lock_acquire_recursive> + 800bdce: 89ab ldrh r3, [r5, #12] + 800bdd0: 071b lsls r3, r3, #28 + 800bdd2: d501 bpl.n 800bdd8 <_vfiprintf_r+0x3c> + 800bdd4: 692b ldr r3, [r5, #16] + 800bdd6: b9eb cbnz r3, 800be14 <_vfiprintf_r+0x78> + 800bdd8: 4629 mov r1, r5 + 800bdda: 4630 mov r0, r6 + 800bddc: f7fe fa82 bl 800a2e4 <__swsetup_r> + 800bde0: b1c0 cbz r0, 800be14 <_vfiprintf_r+0x78> + 800bde2: 6e6b ldr r3, [r5, #100] ; 0x64 + 800bde4: 07dc lsls r4, r3, #31 + 800bde6: d50e bpl.n 800be06 <_vfiprintf_r+0x6a> + 800bde8: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800bdec: b01d add sp, #116 ; 0x74 + 800bdee: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800bdf2: 4b7b ldr r3, [pc, #492] ; (800bfe0 <_vfiprintf_r+0x244>) + 800bdf4: 429d cmp r5, r3 + 800bdf6: d101 bne.n 800bdfc <_vfiprintf_r+0x60> + 800bdf8: 68b5 ldr r5, [r6, #8] + 800bdfa: e7df b.n 800bdbc <_vfiprintf_r+0x20> + 800bdfc: 4b79 ldr r3, [pc, #484] ; (800bfe4 <_vfiprintf_r+0x248>) + 800bdfe: 429d cmp r5, r3 + 800be00: bf08 it eq + 800be02: 68f5 ldreq r5, [r6, #12] + 800be04: e7da b.n 800bdbc <_vfiprintf_r+0x20> + 800be06: 89ab ldrh r3, [r5, #12] + 800be08: 0598 lsls r0, r3, #22 + 800be0a: d4ed bmi.n 800bde8 <_vfiprintf_r+0x4c> + 800be0c: 6da8 ldr r0, [r5, #88] ; 0x58 + 800be0e: f7ff fb87 bl 800b520 <__retarget_lock_release_recursive> + 800be12: e7e9 b.n 800bde8 <_vfiprintf_r+0x4c> + 800be14: 2300 movs r3, #0 + 800be16: 9309 str r3, [sp, #36] ; 0x24 + 800be18: 2320 movs r3, #32 + 800be1a: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 800be1e: 2330 movs r3, #48 ; 0x30 + 800be20: f04f 0901 mov.w r9, #1 + 800be24: f8cd 800c str.w r8, [sp, #12] + 800be28: f8df 81bc ldr.w r8, [pc, #444] ; 800bfe8 <_vfiprintf_r+0x24c> + 800be2c: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 800be30: 4623 mov r3, r4 + 800be32: 469a mov sl, r3 + 800be34: f813 2b01 ldrb.w r2, [r3], #1 + 800be38: b10a cbz r2, 800be3e <_vfiprintf_r+0xa2> + 800be3a: 2a25 cmp r2, #37 ; 0x25 + 800be3c: d1f9 bne.n 800be32 <_vfiprintf_r+0x96> + 800be3e: ebba 0b04 subs.w fp, sl, r4 + 800be42: d00b beq.n 800be5c <_vfiprintf_r+0xc0> + 800be44: 465b mov r3, fp + 800be46: 4622 mov r2, r4 + 800be48: 4629 mov r1, r5 + 800be4a: 4630 mov r0, r6 + 800be4c: f7ff ff93 bl 800bd76 <__sfputs_r> + 800be50: 3001 adds r0, #1 + 800be52: f000 80aa beq.w 800bfaa <_vfiprintf_r+0x20e> + 800be56: 9a09 ldr r2, [sp, #36] ; 0x24 + 800be58: 445a add r2, fp + 800be5a: 9209 str r2, [sp, #36] ; 0x24 + 800be5c: f89a 3000 ldrb.w r3, [sl] + 800be60: 2b00 cmp r3, #0 + 800be62: f000 80a2 beq.w 800bfaa <_vfiprintf_r+0x20e> + 800be66: 2300 movs r3, #0 + 800be68: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 800be6c: e9cd 2305 strd r2, r3, [sp, #20] + 800be70: f10a 0a01 add.w sl, sl, #1 + 800be74: 9304 str r3, [sp, #16] + 800be76: 9307 str r3, [sp, #28] + 800be78: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 800be7c: 931a str r3, [sp, #104] ; 0x68 + 800be7e: 4654 mov r4, sl + 800be80: 2205 movs r2, #5 + 800be82: f814 1b01 ldrb.w r1, [r4], #1 + 800be86: 4858 ldr r0, [pc, #352] ; (800bfe8 <_vfiprintf_r+0x24c>) + 800be88: f7ff fbb0 bl 800b5ec + 800be8c: 9a04 ldr r2, [sp, #16] + 800be8e: b9d8 cbnz r0, 800bec8 <_vfiprintf_r+0x12c> + 800be90: 06d1 lsls r1, r2, #27 + 800be92: bf44 itt mi + 800be94: 2320 movmi r3, #32 + 800be96: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 800be9a: 0713 lsls r3, r2, #28 + 800be9c: bf44 itt mi + 800be9e: 232b movmi r3, #43 ; 0x2b + 800bea0: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 800bea4: f89a 3000 ldrb.w r3, [sl] + 800bea8: 2b2a cmp r3, #42 ; 0x2a + 800beaa: d015 beq.n 800bed8 <_vfiprintf_r+0x13c> + 800beac: 4654 mov r4, sl + 800beae: 2000 movs r0, #0 + 800beb0: f04f 0c0a mov.w ip, #10 + 800beb4: 9a07 ldr r2, [sp, #28] + 800beb6: 4621 mov r1, r4 + 800beb8: f811 3b01 ldrb.w r3, [r1], #1 + 800bebc: 3b30 subs r3, #48 ; 0x30 + 800bebe: 2b09 cmp r3, #9 + 800bec0: d94e bls.n 800bf60 <_vfiprintf_r+0x1c4> + 800bec2: b1b0 cbz r0, 800bef2 <_vfiprintf_r+0x156> + 800bec4: 9207 str r2, [sp, #28] + 800bec6: e014 b.n 800bef2 <_vfiprintf_r+0x156> + 800bec8: eba0 0308 sub.w r3, r0, r8 + 800becc: fa09 f303 lsl.w r3, r9, r3 + 800bed0: 4313 orrs r3, r2 + 800bed2: 46a2 mov sl, r4 + 800bed4: 9304 str r3, [sp, #16] + 800bed6: e7d2 b.n 800be7e <_vfiprintf_r+0xe2> + 800bed8: 9b03 ldr r3, [sp, #12] + 800beda: 1d19 adds r1, r3, #4 + 800bedc: 681b ldr r3, [r3, #0] + 800bede: 9103 str r1, [sp, #12] + 800bee0: 2b00 cmp r3, #0 + 800bee2: bfbb ittet lt + 800bee4: 425b neglt r3, r3 + 800bee6: f042 0202 orrlt.w r2, r2, #2 + 800beea: 9307 strge r3, [sp, #28] + 800beec: 9307 strlt r3, [sp, #28] + 800beee: bfb8 it lt + 800bef0: 9204 strlt r2, [sp, #16] + 800bef2: 7823 ldrb r3, [r4, #0] + 800bef4: 2b2e cmp r3, #46 ; 0x2e + 800bef6: d10c bne.n 800bf12 <_vfiprintf_r+0x176> + 800bef8: 7863 ldrb r3, [r4, #1] + 800befa: 2b2a cmp r3, #42 ; 0x2a + 800befc: d135 bne.n 800bf6a <_vfiprintf_r+0x1ce> + 800befe: 9b03 ldr r3, [sp, #12] + 800bf00: 3402 adds r4, #2 + 800bf02: 1d1a adds r2, r3, #4 + 800bf04: 681b ldr r3, [r3, #0] + 800bf06: 9203 str r2, [sp, #12] + 800bf08: 2b00 cmp r3, #0 + 800bf0a: bfb8 it lt + 800bf0c: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff + 800bf10: 9305 str r3, [sp, #20] + 800bf12: f8df a0d8 ldr.w sl, [pc, #216] ; 800bfec <_vfiprintf_r+0x250> + 800bf16: 2203 movs r2, #3 + 800bf18: 4650 mov r0, sl + 800bf1a: 7821 ldrb r1, [r4, #0] + 800bf1c: f7ff fb66 bl 800b5ec + 800bf20: b140 cbz r0, 800bf34 <_vfiprintf_r+0x198> + 800bf22: 2340 movs r3, #64 ; 0x40 + 800bf24: eba0 000a sub.w r0, r0, sl + 800bf28: fa03 f000 lsl.w r0, r3, r0 + 800bf2c: 9b04 ldr r3, [sp, #16] + 800bf2e: 3401 adds r4, #1 + 800bf30: 4303 orrs r3, r0 + 800bf32: 9304 str r3, [sp, #16] + 800bf34: f814 1b01 ldrb.w r1, [r4], #1 + 800bf38: 2206 movs r2, #6 + 800bf3a: 482d ldr r0, [pc, #180] ; (800bff0 <_vfiprintf_r+0x254>) + 800bf3c: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 800bf40: f7ff fb54 bl 800b5ec + 800bf44: 2800 cmp r0, #0 + 800bf46: d03f beq.n 800bfc8 <_vfiprintf_r+0x22c> + 800bf48: 4b2a ldr r3, [pc, #168] ; (800bff4 <_vfiprintf_r+0x258>) + 800bf4a: bb1b cbnz r3, 800bf94 <_vfiprintf_r+0x1f8> + 800bf4c: 9b03 ldr r3, [sp, #12] + 800bf4e: 3307 adds r3, #7 + 800bf50: f023 0307 bic.w r3, r3, #7 + 800bf54: 3308 adds r3, #8 + 800bf56: 9303 str r3, [sp, #12] + 800bf58: 9b09 ldr r3, [sp, #36] ; 0x24 + 800bf5a: 443b add r3, r7 + 800bf5c: 9309 str r3, [sp, #36] ; 0x24 + 800bf5e: e767 b.n 800be30 <_vfiprintf_r+0x94> + 800bf60: 460c mov r4, r1 + 800bf62: 2001 movs r0, #1 + 800bf64: fb0c 3202 mla r2, ip, r2, r3 + 800bf68: e7a5 b.n 800beb6 <_vfiprintf_r+0x11a> + 800bf6a: 2300 movs r3, #0 + 800bf6c: f04f 0c0a mov.w ip, #10 + 800bf70: 4619 mov r1, r3 + 800bf72: 3401 adds r4, #1 + 800bf74: 9305 str r3, [sp, #20] + 800bf76: 4620 mov r0, r4 + 800bf78: f810 2b01 ldrb.w r2, [r0], #1 + 800bf7c: 3a30 subs r2, #48 ; 0x30 + 800bf7e: 2a09 cmp r2, #9 + 800bf80: d903 bls.n 800bf8a <_vfiprintf_r+0x1ee> + 800bf82: 2b00 cmp r3, #0 + 800bf84: d0c5 beq.n 800bf12 <_vfiprintf_r+0x176> + 800bf86: 9105 str r1, [sp, #20] + 800bf88: e7c3 b.n 800bf12 <_vfiprintf_r+0x176> + 800bf8a: 4604 mov r4, r0 + 800bf8c: 2301 movs r3, #1 + 800bf8e: fb0c 2101 mla r1, ip, r1, r2 + 800bf92: e7f0 b.n 800bf76 <_vfiprintf_r+0x1da> + 800bf94: ab03 add r3, sp, #12 + 800bf96: 9300 str r3, [sp, #0] + 800bf98: 462a mov r2, r5 + 800bf9a: 4630 mov r0, r6 + 800bf9c: 4b16 ldr r3, [pc, #88] ; (800bff8 <_vfiprintf_r+0x25c>) + 800bf9e: a904 add r1, sp, #16 + 800bfa0: f7fd fa9c bl 80094dc <_printf_float> + 800bfa4: 4607 mov r7, r0 + 800bfa6: 1c78 adds r0, r7, #1 + 800bfa8: d1d6 bne.n 800bf58 <_vfiprintf_r+0x1bc> + 800bfaa: 6e6b ldr r3, [r5, #100] ; 0x64 + 800bfac: 07d9 lsls r1, r3, #31 + 800bfae: d405 bmi.n 800bfbc <_vfiprintf_r+0x220> + 800bfb0: 89ab ldrh r3, [r5, #12] + 800bfb2: 059a lsls r2, r3, #22 + 800bfb4: d402 bmi.n 800bfbc <_vfiprintf_r+0x220> + 800bfb6: 6da8 ldr r0, [r5, #88] ; 0x58 + 800bfb8: f7ff fab2 bl 800b520 <__retarget_lock_release_recursive> + 800bfbc: 89ab ldrh r3, [r5, #12] + 800bfbe: 065b lsls r3, r3, #25 + 800bfc0: f53f af12 bmi.w 800bde8 <_vfiprintf_r+0x4c> + 800bfc4: 9809 ldr r0, [sp, #36] ; 0x24 + 800bfc6: e711 b.n 800bdec <_vfiprintf_r+0x50> + 800bfc8: ab03 add r3, sp, #12 + 800bfca: 9300 str r3, [sp, #0] + 800bfcc: 462a mov r2, r5 + 800bfce: 4630 mov r0, r6 + 800bfd0: 4b09 ldr r3, [pc, #36] ; (800bff8 <_vfiprintf_r+0x25c>) + 800bfd2: a904 add r1, sp, #16 + 800bfd4: f7fd fd1e bl 8009a14 <_printf_i> + 800bfd8: e7e4 b.n 800bfa4 <_vfiprintf_r+0x208> + 800bfda: bf00 nop + 800bfdc: 0800d4f4 .word 0x0800d4f4 + 800bfe0: 0800d514 .word 0x0800d514 + 800bfe4: 0800d4d4 .word 0x0800d4d4 + 800bfe8: 0800d68c .word 0x0800d68c + 800bfec: 0800d692 .word 0x0800d692 + 800bff0: 0800d696 .word 0x0800d696 + 800bff4: 080094dd .word 0x080094dd + 800bff8: 0800bd77 .word 0x0800bd77 -0800bf60 <_strtoul_r>: - 800bf60: f7ff bf8c b.w 800be7c <_strtoul_l.constprop.0> +0800bffc : + 800bffc: b40e push {r1, r2, r3} + 800bffe: f44f 7201 mov.w r2, #516 ; 0x204 + 800c002: b530 push {r4, r5, lr} + 800c004: b09c sub sp, #112 ; 0x70 + 800c006: ac1f add r4, sp, #124 ; 0x7c + 800c008: f854 5b04 ldr.w r5, [r4], #4 + 800c00c: f8ad 2014 strh.w r2, [sp, #20] + 800c010: 9002 str r0, [sp, #8] + 800c012: 9006 str r0, [sp, #24] + 800c014: f7f4 f908 bl 8000228 + 800c018: 4b0b ldr r3, [pc, #44] ; (800c048 ) + 800c01a: 9003 str r0, [sp, #12] + 800c01c: 930b str r3, [sp, #44] ; 0x2c + 800c01e: 2300 movs r3, #0 + 800c020: 930f str r3, [sp, #60] ; 0x3c + 800c022: 9314 str r3, [sp, #80] ; 0x50 + 800c024: f64f 73ff movw r3, #65535 ; 0xffff + 800c028: 9007 str r0, [sp, #28] + 800c02a: 4808 ldr r0, [pc, #32] ; (800c04c ) + 800c02c: f8ad 3016 strh.w r3, [sp, #22] + 800c030: 462a mov r2, r5 + 800c032: 4623 mov r3, r4 + 800c034: a902 add r1, sp, #8 + 800c036: 6800 ldr r0, [r0, #0] + 800c038: 9401 str r4, [sp, #4] + 800c03a: f000 f9db bl 800c3f4 <__ssvfiscanf_r> + 800c03e: b01c add sp, #112 ; 0x70 + 800c040: e8bd 4030 ldmia.w sp!, {r4, r5, lr} + 800c044: b003 add sp, #12 + 800c046: 4770 bx lr + 800c048: 0800c073 .word 0x0800c073 + 800c04c: 20000014 .word 0x20000014 -0800bf64 : - 800bf64: 4613 mov r3, r2 - 800bf66: 460a mov r2, r1 - 800bf68: 4601 mov r1, r0 - 800bf6a: 4802 ldr r0, [pc, #8] ; (800bf74 ) - 800bf6c: 6800 ldr r0, [r0, #0] - 800bf6e: f7ff bf85 b.w 800be7c <_strtoul_l.constprop.0> - 800bf72: bf00 nop - 800bf74: 20000014 .word 0x20000014 +0800c050 <__sread>: + 800c050: b510 push {r4, lr} + 800c052: 460c mov r4, r1 + 800c054: f9b1 100e ldrsh.w r1, [r1, #14] + 800c058: f000 fc98 bl 800c98c <_read_r> + 800c05c: 2800 cmp r0, #0 + 800c05e: bfab itete ge + 800c060: 6d63 ldrge r3, [r4, #84] ; 0x54 + 800c062: 89a3 ldrhlt r3, [r4, #12] + 800c064: 181b addge r3, r3, r0 + 800c066: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 + 800c06a: bfac ite ge + 800c06c: 6563 strge r3, [r4, #84] ; 0x54 + 800c06e: 81a3 strhlt r3, [r4, #12] + 800c070: bd10 pop {r4, pc} -0800bf78 <_write_r>: - 800bf78: b538 push {r3, r4, r5, lr} - 800bf7a: 4604 mov r4, r0 - 800bf7c: 4608 mov r0, r1 - 800bf7e: 4611 mov r1, r2 - 800bf80: 2200 movs r2, #0 - 800bf82: 4d05 ldr r5, [pc, #20] ; (800bf98 <_write_r+0x20>) - 800bf84: 602a str r2, [r5, #0] - 800bf86: 461a mov r2, r3 - 800bf88: f7f6 fb28 bl 80025dc <_write> - 800bf8c: 1c43 adds r3, r0, #1 - 800bf8e: d102 bne.n 800bf96 <_write_r+0x1e> - 800bf90: 682b ldr r3, [r5, #0] - 800bf92: b103 cbz r3, 800bf96 <_write_r+0x1e> - 800bf94: 6023 str r3, [r4, #0] - 800bf96: bd38 pop {r3, r4, r5, pc} - 800bf98: 20001d4c .word 0x20001d4c +0800c072 <__seofread>: + 800c072: 2000 movs r0, #0 + 800c074: 4770 bx lr -0800bf9c : - 800bf9c: 2006 movs r0, #6 - 800bf9e: b508 push {r3, lr} - 800bfa0: f000 fc2e bl 800c800 - 800bfa4: 2001 movs r0, #1 - 800bfa6: f7f8 fe08 bl 8004bba <_exit> +0800c076 <__swrite>: + 800c076: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800c07a: 461f mov r7, r3 + 800c07c: 898b ldrh r3, [r1, #12] + 800c07e: 4605 mov r5, r0 + 800c080: 05db lsls r3, r3, #23 + 800c082: 460c mov r4, r1 + 800c084: 4616 mov r6, r2 + 800c086: d505 bpl.n 800c094 <__swrite+0x1e> + 800c088: 2302 movs r3, #2 + 800c08a: 2200 movs r2, #0 + 800c08c: f9b1 100e ldrsh.w r1, [r1, #14] + 800c090: f000 f902 bl 800c298 <_lseek_r> + 800c094: 89a3 ldrh r3, [r4, #12] + 800c096: 4632 mov r2, r6 + 800c098: f423 5380 bic.w r3, r3, #4096 ; 0x1000 + 800c09c: 81a3 strh r3, [r4, #12] + 800c09e: 4628 mov r0, r5 + 800c0a0: 463b mov r3, r7 + 800c0a2: f9b4 100e ldrsh.w r1, [r4, #14] + 800c0a6: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 800c0aa: f000 b89d b.w 800c1e8 <_write_r> + +0800c0ae <__sseek>: + 800c0ae: b510 push {r4, lr} + 800c0b0: 460c mov r4, r1 + 800c0b2: f9b1 100e ldrsh.w r1, [r1, #14] + 800c0b6: f000 f8ef bl 800c298 <_lseek_r> + 800c0ba: 1c43 adds r3, r0, #1 + 800c0bc: 89a3 ldrh r3, [r4, #12] + 800c0be: bf15 itete ne + 800c0c0: 6560 strne r0, [r4, #84] ; 0x54 + 800c0c2: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 + 800c0c6: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 + 800c0ca: 81a3 strheq r3, [r4, #12] + 800c0cc: bf18 it ne + 800c0ce: 81a3 strhne r3, [r4, #12] + 800c0d0: bd10 pop {r4, pc} + +0800c0d2 <__sclose>: + 800c0d2: f9b1 100e ldrsh.w r1, [r1, #14] + 800c0d6: f000 b8a1 b.w 800c21c <_close_r> + +0800c0da : + 800c0da: 4603 mov r3, r0 + 800c0dc: f811 2b01 ldrb.w r2, [r1], #1 + 800c0e0: f803 2b01 strb.w r2, [r3], #1 + 800c0e4: 2a00 cmp r2, #0 + 800c0e6: d1f9 bne.n 800c0dc + 800c0e8: 4770 bx lr ... -0800bfac <_close_r>: - 800bfac: b538 push {r3, r4, r5, lr} - 800bfae: 2300 movs r3, #0 - 800bfb0: 4d05 ldr r5, [pc, #20] ; (800bfc8 <_close_r+0x1c>) - 800bfb2: 4604 mov r4, r0 - 800bfb4: 4608 mov r0, r1 - 800bfb6: 602b str r3, [r5, #0] - 800bfb8: f7f8 fe26 bl 8004c08 <_close> - 800bfbc: 1c43 adds r3, r0, #1 - 800bfbe: d102 bne.n 800bfc6 <_close_r+0x1a> - 800bfc0: 682b ldr r3, [r5, #0] - 800bfc2: b103 cbz r3, 800bfc6 <_close_r+0x1a> - 800bfc4: 6023 str r3, [r4, #0] - 800bfc6: bd38 pop {r3, r4, r5, pc} - 800bfc8: 20001d4c .word 0x20001d4c +0800c0ec <_strtoul_l.constprop.0>: + 800c0ec: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} + 800c0f0: 4686 mov lr, r0 + 800c0f2: 460d mov r5, r1 + 800c0f4: 4f35 ldr r7, [pc, #212] ; (800c1cc <_strtoul_l.constprop.0+0xe0>) + 800c0f6: 4628 mov r0, r5 + 800c0f8: f815 4b01 ldrb.w r4, [r5], #1 + 800c0fc: 5de6 ldrb r6, [r4, r7] + 800c0fe: f016 0608 ands.w r6, r6, #8 + 800c102: d1f8 bne.n 800c0f6 <_strtoul_l.constprop.0+0xa> + 800c104: 2c2d cmp r4, #45 ; 0x2d + 800c106: d12f bne.n 800c168 <_strtoul_l.constprop.0+0x7c> + 800c108: 2601 movs r6, #1 + 800c10a: 782c ldrb r4, [r5, #0] + 800c10c: 1c85 adds r5, r0, #2 + 800c10e: 2b00 cmp r3, #0 + 800c110: d057 beq.n 800c1c2 <_strtoul_l.constprop.0+0xd6> + 800c112: 2b10 cmp r3, #16 + 800c114: d109 bne.n 800c12a <_strtoul_l.constprop.0+0x3e> + 800c116: 2c30 cmp r4, #48 ; 0x30 + 800c118: d107 bne.n 800c12a <_strtoul_l.constprop.0+0x3e> + 800c11a: 7828 ldrb r0, [r5, #0] + 800c11c: f000 00df and.w r0, r0, #223 ; 0xdf + 800c120: 2858 cmp r0, #88 ; 0x58 + 800c122: d149 bne.n 800c1b8 <_strtoul_l.constprop.0+0xcc> + 800c124: 2310 movs r3, #16 + 800c126: 786c ldrb r4, [r5, #1] + 800c128: 3502 adds r5, #2 + 800c12a: f04f 38ff mov.w r8, #4294967295 ; 0xffffffff + 800c12e: fbb8 f8f3 udiv r8, r8, r3 + 800c132: 2700 movs r7, #0 + 800c134: fb03 f908 mul.w r9, r3, r8 + 800c138: 4638 mov r0, r7 + 800c13a: ea6f 0909 mvn.w r9, r9 + 800c13e: f1a4 0c30 sub.w ip, r4, #48 ; 0x30 + 800c142: f1bc 0f09 cmp.w ip, #9 + 800c146: d814 bhi.n 800c172 <_strtoul_l.constprop.0+0x86> + 800c148: 4664 mov r4, ip + 800c14a: 42a3 cmp r3, r4 + 800c14c: dd22 ble.n 800c194 <_strtoul_l.constprop.0+0xa8> + 800c14e: 2f00 cmp r7, #0 + 800c150: db1d blt.n 800c18e <_strtoul_l.constprop.0+0xa2> + 800c152: 4580 cmp r8, r0 + 800c154: d31b bcc.n 800c18e <_strtoul_l.constprop.0+0xa2> + 800c156: d101 bne.n 800c15c <_strtoul_l.constprop.0+0x70> + 800c158: 45a1 cmp r9, r4 + 800c15a: db18 blt.n 800c18e <_strtoul_l.constprop.0+0xa2> + 800c15c: 2701 movs r7, #1 + 800c15e: fb00 4003 mla r0, r0, r3, r4 + 800c162: f815 4b01 ldrb.w r4, [r5], #1 + 800c166: e7ea b.n 800c13e <_strtoul_l.constprop.0+0x52> + 800c168: 2c2b cmp r4, #43 ; 0x2b + 800c16a: bf04 itt eq + 800c16c: 782c ldrbeq r4, [r5, #0] + 800c16e: 1c85 addeq r5, r0, #2 + 800c170: e7cd b.n 800c10e <_strtoul_l.constprop.0+0x22> + 800c172: f1a4 0c41 sub.w ip, r4, #65 ; 0x41 + 800c176: f1bc 0f19 cmp.w ip, #25 + 800c17a: d801 bhi.n 800c180 <_strtoul_l.constprop.0+0x94> + 800c17c: 3c37 subs r4, #55 ; 0x37 + 800c17e: e7e4 b.n 800c14a <_strtoul_l.constprop.0+0x5e> + 800c180: f1a4 0c61 sub.w ip, r4, #97 ; 0x61 + 800c184: f1bc 0f19 cmp.w ip, #25 + 800c188: d804 bhi.n 800c194 <_strtoul_l.constprop.0+0xa8> + 800c18a: 3c57 subs r4, #87 ; 0x57 + 800c18c: e7dd b.n 800c14a <_strtoul_l.constprop.0+0x5e> + 800c18e: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff + 800c192: e7e6 b.n 800c162 <_strtoul_l.constprop.0+0x76> + 800c194: 2f00 cmp r7, #0 + 800c196: da07 bge.n 800c1a8 <_strtoul_l.constprop.0+0xbc> + 800c198: 2322 movs r3, #34 ; 0x22 + 800c19a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800c19e: f8ce 3000 str.w r3, [lr] + 800c1a2: b932 cbnz r2, 800c1b2 <_strtoul_l.constprop.0+0xc6> + 800c1a4: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} + 800c1a8: b106 cbz r6, 800c1ac <_strtoul_l.constprop.0+0xc0> + 800c1aa: 4240 negs r0, r0 + 800c1ac: 2a00 cmp r2, #0 + 800c1ae: d0f9 beq.n 800c1a4 <_strtoul_l.constprop.0+0xb8> + 800c1b0: b107 cbz r7, 800c1b4 <_strtoul_l.constprop.0+0xc8> + 800c1b2: 1e69 subs r1, r5, #1 + 800c1b4: 6011 str r1, [r2, #0] + 800c1b6: e7f5 b.n 800c1a4 <_strtoul_l.constprop.0+0xb8> + 800c1b8: 2430 movs r4, #48 ; 0x30 + 800c1ba: 2b00 cmp r3, #0 + 800c1bc: d1b5 bne.n 800c12a <_strtoul_l.constprop.0+0x3e> + 800c1be: 2308 movs r3, #8 + 800c1c0: e7b3 b.n 800c12a <_strtoul_l.constprop.0+0x3e> + 800c1c2: 2c30 cmp r4, #48 ; 0x30 + 800c1c4: d0a9 beq.n 800c11a <_strtoul_l.constprop.0+0x2e> + 800c1c6: 230a movs r3, #10 + 800c1c8: e7af b.n 800c12a <_strtoul_l.constprop.0+0x3e> + 800c1ca: bf00 nop + 800c1cc: 0800d69e .word 0x0800d69e -0800bfcc <__env_lock>: - 800bfcc: 4801 ldr r0, [pc, #4] ; (800bfd4 <__env_lock+0x8>) - 800bfce: f7ff b96d b.w 800b2ac <__retarget_lock_acquire_recursive> - 800bfd2: bf00 nop - 800bfd4: 20001d44 .word 0x20001d44 +0800c1d0 <_strtoul_r>: + 800c1d0: f7ff bf8c b.w 800c0ec <_strtoul_l.constprop.0> -0800bfd8 <__env_unlock>: - 800bfd8: 4801 ldr r0, [pc, #4] ; (800bfe0 <__env_unlock+0x8>) - 800bfda: f7ff b969 b.w 800b2b0 <__retarget_lock_release_recursive> - 800bfde: bf00 nop - 800bfe0: 20001d44 .word 0x20001d44 +0800c1d4 : + 800c1d4: 4613 mov r3, r2 + 800c1d6: 460a mov r2, r1 + 800c1d8: 4601 mov r1, r0 + 800c1da: 4802 ldr r0, [pc, #8] ; (800c1e4 ) + 800c1dc: 6800 ldr r0, [r0, #0] + 800c1de: f7ff bf85 b.w 800c0ec <_strtoul_l.constprop.0> + 800c1e2: bf00 nop + 800c1e4: 20000014 .word 0x20000014 -0800bfe4 <_fstat_r>: - 800bfe4: b538 push {r3, r4, r5, lr} - 800bfe6: 2300 movs r3, #0 - 800bfe8: 4d06 ldr r5, [pc, #24] ; (800c004 <_fstat_r+0x20>) - 800bfea: 4604 mov r4, r0 - 800bfec: 4608 mov r0, r1 - 800bfee: 4611 mov r1, r2 - 800bff0: 602b str r3, [r5, #0] - 800bff2: f7f8 fe14 bl 8004c1e <_fstat> - 800bff6: 1c43 adds r3, r0, #1 - 800bff8: d102 bne.n 800c000 <_fstat_r+0x1c> - 800bffa: 682b ldr r3, [r5, #0] - 800bffc: b103 cbz r3, 800c000 <_fstat_r+0x1c> - 800bffe: 6023 str r3, [r4, #0] - 800c000: bd38 pop {r3, r4, r5, pc} - 800c002: bf00 nop - 800c004: 20001d4c .word 0x20001d4c +0800c1e8 <_write_r>: + 800c1e8: b538 push {r3, r4, r5, lr} + 800c1ea: 4604 mov r4, r0 + 800c1ec: 4608 mov r0, r1 + 800c1ee: 4611 mov r1, r2 + 800c1f0: 2200 movs r2, #0 + 800c1f2: 4d05 ldr r5, [pc, #20] ; (800c208 <_write_r+0x20>) + 800c1f4: 602a str r2, [r5, #0] + 800c1f6: 461a mov r2, r3 + 800c1f8: f7f6 fb0c bl 8002814 <_write> + 800c1fc: 1c43 adds r3, r0, #1 + 800c1fe: d102 bne.n 800c206 <_write_r+0x1e> + 800c200: 682b ldr r3, [r5, #0] + 800c202: b103 cbz r3, 800c206 <_write_r+0x1e> + 800c204: 6023 str r3, [r4, #0] + 800c206: bd38 pop {r3, r4, r5, pc} + 800c208: 200033cc .word 0x200033cc -0800c008 <_isatty_r>: - 800c008: b538 push {r3, r4, r5, lr} - 800c00a: 2300 movs r3, #0 - 800c00c: 4d05 ldr r5, [pc, #20] ; (800c024 <_isatty_r+0x1c>) - 800c00e: 4604 mov r4, r0 - 800c010: 4608 mov r0, r1 - 800c012: 602b str r3, [r5, #0] - 800c014: f7f8 fe12 bl 8004c3c <_isatty> - 800c018: 1c43 adds r3, r0, #1 - 800c01a: d102 bne.n 800c022 <_isatty_r+0x1a> - 800c01c: 682b ldr r3, [r5, #0] - 800c01e: b103 cbz r3, 800c022 <_isatty_r+0x1a> - 800c020: 6023 str r3, [r4, #0] - 800c022: bd38 pop {r3, r4, r5, pc} - 800c024: 20001d4c .word 0x20001d4c - -0800c028 <_lseek_r>: - 800c028: b538 push {r3, r4, r5, lr} - 800c02a: 4604 mov r4, r0 - 800c02c: 4608 mov r0, r1 - 800c02e: 4611 mov r1, r2 - 800c030: 2200 movs r2, #0 - 800c032: 4d05 ldr r5, [pc, #20] ; (800c048 <_lseek_r+0x20>) - 800c034: 602a str r2, [r5, #0] - 800c036: 461a mov r2, r3 - 800c038: f7f8 fe0a bl 8004c50 <_lseek> - 800c03c: 1c43 adds r3, r0, #1 - 800c03e: d102 bne.n 800c046 <_lseek_r+0x1e> - 800c040: 682b ldr r3, [r5, #0] - 800c042: b103 cbz r3, 800c046 <_lseek_r+0x1e> - 800c044: 6023 str r3, [r4, #0] - 800c046: bd38 pop {r3, r4, r5, pc} - 800c048: 20001d4c .word 0x20001d4c - -0800c04c <__ascii_mbtowc>: - 800c04c: b082 sub sp, #8 - 800c04e: b901 cbnz r1, 800c052 <__ascii_mbtowc+0x6> - 800c050: a901 add r1, sp, #4 - 800c052: b142 cbz r2, 800c066 <__ascii_mbtowc+0x1a> - 800c054: b14b cbz r3, 800c06a <__ascii_mbtowc+0x1e> - 800c056: 7813 ldrb r3, [r2, #0] - 800c058: 600b str r3, [r1, #0] - 800c05a: 7812 ldrb r2, [r2, #0] - 800c05c: 1e10 subs r0, r2, #0 - 800c05e: bf18 it ne - 800c060: 2001 movne r0, #1 - 800c062: b002 add sp, #8 - 800c064: 4770 bx lr - 800c066: 4610 mov r0, r2 - 800c068: e7fb b.n 800c062 <__ascii_mbtowc+0x16> - 800c06a: f06f 0001 mvn.w r0, #1 - 800c06e: e7f8 b.n 800c062 <__ascii_mbtowc+0x16> - -0800c070 <_realloc_r>: - 800c070: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 800c074: 4680 mov r8, r0 - 800c076: 4614 mov r4, r2 - 800c078: 460e mov r6, r1 - 800c07a: b921 cbnz r1, 800c086 <_realloc_r+0x16> - 800c07c: 4611 mov r1, r2 - 800c07e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 800c082: f7fc bfe3 b.w 800904c <_malloc_r> - 800c086: b92a cbnz r2, 800c094 <_realloc_r+0x24> - 800c088: f7fc ff78 bl 8008f7c <_free_r> - 800c08c: 4625 mov r5, r4 - 800c08e: 4628 mov r0, r5 - 800c090: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 800c094: f000 fc93 bl 800c9be <_malloc_usable_size_r> - 800c098: 4284 cmp r4, r0 - 800c09a: 4607 mov r7, r0 - 800c09c: d802 bhi.n 800c0a4 <_realloc_r+0x34> - 800c09e: ebb4 0f50 cmp.w r4, r0, lsr #1 - 800c0a2: d812 bhi.n 800c0ca <_realloc_r+0x5a> - 800c0a4: 4621 mov r1, r4 - 800c0a6: 4640 mov r0, r8 - 800c0a8: f7fc ffd0 bl 800904c <_malloc_r> - 800c0ac: 4605 mov r5, r0 - 800c0ae: 2800 cmp r0, #0 - 800c0b0: d0ed beq.n 800c08e <_realloc_r+0x1e> - 800c0b2: 42bc cmp r4, r7 - 800c0b4: 4622 mov r2, r4 - 800c0b6: 4631 mov r1, r6 - 800c0b8: bf28 it cs - 800c0ba: 463a movcs r2, r7 - 800c0bc: f7fc ff48 bl 8008f50 - 800c0c0: 4631 mov r1, r6 - 800c0c2: 4640 mov r0, r8 - 800c0c4: f7fc ff5a bl 8008f7c <_free_r> - 800c0c8: e7e1 b.n 800c08e <_realloc_r+0x1e> - 800c0ca: 4635 mov r5, r6 - 800c0cc: e7df b.n 800c08e <_realloc_r+0x1e> - -0800c0ce <_sungetc_r>: - 800c0ce: b538 push {r3, r4, r5, lr} - 800c0d0: 1c4b adds r3, r1, #1 - 800c0d2: 4614 mov r4, r2 - 800c0d4: d103 bne.n 800c0de <_sungetc_r+0x10> - 800c0d6: f04f 35ff mov.w r5, #4294967295 ; 0xffffffff - 800c0da: 4628 mov r0, r5 - 800c0dc: bd38 pop {r3, r4, r5, pc} - 800c0de: 8993 ldrh r3, [r2, #12] - 800c0e0: b2cd uxtb r5, r1 - 800c0e2: f023 0320 bic.w r3, r3, #32 - 800c0e6: 8193 strh r3, [r2, #12] - 800c0e8: 6b63 ldr r3, [r4, #52] ; 0x34 - 800c0ea: 6852 ldr r2, [r2, #4] - 800c0ec: b18b cbz r3, 800c112 <_sungetc_r+0x44> - 800c0ee: 6ba3 ldr r3, [r4, #56] ; 0x38 - 800c0f0: 4293 cmp r3, r2 - 800c0f2: dd08 ble.n 800c106 <_sungetc_r+0x38> - 800c0f4: 6823 ldr r3, [r4, #0] - 800c0f6: 1e5a subs r2, r3, #1 - 800c0f8: 6022 str r2, [r4, #0] - 800c0fa: f803 5c01 strb.w r5, [r3, #-1] - 800c0fe: 6863 ldr r3, [r4, #4] - 800c100: 3301 adds r3, #1 - 800c102: 6063 str r3, [r4, #4] - 800c104: e7e9 b.n 800c0da <_sungetc_r+0xc> - 800c106: 4621 mov r1, r4 - 800c108: f000 fc14 bl 800c934 <__submore> - 800c10c: 2800 cmp r0, #0 - 800c10e: d0f1 beq.n 800c0f4 <_sungetc_r+0x26> - 800c110: e7e1 b.n 800c0d6 <_sungetc_r+0x8> - 800c112: 6921 ldr r1, [r4, #16] - 800c114: 6823 ldr r3, [r4, #0] - 800c116: b151 cbz r1, 800c12e <_sungetc_r+0x60> - 800c118: 4299 cmp r1, r3 - 800c11a: d208 bcs.n 800c12e <_sungetc_r+0x60> - 800c11c: f813 1c01 ldrb.w r1, [r3, #-1] - 800c120: 42a9 cmp r1, r5 - 800c122: d104 bne.n 800c12e <_sungetc_r+0x60> - 800c124: 3b01 subs r3, #1 - 800c126: 3201 adds r2, #1 - 800c128: 6023 str r3, [r4, #0] - 800c12a: 6062 str r2, [r4, #4] - 800c12c: e7d5 b.n 800c0da <_sungetc_r+0xc> - 800c12e: e9c4 320f strd r3, r2, [r4, #60] ; 0x3c - 800c132: f104 0344 add.w r3, r4, #68 ; 0x44 - 800c136: 6363 str r3, [r4, #52] ; 0x34 - 800c138: 2303 movs r3, #3 - 800c13a: 63a3 str r3, [r4, #56] ; 0x38 - 800c13c: 4623 mov r3, r4 - 800c13e: f803 5f46 strb.w r5, [r3, #70]! - 800c142: 6023 str r3, [r4, #0] - 800c144: 2301 movs r3, #1 - 800c146: e7dc b.n 800c102 <_sungetc_r+0x34> - -0800c148 <__ssrefill_r>: - 800c148: b510 push {r4, lr} - 800c14a: 460c mov r4, r1 - 800c14c: 6b49 ldr r1, [r1, #52] ; 0x34 - 800c14e: b169 cbz r1, 800c16c <__ssrefill_r+0x24> - 800c150: f104 0344 add.w r3, r4, #68 ; 0x44 - 800c154: 4299 cmp r1, r3 - 800c156: d001 beq.n 800c15c <__ssrefill_r+0x14> - 800c158: f7fc ff10 bl 8008f7c <_free_r> - 800c15c: 2000 movs r0, #0 - 800c15e: 6c23 ldr r3, [r4, #64] ; 0x40 - 800c160: 6360 str r0, [r4, #52] ; 0x34 - 800c162: 6063 str r3, [r4, #4] - 800c164: b113 cbz r3, 800c16c <__ssrefill_r+0x24> - 800c166: 6be3 ldr r3, [r4, #60] ; 0x3c - 800c168: 6023 str r3, [r4, #0] - 800c16a: bd10 pop {r4, pc} - 800c16c: 6923 ldr r3, [r4, #16] - 800c16e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800c172: 6023 str r3, [r4, #0] - 800c174: 2300 movs r3, #0 - 800c176: 6063 str r3, [r4, #4] - 800c178: 89a3 ldrh r3, [r4, #12] - 800c17a: f043 0320 orr.w r3, r3, #32 - 800c17e: 81a3 strh r3, [r4, #12] - 800c180: e7f3 b.n 800c16a <__ssrefill_r+0x22> +0800c20c : + 800c20c: 2006 movs r0, #6 + 800c20e: b508 push {r3, lr} + 800c210: f000 fc2e bl 800ca70 + 800c214: 2001 movs r0, #1 + 800c216: f7f8 fe06 bl 8004e26 <_exit> ... -0800c184 <__ssvfiscanf_r>: - 800c184: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 800c188: 460c mov r4, r1 - 800c18a: 2100 movs r1, #0 - 800c18c: 4606 mov r6, r0 - 800c18e: f5ad 7d22 sub.w sp, sp, #648 ; 0x288 - 800c192: e9cd 1144 strd r1, r1, [sp, #272] ; 0x110 - 800c196: 49a7 ldr r1, [pc, #668] ; (800c434 <__ssvfiscanf_r+0x2b0>) - 800c198: f10d 0804 add.w r8, sp, #4 - 800c19c: 91a0 str r1, [sp, #640] ; 0x280 - 800c19e: 49a6 ldr r1, [pc, #664] ; (800c438 <__ssvfiscanf_r+0x2b4>) - 800c1a0: 4fa6 ldr r7, [pc, #664] ; (800c43c <__ssvfiscanf_r+0x2b8>) - 800c1a2: f8df 929c ldr.w r9, [pc, #668] ; 800c440 <__ssvfiscanf_r+0x2bc> - 800c1a6: f8cd 8118 str.w r8, [sp, #280] ; 0x118 - 800c1aa: 91a1 str r1, [sp, #644] ; 0x284 - 800c1ac: 9300 str r3, [sp, #0] - 800c1ae: 7813 ldrb r3, [r2, #0] - 800c1b0: 2b00 cmp r3, #0 - 800c1b2: f000 815c beq.w 800c46e <__ssvfiscanf_r+0x2ea> - 800c1b6: 5dd9 ldrb r1, [r3, r7] - 800c1b8: 1c55 adds r5, r2, #1 - 800c1ba: f011 0108 ands.w r1, r1, #8 - 800c1be: d019 beq.n 800c1f4 <__ssvfiscanf_r+0x70> - 800c1c0: 6863 ldr r3, [r4, #4] - 800c1c2: 2b00 cmp r3, #0 - 800c1c4: dd0f ble.n 800c1e6 <__ssvfiscanf_r+0x62> - 800c1c6: 6823 ldr r3, [r4, #0] - 800c1c8: 781a ldrb r2, [r3, #0] - 800c1ca: 5cba ldrb r2, [r7, r2] - 800c1cc: 0712 lsls r2, r2, #28 - 800c1ce: d401 bmi.n 800c1d4 <__ssvfiscanf_r+0x50> - 800c1d0: 462a mov r2, r5 - 800c1d2: e7ec b.n 800c1ae <__ssvfiscanf_r+0x2a> - 800c1d4: 9a45 ldr r2, [sp, #276] ; 0x114 - 800c1d6: 3301 adds r3, #1 - 800c1d8: 3201 adds r2, #1 - 800c1da: 9245 str r2, [sp, #276] ; 0x114 - 800c1dc: 6862 ldr r2, [r4, #4] - 800c1de: 6023 str r3, [r4, #0] - 800c1e0: 3a01 subs r2, #1 - 800c1e2: 6062 str r2, [r4, #4] - 800c1e4: e7ec b.n 800c1c0 <__ssvfiscanf_r+0x3c> - 800c1e6: 4621 mov r1, r4 - 800c1e8: 4630 mov r0, r6 - 800c1ea: 9ba1 ldr r3, [sp, #644] ; 0x284 - 800c1ec: 4798 blx r3 - 800c1ee: 2800 cmp r0, #0 - 800c1f0: d0e9 beq.n 800c1c6 <__ssvfiscanf_r+0x42> - 800c1f2: e7ed b.n 800c1d0 <__ssvfiscanf_r+0x4c> - 800c1f4: 2b25 cmp r3, #37 ; 0x25 - 800c1f6: d012 beq.n 800c21e <__ssvfiscanf_r+0x9a> - 800c1f8: 469a mov sl, r3 - 800c1fa: 6863 ldr r3, [r4, #4] - 800c1fc: 2b00 cmp r3, #0 - 800c1fe: f340 8094 ble.w 800c32a <__ssvfiscanf_r+0x1a6> - 800c202: 6822 ldr r2, [r4, #0] - 800c204: 7813 ldrb r3, [r2, #0] - 800c206: 4553 cmp r3, sl - 800c208: f040 8131 bne.w 800c46e <__ssvfiscanf_r+0x2ea> - 800c20c: 6863 ldr r3, [r4, #4] - 800c20e: 3201 adds r2, #1 - 800c210: 3b01 subs r3, #1 - 800c212: 6063 str r3, [r4, #4] - 800c214: 9b45 ldr r3, [sp, #276] ; 0x114 - 800c216: 6022 str r2, [r4, #0] - 800c218: 3301 adds r3, #1 - 800c21a: 9345 str r3, [sp, #276] ; 0x114 - 800c21c: e7d8 b.n 800c1d0 <__ssvfiscanf_r+0x4c> - 800c21e: 9141 str r1, [sp, #260] ; 0x104 - 800c220: 9143 str r1, [sp, #268] ; 0x10c - 800c222: 7853 ldrb r3, [r2, #1] - 800c224: 2b2a cmp r3, #42 ; 0x2a - 800c226: bf04 itt eq - 800c228: 2310 moveq r3, #16 - 800c22a: 1c95 addeq r5, r2, #2 - 800c22c: f04f 020a mov.w r2, #10 - 800c230: bf08 it eq - 800c232: 9341 streq r3, [sp, #260] ; 0x104 - 800c234: 46aa mov sl, r5 - 800c236: f81a 1b01 ldrb.w r1, [sl], #1 - 800c23a: f1a1 0330 sub.w r3, r1, #48 ; 0x30 - 800c23e: 2b09 cmp r3, #9 - 800c240: d91d bls.n 800c27e <__ssvfiscanf_r+0xfa> - 800c242: 2203 movs r2, #3 - 800c244: 487e ldr r0, [pc, #504] ; (800c440 <__ssvfiscanf_r+0x2bc>) - 800c246: f7ff f899 bl 800b37c - 800c24a: b140 cbz r0, 800c25e <__ssvfiscanf_r+0xda> - 800c24c: 2301 movs r3, #1 - 800c24e: 4655 mov r5, sl - 800c250: eba0 0009 sub.w r0, r0, r9 - 800c254: fa03 f000 lsl.w r0, r3, r0 - 800c258: 9b41 ldr r3, [sp, #260] ; 0x104 - 800c25a: 4318 orrs r0, r3 - 800c25c: 9041 str r0, [sp, #260] ; 0x104 - 800c25e: f815 3b01 ldrb.w r3, [r5], #1 - 800c262: 2b78 cmp r3, #120 ; 0x78 - 800c264: d806 bhi.n 800c274 <__ssvfiscanf_r+0xf0> - 800c266: 2b57 cmp r3, #87 ; 0x57 - 800c268: d810 bhi.n 800c28c <__ssvfiscanf_r+0x108> - 800c26a: 2b25 cmp r3, #37 ; 0x25 - 800c26c: d0c4 beq.n 800c1f8 <__ssvfiscanf_r+0x74> - 800c26e: d857 bhi.n 800c320 <__ssvfiscanf_r+0x19c> - 800c270: 2b00 cmp r3, #0 - 800c272: d065 beq.n 800c340 <__ssvfiscanf_r+0x1bc> - 800c274: 2303 movs r3, #3 - 800c276: 9347 str r3, [sp, #284] ; 0x11c - 800c278: 230a movs r3, #10 - 800c27a: 9342 str r3, [sp, #264] ; 0x108 - 800c27c: e072 b.n 800c364 <__ssvfiscanf_r+0x1e0> - 800c27e: 9b43 ldr r3, [sp, #268] ; 0x10c - 800c280: 4655 mov r5, sl - 800c282: fb02 1103 mla r1, r2, r3, r1 - 800c286: 3930 subs r1, #48 ; 0x30 - 800c288: 9143 str r1, [sp, #268] ; 0x10c - 800c28a: e7d3 b.n 800c234 <__ssvfiscanf_r+0xb0> - 800c28c: f1a3 0258 sub.w r2, r3, #88 ; 0x58 - 800c290: 2a20 cmp r2, #32 - 800c292: d8ef bhi.n 800c274 <__ssvfiscanf_r+0xf0> - 800c294: a101 add r1, pc, #4 ; (adr r1, 800c29c <__ssvfiscanf_r+0x118>) - 800c296: f851 f022 ldr.w pc, [r1, r2, lsl #2] - 800c29a: bf00 nop - 800c29c: 0800c34f .word 0x0800c34f - 800c2a0: 0800c275 .word 0x0800c275 - 800c2a4: 0800c275 .word 0x0800c275 - 800c2a8: 0800c3ad .word 0x0800c3ad - 800c2ac: 0800c275 .word 0x0800c275 - 800c2b0: 0800c275 .word 0x0800c275 - 800c2b4: 0800c275 .word 0x0800c275 - 800c2b8: 0800c275 .word 0x0800c275 - 800c2bc: 0800c275 .word 0x0800c275 - 800c2c0: 0800c275 .word 0x0800c275 - 800c2c4: 0800c275 .word 0x0800c275 - 800c2c8: 0800c3c3 .word 0x0800c3c3 - 800c2cc: 0800c399 .word 0x0800c399 - 800c2d0: 0800c327 .word 0x0800c327 - 800c2d4: 0800c327 .word 0x0800c327 - 800c2d8: 0800c327 .word 0x0800c327 - 800c2dc: 0800c275 .word 0x0800c275 - 800c2e0: 0800c39d .word 0x0800c39d - 800c2e4: 0800c275 .word 0x0800c275 - 800c2e8: 0800c275 .word 0x0800c275 - 800c2ec: 0800c275 .word 0x0800c275 - 800c2f0: 0800c275 .word 0x0800c275 - 800c2f4: 0800c3d3 .word 0x0800c3d3 - 800c2f8: 0800c3a5 .word 0x0800c3a5 - 800c2fc: 0800c347 .word 0x0800c347 - 800c300: 0800c275 .word 0x0800c275 - 800c304: 0800c275 .word 0x0800c275 - 800c308: 0800c3cf .word 0x0800c3cf - 800c30c: 0800c275 .word 0x0800c275 - 800c310: 0800c399 .word 0x0800c399 - 800c314: 0800c275 .word 0x0800c275 - 800c318: 0800c275 .word 0x0800c275 - 800c31c: 0800c34f .word 0x0800c34f - 800c320: 3b45 subs r3, #69 ; 0x45 - 800c322: 2b02 cmp r3, #2 - 800c324: d8a6 bhi.n 800c274 <__ssvfiscanf_r+0xf0> - 800c326: 2305 movs r3, #5 - 800c328: e01b b.n 800c362 <__ssvfiscanf_r+0x1de> - 800c32a: 4621 mov r1, r4 - 800c32c: 4630 mov r0, r6 - 800c32e: 9ba1 ldr r3, [sp, #644] ; 0x284 - 800c330: 4798 blx r3 - 800c332: 2800 cmp r0, #0 - 800c334: f43f af65 beq.w 800c202 <__ssvfiscanf_r+0x7e> - 800c338: 9844 ldr r0, [sp, #272] ; 0x110 - 800c33a: 2800 cmp r0, #0 - 800c33c: f040 808d bne.w 800c45a <__ssvfiscanf_r+0x2d6> - 800c340: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800c344: e08f b.n 800c466 <__ssvfiscanf_r+0x2e2> - 800c346: 9a41 ldr r2, [sp, #260] ; 0x104 - 800c348: f042 0220 orr.w r2, r2, #32 - 800c34c: 9241 str r2, [sp, #260] ; 0x104 - 800c34e: 9a41 ldr r2, [sp, #260] ; 0x104 - 800c350: f442 7200 orr.w r2, r2, #512 ; 0x200 - 800c354: 9241 str r2, [sp, #260] ; 0x104 - 800c356: 2210 movs r2, #16 - 800c358: 2b6f cmp r3, #111 ; 0x6f - 800c35a: bf34 ite cc - 800c35c: 2303 movcc r3, #3 - 800c35e: 2304 movcs r3, #4 - 800c360: 9242 str r2, [sp, #264] ; 0x108 - 800c362: 9347 str r3, [sp, #284] ; 0x11c - 800c364: 6863 ldr r3, [r4, #4] - 800c366: 2b00 cmp r3, #0 - 800c368: dd42 ble.n 800c3f0 <__ssvfiscanf_r+0x26c> - 800c36a: 9b41 ldr r3, [sp, #260] ; 0x104 - 800c36c: 0659 lsls r1, r3, #25 - 800c36e: d404 bmi.n 800c37a <__ssvfiscanf_r+0x1f6> - 800c370: 6823 ldr r3, [r4, #0] - 800c372: 781a ldrb r2, [r3, #0] - 800c374: 5cba ldrb r2, [r7, r2] - 800c376: 0712 lsls r2, r2, #28 - 800c378: d441 bmi.n 800c3fe <__ssvfiscanf_r+0x27a> - 800c37a: 9b47 ldr r3, [sp, #284] ; 0x11c - 800c37c: 2b02 cmp r3, #2 - 800c37e: dc50 bgt.n 800c422 <__ssvfiscanf_r+0x29e> - 800c380: 466b mov r3, sp - 800c382: 4622 mov r2, r4 - 800c384: 4630 mov r0, r6 - 800c386: a941 add r1, sp, #260 ; 0x104 - 800c388: f000 f876 bl 800c478 <_scanf_chars> - 800c38c: 2801 cmp r0, #1 - 800c38e: d06e beq.n 800c46e <__ssvfiscanf_r+0x2ea> - 800c390: 2802 cmp r0, #2 - 800c392: f47f af1d bne.w 800c1d0 <__ssvfiscanf_r+0x4c> - 800c396: e7cf b.n 800c338 <__ssvfiscanf_r+0x1b4> - 800c398: 220a movs r2, #10 - 800c39a: e7dd b.n 800c358 <__ssvfiscanf_r+0x1d4> - 800c39c: 2300 movs r3, #0 - 800c39e: 9342 str r3, [sp, #264] ; 0x108 - 800c3a0: 2303 movs r3, #3 - 800c3a2: e7de b.n 800c362 <__ssvfiscanf_r+0x1de> - 800c3a4: 2308 movs r3, #8 - 800c3a6: 9342 str r3, [sp, #264] ; 0x108 - 800c3a8: 2304 movs r3, #4 - 800c3aa: e7da b.n 800c362 <__ssvfiscanf_r+0x1de> - 800c3ac: 4629 mov r1, r5 - 800c3ae: 4640 mov r0, r8 - 800c3b0: f000 f9c6 bl 800c740 <__sccl> - 800c3b4: 9b41 ldr r3, [sp, #260] ; 0x104 - 800c3b6: 4605 mov r5, r0 - 800c3b8: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800c3bc: 9341 str r3, [sp, #260] ; 0x104 - 800c3be: 2301 movs r3, #1 - 800c3c0: e7cf b.n 800c362 <__ssvfiscanf_r+0x1de> - 800c3c2: 9b41 ldr r3, [sp, #260] ; 0x104 - 800c3c4: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800c3c8: 9341 str r3, [sp, #260] ; 0x104 - 800c3ca: 2300 movs r3, #0 - 800c3cc: e7c9 b.n 800c362 <__ssvfiscanf_r+0x1de> - 800c3ce: 2302 movs r3, #2 - 800c3d0: e7c7 b.n 800c362 <__ssvfiscanf_r+0x1de> - 800c3d2: 9841 ldr r0, [sp, #260] ; 0x104 - 800c3d4: 06c3 lsls r3, r0, #27 - 800c3d6: f53f aefb bmi.w 800c1d0 <__ssvfiscanf_r+0x4c> - 800c3da: 9b00 ldr r3, [sp, #0] - 800c3dc: 9a45 ldr r2, [sp, #276] ; 0x114 - 800c3de: 1d19 adds r1, r3, #4 - 800c3e0: 9100 str r1, [sp, #0] - 800c3e2: 681b ldr r3, [r3, #0] - 800c3e4: f010 0f01 tst.w r0, #1 - 800c3e8: bf14 ite ne - 800c3ea: 801a strhne r2, [r3, #0] - 800c3ec: 601a streq r2, [r3, #0] - 800c3ee: e6ef b.n 800c1d0 <__ssvfiscanf_r+0x4c> - 800c3f0: 4621 mov r1, r4 - 800c3f2: 4630 mov r0, r6 - 800c3f4: 9ba1 ldr r3, [sp, #644] ; 0x284 - 800c3f6: 4798 blx r3 - 800c3f8: 2800 cmp r0, #0 - 800c3fa: d0b6 beq.n 800c36a <__ssvfiscanf_r+0x1e6> - 800c3fc: e79c b.n 800c338 <__ssvfiscanf_r+0x1b4> - 800c3fe: 9a45 ldr r2, [sp, #276] ; 0x114 - 800c400: 3201 adds r2, #1 - 800c402: 9245 str r2, [sp, #276] ; 0x114 - 800c404: 6862 ldr r2, [r4, #4] - 800c406: 3a01 subs r2, #1 - 800c408: 2a00 cmp r2, #0 - 800c40a: 6062 str r2, [r4, #4] - 800c40c: dd02 ble.n 800c414 <__ssvfiscanf_r+0x290> - 800c40e: 3301 adds r3, #1 - 800c410: 6023 str r3, [r4, #0] - 800c412: e7ad b.n 800c370 <__ssvfiscanf_r+0x1ec> - 800c414: 4621 mov r1, r4 - 800c416: 4630 mov r0, r6 - 800c418: 9ba1 ldr r3, [sp, #644] ; 0x284 - 800c41a: 4798 blx r3 - 800c41c: 2800 cmp r0, #0 - 800c41e: d0a7 beq.n 800c370 <__ssvfiscanf_r+0x1ec> - 800c420: e78a b.n 800c338 <__ssvfiscanf_r+0x1b4> - 800c422: 2b04 cmp r3, #4 - 800c424: dc0e bgt.n 800c444 <__ssvfiscanf_r+0x2c0> - 800c426: 466b mov r3, sp - 800c428: 4622 mov r2, r4 - 800c42a: 4630 mov r0, r6 - 800c42c: a941 add r1, sp, #260 ; 0x104 - 800c42e: f000 f87d bl 800c52c <_scanf_i> - 800c432: e7ab b.n 800c38c <__ssvfiscanf_r+0x208> - 800c434: 0800c0cf .word 0x0800c0cf - 800c438: 0800c149 .word 0x0800c149 - 800c43c: 0800d40e .word 0x0800d40e - 800c440: 0800d402 .word 0x0800d402 - 800c444: 4b0b ldr r3, [pc, #44] ; (800c474 <__ssvfiscanf_r+0x2f0>) - 800c446: 2b00 cmp r3, #0 - 800c448: f43f aec2 beq.w 800c1d0 <__ssvfiscanf_r+0x4c> - 800c44c: 466b mov r3, sp - 800c44e: 4622 mov r2, r4 - 800c450: 4630 mov r0, r6 - 800c452: a941 add r1, sp, #260 ; 0x104 - 800c454: f3af 8000 nop.w - 800c458: e798 b.n 800c38c <__ssvfiscanf_r+0x208> - 800c45a: 89a3 ldrh r3, [r4, #12] - 800c45c: f013 0f40 tst.w r3, #64 ; 0x40 - 800c460: bf18 it ne - 800c462: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff - 800c466: f50d 7d22 add.w sp, sp, #648 ; 0x288 - 800c46a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 800c46e: 9844 ldr r0, [sp, #272] ; 0x110 - 800c470: e7f9 b.n 800c466 <__ssvfiscanf_r+0x2e2> - 800c472: bf00 nop - 800c474: 00000000 .word 0x00000000 +0800c21c <_close_r>: + 800c21c: b538 push {r3, r4, r5, lr} + 800c21e: 2300 movs r3, #0 + 800c220: 4d05 ldr r5, [pc, #20] ; (800c238 <_close_r+0x1c>) + 800c222: 4604 mov r4, r0 + 800c224: 4608 mov r0, r1 + 800c226: 602b str r3, [r5, #0] + 800c228: f7f8 fe24 bl 8004e74 <_close> + 800c22c: 1c43 adds r3, r0, #1 + 800c22e: d102 bne.n 800c236 <_close_r+0x1a> + 800c230: 682b ldr r3, [r5, #0] + 800c232: b103 cbz r3, 800c236 <_close_r+0x1a> + 800c234: 6023 str r3, [r4, #0] + 800c236: bd38 pop {r3, r4, r5, pc} + 800c238: 200033cc .word 0x200033cc -0800c478 <_scanf_chars>: - 800c478: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 800c47c: 4615 mov r5, r2 - 800c47e: 688a ldr r2, [r1, #8] - 800c480: 4680 mov r8, r0 - 800c482: 460c mov r4, r1 - 800c484: b932 cbnz r2, 800c494 <_scanf_chars+0x1c> - 800c486: 698a ldr r2, [r1, #24] - 800c488: 2a00 cmp r2, #0 - 800c48a: bf0c ite eq - 800c48c: 2201 moveq r2, #1 - 800c48e: f04f 32ff movne.w r2, #4294967295 ; 0xffffffff - 800c492: 608a str r2, [r1, #8] - 800c494: 2700 movs r7, #0 - 800c496: 6822 ldr r2, [r4, #0] - 800c498: f8df 908c ldr.w r9, [pc, #140] ; 800c528 <_scanf_chars+0xb0> - 800c49c: 06d1 lsls r1, r2, #27 - 800c49e: bf5f itttt pl - 800c4a0: 681a ldrpl r2, [r3, #0] - 800c4a2: 1d11 addpl r1, r2, #4 - 800c4a4: 6019 strpl r1, [r3, #0] - 800c4a6: 6816 ldrpl r6, [r2, #0] - 800c4a8: 69a0 ldr r0, [r4, #24] - 800c4aa: b188 cbz r0, 800c4d0 <_scanf_chars+0x58> - 800c4ac: 2801 cmp r0, #1 - 800c4ae: d107 bne.n 800c4c0 <_scanf_chars+0x48> - 800c4b0: 682b ldr r3, [r5, #0] - 800c4b2: 781a ldrb r2, [r3, #0] - 800c4b4: 6963 ldr r3, [r4, #20] - 800c4b6: 5c9b ldrb r3, [r3, r2] - 800c4b8: b953 cbnz r3, 800c4d0 <_scanf_chars+0x58> - 800c4ba: 2f00 cmp r7, #0 - 800c4bc: d031 beq.n 800c522 <_scanf_chars+0xaa> - 800c4be: e022 b.n 800c506 <_scanf_chars+0x8e> - 800c4c0: 2802 cmp r0, #2 - 800c4c2: d120 bne.n 800c506 <_scanf_chars+0x8e> - 800c4c4: 682b ldr r3, [r5, #0] - 800c4c6: 781b ldrb r3, [r3, #0] - 800c4c8: f813 3009 ldrb.w r3, [r3, r9] - 800c4cc: 071b lsls r3, r3, #28 - 800c4ce: d41a bmi.n 800c506 <_scanf_chars+0x8e> - 800c4d0: 6823 ldr r3, [r4, #0] - 800c4d2: 3701 adds r7, #1 - 800c4d4: 06da lsls r2, r3, #27 - 800c4d6: bf5e ittt pl - 800c4d8: 682b ldrpl r3, [r5, #0] - 800c4da: 781b ldrbpl r3, [r3, #0] - 800c4dc: f806 3b01 strbpl.w r3, [r6], #1 - 800c4e0: 682a ldr r2, [r5, #0] - 800c4e2: 686b ldr r3, [r5, #4] - 800c4e4: 3201 adds r2, #1 - 800c4e6: 602a str r2, [r5, #0] - 800c4e8: 68a2 ldr r2, [r4, #8] - 800c4ea: 3b01 subs r3, #1 - 800c4ec: 3a01 subs r2, #1 - 800c4ee: 606b str r3, [r5, #4] - 800c4f0: 60a2 str r2, [r4, #8] - 800c4f2: b142 cbz r2, 800c506 <_scanf_chars+0x8e> - 800c4f4: 2b00 cmp r3, #0 - 800c4f6: dcd7 bgt.n 800c4a8 <_scanf_chars+0x30> - 800c4f8: 4629 mov r1, r5 - 800c4fa: 4640 mov r0, r8 - 800c4fc: f8d4 3180 ldr.w r3, [r4, #384] ; 0x180 - 800c500: 4798 blx r3 - 800c502: 2800 cmp r0, #0 - 800c504: d0d0 beq.n 800c4a8 <_scanf_chars+0x30> - 800c506: 6823 ldr r3, [r4, #0] - 800c508: f013 0310 ands.w r3, r3, #16 - 800c50c: d105 bne.n 800c51a <_scanf_chars+0xa2> - 800c50e: 68e2 ldr r2, [r4, #12] - 800c510: 3201 adds r2, #1 - 800c512: 60e2 str r2, [r4, #12] - 800c514: 69a2 ldr r2, [r4, #24] - 800c516: b102 cbz r2, 800c51a <_scanf_chars+0xa2> - 800c518: 7033 strb r3, [r6, #0] - 800c51a: 2000 movs r0, #0 - 800c51c: 6923 ldr r3, [r4, #16] - 800c51e: 443b add r3, r7 - 800c520: 6123 str r3, [r4, #16] - 800c522: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 800c526: bf00 nop - 800c528: 0800d40e .word 0x0800d40e +0800c23c <__env_lock>: + 800c23c: 4801 ldr r0, [pc, #4] ; (800c244 <__env_lock+0x8>) + 800c23e: f7ff b96d b.w 800b51c <__retarget_lock_acquire_recursive> + 800c242: bf00 nop + 800c244: 200033c4 .word 0x200033c4 -0800c52c <_scanf_i>: - 800c52c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800c530: 460c mov r4, r1 - 800c532: 4698 mov r8, r3 - 800c534: 4b75 ldr r3, [pc, #468] ; (800c70c <_scanf_i+0x1e0>) - 800c536: b087 sub sp, #28 - 800c538: 4682 mov sl, r0 - 800c53a: 4616 mov r6, r2 - 800c53c: e893 0007 ldmia.w r3, {r0, r1, r2} - 800c540: ab03 add r3, sp, #12 - 800c542: e883 0007 stmia.w r3, {r0, r1, r2} - 800c546: 4b72 ldr r3, [pc, #456] ; (800c710 <_scanf_i+0x1e4>) - 800c548: 69a1 ldr r1, [r4, #24] - 800c54a: 4a72 ldr r2, [pc, #456] ; (800c714 <_scanf_i+0x1e8>) - 800c54c: 4627 mov r7, r4 - 800c54e: 2903 cmp r1, #3 - 800c550: bf18 it ne - 800c552: 461a movne r2, r3 - 800c554: 68a3 ldr r3, [r4, #8] - 800c556: 9201 str r2, [sp, #4] - 800c558: 1e5a subs r2, r3, #1 - 800c55a: f5b2 7fae cmp.w r2, #348 ; 0x15c - 800c55e: bf81 itttt hi - 800c560: f46f 75ae mvnhi.w r5, #348 ; 0x15c - 800c564: eb03 0905 addhi.w r9, r3, r5 - 800c568: f240 135d movwhi r3, #349 ; 0x15d - 800c56c: 60a3 strhi r3, [r4, #8] - 800c56e: f857 3b1c ldr.w r3, [r7], #28 - 800c572: bf98 it ls - 800c574: f04f 0900 movls.w r9, #0 - 800c578: 463d mov r5, r7 - 800c57a: f04f 0b00 mov.w fp, #0 - 800c57e: f443 6350 orr.w r3, r3, #3328 ; 0xd00 - 800c582: 6023 str r3, [r4, #0] - 800c584: 6831 ldr r1, [r6, #0] - 800c586: ab03 add r3, sp, #12 - 800c588: 2202 movs r2, #2 - 800c58a: 7809 ldrb r1, [r1, #0] - 800c58c: f853 002b ldr.w r0, [r3, fp, lsl #2] - 800c590: f7fe fef4 bl 800b37c - 800c594: b328 cbz r0, 800c5e2 <_scanf_i+0xb6> - 800c596: f1bb 0f01 cmp.w fp, #1 - 800c59a: d159 bne.n 800c650 <_scanf_i+0x124> - 800c59c: 6862 ldr r2, [r4, #4] - 800c59e: b92a cbnz r2, 800c5ac <_scanf_i+0x80> - 800c5a0: 2308 movs r3, #8 - 800c5a2: 6822 ldr r2, [r4, #0] - 800c5a4: 6063 str r3, [r4, #4] - 800c5a6: f442 7200 orr.w r2, r2, #512 ; 0x200 - 800c5aa: 6022 str r2, [r4, #0] - 800c5ac: 6822 ldr r2, [r4, #0] - 800c5ae: f422 62a0 bic.w r2, r2, #1280 ; 0x500 - 800c5b2: 6022 str r2, [r4, #0] - 800c5b4: 68a2 ldr r2, [r4, #8] - 800c5b6: 1e51 subs r1, r2, #1 - 800c5b8: 60a1 str r1, [r4, #8] - 800c5ba: b192 cbz r2, 800c5e2 <_scanf_i+0xb6> - 800c5bc: 6832 ldr r2, [r6, #0] - 800c5be: 1c51 adds r1, r2, #1 - 800c5c0: 6031 str r1, [r6, #0] - 800c5c2: 7812 ldrb r2, [r2, #0] - 800c5c4: f805 2b01 strb.w r2, [r5], #1 - 800c5c8: 6872 ldr r2, [r6, #4] - 800c5ca: 3a01 subs r2, #1 - 800c5cc: 2a00 cmp r2, #0 - 800c5ce: 6072 str r2, [r6, #4] - 800c5d0: dc07 bgt.n 800c5e2 <_scanf_i+0xb6> - 800c5d2: 4631 mov r1, r6 - 800c5d4: 4650 mov r0, sl - 800c5d6: f8d4 2180 ldr.w r2, [r4, #384] ; 0x180 - 800c5da: 4790 blx r2 - 800c5dc: 2800 cmp r0, #0 - 800c5de: f040 8085 bne.w 800c6ec <_scanf_i+0x1c0> - 800c5e2: f10b 0b01 add.w fp, fp, #1 - 800c5e6: f1bb 0f03 cmp.w fp, #3 - 800c5ea: d1cb bne.n 800c584 <_scanf_i+0x58> - 800c5ec: 6863 ldr r3, [r4, #4] - 800c5ee: b90b cbnz r3, 800c5f4 <_scanf_i+0xc8> - 800c5f0: 230a movs r3, #10 - 800c5f2: 6063 str r3, [r4, #4] - 800c5f4: 6863 ldr r3, [r4, #4] - 800c5f6: 4948 ldr r1, [pc, #288] ; (800c718 <_scanf_i+0x1ec>) - 800c5f8: 6960 ldr r0, [r4, #20] - 800c5fa: 1ac9 subs r1, r1, r3 - 800c5fc: f000 f8a0 bl 800c740 <__sccl> - 800c600: f04f 0b00 mov.w fp, #0 - 800c604: 68a3 ldr r3, [r4, #8] - 800c606: 6822 ldr r2, [r4, #0] - 800c608: 2b00 cmp r3, #0 - 800c60a: d03d beq.n 800c688 <_scanf_i+0x15c> - 800c60c: 6831 ldr r1, [r6, #0] - 800c60e: 6960 ldr r0, [r4, #20] - 800c610: f891 c000 ldrb.w ip, [r1] - 800c614: f810 000c ldrb.w r0, [r0, ip] - 800c618: 2800 cmp r0, #0 - 800c61a: d035 beq.n 800c688 <_scanf_i+0x15c> - 800c61c: f1bc 0f30 cmp.w ip, #48 ; 0x30 - 800c620: d124 bne.n 800c66c <_scanf_i+0x140> - 800c622: 0510 lsls r0, r2, #20 - 800c624: d522 bpl.n 800c66c <_scanf_i+0x140> - 800c626: f10b 0b01 add.w fp, fp, #1 - 800c62a: f1b9 0f00 cmp.w r9, #0 - 800c62e: d003 beq.n 800c638 <_scanf_i+0x10c> - 800c630: 3301 adds r3, #1 - 800c632: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 800c636: 60a3 str r3, [r4, #8] - 800c638: 6873 ldr r3, [r6, #4] - 800c63a: 3b01 subs r3, #1 - 800c63c: 2b00 cmp r3, #0 - 800c63e: 6073 str r3, [r6, #4] - 800c640: dd1b ble.n 800c67a <_scanf_i+0x14e> - 800c642: 6833 ldr r3, [r6, #0] - 800c644: 3301 adds r3, #1 - 800c646: 6033 str r3, [r6, #0] - 800c648: 68a3 ldr r3, [r4, #8] - 800c64a: 3b01 subs r3, #1 - 800c64c: 60a3 str r3, [r4, #8] - 800c64e: e7d9 b.n 800c604 <_scanf_i+0xd8> - 800c650: f1bb 0f02 cmp.w fp, #2 - 800c654: d1ae bne.n 800c5b4 <_scanf_i+0x88> - 800c656: 6822 ldr r2, [r4, #0] - 800c658: f402 61c0 and.w r1, r2, #1536 ; 0x600 - 800c65c: f5b1 7f00 cmp.w r1, #512 ; 0x200 - 800c660: d1bf bne.n 800c5e2 <_scanf_i+0xb6> - 800c662: 2310 movs r3, #16 - 800c664: f442 7280 orr.w r2, r2, #256 ; 0x100 - 800c668: 6063 str r3, [r4, #4] - 800c66a: e7a2 b.n 800c5b2 <_scanf_i+0x86> - 800c66c: f422 6210 bic.w r2, r2, #2304 ; 0x900 - 800c670: 6022 str r2, [r4, #0] - 800c672: 780b ldrb r3, [r1, #0] - 800c674: f805 3b01 strb.w r3, [r5], #1 - 800c678: e7de b.n 800c638 <_scanf_i+0x10c> - 800c67a: 4631 mov r1, r6 - 800c67c: 4650 mov r0, sl - 800c67e: f8d4 3180 ldr.w r3, [r4, #384] ; 0x180 - 800c682: 4798 blx r3 - 800c684: 2800 cmp r0, #0 - 800c686: d0df beq.n 800c648 <_scanf_i+0x11c> - 800c688: 6823 ldr r3, [r4, #0] - 800c68a: 05db lsls r3, r3, #23 - 800c68c: d50d bpl.n 800c6aa <_scanf_i+0x17e> - 800c68e: 42bd cmp r5, r7 - 800c690: d909 bls.n 800c6a6 <_scanf_i+0x17a> - 800c692: f815 1c01 ldrb.w r1, [r5, #-1] - 800c696: 4632 mov r2, r6 - 800c698: 4650 mov r0, sl - 800c69a: f8d4 317c ldr.w r3, [r4, #380] ; 0x17c - 800c69e: f105 39ff add.w r9, r5, #4294967295 ; 0xffffffff - 800c6a2: 4798 blx r3 - 800c6a4: 464d mov r5, r9 - 800c6a6: 42bd cmp r5, r7 - 800c6a8: d02d beq.n 800c706 <_scanf_i+0x1da> - 800c6aa: 6822 ldr r2, [r4, #0] - 800c6ac: f012 0210 ands.w r2, r2, #16 - 800c6b0: d113 bne.n 800c6da <_scanf_i+0x1ae> - 800c6b2: 702a strb r2, [r5, #0] - 800c6b4: 4639 mov r1, r7 - 800c6b6: 6863 ldr r3, [r4, #4] - 800c6b8: 4650 mov r0, sl - 800c6ba: 9e01 ldr r6, [sp, #4] - 800c6bc: 47b0 blx r6 - 800c6be: 6821 ldr r1, [r4, #0] - 800c6c0: f8d8 3000 ldr.w r3, [r8] - 800c6c4: f011 0f20 tst.w r1, #32 - 800c6c8: d013 beq.n 800c6f2 <_scanf_i+0x1c6> - 800c6ca: 1d1a adds r2, r3, #4 - 800c6cc: f8c8 2000 str.w r2, [r8] - 800c6d0: 681b ldr r3, [r3, #0] - 800c6d2: 6018 str r0, [r3, #0] - 800c6d4: 68e3 ldr r3, [r4, #12] - 800c6d6: 3301 adds r3, #1 - 800c6d8: 60e3 str r3, [r4, #12] - 800c6da: 2000 movs r0, #0 - 800c6dc: 1bed subs r5, r5, r7 - 800c6de: 44ab add fp, r5 - 800c6e0: 6925 ldr r5, [r4, #16] - 800c6e2: 445d add r5, fp - 800c6e4: 6125 str r5, [r4, #16] - 800c6e6: b007 add sp, #28 - 800c6e8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800c6ec: f04f 0b00 mov.w fp, #0 - 800c6f0: e7ca b.n 800c688 <_scanf_i+0x15c> - 800c6f2: 1d1a adds r2, r3, #4 - 800c6f4: f8c8 2000 str.w r2, [r8] - 800c6f8: 681b ldr r3, [r3, #0] - 800c6fa: f011 0f01 tst.w r1, #1 - 800c6fe: bf14 ite ne - 800c700: 8018 strhne r0, [r3, #0] - 800c702: 6018 streq r0, [r3, #0] - 800c704: e7e6 b.n 800c6d4 <_scanf_i+0x1a8> - 800c706: 2001 movs r0, #1 - 800c708: e7ed b.n 800c6e6 <_scanf_i+0x1ba> - 800c70a: bf00 nop - 800c70c: 0800cfc8 .word 0x0800cfc8 - 800c710: 0800bf61 .word 0x0800bf61 - 800c714: 0800c931 .word 0x0800c931 - 800c718: 0800d531 .word 0x0800d531 +0800c248 <__env_unlock>: + 800c248: 4801 ldr r0, [pc, #4] ; (800c250 <__env_unlock+0x8>) + 800c24a: f7ff b969 b.w 800b520 <__retarget_lock_release_recursive> + 800c24e: bf00 nop + 800c250: 200033c4 .word 0x200033c4 -0800c71c <_read_r>: - 800c71c: b538 push {r3, r4, r5, lr} - 800c71e: 4604 mov r4, r0 - 800c720: 4608 mov r0, r1 - 800c722: 4611 mov r1, r2 - 800c724: 2200 movs r2, #0 - 800c726: 4d05 ldr r5, [pc, #20] ; (800c73c <_read_r+0x20>) - 800c728: 602a str r2, [r5, #0] - 800c72a: 461a mov r2, r3 - 800c72c: f7f8 fa4f bl 8004bce <_read> - 800c730: 1c43 adds r3, r0, #1 - 800c732: d102 bne.n 800c73a <_read_r+0x1e> +0800c254 <_fstat_r>: + 800c254: b538 push {r3, r4, r5, lr} + 800c256: 2300 movs r3, #0 + 800c258: 4d06 ldr r5, [pc, #24] ; (800c274 <_fstat_r+0x20>) + 800c25a: 4604 mov r4, r0 + 800c25c: 4608 mov r0, r1 + 800c25e: 4611 mov r1, r2 + 800c260: 602b str r3, [r5, #0] + 800c262: f7f8 fe12 bl 8004e8a <_fstat> + 800c266: 1c43 adds r3, r0, #1 + 800c268: d102 bne.n 800c270 <_fstat_r+0x1c> + 800c26a: 682b ldr r3, [r5, #0] + 800c26c: b103 cbz r3, 800c270 <_fstat_r+0x1c> + 800c26e: 6023 str r3, [r4, #0] + 800c270: bd38 pop {r3, r4, r5, pc} + 800c272: bf00 nop + 800c274: 200033cc .word 0x200033cc + +0800c278 <_isatty_r>: + 800c278: b538 push {r3, r4, r5, lr} + 800c27a: 2300 movs r3, #0 + 800c27c: 4d05 ldr r5, [pc, #20] ; (800c294 <_isatty_r+0x1c>) + 800c27e: 4604 mov r4, r0 + 800c280: 4608 mov r0, r1 + 800c282: 602b str r3, [r5, #0] + 800c284: f7f8 fe10 bl 8004ea8 <_isatty> + 800c288: 1c43 adds r3, r0, #1 + 800c28a: d102 bne.n 800c292 <_isatty_r+0x1a> + 800c28c: 682b ldr r3, [r5, #0] + 800c28e: b103 cbz r3, 800c292 <_isatty_r+0x1a> + 800c290: 6023 str r3, [r4, #0] + 800c292: bd38 pop {r3, r4, r5, pc} + 800c294: 200033cc .word 0x200033cc + +0800c298 <_lseek_r>: + 800c298: b538 push {r3, r4, r5, lr} + 800c29a: 4604 mov r4, r0 + 800c29c: 4608 mov r0, r1 + 800c29e: 4611 mov r1, r2 + 800c2a0: 2200 movs r2, #0 + 800c2a2: 4d05 ldr r5, [pc, #20] ; (800c2b8 <_lseek_r+0x20>) + 800c2a4: 602a str r2, [r5, #0] + 800c2a6: 461a mov r2, r3 + 800c2a8: f7f8 fe08 bl 8004ebc <_lseek> + 800c2ac: 1c43 adds r3, r0, #1 + 800c2ae: d102 bne.n 800c2b6 <_lseek_r+0x1e> + 800c2b0: 682b ldr r3, [r5, #0] + 800c2b2: b103 cbz r3, 800c2b6 <_lseek_r+0x1e> + 800c2b4: 6023 str r3, [r4, #0] + 800c2b6: bd38 pop {r3, r4, r5, pc} + 800c2b8: 200033cc .word 0x200033cc + +0800c2bc <__ascii_mbtowc>: + 800c2bc: b082 sub sp, #8 + 800c2be: b901 cbnz r1, 800c2c2 <__ascii_mbtowc+0x6> + 800c2c0: a901 add r1, sp, #4 + 800c2c2: b142 cbz r2, 800c2d6 <__ascii_mbtowc+0x1a> + 800c2c4: b14b cbz r3, 800c2da <__ascii_mbtowc+0x1e> + 800c2c6: 7813 ldrb r3, [r2, #0] + 800c2c8: 600b str r3, [r1, #0] + 800c2ca: 7812 ldrb r2, [r2, #0] + 800c2cc: 1e10 subs r0, r2, #0 + 800c2ce: bf18 it ne + 800c2d0: 2001 movne r0, #1 + 800c2d2: b002 add sp, #8 + 800c2d4: 4770 bx lr + 800c2d6: 4610 mov r0, r2 + 800c2d8: e7fb b.n 800c2d2 <__ascii_mbtowc+0x16> + 800c2da: f06f 0001 mvn.w r0, #1 + 800c2de: e7f8 b.n 800c2d2 <__ascii_mbtowc+0x16> + +0800c2e0 <_realloc_r>: + 800c2e0: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800c2e4: 4680 mov r8, r0 + 800c2e6: 4614 mov r4, r2 + 800c2e8: 460e mov r6, r1 + 800c2ea: b921 cbnz r1, 800c2f6 <_realloc_r+0x16> + 800c2ec: 4611 mov r1, r2 + 800c2ee: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 800c2f2: f7fc bfe1 b.w 80092b8 <_malloc_r> + 800c2f6: b92a cbnz r2, 800c304 <_realloc_r+0x24> + 800c2f8: f7fc ff76 bl 80091e8 <_free_r> + 800c2fc: 4625 mov r5, r4 + 800c2fe: 4628 mov r0, r5 + 800c300: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800c304: f000 fc93 bl 800cc2e <_malloc_usable_size_r> + 800c308: 4284 cmp r4, r0 + 800c30a: 4607 mov r7, r0 + 800c30c: d802 bhi.n 800c314 <_realloc_r+0x34> + 800c30e: ebb4 0f50 cmp.w r4, r0, lsr #1 + 800c312: d812 bhi.n 800c33a <_realloc_r+0x5a> + 800c314: 4621 mov r1, r4 + 800c316: 4640 mov r0, r8 + 800c318: f7fc ffce bl 80092b8 <_malloc_r> + 800c31c: 4605 mov r5, r0 + 800c31e: 2800 cmp r0, #0 + 800c320: d0ed beq.n 800c2fe <_realloc_r+0x1e> + 800c322: 42bc cmp r4, r7 + 800c324: 4622 mov r2, r4 + 800c326: 4631 mov r1, r6 + 800c328: bf28 it cs + 800c32a: 463a movcs r2, r7 + 800c32c: f7fc ff46 bl 80091bc + 800c330: 4631 mov r1, r6 + 800c332: 4640 mov r0, r8 + 800c334: f7fc ff58 bl 80091e8 <_free_r> + 800c338: e7e1 b.n 800c2fe <_realloc_r+0x1e> + 800c33a: 4635 mov r5, r6 + 800c33c: e7df b.n 800c2fe <_realloc_r+0x1e> + +0800c33e <_sungetc_r>: + 800c33e: b538 push {r3, r4, r5, lr} + 800c340: 1c4b adds r3, r1, #1 + 800c342: 4614 mov r4, r2 + 800c344: d103 bne.n 800c34e <_sungetc_r+0x10> + 800c346: f04f 35ff mov.w r5, #4294967295 ; 0xffffffff + 800c34a: 4628 mov r0, r5 + 800c34c: bd38 pop {r3, r4, r5, pc} + 800c34e: 8993 ldrh r3, [r2, #12] + 800c350: b2cd uxtb r5, r1 + 800c352: f023 0320 bic.w r3, r3, #32 + 800c356: 8193 strh r3, [r2, #12] + 800c358: 6b63 ldr r3, [r4, #52] ; 0x34 + 800c35a: 6852 ldr r2, [r2, #4] + 800c35c: b18b cbz r3, 800c382 <_sungetc_r+0x44> + 800c35e: 6ba3 ldr r3, [r4, #56] ; 0x38 + 800c360: 4293 cmp r3, r2 + 800c362: dd08 ble.n 800c376 <_sungetc_r+0x38> + 800c364: 6823 ldr r3, [r4, #0] + 800c366: 1e5a subs r2, r3, #1 + 800c368: 6022 str r2, [r4, #0] + 800c36a: f803 5c01 strb.w r5, [r3, #-1] + 800c36e: 6863 ldr r3, [r4, #4] + 800c370: 3301 adds r3, #1 + 800c372: 6063 str r3, [r4, #4] + 800c374: e7e9 b.n 800c34a <_sungetc_r+0xc> + 800c376: 4621 mov r1, r4 + 800c378: f000 fc14 bl 800cba4 <__submore> + 800c37c: 2800 cmp r0, #0 + 800c37e: d0f1 beq.n 800c364 <_sungetc_r+0x26> + 800c380: e7e1 b.n 800c346 <_sungetc_r+0x8> + 800c382: 6921 ldr r1, [r4, #16] + 800c384: 6823 ldr r3, [r4, #0] + 800c386: b151 cbz r1, 800c39e <_sungetc_r+0x60> + 800c388: 4299 cmp r1, r3 + 800c38a: d208 bcs.n 800c39e <_sungetc_r+0x60> + 800c38c: f813 1c01 ldrb.w r1, [r3, #-1] + 800c390: 42a9 cmp r1, r5 + 800c392: d104 bne.n 800c39e <_sungetc_r+0x60> + 800c394: 3b01 subs r3, #1 + 800c396: 3201 adds r2, #1 + 800c398: 6023 str r3, [r4, #0] + 800c39a: 6062 str r2, [r4, #4] + 800c39c: e7d5 b.n 800c34a <_sungetc_r+0xc> + 800c39e: e9c4 320f strd r3, r2, [r4, #60] ; 0x3c + 800c3a2: f104 0344 add.w r3, r4, #68 ; 0x44 + 800c3a6: 6363 str r3, [r4, #52] ; 0x34 + 800c3a8: 2303 movs r3, #3 + 800c3aa: 63a3 str r3, [r4, #56] ; 0x38 + 800c3ac: 4623 mov r3, r4 + 800c3ae: f803 5f46 strb.w r5, [r3, #70]! + 800c3b2: 6023 str r3, [r4, #0] + 800c3b4: 2301 movs r3, #1 + 800c3b6: e7dc b.n 800c372 <_sungetc_r+0x34> + +0800c3b8 <__ssrefill_r>: + 800c3b8: b510 push {r4, lr} + 800c3ba: 460c mov r4, r1 + 800c3bc: 6b49 ldr r1, [r1, #52] ; 0x34 + 800c3be: b169 cbz r1, 800c3dc <__ssrefill_r+0x24> + 800c3c0: f104 0344 add.w r3, r4, #68 ; 0x44 + 800c3c4: 4299 cmp r1, r3 + 800c3c6: d001 beq.n 800c3cc <__ssrefill_r+0x14> + 800c3c8: f7fc ff0e bl 80091e8 <_free_r> + 800c3cc: 2000 movs r0, #0 + 800c3ce: 6c23 ldr r3, [r4, #64] ; 0x40 + 800c3d0: 6360 str r0, [r4, #52] ; 0x34 + 800c3d2: 6063 str r3, [r4, #4] + 800c3d4: b113 cbz r3, 800c3dc <__ssrefill_r+0x24> + 800c3d6: 6be3 ldr r3, [r4, #60] ; 0x3c + 800c3d8: 6023 str r3, [r4, #0] + 800c3da: bd10 pop {r4, pc} + 800c3dc: 6923 ldr r3, [r4, #16] + 800c3de: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800c3e2: 6023 str r3, [r4, #0] + 800c3e4: 2300 movs r3, #0 + 800c3e6: 6063 str r3, [r4, #4] + 800c3e8: 89a3 ldrh r3, [r4, #12] + 800c3ea: f043 0320 orr.w r3, r3, #32 + 800c3ee: 81a3 strh r3, [r4, #12] + 800c3f0: e7f3 b.n 800c3da <__ssrefill_r+0x22> + ... + +0800c3f4 <__ssvfiscanf_r>: + 800c3f4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 800c3f8: 460c mov r4, r1 + 800c3fa: 2100 movs r1, #0 + 800c3fc: 4606 mov r6, r0 + 800c3fe: f5ad 7d22 sub.w sp, sp, #648 ; 0x288 + 800c402: e9cd 1144 strd r1, r1, [sp, #272] ; 0x110 + 800c406: 49a7 ldr r1, [pc, #668] ; (800c6a4 <__ssvfiscanf_r+0x2b0>) + 800c408: f10d 0804 add.w r8, sp, #4 + 800c40c: 91a0 str r1, [sp, #640] ; 0x280 + 800c40e: 49a6 ldr r1, [pc, #664] ; (800c6a8 <__ssvfiscanf_r+0x2b4>) + 800c410: 4fa6 ldr r7, [pc, #664] ; (800c6ac <__ssvfiscanf_r+0x2b8>) + 800c412: f8df 929c ldr.w r9, [pc, #668] ; 800c6b0 <__ssvfiscanf_r+0x2bc> + 800c416: f8cd 8118 str.w r8, [sp, #280] ; 0x118 + 800c41a: 91a1 str r1, [sp, #644] ; 0x284 + 800c41c: 9300 str r3, [sp, #0] + 800c41e: 7813 ldrb r3, [r2, #0] + 800c420: 2b00 cmp r3, #0 + 800c422: f000 815c beq.w 800c6de <__ssvfiscanf_r+0x2ea> + 800c426: 5dd9 ldrb r1, [r3, r7] + 800c428: 1c55 adds r5, r2, #1 + 800c42a: f011 0108 ands.w r1, r1, #8 + 800c42e: d019 beq.n 800c464 <__ssvfiscanf_r+0x70> + 800c430: 6863 ldr r3, [r4, #4] + 800c432: 2b00 cmp r3, #0 + 800c434: dd0f ble.n 800c456 <__ssvfiscanf_r+0x62> + 800c436: 6823 ldr r3, [r4, #0] + 800c438: 781a ldrb r2, [r3, #0] + 800c43a: 5cba ldrb r2, [r7, r2] + 800c43c: 0712 lsls r2, r2, #28 + 800c43e: d401 bmi.n 800c444 <__ssvfiscanf_r+0x50> + 800c440: 462a mov r2, r5 + 800c442: e7ec b.n 800c41e <__ssvfiscanf_r+0x2a> + 800c444: 9a45 ldr r2, [sp, #276] ; 0x114 + 800c446: 3301 adds r3, #1 + 800c448: 3201 adds r2, #1 + 800c44a: 9245 str r2, [sp, #276] ; 0x114 + 800c44c: 6862 ldr r2, [r4, #4] + 800c44e: 6023 str r3, [r4, #0] + 800c450: 3a01 subs r2, #1 + 800c452: 6062 str r2, [r4, #4] + 800c454: e7ec b.n 800c430 <__ssvfiscanf_r+0x3c> + 800c456: 4621 mov r1, r4 + 800c458: 4630 mov r0, r6 + 800c45a: 9ba1 ldr r3, [sp, #644] ; 0x284 + 800c45c: 4798 blx r3 + 800c45e: 2800 cmp r0, #0 + 800c460: d0e9 beq.n 800c436 <__ssvfiscanf_r+0x42> + 800c462: e7ed b.n 800c440 <__ssvfiscanf_r+0x4c> + 800c464: 2b25 cmp r3, #37 ; 0x25 + 800c466: d012 beq.n 800c48e <__ssvfiscanf_r+0x9a> + 800c468: 469a mov sl, r3 + 800c46a: 6863 ldr r3, [r4, #4] + 800c46c: 2b00 cmp r3, #0 + 800c46e: f340 8094 ble.w 800c59a <__ssvfiscanf_r+0x1a6> + 800c472: 6822 ldr r2, [r4, #0] + 800c474: 7813 ldrb r3, [r2, #0] + 800c476: 4553 cmp r3, sl + 800c478: f040 8131 bne.w 800c6de <__ssvfiscanf_r+0x2ea> + 800c47c: 6863 ldr r3, [r4, #4] + 800c47e: 3201 adds r2, #1 + 800c480: 3b01 subs r3, #1 + 800c482: 6063 str r3, [r4, #4] + 800c484: 9b45 ldr r3, [sp, #276] ; 0x114 + 800c486: 6022 str r2, [r4, #0] + 800c488: 3301 adds r3, #1 + 800c48a: 9345 str r3, [sp, #276] ; 0x114 + 800c48c: e7d8 b.n 800c440 <__ssvfiscanf_r+0x4c> + 800c48e: 9141 str r1, [sp, #260] ; 0x104 + 800c490: 9143 str r1, [sp, #268] ; 0x10c + 800c492: 7853 ldrb r3, [r2, #1] + 800c494: 2b2a cmp r3, #42 ; 0x2a + 800c496: bf04 itt eq + 800c498: 2310 moveq r3, #16 + 800c49a: 1c95 addeq r5, r2, #2 + 800c49c: f04f 020a mov.w r2, #10 + 800c4a0: bf08 it eq + 800c4a2: 9341 streq r3, [sp, #260] ; 0x104 + 800c4a4: 46aa mov sl, r5 + 800c4a6: f81a 1b01 ldrb.w r1, [sl], #1 + 800c4aa: f1a1 0330 sub.w r3, r1, #48 ; 0x30 + 800c4ae: 2b09 cmp r3, #9 + 800c4b0: d91d bls.n 800c4ee <__ssvfiscanf_r+0xfa> + 800c4b2: 2203 movs r2, #3 + 800c4b4: 487e ldr r0, [pc, #504] ; (800c6b0 <__ssvfiscanf_r+0x2bc>) + 800c4b6: f7ff f899 bl 800b5ec + 800c4ba: b140 cbz r0, 800c4ce <__ssvfiscanf_r+0xda> + 800c4bc: 2301 movs r3, #1 + 800c4be: 4655 mov r5, sl + 800c4c0: eba0 0009 sub.w r0, r0, r9 + 800c4c4: fa03 f000 lsl.w r0, r3, r0 + 800c4c8: 9b41 ldr r3, [sp, #260] ; 0x104 + 800c4ca: 4318 orrs r0, r3 + 800c4cc: 9041 str r0, [sp, #260] ; 0x104 + 800c4ce: f815 3b01 ldrb.w r3, [r5], #1 + 800c4d2: 2b78 cmp r3, #120 ; 0x78 + 800c4d4: d806 bhi.n 800c4e4 <__ssvfiscanf_r+0xf0> + 800c4d6: 2b57 cmp r3, #87 ; 0x57 + 800c4d8: d810 bhi.n 800c4fc <__ssvfiscanf_r+0x108> + 800c4da: 2b25 cmp r3, #37 ; 0x25 + 800c4dc: d0c4 beq.n 800c468 <__ssvfiscanf_r+0x74> + 800c4de: d857 bhi.n 800c590 <__ssvfiscanf_r+0x19c> + 800c4e0: 2b00 cmp r3, #0 + 800c4e2: d065 beq.n 800c5b0 <__ssvfiscanf_r+0x1bc> + 800c4e4: 2303 movs r3, #3 + 800c4e6: 9347 str r3, [sp, #284] ; 0x11c + 800c4e8: 230a movs r3, #10 + 800c4ea: 9342 str r3, [sp, #264] ; 0x108 + 800c4ec: e072 b.n 800c5d4 <__ssvfiscanf_r+0x1e0> + 800c4ee: 9b43 ldr r3, [sp, #268] ; 0x10c + 800c4f0: 4655 mov r5, sl + 800c4f2: fb02 1103 mla r1, r2, r3, r1 + 800c4f6: 3930 subs r1, #48 ; 0x30 + 800c4f8: 9143 str r1, [sp, #268] ; 0x10c + 800c4fa: e7d3 b.n 800c4a4 <__ssvfiscanf_r+0xb0> + 800c4fc: f1a3 0258 sub.w r2, r3, #88 ; 0x58 + 800c500: 2a20 cmp r2, #32 + 800c502: d8ef bhi.n 800c4e4 <__ssvfiscanf_r+0xf0> + 800c504: a101 add r1, pc, #4 ; (adr r1, 800c50c <__ssvfiscanf_r+0x118>) + 800c506: f851 f022 ldr.w pc, [r1, r2, lsl #2] + 800c50a: bf00 nop + 800c50c: 0800c5bf .word 0x0800c5bf + 800c510: 0800c4e5 .word 0x0800c4e5 + 800c514: 0800c4e5 .word 0x0800c4e5 + 800c518: 0800c61d .word 0x0800c61d + 800c51c: 0800c4e5 .word 0x0800c4e5 + 800c520: 0800c4e5 .word 0x0800c4e5 + 800c524: 0800c4e5 .word 0x0800c4e5 + 800c528: 0800c4e5 .word 0x0800c4e5 + 800c52c: 0800c4e5 .word 0x0800c4e5 + 800c530: 0800c4e5 .word 0x0800c4e5 + 800c534: 0800c4e5 .word 0x0800c4e5 + 800c538: 0800c633 .word 0x0800c633 + 800c53c: 0800c609 .word 0x0800c609 + 800c540: 0800c597 .word 0x0800c597 + 800c544: 0800c597 .word 0x0800c597 + 800c548: 0800c597 .word 0x0800c597 + 800c54c: 0800c4e5 .word 0x0800c4e5 + 800c550: 0800c60d .word 0x0800c60d + 800c554: 0800c4e5 .word 0x0800c4e5 + 800c558: 0800c4e5 .word 0x0800c4e5 + 800c55c: 0800c4e5 .word 0x0800c4e5 + 800c560: 0800c4e5 .word 0x0800c4e5 + 800c564: 0800c643 .word 0x0800c643 + 800c568: 0800c615 .word 0x0800c615 + 800c56c: 0800c5b7 .word 0x0800c5b7 + 800c570: 0800c4e5 .word 0x0800c4e5 + 800c574: 0800c4e5 .word 0x0800c4e5 + 800c578: 0800c63f .word 0x0800c63f + 800c57c: 0800c4e5 .word 0x0800c4e5 + 800c580: 0800c609 .word 0x0800c609 + 800c584: 0800c4e5 .word 0x0800c4e5 + 800c588: 0800c4e5 .word 0x0800c4e5 + 800c58c: 0800c5bf .word 0x0800c5bf + 800c590: 3b45 subs r3, #69 ; 0x45 + 800c592: 2b02 cmp r3, #2 + 800c594: d8a6 bhi.n 800c4e4 <__ssvfiscanf_r+0xf0> + 800c596: 2305 movs r3, #5 + 800c598: e01b b.n 800c5d2 <__ssvfiscanf_r+0x1de> + 800c59a: 4621 mov r1, r4 + 800c59c: 4630 mov r0, r6 + 800c59e: 9ba1 ldr r3, [sp, #644] ; 0x284 + 800c5a0: 4798 blx r3 + 800c5a2: 2800 cmp r0, #0 + 800c5a4: f43f af65 beq.w 800c472 <__ssvfiscanf_r+0x7e> + 800c5a8: 9844 ldr r0, [sp, #272] ; 0x110 + 800c5aa: 2800 cmp r0, #0 + 800c5ac: f040 808d bne.w 800c6ca <__ssvfiscanf_r+0x2d6> + 800c5b0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800c5b4: e08f b.n 800c6d6 <__ssvfiscanf_r+0x2e2> + 800c5b6: 9a41 ldr r2, [sp, #260] ; 0x104 + 800c5b8: f042 0220 orr.w r2, r2, #32 + 800c5bc: 9241 str r2, [sp, #260] ; 0x104 + 800c5be: 9a41 ldr r2, [sp, #260] ; 0x104 + 800c5c0: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800c5c4: 9241 str r2, [sp, #260] ; 0x104 + 800c5c6: 2210 movs r2, #16 + 800c5c8: 2b6f cmp r3, #111 ; 0x6f + 800c5ca: bf34 ite cc + 800c5cc: 2303 movcc r3, #3 + 800c5ce: 2304 movcs r3, #4 + 800c5d0: 9242 str r2, [sp, #264] ; 0x108 + 800c5d2: 9347 str r3, [sp, #284] ; 0x11c + 800c5d4: 6863 ldr r3, [r4, #4] + 800c5d6: 2b00 cmp r3, #0 + 800c5d8: dd42 ble.n 800c660 <__ssvfiscanf_r+0x26c> + 800c5da: 9b41 ldr r3, [sp, #260] ; 0x104 + 800c5dc: 0659 lsls r1, r3, #25 + 800c5de: d404 bmi.n 800c5ea <__ssvfiscanf_r+0x1f6> + 800c5e0: 6823 ldr r3, [r4, #0] + 800c5e2: 781a ldrb r2, [r3, #0] + 800c5e4: 5cba ldrb r2, [r7, r2] + 800c5e6: 0712 lsls r2, r2, #28 + 800c5e8: d441 bmi.n 800c66e <__ssvfiscanf_r+0x27a> + 800c5ea: 9b47 ldr r3, [sp, #284] ; 0x11c + 800c5ec: 2b02 cmp r3, #2 + 800c5ee: dc50 bgt.n 800c692 <__ssvfiscanf_r+0x29e> + 800c5f0: 466b mov r3, sp + 800c5f2: 4622 mov r2, r4 + 800c5f4: 4630 mov r0, r6 + 800c5f6: a941 add r1, sp, #260 ; 0x104 + 800c5f8: f000 f876 bl 800c6e8 <_scanf_chars> + 800c5fc: 2801 cmp r0, #1 + 800c5fe: d06e beq.n 800c6de <__ssvfiscanf_r+0x2ea> + 800c600: 2802 cmp r0, #2 + 800c602: f47f af1d bne.w 800c440 <__ssvfiscanf_r+0x4c> + 800c606: e7cf b.n 800c5a8 <__ssvfiscanf_r+0x1b4> + 800c608: 220a movs r2, #10 + 800c60a: e7dd b.n 800c5c8 <__ssvfiscanf_r+0x1d4> + 800c60c: 2300 movs r3, #0 + 800c60e: 9342 str r3, [sp, #264] ; 0x108 + 800c610: 2303 movs r3, #3 + 800c612: e7de b.n 800c5d2 <__ssvfiscanf_r+0x1de> + 800c614: 2308 movs r3, #8 + 800c616: 9342 str r3, [sp, #264] ; 0x108 + 800c618: 2304 movs r3, #4 + 800c61a: e7da b.n 800c5d2 <__ssvfiscanf_r+0x1de> + 800c61c: 4629 mov r1, r5 + 800c61e: 4640 mov r0, r8 + 800c620: f000 f9c6 bl 800c9b0 <__sccl> + 800c624: 9b41 ldr r3, [sp, #260] ; 0x104 + 800c626: 4605 mov r5, r0 + 800c628: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800c62c: 9341 str r3, [sp, #260] ; 0x104 + 800c62e: 2301 movs r3, #1 + 800c630: e7cf b.n 800c5d2 <__ssvfiscanf_r+0x1de> + 800c632: 9b41 ldr r3, [sp, #260] ; 0x104 + 800c634: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800c638: 9341 str r3, [sp, #260] ; 0x104 + 800c63a: 2300 movs r3, #0 + 800c63c: e7c9 b.n 800c5d2 <__ssvfiscanf_r+0x1de> + 800c63e: 2302 movs r3, #2 + 800c640: e7c7 b.n 800c5d2 <__ssvfiscanf_r+0x1de> + 800c642: 9841 ldr r0, [sp, #260] ; 0x104 + 800c644: 06c3 lsls r3, r0, #27 + 800c646: f53f aefb bmi.w 800c440 <__ssvfiscanf_r+0x4c> + 800c64a: 9b00 ldr r3, [sp, #0] + 800c64c: 9a45 ldr r2, [sp, #276] ; 0x114 + 800c64e: 1d19 adds r1, r3, #4 + 800c650: 9100 str r1, [sp, #0] + 800c652: 681b ldr r3, [r3, #0] + 800c654: f010 0f01 tst.w r0, #1 + 800c658: bf14 ite ne + 800c65a: 801a strhne r2, [r3, #0] + 800c65c: 601a streq r2, [r3, #0] + 800c65e: e6ef b.n 800c440 <__ssvfiscanf_r+0x4c> + 800c660: 4621 mov r1, r4 + 800c662: 4630 mov r0, r6 + 800c664: 9ba1 ldr r3, [sp, #644] ; 0x284 + 800c666: 4798 blx r3 + 800c668: 2800 cmp r0, #0 + 800c66a: d0b6 beq.n 800c5da <__ssvfiscanf_r+0x1e6> + 800c66c: e79c b.n 800c5a8 <__ssvfiscanf_r+0x1b4> + 800c66e: 9a45 ldr r2, [sp, #276] ; 0x114 + 800c670: 3201 adds r2, #1 + 800c672: 9245 str r2, [sp, #276] ; 0x114 + 800c674: 6862 ldr r2, [r4, #4] + 800c676: 3a01 subs r2, #1 + 800c678: 2a00 cmp r2, #0 + 800c67a: 6062 str r2, [r4, #4] + 800c67c: dd02 ble.n 800c684 <__ssvfiscanf_r+0x290> + 800c67e: 3301 adds r3, #1 + 800c680: 6023 str r3, [r4, #0] + 800c682: e7ad b.n 800c5e0 <__ssvfiscanf_r+0x1ec> + 800c684: 4621 mov r1, r4 + 800c686: 4630 mov r0, r6 + 800c688: 9ba1 ldr r3, [sp, #644] ; 0x284 + 800c68a: 4798 blx r3 + 800c68c: 2800 cmp r0, #0 + 800c68e: d0a7 beq.n 800c5e0 <__ssvfiscanf_r+0x1ec> + 800c690: e78a b.n 800c5a8 <__ssvfiscanf_r+0x1b4> + 800c692: 2b04 cmp r3, #4 + 800c694: dc0e bgt.n 800c6b4 <__ssvfiscanf_r+0x2c0> + 800c696: 466b mov r3, sp + 800c698: 4622 mov r2, r4 + 800c69a: 4630 mov r0, r6 + 800c69c: a941 add r1, sp, #260 ; 0x104 + 800c69e: f000 f87d bl 800c79c <_scanf_i> + 800c6a2: e7ab b.n 800c5fc <__ssvfiscanf_r+0x208> + 800c6a4: 0800c33f .word 0x0800c33f + 800c6a8: 0800c3b9 .word 0x0800c3b9 + 800c6ac: 0800d69e .word 0x0800d69e + 800c6b0: 0800d692 .word 0x0800d692 + 800c6b4: 4b0b ldr r3, [pc, #44] ; (800c6e4 <__ssvfiscanf_r+0x2f0>) + 800c6b6: 2b00 cmp r3, #0 + 800c6b8: f43f aec2 beq.w 800c440 <__ssvfiscanf_r+0x4c> + 800c6bc: 466b mov r3, sp + 800c6be: 4622 mov r2, r4 + 800c6c0: 4630 mov r0, r6 + 800c6c2: a941 add r1, sp, #260 ; 0x104 + 800c6c4: f3af 8000 nop.w + 800c6c8: e798 b.n 800c5fc <__ssvfiscanf_r+0x208> + 800c6ca: 89a3 ldrh r3, [r4, #12] + 800c6cc: f013 0f40 tst.w r3, #64 ; 0x40 + 800c6d0: bf18 it ne + 800c6d2: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff + 800c6d6: f50d 7d22 add.w sp, sp, #648 ; 0x288 + 800c6da: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800c6de: 9844 ldr r0, [sp, #272] ; 0x110 + 800c6e0: e7f9 b.n 800c6d6 <__ssvfiscanf_r+0x2e2> + 800c6e2: bf00 nop + 800c6e4: 00000000 .word 0x00000000 + +0800c6e8 <_scanf_chars>: + 800c6e8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 800c6ec: 4615 mov r5, r2 + 800c6ee: 688a ldr r2, [r1, #8] + 800c6f0: 4680 mov r8, r0 + 800c6f2: 460c mov r4, r1 + 800c6f4: b932 cbnz r2, 800c704 <_scanf_chars+0x1c> + 800c6f6: 698a ldr r2, [r1, #24] + 800c6f8: 2a00 cmp r2, #0 + 800c6fa: bf0c ite eq + 800c6fc: 2201 moveq r2, #1 + 800c6fe: f04f 32ff movne.w r2, #4294967295 ; 0xffffffff + 800c702: 608a str r2, [r1, #8] + 800c704: 2700 movs r7, #0 + 800c706: 6822 ldr r2, [r4, #0] + 800c708: f8df 908c ldr.w r9, [pc, #140] ; 800c798 <_scanf_chars+0xb0> + 800c70c: 06d1 lsls r1, r2, #27 + 800c70e: bf5f itttt pl + 800c710: 681a ldrpl r2, [r3, #0] + 800c712: 1d11 addpl r1, r2, #4 + 800c714: 6019 strpl r1, [r3, #0] + 800c716: 6816 ldrpl r6, [r2, #0] + 800c718: 69a0 ldr r0, [r4, #24] + 800c71a: b188 cbz r0, 800c740 <_scanf_chars+0x58> + 800c71c: 2801 cmp r0, #1 + 800c71e: d107 bne.n 800c730 <_scanf_chars+0x48> + 800c720: 682b ldr r3, [r5, #0] + 800c722: 781a ldrb r2, [r3, #0] + 800c724: 6963 ldr r3, [r4, #20] + 800c726: 5c9b ldrb r3, [r3, r2] + 800c728: b953 cbnz r3, 800c740 <_scanf_chars+0x58> + 800c72a: 2f00 cmp r7, #0 + 800c72c: d031 beq.n 800c792 <_scanf_chars+0xaa> + 800c72e: e022 b.n 800c776 <_scanf_chars+0x8e> + 800c730: 2802 cmp r0, #2 + 800c732: d120 bne.n 800c776 <_scanf_chars+0x8e> 800c734: 682b ldr r3, [r5, #0] - 800c736: b103 cbz r3, 800c73a <_read_r+0x1e> - 800c738: 6023 str r3, [r4, #0] - 800c73a: bd38 pop {r3, r4, r5, pc} - 800c73c: 20001d4c .word 0x20001d4c + 800c736: 781b ldrb r3, [r3, #0] + 800c738: f813 3009 ldrb.w r3, [r3, r9] + 800c73c: 071b lsls r3, r3, #28 + 800c73e: d41a bmi.n 800c776 <_scanf_chars+0x8e> + 800c740: 6823 ldr r3, [r4, #0] + 800c742: 3701 adds r7, #1 + 800c744: 06da lsls r2, r3, #27 + 800c746: bf5e ittt pl + 800c748: 682b ldrpl r3, [r5, #0] + 800c74a: 781b ldrbpl r3, [r3, #0] + 800c74c: f806 3b01 strbpl.w r3, [r6], #1 + 800c750: 682a ldr r2, [r5, #0] + 800c752: 686b ldr r3, [r5, #4] + 800c754: 3201 adds r2, #1 + 800c756: 602a str r2, [r5, #0] + 800c758: 68a2 ldr r2, [r4, #8] + 800c75a: 3b01 subs r3, #1 + 800c75c: 3a01 subs r2, #1 + 800c75e: 606b str r3, [r5, #4] + 800c760: 60a2 str r2, [r4, #8] + 800c762: b142 cbz r2, 800c776 <_scanf_chars+0x8e> + 800c764: 2b00 cmp r3, #0 + 800c766: dcd7 bgt.n 800c718 <_scanf_chars+0x30> + 800c768: 4629 mov r1, r5 + 800c76a: 4640 mov r0, r8 + 800c76c: f8d4 3180 ldr.w r3, [r4, #384] ; 0x180 + 800c770: 4798 blx r3 + 800c772: 2800 cmp r0, #0 + 800c774: d0d0 beq.n 800c718 <_scanf_chars+0x30> + 800c776: 6823 ldr r3, [r4, #0] + 800c778: f013 0310 ands.w r3, r3, #16 + 800c77c: d105 bne.n 800c78a <_scanf_chars+0xa2> + 800c77e: 68e2 ldr r2, [r4, #12] + 800c780: 3201 adds r2, #1 + 800c782: 60e2 str r2, [r4, #12] + 800c784: 69a2 ldr r2, [r4, #24] + 800c786: b102 cbz r2, 800c78a <_scanf_chars+0xa2> + 800c788: 7033 strb r3, [r6, #0] + 800c78a: 2000 movs r0, #0 + 800c78c: 6923 ldr r3, [r4, #16] + 800c78e: 443b add r3, r7 + 800c790: 6123 str r3, [r4, #16] + 800c792: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 800c796: bf00 nop + 800c798: 0800d69e .word 0x0800d69e -0800c740 <__sccl>: - 800c740: b570 push {r4, r5, r6, lr} - 800c742: 780b ldrb r3, [r1, #0] - 800c744: 4604 mov r4, r0 - 800c746: 2b5e cmp r3, #94 ; 0x5e - 800c748: bf13 iteet ne - 800c74a: 2200 movne r2, #0 - 800c74c: 2201 moveq r2, #1 - 800c74e: 784b ldrbeq r3, [r1, #1] - 800c750: 1c48 addne r0, r1, #1 - 800c752: bf08 it eq - 800c754: 1c88 addeq r0, r1, #2 - 800c756: f104 05ff add.w r5, r4, #255 ; 0xff - 800c75a: 1e61 subs r1, r4, #1 - 800c75c: f801 2f01 strb.w r2, [r1, #1]! - 800c760: 42a9 cmp r1, r5 - 800c762: d1fb bne.n 800c75c <__sccl+0x1c> - 800c764: b90b cbnz r3, 800c76a <__sccl+0x2a> - 800c766: 3801 subs r0, #1 - 800c768: bd70 pop {r4, r5, r6, pc} - 800c76a: f082 0201 eor.w r2, r2, #1 - 800c76e: 4605 mov r5, r0 - 800c770: 54e2 strb r2, [r4, r3] - 800c772: 4628 mov r0, r5 - 800c774: f810 1b01 ldrb.w r1, [r0], #1 - 800c778: 292d cmp r1, #45 ; 0x2d - 800c77a: d006 beq.n 800c78a <__sccl+0x4a> - 800c77c: 295d cmp r1, #93 ; 0x5d - 800c77e: d0f3 beq.n 800c768 <__sccl+0x28> - 800c780: b909 cbnz r1, 800c786 <__sccl+0x46> - 800c782: 4628 mov r0, r5 - 800c784: e7f0 b.n 800c768 <__sccl+0x28> - 800c786: 460b mov r3, r1 - 800c788: e7f1 b.n 800c76e <__sccl+0x2e> - 800c78a: 786e ldrb r6, [r5, #1] - 800c78c: 2e5d cmp r6, #93 ; 0x5d - 800c78e: d0fa beq.n 800c786 <__sccl+0x46> - 800c790: 42b3 cmp r3, r6 - 800c792: dcf8 bgt.n 800c786 <__sccl+0x46> - 800c794: 4619 mov r1, r3 - 800c796: 3502 adds r5, #2 - 800c798: 3101 adds r1, #1 - 800c79a: 428e cmp r6, r1 - 800c79c: 5462 strb r2, [r4, r1] - 800c79e: dcfb bgt.n 800c798 <__sccl+0x58> - 800c7a0: 1af1 subs r1, r6, r3 - 800c7a2: 3901 subs r1, #1 - 800c7a4: 42b3 cmp r3, r6 - 800c7a6: bfa8 it ge - 800c7a8: 2100 movge r1, #0 - 800c7aa: 1c58 adds r0, r3, #1 - 800c7ac: 1843 adds r3, r0, r1 - 800c7ae: e7e0 b.n 800c772 <__sccl+0x32> +0800c79c <_scanf_i>: + 800c79c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800c7a0: 460c mov r4, r1 + 800c7a2: 4698 mov r8, r3 + 800c7a4: 4b75 ldr r3, [pc, #468] ; (800c97c <_scanf_i+0x1e0>) + 800c7a6: b087 sub sp, #28 + 800c7a8: 4682 mov sl, r0 + 800c7aa: 4616 mov r6, r2 + 800c7ac: e893 0007 ldmia.w r3, {r0, r1, r2} + 800c7b0: ab03 add r3, sp, #12 + 800c7b2: e883 0007 stmia.w r3, {r0, r1, r2} + 800c7b6: 4b72 ldr r3, [pc, #456] ; (800c980 <_scanf_i+0x1e4>) + 800c7b8: 69a1 ldr r1, [r4, #24] + 800c7ba: 4a72 ldr r2, [pc, #456] ; (800c984 <_scanf_i+0x1e8>) + 800c7bc: 4627 mov r7, r4 + 800c7be: 2903 cmp r1, #3 + 800c7c0: bf18 it ne + 800c7c2: 461a movne r2, r3 + 800c7c4: 68a3 ldr r3, [r4, #8] + 800c7c6: 9201 str r2, [sp, #4] + 800c7c8: 1e5a subs r2, r3, #1 + 800c7ca: f5b2 7fae cmp.w r2, #348 ; 0x15c + 800c7ce: bf81 itttt hi + 800c7d0: f46f 75ae mvnhi.w r5, #348 ; 0x15c + 800c7d4: eb03 0905 addhi.w r9, r3, r5 + 800c7d8: f240 135d movwhi r3, #349 ; 0x15d + 800c7dc: 60a3 strhi r3, [r4, #8] + 800c7de: f857 3b1c ldr.w r3, [r7], #28 + 800c7e2: bf98 it ls + 800c7e4: f04f 0900 movls.w r9, #0 + 800c7e8: 463d mov r5, r7 + 800c7ea: f04f 0b00 mov.w fp, #0 + 800c7ee: f443 6350 orr.w r3, r3, #3328 ; 0xd00 + 800c7f2: 6023 str r3, [r4, #0] + 800c7f4: 6831 ldr r1, [r6, #0] + 800c7f6: ab03 add r3, sp, #12 + 800c7f8: 2202 movs r2, #2 + 800c7fa: 7809 ldrb r1, [r1, #0] + 800c7fc: f853 002b ldr.w r0, [r3, fp, lsl #2] + 800c800: f7fe fef4 bl 800b5ec + 800c804: b328 cbz r0, 800c852 <_scanf_i+0xb6> + 800c806: f1bb 0f01 cmp.w fp, #1 + 800c80a: d159 bne.n 800c8c0 <_scanf_i+0x124> + 800c80c: 6862 ldr r2, [r4, #4] + 800c80e: b92a cbnz r2, 800c81c <_scanf_i+0x80> + 800c810: 2308 movs r3, #8 + 800c812: 6822 ldr r2, [r4, #0] + 800c814: 6063 str r3, [r4, #4] + 800c816: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800c81a: 6022 str r2, [r4, #0] + 800c81c: 6822 ldr r2, [r4, #0] + 800c81e: f422 62a0 bic.w r2, r2, #1280 ; 0x500 + 800c822: 6022 str r2, [r4, #0] + 800c824: 68a2 ldr r2, [r4, #8] + 800c826: 1e51 subs r1, r2, #1 + 800c828: 60a1 str r1, [r4, #8] + 800c82a: b192 cbz r2, 800c852 <_scanf_i+0xb6> + 800c82c: 6832 ldr r2, [r6, #0] + 800c82e: 1c51 adds r1, r2, #1 + 800c830: 6031 str r1, [r6, #0] + 800c832: 7812 ldrb r2, [r2, #0] + 800c834: f805 2b01 strb.w r2, [r5], #1 + 800c838: 6872 ldr r2, [r6, #4] + 800c83a: 3a01 subs r2, #1 + 800c83c: 2a00 cmp r2, #0 + 800c83e: 6072 str r2, [r6, #4] + 800c840: dc07 bgt.n 800c852 <_scanf_i+0xb6> + 800c842: 4631 mov r1, r6 + 800c844: 4650 mov r0, sl + 800c846: f8d4 2180 ldr.w r2, [r4, #384] ; 0x180 + 800c84a: 4790 blx r2 + 800c84c: 2800 cmp r0, #0 + 800c84e: f040 8085 bne.w 800c95c <_scanf_i+0x1c0> + 800c852: f10b 0b01 add.w fp, fp, #1 + 800c856: f1bb 0f03 cmp.w fp, #3 + 800c85a: d1cb bne.n 800c7f4 <_scanf_i+0x58> + 800c85c: 6863 ldr r3, [r4, #4] + 800c85e: b90b cbnz r3, 800c864 <_scanf_i+0xc8> + 800c860: 230a movs r3, #10 + 800c862: 6063 str r3, [r4, #4] + 800c864: 6863 ldr r3, [r4, #4] + 800c866: 4948 ldr r1, [pc, #288] ; (800c988 <_scanf_i+0x1ec>) + 800c868: 6960 ldr r0, [r4, #20] + 800c86a: 1ac9 subs r1, r1, r3 + 800c86c: f000 f8a0 bl 800c9b0 <__sccl> + 800c870: f04f 0b00 mov.w fp, #0 + 800c874: 68a3 ldr r3, [r4, #8] + 800c876: 6822 ldr r2, [r4, #0] + 800c878: 2b00 cmp r3, #0 + 800c87a: d03d beq.n 800c8f8 <_scanf_i+0x15c> + 800c87c: 6831 ldr r1, [r6, #0] + 800c87e: 6960 ldr r0, [r4, #20] + 800c880: f891 c000 ldrb.w ip, [r1] + 800c884: f810 000c ldrb.w r0, [r0, ip] + 800c888: 2800 cmp r0, #0 + 800c88a: d035 beq.n 800c8f8 <_scanf_i+0x15c> + 800c88c: f1bc 0f30 cmp.w ip, #48 ; 0x30 + 800c890: d124 bne.n 800c8dc <_scanf_i+0x140> + 800c892: 0510 lsls r0, r2, #20 + 800c894: d522 bpl.n 800c8dc <_scanf_i+0x140> + 800c896: f10b 0b01 add.w fp, fp, #1 + 800c89a: f1b9 0f00 cmp.w r9, #0 + 800c89e: d003 beq.n 800c8a8 <_scanf_i+0x10c> + 800c8a0: 3301 adds r3, #1 + 800c8a2: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 800c8a6: 60a3 str r3, [r4, #8] + 800c8a8: 6873 ldr r3, [r6, #4] + 800c8aa: 3b01 subs r3, #1 + 800c8ac: 2b00 cmp r3, #0 + 800c8ae: 6073 str r3, [r6, #4] + 800c8b0: dd1b ble.n 800c8ea <_scanf_i+0x14e> + 800c8b2: 6833 ldr r3, [r6, #0] + 800c8b4: 3301 adds r3, #1 + 800c8b6: 6033 str r3, [r6, #0] + 800c8b8: 68a3 ldr r3, [r4, #8] + 800c8ba: 3b01 subs r3, #1 + 800c8bc: 60a3 str r3, [r4, #8] + 800c8be: e7d9 b.n 800c874 <_scanf_i+0xd8> + 800c8c0: f1bb 0f02 cmp.w fp, #2 + 800c8c4: d1ae bne.n 800c824 <_scanf_i+0x88> + 800c8c6: 6822 ldr r2, [r4, #0] + 800c8c8: f402 61c0 and.w r1, r2, #1536 ; 0x600 + 800c8cc: f5b1 7f00 cmp.w r1, #512 ; 0x200 + 800c8d0: d1bf bne.n 800c852 <_scanf_i+0xb6> + 800c8d2: 2310 movs r3, #16 + 800c8d4: f442 7280 orr.w r2, r2, #256 ; 0x100 + 800c8d8: 6063 str r3, [r4, #4] + 800c8da: e7a2 b.n 800c822 <_scanf_i+0x86> + 800c8dc: f422 6210 bic.w r2, r2, #2304 ; 0x900 + 800c8e0: 6022 str r2, [r4, #0] + 800c8e2: 780b ldrb r3, [r1, #0] + 800c8e4: f805 3b01 strb.w r3, [r5], #1 + 800c8e8: e7de b.n 800c8a8 <_scanf_i+0x10c> + 800c8ea: 4631 mov r1, r6 + 800c8ec: 4650 mov r0, sl + 800c8ee: f8d4 3180 ldr.w r3, [r4, #384] ; 0x180 + 800c8f2: 4798 blx r3 + 800c8f4: 2800 cmp r0, #0 + 800c8f6: d0df beq.n 800c8b8 <_scanf_i+0x11c> + 800c8f8: 6823 ldr r3, [r4, #0] + 800c8fa: 05db lsls r3, r3, #23 + 800c8fc: d50d bpl.n 800c91a <_scanf_i+0x17e> + 800c8fe: 42bd cmp r5, r7 + 800c900: d909 bls.n 800c916 <_scanf_i+0x17a> + 800c902: f815 1c01 ldrb.w r1, [r5, #-1] + 800c906: 4632 mov r2, r6 + 800c908: 4650 mov r0, sl + 800c90a: f8d4 317c ldr.w r3, [r4, #380] ; 0x17c + 800c90e: f105 39ff add.w r9, r5, #4294967295 ; 0xffffffff + 800c912: 4798 blx r3 + 800c914: 464d mov r5, r9 + 800c916: 42bd cmp r5, r7 + 800c918: d02d beq.n 800c976 <_scanf_i+0x1da> + 800c91a: 6822 ldr r2, [r4, #0] + 800c91c: f012 0210 ands.w r2, r2, #16 + 800c920: d113 bne.n 800c94a <_scanf_i+0x1ae> + 800c922: 702a strb r2, [r5, #0] + 800c924: 4639 mov r1, r7 + 800c926: 6863 ldr r3, [r4, #4] + 800c928: 4650 mov r0, sl + 800c92a: 9e01 ldr r6, [sp, #4] + 800c92c: 47b0 blx r6 + 800c92e: 6821 ldr r1, [r4, #0] + 800c930: f8d8 3000 ldr.w r3, [r8] + 800c934: f011 0f20 tst.w r1, #32 + 800c938: d013 beq.n 800c962 <_scanf_i+0x1c6> + 800c93a: 1d1a adds r2, r3, #4 + 800c93c: f8c8 2000 str.w r2, [r8] + 800c940: 681b ldr r3, [r3, #0] + 800c942: 6018 str r0, [r3, #0] + 800c944: 68e3 ldr r3, [r4, #12] + 800c946: 3301 adds r3, #1 + 800c948: 60e3 str r3, [r4, #12] + 800c94a: 2000 movs r0, #0 + 800c94c: 1bed subs r5, r5, r7 + 800c94e: 44ab add fp, r5 + 800c950: 6925 ldr r5, [r4, #16] + 800c952: 445d add r5, fp + 800c954: 6125 str r5, [r4, #16] + 800c956: b007 add sp, #28 + 800c958: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800c95c: f04f 0b00 mov.w fp, #0 + 800c960: e7ca b.n 800c8f8 <_scanf_i+0x15c> + 800c962: 1d1a adds r2, r3, #4 + 800c964: f8c8 2000 str.w r2, [r8] + 800c968: 681b ldr r3, [r3, #0] + 800c96a: f011 0f01 tst.w r1, #1 + 800c96e: bf14 ite ne + 800c970: 8018 strhne r0, [r3, #0] + 800c972: 6018 streq r0, [r3, #0] + 800c974: e7e6 b.n 800c944 <_scanf_i+0x1a8> + 800c976: 2001 movs r0, #1 + 800c978: e7ed b.n 800c956 <_scanf_i+0x1ba> + 800c97a: bf00 nop + 800c97c: 0800d258 .word 0x0800d258 + 800c980: 0800c1d1 .word 0x0800c1d1 + 800c984: 0800cba1 .word 0x0800cba1 + 800c988: 0800d7c1 .word 0x0800d7c1 -0800c7b0 <_raise_r>: - 800c7b0: 291f cmp r1, #31 - 800c7b2: b538 push {r3, r4, r5, lr} - 800c7b4: 4604 mov r4, r0 - 800c7b6: 460d mov r5, r1 - 800c7b8: d904 bls.n 800c7c4 <_raise_r+0x14> - 800c7ba: 2316 movs r3, #22 - 800c7bc: 6003 str r3, [r0, #0] - 800c7be: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800c7c2: bd38 pop {r3, r4, r5, pc} - 800c7c4: 6c42 ldr r2, [r0, #68] ; 0x44 - 800c7c6: b112 cbz r2, 800c7ce <_raise_r+0x1e> - 800c7c8: f852 3021 ldr.w r3, [r2, r1, lsl #2] - 800c7cc: b94b cbnz r3, 800c7e2 <_raise_r+0x32> - 800c7ce: 4620 mov r0, r4 - 800c7d0: f000 f830 bl 800c834 <_getpid_r> - 800c7d4: 462a mov r2, r5 - 800c7d6: 4601 mov r1, r0 - 800c7d8: 4620 mov r0, r4 - 800c7da: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 800c7de: f000 b817 b.w 800c810 <_kill_r> - 800c7e2: 2b01 cmp r3, #1 - 800c7e4: d00a beq.n 800c7fc <_raise_r+0x4c> - 800c7e6: 1c59 adds r1, r3, #1 - 800c7e8: d103 bne.n 800c7f2 <_raise_r+0x42> - 800c7ea: 2316 movs r3, #22 - 800c7ec: 6003 str r3, [r0, #0] - 800c7ee: 2001 movs r0, #1 - 800c7f0: e7e7 b.n 800c7c2 <_raise_r+0x12> - 800c7f2: 2400 movs r4, #0 - 800c7f4: 4628 mov r0, r5 - 800c7f6: f842 4025 str.w r4, [r2, r5, lsl #2] - 800c7fa: 4798 blx r3 - 800c7fc: 2000 movs r0, #0 - 800c7fe: e7e0 b.n 800c7c2 <_raise_r+0x12> +0800c98c <_read_r>: + 800c98c: b538 push {r3, r4, r5, lr} + 800c98e: 4604 mov r4, r0 + 800c990: 4608 mov r0, r1 + 800c992: 4611 mov r1, r2 + 800c994: 2200 movs r2, #0 + 800c996: 4d05 ldr r5, [pc, #20] ; (800c9ac <_read_r+0x20>) + 800c998: 602a str r2, [r5, #0] + 800c99a: 461a mov r2, r3 + 800c99c: f7f8 fa4d bl 8004e3a <_read> + 800c9a0: 1c43 adds r3, r0, #1 + 800c9a2: d102 bne.n 800c9aa <_read_r+0x1e> + 800c9a4: 682b ldr r3, [r5, #0] + 800c9a6: b103 cbz r3, 800c9aa <_read_r+0x1e> + 800c9a8: 6023 str r3, [r4, #0] + 800c9aa: bd38 pop {r3, r4, r5, pc} + 800c9ac: 200033cc .word 0x200033cc -0800c800 : - 800c800: 4b02 ldr r3, [pc, #8] ; (800c80c ) - 800c802: 4601 mov r1, r0 - 800c804: 6818 ldr r0, [r3, #0] - 800c806: f7ff bfd3 b.w 800c7b0 <_raise_r> - 800c80a: bf00 nop - 800c80c: 20000014 .word 0x20000014 +0800c9b0 <__sccl>: + 800c9b0: b570 push {r4, r5, r6, lr} + 800c9b2: 780b ldrb r3, [r1, #0] + 800c9b4: 4604 mov r4, r0 + 800c9b6: 2b5e cmp r3, #94 ; 0x5e + 800c9b8: bf13 iteet ne + 800c9ba: 2200 movne r2, #0 + 800c9bc: 2201 moveq r2, #1 + 800c9be: 784b ldrbeq r3, [r1, #1] + 800c9c0: 1c48 addne r0, r1, #1 + 800c9c2: bf08 it eq + 800c9c4: 1c88 addeq r0, r1, #2 + 800c9c6: f104 05ff add.w r5, r4, #255 ; 0xff + 800c9ca: 1e61 subs r1, r4, #1 + 800c9cc: f801 2f01 strb.w r2, [r1, #1]! + 800c9d0: 42a9 cmp r1, r5 + 800c9d2: d1fb bne.n 800c9cc <__sccl+0x1c> + 800c9d4: b90b cbnz r3, 800c9da <__sccl+0x2a> + 800c9d6: 3801 subs r0, #1 + 800c9d8: bd70 pop {r4, r5, r6, pc} + 800c9da: f082 0201 eor.w r2, r2, #1 + 800c9de: 4605 mov r5, r0 + 800c9e0: 54e2 strb r2, [r4, r3] + 800c9e2: 4628 mov r0, r5 + 800c9e4: f810 1b01 ldrb.w r1, [r0], #1 + 800c9e8: 292d cmp r1, #45 ; 0x2d + 800c9ea: d006 beq.n 800c9fa <__sccl+0x4a> + 800c9ec: 295d cmp r1, #93 ; 0x5d + 800c9ee: d0f3 beq.n 800c9d8 <__sccl+0x28> + 800c9f0: b909 cbnz r1, 800c9f6 <__sccl+0x46> + 800c9f2: 4628 mov r0, r5 + 800c9f4: e7f0 b.n 800c9d8 <__sccl+0x28> + 800c9f6: 460b mov r3, r1 + 800c9f8: e7f1 b.n 800c9de <__sccl+0x2e> + 800c9fa: 786e ldrb r6, [r5, #1] + 800c9fc: 2e5d cmp r6, #93 ; 0x5d + 800c9fe: d0fa beq.n 800c9f6 <__sccl+0x46> + 800ca00: 42b3 cmp r3, r6 + 800ca02: dcf8 bgt.n 800c9f6 <__sccl+0x46> + 800ca04: 4619 mov r1, r3 + 800ca06: 3502 adds r5, #2 + 800ca08: 3101 adds r1, #1 + 800ca0a: 428e cmp r6, r1 + 800ca0c: 5462 strb r2, [r4, r1] + 800ca0e: dcfb bgt.n 800ca08 <__sccl+0x58> + 800ca10: 1af1 subs r1, r6, r3 + 800ca12: 3901 subs r1, #1 + 800ca14: 42b3 cmp r3, r6 + 800ca16: bfa8 it ge + 800ca18: 2100 movge r1, #0 + 800ca1a: 1c58 adds r0, r3, #1 + 800ca1c: 1843 adds r3, r0, r1 + 800ca1e: e7e0 b.n 800c9e2 <__sccl+0x32> -0800c810 <_kill_r>: - 800c810: b538 push {r3, r4, r5, lr} - 800c812: 2300 movs r3, #0 - 800c814: 4d06 ldr r5, [pc, #24] ; (800c830 <_kill_r+0x20>) - 800c816: 4604 mov r4, r0 - 800c818: 4608 mov r0, r1 - 800c81a: 4611 mov r1, r2 - 800c81c: 602b str r3, [r5, #0] - 800c81e: f7f8 f9bc bl 8004b9a <_kill> - 800c822: 1c43 adds r3, r0, #1 - 800c824: d102 bne.n 800c82c <_kill_r+0x1c> - 800c826: 682b ldr r3, [r5, #0] - 800c828: b103 cbz r3, 800c82c <_kill_r+0x1c> - 800c82a: 6023 str r3, [r4, #0] - 800c82c: bd38 pop {r3, r4, r5, pc} - 800c82e: bf00 nop - 800c830: 20001d4c .word 0x20001d4c +0800ca20 <_raise_r>: + 800ca20: 291f cmp r1, #31 + 800ca22: b538 push {r3, r4, r5, lr} + 800ca24: 4604 mov r4, r0 + 800ca26: 460d mov r5, r1 + 800ca28: d904 bls.n 800ca34 <_raise_r+0x14> + 800ca2a: 2316 movs r3, #22 + 800ca2c: 6003 str r3, [r0, #0] + 800ca2e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800ca32: bd38 pop {r3, r4, r5, pc} + 800ca34: 6c42 ldr r2, [r0, #68] ; 0x44 + 800ca36: b112 cbz r2, 800ca3e <_raise_r+0x1e> + 800ca38: f852 3021 ldr.w r3, [r2, r1, lsl #2] + 800ca3c: b94b cbnz r3, 800ca52 <_raise_r+0x32> + 800ca3e: 4620 mov r0, r4 + 800ca40: f000 f830 bl 800caa4 <_getpid_r> + 800ca44: 462a mov r2, r5 + 800ca46: 4601 mov r1, r0 + 800ca48: 4620 mov r0, r4 + 800ca4a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 800ca4e: f000 b817 b.w 800ca80 <_kill_r> + 800ca52: 2b01 cmp r3, #1 + 800ca54: d00a beq.n 800ca6c <_raise_r+0x4c> + 800ca56: 1c59 adds r1, r3, #1 + 800ca58: d103 bne.n 800ca62 <_raise_r+0x42> + 800ca5a: 2316 movs r3, #22 + 800ca5c: 6003 str r3, [r0, #0] + 800ca5e: 2001 movs r0, #1 + 800ca60: e7e7 b.n 800ca32 <_raise_r+0x12> + 800ca62: 2400 movs r4, #0 + 800ca64: 4628 mov r0, r5 + 800ca66: f842 4025 str.w r4, [r2, r5, lsl #2] + 800ca6a: 4798 blx r3 + 800ca6c: 2000 movs r0, #0 + 800ca6e: e7e0 b.n 800ca32 <_raise_r+0x12> -0800c834 <_getpid_r>: - 800c834: f7f8 b9aa b.w 8004b8c <_getpid> +0800ca70 : + 800ca70: 4b02 ldr r3, [pc, #8] ; (800ca7c ) + 800ca72: 4601 mov r1, r0 + 800ca74: 6818 ldr r0, [r3, #0] + 800ca76: f7ff bfd3 b.w 800ca20 <_raise_r> + 800ca7a: bf00 nop + 800ca7c: 20000014 .word 0x20000014 -0800c838 <_strtol_l.constprop.0>: - 800c838: 2b01 cmp r3, #1 - 800c83a: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 800c83e: 4680 mov r8, r0 - 800c840: d001 beq.n 800c846 <_strtol_l.constprop.0+0xe> - 800c842: 2b24 cmp r3, #36 ; 0x24 - 800c844: d906 bls.n 800c854 <_strtol_l.constprop.0+0x1c> - 800c846: f7fc f96d bl 8008b24 <__errno> - 800c84a: 2316 movs r3, #22 - 800c84c: 6003 str r3, [r0, #0] - 800c84e: 2000 movs r0, #0 - 800c850: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 800c854: 460d mov r5, r1 - 800c856: 4f35 ldr r7, [pc, #212] ; (800c92c <_strtol_l.constprop.0+0xf4>) - 800c858: 4628 mov r0, r5 - 800c85a: f815 4b01 ldrb.w r4, [r5], #1 - 800c85e: 5de6 ldrb r6, [r4, r7] - 800c860: f016 0608 ands.w r6, r6, #8 - 800c864: d1f8 bne.n 800c858 <_strtol_l.constprop.0+0x20> - 800c866: 2c2d cmp r4, #45 ; 0x2d - 800c868: d12f bne.n 800c8ca <_strtol_l.constprop.0+0x92> - 800c86a: 2601 movs r6, #1 - 800c86c: 782c ldrb r4, [r5, #0] - 800c86e: 1c85 adds r5, r0, #2 - 800c870: 2b00 cmp r3, #0 - 800c872: d057 beq.n 800c924 <_strtol_l.constprop.0+0xec> - 800c874: 2b10 cmp r3, #16 - 800c876: d109 bne.n 800c88c <_strtol_l.constprop.0+0x54> - 800c878: 2c30 cmp r4, #48 ; 0x30 - 800c87a: d107 bne.n 800c88c <_strtol_l.constprop.0+0x54> - 800c87c: 7828 ldrb r0, [r5, #0] - 800c87e: f000 00df and.w r0, r0, #223 ; 0xdf - 800c882: 2858 cmp r0, #88 ; 0x58 - 800c884: d149 bne.n 800c91a <_strtol_l.constprop.0+0xe2> - 800c886: 2310 movs r3, #16 - 800c888: 786c ldrb r4, [r5, #1] - 800c88a: 3502 adds r5, #2 - 800c88c: 2700 movs r7, #0 - 800c88e: f106 4e00 add.w lr, r6, #2147483648 ; 0x80000000 - 800c892: f10e 3eff add.w lr, lr, #4294967295 ; 0xffffffff - 800c896: fbbe f9f3 udiv r9, lr, r3 - 800c89a: 4638 mov r0, r7 - 800c89c: fb03 ea19 mls sl, r3, r9, lr - 800c8a0: f1a4 0c30 sub.w ip, r4, #48 ; 0x30 - 800c8a4: f1bc 0f09 cmp.w ip, #9 - 800c8a8: d814 bhi.n 800c8d4 <_strtol_l.constprop.0+0x9c> - 800c8aa: 4664 mov r4, ip - 800c8ac: 42a3 cmp r3, r4 - 800c8ae: dd22 ble.n 800c8f6 <_strtol_l.constprop.0+0xbe> - 800c8b0: 2f00 cmp r7, #0 - 800c8b2: db1d blt.n 800c8f0 <_strtol_l.constprop.0+0xb8> - 800c8b4: 4581 cmp r9, r0 - 800c8b6: d31b bcc.n 800c8f0 <_strtol_l.constprop.0+0xb8> - 800c8b8: d101 bne.n 800c8be <_strtol_l.constprop.0+0x86> - 800c8ba: 45a2 cmp sl, r4 - 800c8bc: db18 blt.n 800c8f0 <_strtol_l.constprop.0+0xb8> - 800c8be: 2701 movs r7, #1 - 800c8c0: fb00 4003 mla r0, r0, r3, r4 - 800c8c4: f815 4b01 ldrb.w r4, [r5], #1 - 800c8c8: e7ea b.n 800c8a0 <_strtol_l.constprop.0+0x68> - 800c8ca: 2c2b cmp r4, #43 ; 0x2b - 800c8cc: bf04 itt eq - 800c8ce: 782c ldrbeq r4, [r5, #0] - 800c8d0: 1c85 addeq r5, r0, #2 - 800c8d2: e7cd b.n 800c870 <_strtol_l.constprop.0+0x38> - 800c8d4: f1a4 0c41 sub.w ip, r4, #65 ; 0x41 - 800c8d8: f1bc 0f19 cmp.w ip, #25 - 800c8dc: d801 bhi.n 800c8e2 <_strtol_l.constprop.0+0xaa> - 800c8de: 3c37 subs r4, #55 ; 0x37 - 800c8e0: e7e4 b.n 800c8ac <_strtol_l.constprop.0+0x74> - 800c8e2: f1a4 0c61 sub.w ip, r4, #97 ; 0x61 - 800c8e6: f1bc 0f19 cmp.w ip, #25 - 800c8ea: d804 bhi.n 800c8f6 <_strtol_l.constprop.0+0xbe> - 800c8ec: 3c57 subs r4, #87 ; 0x57 - 800c8ee: e7dd b.n 800c8ac <_strtol_l.constprop.0+0x74> - 800c8f0: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff - 800c8f4: e7e6 b.n 800c8c4 <_strtol_l.constprop.0+0x8c> - 800c8f6: 2f00 cmp r7, #0 - 800c8f8: da07 bge.n 800c90a <_strtol_l.constprop.0+0xd2> - 800c8fa: 2322 movs r3, #34 ; 0x22 - 800c8fc: 4670 mov r0, lr - 800c8fe: f8c8 3000 str.w r3, [r8] - 800c902: 2a00 cmp r2, #0 - 800c904: d0a4 beq.n 800c850 <_strtol_l.constprop.0+0x18> - 800c906: 1e69 subs r1, r5, #1 - 800c908: e005 b.n 800c916 <_strtol_l.constprop.0+0xde> - 800c90a: b106 cbz r6, 800c90e <_strtol_l.constprop.0+0xd6> - 800c90c: 4240 negs r0, r0 - 800c90e: 2a00 cmp r2, #0 - 800c910: d09e beq.n 800c850 <_strtol_l.constprop.0+0x18> - 800c912: 2f00 cmp r7, #0 - 800c914: d1f7 bne.n 800c906 <_strtol_l.constprop.0+0xce> - 800c916: 6011 str r1, [r2, #0] - 800c918: e79a b.n 800c850 <_strtol_l.constprop.0+0x18> - 800c91a: 2430 movs r4, #48 ; 0x30 - 800c91c: 2b00 cmp r3, #0 - 800c91e: d1b5 bne.n 800c88c <_strtol_l.constprop.0+0x54> - 800c920: 2308 movs r3, #8 - 800c922: e7b3 b.n 800c88c <_strtol_l.constprop.0+0x54> - 800c924: 2c30 cmp r4, #48 ; 0x30 - 800c926: d0a9 beq.n 800c87c <_strtol_l.constprop.0+0x44> - 800c928: 230a movs r3, #10 - 800c92a: e7af b.n 800c88c <_strtol_l.constprop.0+0x54> - 800c92c: 0800d40e .word 0x0800d40e +0800ca80 <_kill_r>: + 800ca80: b538 push {r3, r4, r5, lr} + 800ca82: 2300 movs r3, #0 + 800ca84: 4d06 ldr r5, [pc, #24] ; (800caa0 <_kill_r+0x20>) + 800ca86: 4604 mov r4, r0 + 800ca88: 4608 mov r0, r1 + 800ca8a: 4611 mov r1, r2 + 800ca8c: 602b str r3, [r5, #0] + 800ca8e: f7f8 f9ba bl 8004e06 <_kill> + 800ca92: 1c43 adds r3, r0, #1 + 800ca94: d102 bne.n 800ca9c <_kill_r+0x1c> + 800ca96: 682b ldr r3, [r5, #0] + 800ca98: b103 cbz r3, 800ca9c <_kill_r+0x1c> + 800ca9a: 6023 str r3, [r4, #0] + 800ca9c: bd38 pop {r3, r4, r5, pc} + 800ca9e: bf00 nop + 800caa0: 200033cc .word 0x200033cc -0800c930 <_strtol_r>: - 800c930: f7ff bf82 b.w 800c838 <_strtol_l.constprop.0> +0800caa4 <_getpid_r>: + 800caa4: f7f8 b9a8 b.w 8004df8 <_getpid> -0800c934 <__submore>: - 800c934: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 800c938: 460c mov r4, r1 - 800c93a: 6b49 ldr r1, [r1, #52] ; 0x34 - 800c93c: f104 0344 add.w r3, r4, #68 ; 0x44 - 800c940: 4299 cmp r1, r3 - 800c942: d11b bne.n 800c97c <__submore+0x48> - 800c944: f44f 6180 mov.w r1, #1024 ; 0x400 - 800c948: f7fc fb80 bl 800904c <_malloc_r> - 800c94c: b918 cbnz r0, 800c956 <__submore+0x22> - 800c94e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800c952: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 800c956: f44f 6380 mov.w r3, #1024 ; 0x400 - 800c95a: 63a3 str r3, [r4, #56] ; 0x38 - 800c95c: f894 3046 ldrb.w r3, [r4, #70] ; 0x46 - 800c960: 6360 str r0, [r4, #52] ; 0x34 - 800c962: f880 33ff strb.w r3, [r0, #1023] ; 0x3ff - 800c966: f894 3045 ldrb.w r3, [r4, #69] ; 0x45 - 800c96a: f200 30fd addw r0, r0, #1021 ; 0x3fd - 800c96e: 7043 strb r3, [r0, #1] - 800c970: f894 3044 ldrb.w r3, [r4, #68] ; 0x44 - 800c974: 7003 strb r3, [r0, #0] - 800c976: 6020 str r0, [r4, #0] - 800c978: 2000 movs r0, #0 - 800c97a: e7ea b.n 800c952 <__submore+0x1e> - 800c97c: 6ba6 ldr r6, [r4, #56] ; 0x38 - 800c97e: 0077 lsls r7, r6, #1 - 800c980: 463a mov r2, r7 - 800c982: f7ff fb75 bl 800c070 <_realloc_r> - 800c986: 4605 mov r5, r0 - 800c988: 2800 cmp r0, #0 - 800c98a: d0e0 beq.n 800c94e <__submore+0x1a> - 800c98c: eb00 0806 add.w r8, r0, r6 - 800c990: 4601 mov r1, r0 - 800c992: 4632 mov r2, r6 - 800c994: 4640 mov r0, r8 - 800c996: f7fc fadb bl 8008f50 - 800c99a: e9c4 570d strd r5, r7, [r4, #52] ; 0x34 - 800c99e: f8c4 8000 str.w r8, [r4] - 800c9a2: e7e9 b.n 800c978 <__submore+0x44> +0800caa8 <_strtol_l.constprop.0>: + 800caa8: 2b01 cmp r3, #1 + 800caaa: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 800caae: 4680 mov r8, r0 + 800cab0: d001 beq.n 800cab6 <_strtol_l.constprop.0+0xe> + 800cab2: 2b24 cmp r3, #36 ; 0x24 + 800cab4: d906 bls.n 800cac4 <_strtol_l.constprop.0+0x1c> + 800cab6: f7fc f96b bl 8008d90 <__errno> + 800caba: 2316 movs r3, #22 + 800cabc: 6003 str r3, [r0, #0] + 800cabe: 2000 movs r0, #0 + 800cac0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800cac4: 460d mov r5, r1 + 800cac6: 4f35 ldr r7, [pc, #212] ; (800cb9c <_strtol_l.constprop.0+0xf4>) + 800cac8: 4628 mov r0, r5 + 800caca: f815 4b01 ldrb.w r4, [r5], #1 + 800cace: 5de6 ldrb r6, [r4, r7] + 800cad0: f016 0608 ands.w r6, r6, #8 + 800cad4: d1f8 bne.n 800cac8 <_strtol_l.constprop.0+0x20> + 800cad6: 2c2d cmp r4, #45 ; 0x2d + 800cad8: d12f bne.n 800cb3a <_strtol_l.constprop.0+0x92> + 800cada: 2601 movs r6, #1 + 800cadc: 782c ldrb r4, [r5, #0] + 800cade: 1c85 adds r5, r0, #2 + 800cae0: 2b00 cmp r3, #0 + 800cae2: d057 beq.n 800cb94 <_strtol_l.constprop.0+0xec> + 800cae4: 2b10 cmp r3, #16 + 800cae6: d109 bne.n 800cafc <_strtol_l.constprop.0+0x54> + 800cae8: 2c30 cmp r4, #48 ; 0x30 + 800caea: d107 bne.n 800cafc <_strtol_l.constprop.0+0x54> + 800caec: 7828 ldrb r0, [r5, #0] + 800caee: f000 00df and.w r0, r0, #223 ; 0xdf + 800caf2: 2858 cmp r0, #88 ; 0x58 + 800caf4: d149 bne.n 800cb8a <_strtol_l.constprop.0+0xe2> + 800caf6: 2310 movs r3, #16 + 800caf8: 786c ldrb r4, [r5, #1] + 800cafa: 3502 adds r5, #2 + 800cafc: 2700 movs r7, #0 + 800cafe: f106 4e00 add.w lr, r6, #2147483648 ; 0x80000000 + 800cb02: f10e 3eff add.w lr, lr, #4294967295 ; 0xffffffff + 800cb06: fbbe f9f3 udiv r9, lr, r3 + 800cb0a: 4638 mov r0, r7 + 800cb0c: fb03 ea19 mls sl, r3, r9, lr + 800cb10: f1a4 0c30 sub.w ip, r4, #48 ; 0x30 + 800cb14: f1bc 0f09 cmp.w ip, #9 + 800cb18: d814 bhi.n 800cb44 <_strtol_l.constprop.0+0x9c> + 800cb1a: 4664 mov r4, ip + 800cb1c: 42a3 cmp r3, r4 + 800cb1e: dd22 ble.n 800cb66 <_strtol_l.constprop.0+0xbe> + 800cb20: 2f00 cmp r7, #0 + 800cb22: db1d blt.n 800cb60 <_strtol_l.constprop.0+0xb8> + 800cb24: 4581 cmp r9, r0 + 800cb26: d31b bcc.n 800cb60 <_strtol_l.constprop.0+0xb8> + 800cb28: d101 bne.n 800cb2e <_strtol_l.constprop.0+0x86> + 800cb2a: 45a2 cmp sl, r4 + 800cb2c: db18 blt.n 800cb60 <_strtol_l.constprop.0+0xb8> + 800cb2e: 2701 movs r7, #1 + 800cb30: fb00 4003 mla r0, r0, r3, r4 + 800cb34: f815 4b01 ldrb.w r4, [r5], #1 + 800cb38: e7ea b.n 800cb10 <_strtol_l.constprop.0+0x68> + 800cb3a: 2c2b cmp r4, #43 ; 0x2b + 800cb3c: bf04 itt eq + 800cb3e: 782c ldrbeq r4, [r5, #0] + 800cb40: 1c85 addeq r5, r0, #2 + 800cb42: e7cd b.n 800cae0 <_strtol_l.constprop.0+0x38> + 800cb44: f1a4 0c41 sub.w ip, r4, #65 ; 0x41 + 800cb48: f1bc 0f19 cmp.w ip, #25 + 800cb4c: d801 bhi.n 800cb52 <_strtol_l.constprop.0+0xaa> + 800cb4e: 3c37 subs r4, #55 ; 0x37 + 800cb50: e7e4 b.n 800cb1c <_strtol_l.constprop.0+0x74> + 800cb52: f1a4 0c61 sub.w ip, r4, #97 ; 0x61 + 800cb56: f1bc 0f19 cmp.w ip, #25 + 800cb5a: d804 bhi.n 800cb66 <_strtol_l.constprop.0+0xbe> + 800cb5c: 3c57 subs r4, #87 ; 0x57 + 800cb5e: e7dd b.n 800cb1c <_strtol_l.constprop.0+0x74> + 800cb60: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff + 800cb64: e7e6 b.n 800cb34 <_strtol_l.constprop.0+0x8c> + 800cb66: 2f00 cmp r7, #0 + 800cb68: da07 bge.n 800cb7a <_strtol_l.constprop.0+0xd2> + 800cb6a: 2322 movs r3, #34 ; 0x22 + 800cb6c: 4670 mov r0, lr + 800cb6e: f8c8 3000 str.w r3, [r8] + 800cb72: 2a00 cmp r2, #0 + 800cb74: d0a4 beq.n 800cac0 <_strtol_l.constprop.0+0x18> + 800cb76: 1e69 subs r1, r5, #1 + 800cb78: e005 b.n 800cb86 <_strtol_l.constprop.0+0xde> + 800cb7a: b106 cbz r6, 800cb7e <_strtol_l.constprop.0+0xd6> + 800cb7c: 4240 negs r0, r0 + 800cb7e: 2a00 cmp r2, #0 + 800cb80: d09e beq.n 800cac0 <_strtol_l.constprop.0+0x18> + 800cb82: 2f00 cmp r7, #0 + 800cb84: d1f7 bne.n 800cb76 <_strtol_l.constprop.0+0xce> + 800cb86: 6011 str r1, [r2, #0] + 800cb88: e79a b.n 800cac0 <_strtol_l.constprop.0+0x18> + 800cb8a: 2430 movs r4, #48 ; 0x30 + 800cb8c: 2b00 cmp r3, #0 + 800cb8e: d1b5 bne.n 800cafc <_strtol_l.constprop.0+0x54> + 800cb90: 2308 movs r3, #8 + 800cb92: e7b3 b.n 800cafc <_strtol_l.constprop.0+0x54> + 800cb94: 2c30 cmp r4, #48 ; 0x30 + 800cb96: d0a9 beq.n 800caec <_strtol_l.constprop.0+0x44> + 800cb98: 230a movs r3, #10 + 800cb9a: e7af b.n 800cafc <_strtol_l.constprop.0+0x54> + 800cb9c: 0800d69e .word 0x0800d69e -0800c9a4 <__ascii_wctomb>: - 800c9a4: 4603 mov r3, r0 - 800c9a6: 4608 mov r0, r1 - 800c9a8: b141 cbz r1, 800c9bc <__ascii_wctomb+0x18> - 800c9aa: 2aff cmp r2, #255 ; 0xff - 800c9ac: d904 bls.n 800c9b8 <__ascii_wctomb+0x14> - 800c9ae: 228a movs r2, #138 ; 0x8a - 800c9b0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800c9b4: 601a str r2, [r3, #0] - 800c9b6: 4770 bx lr - 800c9b8: 2001 movs r0, #1 - 800c9ba: 700a strb r2, [r1, #0] - 800c9bc: 4770 bx lr +0800cba0 <_strtol_r>: + 800cba0: f7ff bf82 b.w 800caa8 <_strtol_l.constprop.0> -0800c9be <_malloc_usable_size_r>: - 800c9be: f851 3c04 ldr.w r3, [r1, #-4] - 800c9c2: 1f18 subs r0, r3, #4 - 800c9c4: 2b00 cmp r3, #0 - 800c9c6: bfbc itt lt - 800c9c8: 580b ldrlt r3, [r1, r0] - 800c9ca: 18c0 addlt r0, r0, r3 - 800c9cc: 4770 bx lr +0800cba4 <__submore>: + 800cba4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800cba8: 460c mov r4, r1 + 800cbaa: 6b49 ldr r1, [r1, #52] ; 0x34 + 800cbac: f104 0344 add.w r3, r4, #68 ; 0x44 + 800cbb0: 4299 cmp r1, r3 + 800cbb2: d11b bne.n 800cbec <__submore+0x48> + 800cbb4: f44f 6180 mov.w r1, #1024 ; 0x400 + 800cbb8: f7fc fb7e bl 80092b8 <_malloc_r> + 800cbbc: b918 cbnz r0, 800cbc6 <__submore+0x22> + 800cbbe: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800cbc2: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800cbc6: f44f 6380 mov.w r3, #1024 ; 0x400 + 800cbca: 63a3 str r3, [r4, #56] ; 0x38 + 800cbcc: f894 3046 ldrb.w r3, [r4, #70] ; 0x46 + 800cbd0: 6360 str r0, [r4, #52] ; 0x34 + 800cbd2: f880 33ff strb.w r3, [r0, #1023] ; 0x3ff + 800cbd6: f894 3045 ldrb.w r3, [r4, #69] ; 0x45 + 800cbda: f200 30fd addw r0, r0, #1021 ; 0x3fd + 800cbde: 7043 strb r3, [r0, #1] + 800cbe0: f894 3044 ldrb.w r3, [r4, #68] ; 0x44 + 800cbe4: 7003 strb r3, [r0, #0] + 800cbe6: 6020 str r0, [r4, #0] + 800cbe8: 2000 movs r0, #0 + 800cbea: e7ea b.n 800cbc2 <__submore+0x1e> + 800cbec: 6ba6 ldr r6, [r4, #56] ; 0x38 + 800cbee: 0077 lsls r7, r6, #1 + 800cbf0: 463a mov r2, r7 + 800cbf2: f7ff fb75 bl 800c2e0 <_realloc_r> + 800cbf6: 4605 mov r5, r0 + 800cbf8: 2800 cmp r0, #0 + 800cbfa: d0e0 beq.n 800cbbe <__submore+0x1a> + 800cbfc: eb00 0806 add.w r8, r0, r6 + 800cc00: 4601 mov r1, r0 + 800cc02: 4632 mov r2, r6 + 800cc04: 4640 mov r0, r8 + 800cc06: f7fc fad9 bl 80091bc + 800cc0a: e9c4 570d strd r5, r7, [r4, #52] ; 0x34 + 800cc0e: f8c4 8000 str.w r8, [r4] + 800cc12: e7e9 b.n 800cbe8 <__submore+0x44> + +0800cc14 <__ascii_wctomb>: + 800cc14: 4603 mov r3, r0 + 800cc16: 4608 mov r0, r1 + 800cc18: b141 cbz r1, 800cc2c <__ascii_wctomb+0x18> + 800cc1a: 2aff cmp r2, #255 ; 0xff + 800cc1c: d904 bls.n 800cc28 <__ascii_wctomb+0x14> + 800cc1e: 228a movs r2, #138 ; 0x8a + 800cc20: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800cc24: 601a str r2, [r3, #0] + 800cc26: 4770 bx lr + 800cc28: 2001 movs r0, #1 + 800cc2a: 700a strb r2, [r1, #0] + 800cc2c: 4770 bx lr + +0800cc2e <_malloc_usable_size_r>: + 800cc2e: f851 3c04 ldr.w r3, [r1, #-4] + 800cc32: 1f18 subs r0, r3, #4 + 800cc34: 2b00 cmp r3, #0 + 800cc36: bfbc itt lt + 800cc38: 580b ldrlt r3, [r1, r0] + 800cc3a: 18c0 addlt r0, r0, r3 + 800cc3c: 4770 bx lr ... -0800c9d0 <_init>: - 800c9d0: b5f8 push {r3, r4, r5, r6, r7, lr} - 800c9d2: bf00 nop - 800c9d4: bcf8 pop {r3, r4, r5, r6, r7} - 800c9d6: bc08 pop {r3} - 800c9d8: 469e mov lr, r3 - 800c9da: 4770 bx lr +0800cc40 <_init>: + 800cc40: b5f8 push {r3, r4, r5, r6, r7, lr} + 800cc42: bf00 nop + 800cc44: bcf8 pop {r3, r4, r5, r6, r7} + 800cc46: bc08 pop {r3} + 800cc48: 469e mov lr, r3 + 800cc4a: 4770 bx lr -0800c9dc <_fini>: - 800c9dc: b5f8 push {r3, r4, r5, r6, r7, lr} - 800c9de: bf00 nop - 800c9e0: bcf8 pop {r3, r4, r5, r6, r7} - 800c9e2: bc08 pop {r3} - 800c9e4: 469e mov lr, r3 - 800c9e6: 4770 bx lr +0800cc4c <_fini>: + 800cc4c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800cc4e: bf00 nop + 800cc50: bcf8 pop {r3, r4, r5, r6, r7} + 800cc52: bc08 pop {r3} + 800cc54: 469e mov lr, r3 + 800cc56: 4770 bx lr